07-01-2008 7:26 AM
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
07-01-2008 11:30 AM
07-01-2008 11:30 AM
07-01-2008 11:47 AM
so how to get the info .wat shud i do sir .can you please help me sir
07-01-2008 12:05 PM
07-01-2008 12:18 PM
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 .....
07-01-2008 12:32 PM
Just use the "where-used" function on this FM, you will find several hits in standard SAP programs.
Regards,
John.
07-03-2008 4:33 AM
seen the where used list but there it is used only in standarad progrmammes .can you please help me reegarding this