2008 Apr 01 6:55 AM
Hi,
I am trying to create a Idoc from a xml file without using XI.
I can read the details from the file and populate a internal table.
I am not clear when the IDoc number will be generated.
Can any one gtel me which FM actually starts the inbound proces?
Which FM will generate the IDOC no for the incoming Idoc ?
I am not clear as to which function module i should pass my internal table with data to create a IDoc.
Please help
Regards,
Vignesh
Hi,
I am trying to create a Idoc from a xml file without using XI.
I can read the details from the file and populate a internal table.
I am not clear when the IDoc number will be generated.
Can any one gtel me which FM actually starts the inbound proces?
Which FM will generate the IDOC no for the incoming Idoc ?
I am not clear as to which function module i should pass my internal table with data to create a IDoc.
Please help
Regards,
Vignesh
2008 Apr 01 8:06 AM
Hi,
Try using this FM IDOC_INBOUND_WRITE_TO_DB
{CALL FUNCTION 'IDOC_INBOUND_WRITE_TO_DB'
EXPORTING
pi_do_handle_error = l_do_handle_error
pi_return_data_flag = c_false
IMPORTING
pe_idoc_number = control_record_db_in-docnum
pe_state_of_processing = state_of_processing_in
pe_inbound_process_data = inbound_process_data_in
TABLES
t_data_records = l_t_data_records_db
CHANGING
pc_control_record = control_record_db_in
EXCEPTIONS
idoc_not_saved = 1
OTHERS = 2.}
Reward Points if it helpful.
Thanks,
Prasanna
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |