06-25-2010 11:20 AM
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.
06-25-2010 11:30 AM
Hi,
Use enhancement "SAPLMEWP", component " EXIT_SAPLMEWP_002".
Regards
Vinod
07-09-2010 10:54 AM
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
07-09-2010 12:34 PM
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