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: 

Posting IDocs

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

Hi,

To create the idoc by IDOC_INBOUND_WRITE_TO_DB have a look at the below link,

[IDOC_INBOUND_WRITE_TO_DB |]

and RBDAPP01 comes in picture when you have idoc in 64 status, you can manually process the idoc by using this program or you can schedule in background.

Thanks,

Asit Purbey.

abdul_hakim
Active Contributor
0 Kudos

Hi

RBDAPP01 Program is only used for processing the idocs in 64 status.

Regards,

Abdul Hakim

Former Member
0 Kudos

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

Former Member
0 Kudos