04-28-2009 6:51 AM
Hi,
I am using the function module IDOC_INBOUND_WRITE_TO_DB to post the inbound idoc and submit the program RBDAPP01 to obtain the status.
Can anybody please explain me how to use the above function module.
Please do reply.
Thanks in advance.
04-28-2009 9:49 AM
04-28-2009 12:49 PM
Hi
RBDAPP01 Program is only used for processing the idocs in 64 status.
Regards,
Abdul Hakim
04-28-2009 7:36 PM
Creating and sending an IDoc
By Kevin Wilson - From ErpGenie.com
*** STEP 1 - Create IDoc internal table entries
*** STEP 2 - Call the function to distribute the IDoc
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
master_idoc_control = s_edidc
obj_type = 'BUS2032'
TABLES
communication_idoc_control = itab_edidc
master_idoc_data = itab_edidd
EXCEPTIONS
error_in_idoc_control = 1
error_writing_idoc_status = 2
error_in_idoc_data = 3
sending_logical_system_unknown = 4
OTHERS = 5.
*** STEP 3 - Update IDoc status - If you wish to send additional status messages through
REFRESH: itab_edids.
itab_edids-status = c_idoc_status_ok.
itab_edids-msgty = c_info_msg.
itab_edids-msgid = c_msgid.
itab_edids-msgno = c_msgno.
itab_edids-msgv1 = itab_edidc-docnum.
itab_edids-msgv2 = s_edidc-sndprn.
*** Call the function to update the ORDCHG IDoc status
CALL FUNCTION 'IDOC_STATUS_WRITE_TO_DATABASE'
EXPORTING
idoc_number = s_edidc-docnum
TABLES
idoc_status = itab_edids
EXCEPTIONS
idoc_foreign_lock = 1
idoc_not_found = 2
idoc_status_records_empty = 3
idoc_status_invalid = 4
db_error = 5
OTHERS = 6.
Regards,
Prabhudas
04-30-2009 5:17 PM