2005 Aug 17 5:39 PM
I am trying to post an inbound IDOC that was created inside an ABAP program.
I have tried MASTER_IDOC_DISTRIBUTE and set the direction on the control record to '2' (inbound), however when i look at the idoc posted in WE02, its in the outbound section, not the inbound. Of course it's failing there because the partner is not set up (nor should it be) to process this idoc as outbound.
2005 Aug 17 5:56 PM
Hi, the FM MASTER_IDOC_DISTRIBUTE is for outbouond the IDOC to other partner, if you want to inbound FM, they are named 'IDOC_INPUT_XXXX', normally the XXX is the name of the IDOC message type.
So you can find out the associated FM according to your IDOC message type.
The relation between the IDOC type and message type can be search in WE82
Hope it will be helpful
Thanks a lot
2005 Aug 17 5:56 PM
Hi, the FM MASTER_IDOC_DISTRIBUTE is for outbouond the IDOC to other partner, if you want to inbound FM, they are named 'IDOC_INPUT_XXXX', normally the XXX is the name of the IDOC message type.
So you can find out the associated FM according to your IDOC message type.
The relation between the IDOC type and message type can be search in WE82
Hope it will be helpful
Thanks a lot
2005 Aug 17 6:02 PM
I knew there was an IDOC_INPUT_ORDERS (ORDERS is the message type I am trying to post). However doesn't the IDOC have to pass through the ALE layer first to get a number assigned to it? Are you saying all I have to do (in my case) is create an ORDERS05 IDOC in an abap program and just pass it to IDOC_INPUT_ORDERS?
2005 Aug 17 7:10 PM
Hi Wardell,
You need to call FM IDOC_INPUT_ASYNCHRONOUS. It will save the IDOC in DB and ALE will take over from there.
Based on the partner profile, process code will be picked up and appropriate function module will be called to process IDOC.
Calling the IDOC_INPUT_ORDERS is not going to work as the IDOC is not saved in the DB.
Cheers,
Sanjeev
2005 Dec 14 8:43 AM
Hi,
The FM that you have specified here are the one which are used for saving the data from IDOC to SAP.
But in this scenarionI want to create an IDOC with inbound direction . to be more eleborative I will get incomplete information from External system in IDOC and based on this I neeed to create an <b>Standard IDOC</b> filling the more required information and then this Standard IDOC will be processed by Standard FM like the one you have specified here 'IDOC_INPUT_XXXX',
What i need is the FM for Creating <b>this Standard IDOC</b> as inbound.
hope this explain .
Thanks and Regards,
Ankur
2005 Aug 17 6:26 PM
Hi, I think if you direcly call this FM (IDOC_INPUT_ORDERS), it can goes, even without the IDOC number. The IDOC number is for the EDI/ALE layer to differentiate the IDOCs, but it looks no usage in the Inbound FM inside, as these FM is only for inbound IDOC data into server.
Maybe there will be some consistency issue occur, but the inbound can be done, haven't tried it.
By the way, it looks you want to create a IDOC which has the same sender and receiver, it has some other way, you can reference in the following link:
http://www.sapgenie.com/ale/whitepaper.htm
In The 7.3 Topic it has been explained to configure this scenerio.
hope it will be helpful
Thanks a lot
2005 Aug 17 8:33 PM
Use function module IDOC_WRITE_AND_START_INBOUND. This creates the Idoc and posts it.
Cheers,
Ramki Maley.
2005 Dec 14 8:50 AM
2005 Aug 18 4:48 AM
Hi Wardell,
You can do the same using transaction <b>BD87</b>.
Specify the idoc number. execute.
Then click on the idoc and say press the button "Process".
Remember 2 reward points to posts that helped answer ur question.
Reg,
Prabhu.