on 09-05-2014 11:33 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Or just search and read content from SAP Marketplace, e.g. the consulting OSS note 833668 - Creating batches in the inbound delivery using IDOC
Check this document
http://wiki.scn.sap.com/wiki/display/ERPSCM/Serial+Numbers+in+Delivery
you have never created an IDOC, hence you wont find any in WE02, BD87 or similar transactions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.