Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC with ABAP - PI Port , RFC Function module

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi, soved myself. Copied OWN_FUNCTION into custom and assigned to PORT. This Function module is catching the Outbound IDOC.

2 REPLIES 2

jack_graus2
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi, soved myself. Copied OWN_FUNCTION into custom and assigned to PORT. This Function module is catching the Outbound IDOC.