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: 

Get IDoc status messages remotely?

Sandra_Rossi
Active Contributor
0 Kudos

Hello,

I create a non-ABAP program which creates and execute inbound IDocs by calling the function module IDOC_INBOUND_SYNCHRONOUS remotely (IDocs to create various business objects).

This function module returns the IDoc number, but I don't find any RFC-enabled function module to retrieve the status messages which should contain the number of object created (from table EDIDS).

Is there one, or should I operate differently?

Thanks.

Sandra

1 ACCEPTED SOLUTION

Well, what about:

FUNCTION EDI_DOCUMENT_READ_ALL_STATUS.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(DOCUMENT_NUMBER) LIKE EDIDC-DOCNUM
*" TABLES

*" INT_EDIDS STRUCTURE EDIDS

5 REPLIES 5

Well, what about:

FUNCTION EDI_DOCUMENT_READ_ALL_STATUS.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(DOCUMENT_NUMBER) LIKE EDIDC-DOCNUM
*" TABLES

*" INT_EDIDS STRUCTURE EDIDS

I tried it using transaction se37 and it can not be called alone.

3 RFC functions have to be called in sequence:

  • EDI_DOCUMENT_OPEN_FOR_READ
  • EDI_DOCUMENT_READ_ALL_STATUS
  • EDI_DOCUMENT_CLOSE_READ

0 Kudos

Harald, thank you very much, I was blind. And that's a released function module, what more to ask!

chaouki.akir thank you for the very important complement 🙂 (and all of them are RFC and released)

chaouki_akir
Contributor
0 Kudos

What is the non-ABAP program that is able to call ABAP function modules ? Is it easy to try ? Is it free to use ?

Sandra_Rossi
Active Contributor
0 Kudos

chaouki.akir C# program using .NET Connector. Why curious? It's often requested by many SAP customers! (personally it's the first time I have to do it hence my question, and I couldn't find the answer in the forum, don't know why because it should have been a "frequent" question)