Application Development and Automation 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: 
Read only

BAPI_OUTB_DELIVERY_CREATENOREF example?

juanpablo_carro
Discoverer
0 Likes
2,691

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

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,547

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. LIKP

I 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

Read only

Former Member
0 Likes
1,547

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 )