‎2008 Oct 27 6:01 PM
Hello community!
I need to create a delivery doc without a reference but I can't make the BAPI work!
I always get an error with the dates table!
could you give me an example code for that Bapi?
thank you and
kind regards,
Juan Pablo
‎2008 Oct 28 6:29 AM
Hello Juan
I assume a big problem it to find the right combination of DATE_USAGE and TIMETYPE (TABLES parameter DATES).
Only the first entry of DATES is evaluated in FORM routine
* Map to internal format
perform bapi_noref_map_to_internal tables dates
dlv_items
serial_numbers
return
using date_usage
changing ls_dates
lt_items_in
lt_sernr
lf_rc.Using the following cominbinations (Note: external format required for TIMETYPE in SE37)
2 WS LOADING LIKP
1 WS MATERIAL AV. LIKPI received the following error messages:
E VL 565 Data of preceding document was not transmitted
E VL 561 Essential transfer parameters are missing in record: 000001
E BAPI 001 No instance of object type OutboundDelivery has been created. External reference:And:
E VL 565 Data of preceding document was not transmitted
E VL 561 Essential transfer parameters are missing in record: 000001
E VL 562 Enter either delivery date or goods issue date
E BAPI 001 No instance of object type OutboundDelivery has been created. External reference:I assume that DELIV_NUMB (itab DATES) needs to be filled but I am not an expert in logistics execution so I cannot tell you what might be right value. Nevertheless I hope this might be useful for you.
Regards
Uwe
‎2008 Oct 28 9:09 AM
Hi,
Use BAPI_TRANSACTION_COMMIT function module after calling the BAPI_OUTB_DELIVERY_CREATENOREF.
Give the function module names in SE37 and read the documentation of BAPI_OUTB_DELIVERY_CREATENOREF and BAPI_TRANSACTION_COMMIT )