Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Converting an update statement to modify statement in BADI

Former Member
0 Likes
699

Hai I want to convert an update statement to modify statement . Can we define the internal table in BADI. Give me the code

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
670

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^

Hai I want to convert an update statement to modify statement . Can we define the internal table in BADI. Give me the code

2 REPLIES 2
Read only

Former Member
0 Likes
671

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^

Read only

Former Member
0 Likes
670

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