Professional Documents
Culture Documents
method.
Once get into the method click on the Enhance (Shift + F4) button from tool bar.
Right click on the method at starting line, choose Enhancement Operations -> Show Implicit
Enhancement Options. It will show like below arrow at both start & end of the the method.
Right click at the end of the method, choose 'Enhancement Operations -> Create Implicit
Enhancement. click on 'Code' button.
'Select or Create Enhancement Implementation' popup will come.It will ask you the Enhancement name &
Short description. click on Enter.
Implement custom logic(Logic provide below) between ENHANCEMENT and ENDENHANCEMENT. Save and
activate it.
Implicit Enhancement - SET_DECISION_REJECT_COLLECTIVE: Same as Implicit Enhancement - SET_DECISION_REL_COLLECTIVE.
Custom Logic:1. 1. Check whether the Document Type is not equal to RV (Contract Requisition) or not.
2. If Document Type is not RV, then initiate the text (FM: INIT_TEXT) with Id = B01, Name
= PR No. and Object = EBANH.
3. Loop the Item text table and append to the other table (Which is the input table of SAVE_TEXT
function module).
4. Pass the Header details (Id + Name + Object) and Text table to the SAVE_TEXT fm.
Code:
DATA : l_thead
TYPE thead,
lt_tline TYPE STANDARD TABLE OF tline INITIAL SIZE 30,
l_tline
TYPE tline,
l_txfunction TYPE cdupdkz.
DATA : lv_bsart TYPE bbsrt.
IF NOT iv_approval_text IS INITIAL.
Kiran.
838 Views Tags: pr_approver_comments_at_header_level
There are no comments on this post