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: 

which user exit suitable for purchase order inbound idoc.

Former Member
0 Kudos

Hello experts,

which user exit suitable for purchase order inbound idoc.?

I am new to IDOCs and EXITS.

My requirement is

PI system sends IDOC to our SAP system.

IDOC type is PORDCR102

MESSAGE TYPE IS PORDCR1

before saving te purchase order our exit should trigger and modify some item data .

can u send sample code(reading segments) for that exit.

Regards,

Revanth.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Use enhancement "SAPLMEWP", component " EXIT_SAPLMEWP_002".

Regards

Vinod

Former Member
0 Kudos

Hi Revanath,

Since function module for Inbound Idoc processing in case change PO is 'IDOC_INPUT_ORDCHG' , mentioned exit can work for

you. As far as reading the data from IDoc is concerned you can Loop through u2018POTEXTITEMu2019 and pass each record line by line

into workarea u2018WA_POTEXTITEMu2019. Do changes which you want in WA_POTEXTITEM and then Modify the internal

table u2018POTEXTITEMu2019 from work area u2018WA_POTEXTITEMu2019. Append u2018POTEXTITEMXu2019 table with u2018WA_POTEXTITEM-PO_NUMBERu2019

WA_POTEXTITEM-PO_ITEMu2019, values so as to reflect back the changes at Item level.

Please let us know if you still have some doubts.

Cheers

VJ

ThomasZloch
Active Contributor
0 Kudos

Your request is too generic. Please read about Asking Good Questions in the Forums to get Good Answers before posting again. Always try yourself first before asking others.

Thread locked.

Thomas