User Exits for incoming idocs

Question: Scenario:
Sap system A sends Sap system B a purchase order. Before the PO is sent, a user exit converts material number from X to Y in the idoc only. Sap system B accepts order and sends out a sales order confirmation. In SAP system A, the material number in the confirmation idoc needs to be converted back from Y to X.

Question:
How does the conversion of material Y to X get done in SAP system A.

My original thought was to use a user exit (EXIT_SAPLEINM_007)but I am not sure how to process this because, the ALE layer in Sap system A adds the confirmation idoc to the database immediately, it then passes the idoc to function modules for processing. The user exits in the function module are given the idoc data via internal tables. Changes to these internal table does not seem to affect the data in the actual idoc.

Can anyone tell me how to convert the material number in the incoming idoc?

Answer:
define the material-conversion in VD51

Supply material-A in E1EDP19-001 -> upon processing the SAP-system will look up material-A and 'replace' it by material-B (if found in VD53)

Danny

Answer:
Hi ,

You cannot change the inbound confirmation idoc . The change from Y to X will be directly seen in the purchase order now , and not in the idoc .

Is the PO showing the order confirmation information . You can also check in ME23 -> Environment ->Display originals -> Linked idocs . You should be able to view both ORDERS and ORDRSP idocs .

Regards
Poonam
Copyright ?2007 - 2008 www.jt77.com