Skip to Content
author's profile photo Former Member
Former Member

IDOC with ABAP - PI Port , RFC Function module

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2011 at 08:32 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 19, 2011 at 02: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.