Application Development 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: 

BAPI_OUTB_DELIVERY_CREATE_SLS: CREATING DELIVERY ORDER

Former Member
0 Kudos

Hi Frnds,

I am using BAPI_OUTB_DELIVERY_CREATE_SLS to create a delivery for customer order. I am passing ship_point( for ex: zbsh) and ref_doc number(for ex: 12658). I am getting the result as delivery created (for ex: 80015479). But when I checked the tables LIKP/LIPS, the delivery order doesn't exist. When a created delivery order manually using VL01 ,it updates the LIKP/LIPS table with delivery no:80015480.( serial number of delivery orders are following)

Is this BAPI updates any delivery table or not?

Please help me in this regard.

Regards,

kiran.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You will have to use BAPI_TRANSACTION_COMMIT, for the created document to be written to database. Without the commit work the data doesnt get updated to the database.


DATA:
  fs_commit TYPE bapiret2.

  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait   = 'X'
    IMPORTING
      return = fs_commit.

Though you get the message from the system saying that a delivery document was created, it doesnt get updated to LIKP/LIPS unless until you run the COMMIT WORK using this BAPI.

2 REPLIES 2

Former Member
0 Kudos

Please check if you have used 'BAPI_TRANSACTION_COMMIT' after successful creation of delivery using 'BAPI_OUTB_DELIVERY_CREATE_SLS'.

Regards,

Aparna Gaikwad

Former Member
0 Kudos

Hi,

You will have to use BAPI_TRANSACTION_COMMIT, for the created document to be written to database. Without the commit work the data doesnt get updated to the database.


DATA:
  fs_commit TYPE bapiret2.

  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait   = 'X'
    IMPORTING
      return = fs_commit.

Though you get the message from the system saying that a delivery document was created, it doesnt get updated to LIKP/LIPS unless until you run the COMMIT WORK using this BAPI.