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

Code Inside Badi is not Upating When Calling From FM

Former Member
0 Likes
1,166

Hi All,

I have written some code inside a BADI to update my fields while PO creating using tcode ME21N and it is working fine. But when i tried the same thing using FM bapi_po_create1, PO is creating and the BADI is calling but the fields are not getting updated. Why this is happening? BADI is working fine but updated data not reflecting in PO. Please advice

Regards,

Alenlee MJ

Hi All,

I have written some code inside a BADI to update my fields while PO creating using tcode ME21N and it is working fine. But when i tried the same thing using FM bapi_po_create1, PO is creating and the BADI is calling but the fields are not getting updated. Why this is happening? BADI is working fine but updated data not reflecting in PO. Please advice

Regards,

Alenlee MJ

5 REPLIES 5
Read only

former_member202818
Active Contributor
0 Likes
1,121

HI Alenlee,

Which BAdI? Are sure that the badi is getting invoked from me21n?

Regards

Sreekanth

Read only

0 Likes
1,121

Hi Sreekanth,

I am using the BADI : ME_PROCESS_PO_CUST

Badi is triggering ME21n also from the BAPI.

But Fields are not updating while triggering from BAPI.

Regards,

Alenlee MJ

Read only

Former Member
0 Likes
1,121

Do anyone have any idea on above mentioned issue?

Read only

0 Likes
1,121

Hi James,

Can I know which method of the BADI ME_PROCESS_PO_CUST is used?

Also can you share the code of it as well.

Regards,

Rafi

Read only

0 Likes
1,121

Hi Alenlee James,

Share your code which you have written in BADI to update custom fields data.

Regards,

Shaiskha Vali.