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: 

reg: fm IDOC_INBOUND_ASYNCHRONOUS

Former Member
0 Kudos

HI All,

I have used this fm IDOC_INBOUND_ASYNCHRONOUS in report to create idocs as this CALL FUNCTION 'IDOC_INBOUND_ASYNCHRONOUS'

DESTINATION 'NONE'

TABLES

idoc_control_rec_40 = itab_edidc

idoc_data_rec_40 = itab_edidd

EXCEPTIONS

OTHERS = 1.

IF sy-subrc <> 0.

LOOP AT itab_edidc.

ENDLOOP.

FORMAT COLOR COL_NEGATIVE.

WRITE: / 'Error in IDOC creation -', itab_edidc-refmes.

MESSAGE e000(z0mm_msg) WITH itab_edidc-refmes.

ELSE.

FORMAT COLOR COL_POSITIVE.

WRITE: / 'IDOC created -', itab_edidc-refmes.

IF itab_edidc-status EQ '53'.

  • v_sidoc = itab_edidc-DOCNUM.

itab_sidoc-docnum = itab_edidc-DOCNUM.

append itab_sidoc.

ENDIF.

ENDIF.

but when i see the contents if itab_edidc in debugging mode then status field in the internal table is empty .how to get the status field and doc num in the internal table

1 ACCEPTED SOLUTION

Former Member
0 Kudos

In Asynchronous mode you will not get this info.

Regards,

John.

6 REPLIES 6

Former Member
0 Kudos

In Asynchronous mode you will not get this info.

Regards,

John.

0 Kudos

so how to get the info .wat shud i do sir .can you please help me sir

0 Kudos

Use IDOC_INPUT instead.

Regards,

John.

0 Kudos

hi sir will i get the details from the tables fields .which i am going to pass it to the fm idoc_input.sir can you just briefly explain me the fm or any sample piece of code where it has been used .....

0 Kudos

Just use the "where-used" function on this FM, you will find several hits in standard SAP programs.

Regards,

John.

0 Kudos

seen the where used list but there it is used only in standarad progrmammes .can you please help me reegarding this