Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

IDOC created but not stored: No exception also

Hi All,

My scenario is that to upload the data from excel file and create inbound delivery. I am using the fm IDOC_INPUT_DESADV1. IBD and IDOC has been created but mot saved.

if I goto vl32n, There is no IBD and if i goto WE02 then there is No IDOC. No exception also.

Thanks with Regards,

Vallamuthu M

replied

Hi,

Thanks for all your updates. Not able to create IBD using IDOC_INPUT_DESADV1 in progran(SE38). I am using the following function modules. it's created IDOC and IBD. Now my problem is that how to create batch and serial number. I have given batch number in E1EDL24-CHARG and serial number E1EDL11-SERNR. It's create IBD with out the given batch number and serial number.

call function 'IDOC_INBOUND_WRITE_TO_DB'

   
TABLES

      t_data_records   
= gt_idoc_data

*     T_LINKED_OBJECTS  =

   
CHANGING

      pc_control_record
= gs_idoc_contrl

   
EXCEPTIONS

      idoc_not_saved   
= 1

     
OTHERS            = 2.

 
IF sy-subrc = 0.

   
APPEND gs_idoc_contrl TO gt_idoc_contrl.

   
CALL FUNCTION 'IDOC_START_INBOUND'

     
EXPORTING

*       PI_INBOUND_PROCESS_DATA       = ' '

        pi_called_online             
= 'X'

*       PI_DO_COMMIT                  = 'X'

*       PI_START_EVENT_ENABLED        = 'X'

*       PI_ORG_UNIT                   = ' '

        succ_show_flag               
= 'X'

*       PI_PARTNER_OPTION             =

     
TABLES

        t_control_records            
= gt_idoc_contrl

*       T_DATA_RECORDS                =

     
EXCEPTIONS

        invalid_document_number      
= 1

        error_before_call_application
= 2

        inbound_process_not_possible 
= 3

        old_wf_start_failed          
= 4

        wf_task_error                
= 5

        serious_inbound_error        
= 6

       
OTHERS                        = 7.

   
IF sy-subrc <> 0.

* Implement suitable error handling here

   
ENDIF.
 
ENDIF.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question