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: 

IDOC_START_INBOUND

Former Member
0 Kudos
1,346

Hi All,

I am trying to post the idoc in the same sytem via a report.I am doing this for the first time.

I have used idoc_inbound_write_to_db FM.After this FM,the status of the newly generated idoc is 64.

Now idoc_start_inbound FM is called .

To this FM,I have passed the process code,control record and data records.Process code contains the custom FM.But while executing the idoc_start_inbound,it is nowhere calling the custom FM which I have developed.

Is there anything I have to pass to this FM??

1 REPLY 1

naimesh_patel
Active Contributor
0 Kudos
219

You should pass the inbound data which is being exported from the FM IDOC_INBOUND_WRITE_TO_DB. Pass this data into the FM IDOC_START_INBOUND. You don't need to pass the process code and other details manually.


  CALL FUNCTION 'IDOC_INBOUND_WRITE_TO_DB'
    IMPORTING
      pe_idoc_number                = v_idoc_number
      pe_inbound_process_data       = wa_tede2
    CHANGING
      pc_control_record             = wa_idoc_control

     ....
  append wa_idoc_control to i_edidc.
  CALL FUNCTION 'IDOC_START_INBOUND'
    EXPORTING
      pi_inbound_process_data             = wa_tede2
    TABLES
      t_control_records                   = i_edidc

Regards,

Naimesh Patel