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 or function module

Former Member
0 Likes
423

Hi,

Anyone know of any BADI or function module for amending Account Assignment in Purchasing Document (PR, PO)?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
398

In the BADI for adding fields there is a method : IF_EX_ME_PROCESS_PO_CUST~PROCESS_ACCOUNT - this is in the extend processing of enjoy purchase order BADI in SPRO. This may be what you are looking for. SAP provides a smaple of how to implement this badi in the class CL_EXM_IM_ME_PROCESS_PO_CUST. Depending on what you are doing remember to consider Scheduling Agreements, contracts, RFQ and Purchase Requisions as they share a lot of SAP code.

2 REPLIES 2
Read only

Former Member
0 Likes
399

In the BADI for adding fields there is a method : IF_EX_ME_PROCESS_PO_CUST~PROCESS_ACCOUNT - this is in the extend processing of enjoy purchase order BADI in SPRO. This may be what you are looking for. SAP provides a smaple of how to implement this badi in the class CL_EXM_IM_ME_PROCESS_PO_CUST. Depending on what you are doing remember to consider Scheduling Agreements, contracts, RFQ and Purchase Requisions as they share a lot of SAP code.

Read only

Former Member
0 Likes
398

Go to se18,

Check both BADI names:

ME_PROCESS_PO_CUST and

ME_PROCESS_PO_CUST.

If you want to use it at save: you can select the method: Post,

if you want to code after save( after completion of transaction) then go for method: CLOSE.

Reward point if helpful,

Rgs,

Ashok