Application Development 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: 

How to update the table available in BADI method

Former Member
0 Kudos
219

Hi Friends,

I have to implement one badi ME_REQ_POSTED for purchase requistion, in this badi I have to read first line item and do

some check...if that check is true i need to update subsequent line item (line 20, 30, 40 or so) with purchase group and MRP controller.

In this BADI i have method POSTED, in this method parameter IM_EBAN is a table which i need to modify with my different

values for purchase group and MRP controller.

Kindly let me know how to update this table, so the changes can be reflected in purchase requistion.

Since when I tried to directly modify the table in a loop, system throw one error stating IM_EBAN can not be modified.

kindly help.

pradeep

3 REPLIES 3

former_member555112
Active Contributor
0 Kudos
128

Hi,

You cannot make use of the method to change the EBAN data because it is in the importing parameter of the method.

Use the ehancement EXIT_SAPLME59_001 instead.

Regards,

Ankur Parab

0 Kudos
128

hi

I have implemented this exit but it does not stop at it while saving Purchase requistion. But my previous BADI stops at it when saving.

Kindly guide.

0 Kudos
128

Hi,

Have you activated the exit project. Check whether it is called in some if condition in the code.

KR Jaideep,