When the dispute management module is implemented, one of the key requirements would be to copy this information to the Notes on dispute cases. Using the following solution, this can be easily implemented.
Step 1
Implement the BADI ZFDM_AR_DEF_NOTE.
Step 2
Implement the code shown below in the method GET_DEFAULT_NOTE
Data : wa_note type TLINE,
wa_bseg type bseg.
select single * from bseg into wa_bseg where belnr = I_DISPUTE_DATA-BELNR_AKT and GJAHR = I_DISPUTE_DATA-GJAHR_AKT
and BUZEI = I_DISPUTE_DATA-BUZEI_AKT.
if sy-subrc = 0.
append initial line to c_note.
loop at c_note into wa_note.
wa_note-TDLINE = wa_bseg-SGTXT.
MODIFY c_note INDEX sy-tabix FROM wa_note
TRANSPORTING TDLINE.
endloop.
endif.
endmethod.
Now when the disputes are created using the transaction code FDM_AUTO_CREATE, Line items text would automatically be added to the dispute notes.
Hope this helps. See you next time.
1 comment:
sap bw,what is sap,sap help
Post a Comment