09-09-2008 8:01 PM
Hi experts,
i try to find a sample program to create a idoc by using a standard type ORDCHG ORDERS05. does anyone can help me ?
My goal is to change a header date in a sale order.
I do not know the correct information structure and where to fill the sale order number.
Regards
Alexandra.
09-09-2008 8:14 PM
Hello Alexandra
I assume there is a simple solution to your problem. Take any existing inbound ORDERS.ORDERS05 IDoc and then go to transaction WE19. Display the IDoc hierarchy and click (hotspot) on the EDIDC segment (= control segment).
As you will the logical message type is ORDERS (= create order).
Well, I guess that if you change that to ORDCHG (= change order) you are able to change your sales order previously created by another IDoc.
Start processing by pushing button "Inbound function module" (= IDOC_INPUT_ORDERS ).
Forgot to mention that the sales order number can be found in the header segment E1EDK01-BELNR.
Regards
Uwe