Mapping from Orders01 to ORDERS05
My scenario is...
There is a purchase order document which is coming from another SAP system. Its in ORDERS01 form.
I have to create a sales order in my system through IDOC. The order type i have to use for this is ORDERS05. This is the requirement from client side.
My interface program should read in the ORDERS01 idoc and reformat the data into the ORDERS05 idoc for the sales order. The PO file is coming in a text format and its rests on the application server of my SAP system whose path I know.
How should I proceed for this reformatting and send me a sample program if u have which does reformatting from ORDERS01 to ORDERS05.