2007 May 08 7:34 AM
Hai I want to convert an update statement to modify statement . Can we define the internal table in BADI. Give me the code
2007 May 08 7:47 AM
hi
good
you can use the MODIFY statement in case of the UPDATE statement and change your code accordingl.
Yes you can define an internal table in BADI.
/people/frank.klausner/blog/2007/01/19/nw2004s-workload-statistics-collector-implementing-a-badi-as-user-exit
thanks
mrutyun^
2007 May 08 7:47 AM
hi
good
you can use the MODIFY statement in case of the UPDATE statement and change your code accordingl.
Yes you can define an internal table in BADI.
/people/frank.klausner/blog/2007/01/19/nw2004s-workload-statistics-collector-implementing-a-badi-as-user-exit
thanks
mrutyun^
2007 May 08 7:51 AM
Hi,
Yes you can define internal tables in BADI
Example:
Implement BADI ME_PROCESS_PO_CUST and in the method PROCESS_ITEM
DATA: ls_mepoitem TYPE mepoitem.
*get item data
ls_mepoitem = im_item->get_data( ).
IF ls_mepoitem-adrn2 EQ space AND
ls_mepoitem-adrnr EQ space.
Retrieve the adddres or hardcode as per ur reqmt.
*transfer the address to ls_mepoitem-adrn2.
MOVE v_adrn2 TO ls_mepoitem-adrn2.
CALL METHOD im_item->set_data
EXPORTING
im_data = ls_mepoitem.
ENDIF.
Asha