10-09-2014 8:55 AM
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.
11-25-2014 7:29 AM
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