cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC created but not stored: No exception also

vallamuthu_madheswaran2
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

vallamuthu_madheswaran2
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Set a break-point in function module GN_DELIVERY_CREATE..

Can you copy the contents of table IT_GN_SERNR?

JL23
Active Contributor
0 Kudos

Or just search and read content from SAP Marketplace, e.g. the consulting OSS note 833668 - Creating batches in the inbound delivery using IDOC

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Hi Ivan,

Thanks for your reply.

The serial number is comming in IT_GN_SERNR.  whar are all the values we have to pass in IT_GN_SERNR.

Thanks with Regards,

Vallamuthu M

Former Member
MANIS
Active Contributor
0 Kudos

Did you check all other parameter e.g. Material is batch managed or not. Also in the first line you mentioned that ". Not able to create IBD using IDOC_INPUT_DESADV1 in progran" so which function module or program are you using to pass the segment value to internal structure SDATA

Answers (1)

Answers (1)

JL23
Active Contributor
0 Kudos

you have never created an IDOC, hence you wont find any in WE02, BD87 or similar transactions.

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Hi Jurgen,

could you give detail explanation.

Thanks with Regards,

Vallamuthu M.

JL23
Active Contributor
0 Kudos

Lets turn it because you have the issue. What did you do to create an IDOC?

vallamuthu_madheswaran2
Active Contributor
0 Kudos

I have create the Inbound delivery. Now IBD is created. But IDOC number is not stored.

Thanks with Regards,

Vallamuthu M.

catherine_mckenna
Active Participant
0 Kudos

Hi Vallamuthu,

Here are some useful links which may help with your query.

http://wiki.scn.sap.com/wiki/display/ERPSCM/LE-SHP-GF-EDI++++++++EDI+and+ALE+Delivery
http://scn.sap.com/community/abap/connectivity/blog/2007/06/22/idoc-remains-in-status-62-or-64

Also check this KBA:


1931451 - Error VL561 - Essential transfer parameters are missing in record: & &

I hope this helps.

Kind regards,
Catherine

JL23
Active Contributor
0 Kudos

Excel -> upload into internal table > move data into the right fields of the IDOC structure > save the data in EDIDD table > BD87 > IDOC_INPUT_DESADV1

this is very rough the flow

if you look into the interface of IDOC_INPUT_DESADV1, then you should realize that the function module  gets its data via the table IDOC_DATA, this is the input - speak the IDOC is the input for this function module

you called this function module directly and moved your Excel data into the fields of IDOC_DATA

this way you simulated an IDOC but you do not have one.  And even a successful process does not create any IDOC or an IDOC number as reference anywhere.

If you want an IDOC from your Excel file, then a convenient way is LSMW.

LSMW can create an IDOC from your source file, and can even process it.