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

BADI for posting inbound IDOC using BAPI_PO_CREATE

Former Member
0 Likes
993

Hi SAP gurus,

In my project, I have to post the inbound IDOC PORDCR from PI by using Z FM which call BAPI_PO_CREATE. It works fine.

Requirement: I need to change the value of tax jurisdiction and tax code (table EKPO) based on the value of company code (EKKO) and GL (EKKN), so i cannot use the User_Exit (which happen before the process).

Please advise which BADI I should use with BAPI_PO_CREATE and also for BAPI_PO_CHANGE.

I'm new for BADI. Please help.

Thank you,

Elaine

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
733

Why dont you write a code to change value of tax jurisdiction and tax code before passing these values to BAPI in your Z function module itself?

--

Reddy

3 REPLIES 3
Read only

Former Member
0 Likes
734

Why dont you write a code to change value of tax jurisdiction and tax code before passing these values to BAPI in your Z function module itself?

--

Reddy

Read only

Former Member
0 Likes
733

Hi,

Have you tried enhancement "SAPLMEWP", component : EXIT_SAPLMEWP_002.

Regards

Vinod

Read only

0 Likes
733

Thank you all.

I want to have some place to put code just BEFORE the system commit work (save PO to database) since the BAPI calls EXIT_SAPLMEWP_002 before generate PO items.

Regards,

Elaine