Application Development and Automation 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: 
Read only

Get IDoc status messages remotely?

Sandra_Rossi
Active Contributor
0 Likes
2,688

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
Read only

harald_lesche-holzbecher
Product and Topic Expert
Product and Topic Expert
1,987

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
Read only

harald_lesche-holzbecher
Product and Topic Expert
Product and Topic Expert
1,988

Well, what about:

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

*" INT_EDIDS STRUCTURE EDIDS

Read only

1,987

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
Read only

0 Likes
1,987

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)

Read only

chaouki_akir
Contributor
0 Likes
1,987

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

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,987

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)