Question:
Hi all,
I am working on a task on ALE in which a SHPMNT03 inbound IDoc is coming in the system. Now i have to create another IDoc from it by mapping some of the fields of SHPMNT03 IDoc into this new IDoc.
This new IDoc will in turn perform the transfer posting MB1B transaction in the same system.
Can i convert an outbound idoc to an inbound idoc by changing the direction field? How please help me.
Please help me out in solving it.
Thanks.
Gajendra
Answer:
Hi,
The steps to config new IDoc inbound as follows:
1. Create new IDoc object in object repository SWO1 which you should copy from SHPMNT03 under IDOCAPPL object list.
2. Create new task based on new IDoc object.
3. Maintain trigger event for the task.
4. Create new message type.
5. Link message type to IDoc type.
6. Allocate FM to LS.
7. Setting attribute to FM.
8. Create new process code.
9. Assign to partner profile.
10. Enjoy with new IDoc.
hope its help
Answer:
Hi ginggaan,
Thanks for the help.
But i m looking for something like,
an inbound shipment idoc is coming an in the inbound fm i will be mapping some of the fields of the shipment idoc, to another idoc's data segment and in this way fill all the required data, and control records required for IDoc creation.
So now is there is any function module which directly takes the data and control records and creates an IDOC.
After this new idoc creation i will call another FM which will do MB1B in the system.
So the final objective is that from the shipment idoc create a new idoc with a new message type which will perform the transfer posting MB1B transaction.
Thanks & Regards.
Gajendra