Application Development and Automation 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: 
Read only

Inbound IDoc creation

Former Member
0 Likes
404

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

1 REPLY 1
Read only

Former Member
0 Likes
366

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