04-19-2011 3:39 PM
Hi ,
I am creating outbound Idoc in one system, In the same system I am using a ABAP - PI port and assigned a RFC function module.
So when ever the outbound IDOC is created it will go to the port and triggers the RFC function module.
now my question is how to get the outbound IDOC number in the RFC function module.
I thought of reading the table EDIDC with message type, but all previous IDOC's aslo coming .
Regards
Bhaskar
04-20-2011 9:32 AM
Hi, soved myself. Copied OWN_FUNCTION into custom and assigned to PORT. This Function module is catching the Outbound IDOC.
04-19-2011 3:49 PM
Hi Bhaskar, the IDOC control record or records are transfered to your function module in table paramater I_EDIDC. You could read the IDOC data by calling function modules EDI_DOCUMENT_OPEN_FOR_PROCESS and EDI_SEGMENTS_GET_ALL for each control record.
Regards Jack
04-20-2011 9:32 AM
Hi, soved myself. Copied OWN_FUNCTION into custom and assigned to PORT. This Function module is catching the Outbound IDOC.