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: 

Old and new data in ME_PROCESS_PO_CUST

Former Member
0 Kudos

Hi all,

how to get the old and current condition data in IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM ?.

Likewise in SMOD/CMOD, xkonv /ykonv represents old/new pricing, how about in ME_PROCESS_PO_CUST

1 ACCEPTED SOLUTION

Former Member
0 Kudos

As far as I remember you don't get condition data in that BADI. If you want, you can use enhancements LMEKO001 and LMEKO002 (SMOD).

2 REPLIES 2

Former Member
0 Kudos

As far as I remember you don't get condition data in that BADI. If you want, you can use enhancements LMEKO001 and LMEKO002 (SMOD).

Yes, you can read old data in IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM:

DATA wstr_item_old TYPE mepoitem.

CALL METHOD im_item->get_previous_data

  IMPORTING

     ex_data = wstr_item_old

  EXCEPTIONS

     no_data = 1

     OTHERS = 2.

Or use SMOD/COMD EXIT_SAPMM06E_017 (MM06E005)