2011 Sep 14 12:34 PM
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??
2011 Sep 14 3:07 PM
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