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: 

Purchase Order Check BAdi

kersra
Explorer
0 Kudos

Dear all,

is there a way in ME_PROCESS_PO_CUST BAdi Method Check to access the NAST entries which will be written before a Purchase Order is saved?

Best regards

R.K.

1 REPLY 1

thanga_prakash
Active Contributor
0 Kudos

Hello Ralph,

I guess you can able to read it once the document is posted, in method CLOSE all the header details of the PO is importing.

find whether the header has the below information's.

Application for message conditions

Object key

Message type

Message language

Message partner

Partner function (for example SH for ship-to party)

If so then pass those values to NAST table to find the entries.

Also read the below documentation of CLOSE method as provided by SAP.

--------------------------------Documentation as in SAP-------------------------------------

Closing Processing

Functionality

     The CLOSE method enables you to reset your own programs.

     This method is invoked either directly after posting (POST method) or

     before the next document is opened (OPEN method).

Parameters

     The following parameters are available:

     o   IM_HEADER   -   Document header

         The interface reference is of the type IF_PURCHASE_ORDER_MM.

-----------------------------------------------------------------------------------------------------------

Regards,

Thanga