Skip to Content

Bapi for updating VBUK KOSTK VBUK LVSTK

Hi Everyone

canceling the delivery transfer order changed the status of VBUK- KOSTK AND VBUK LVSTK CHANGED TO A A

then I changed the delivery status to completed with transaction VL _COMPLETE

That changed the statuses to C C

Then I decided to delete the delivery from the database so I entered Again to transaction VL_COMPLET And reset the delivery status

but it chaned the delivery status to VBUK KOSTK= C AND VBUK-LVSTK TO B that means that I cant delete the delivery

I need bapi to change it , searched in the web didnt find...

can someone help me please...?


Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jan 11, 2016 at 10:40 PM

    It is not feasible to update any of the statuses in VBUK/VBUP directly. BAPIs can only do the same things that transactions do.

    These statuses are set automatically based on the configuration and actions performed. I suggest you review the configuration and transactions you're doing to understand why the statuses are set the way they are.

    Add a comment
    10|10000 characters needed characters exceeded

    • You only mentioned VBUK, but what about VBUP/LIPS?

      I usually use FM sd_document_flow_get for the list of subsequent documents and items and start checking them one by one. VBFA is also a good approach. Is this how you determined that no other documents are pending for reversal?

      Another thing worth investigating is matching between LIPS and VBUP for the delivery document. I have encountered cases in the past with discrepancies between LIPS and VBUP (most often with batch split).

      It would be good to check for inconsistencies in TO confirmations as well - they may appear as completed in the document flow, but the delivery status would still be 'B'.

      One more point - if you use some addons for WMS processing or have other customer-specific logic in some user exits or communicate to an external system - you also need to consider additional steps for reversal/completion.

      There are correction reports provided by SAP to resolve inconsistencies in document flow/status update, TO confirmations, requirements update etc.(some of them are listed here: 2006809 - Composite SAP note: How to fix delivery-related inconsistencies.), but it would be very irresponsible to suggest that you try any of them before determining the root cause of the issue.

      I would strongly recommend not to try updating with any BAPIs or perform direct table updates unless you are absolutely sure that you will be able to handle the inconsistencies that would occur as a result of such approach.

  • Posted on Jan 12, 2016 at 04:08 PM

    I'd suggest to double-check statuses, including VBUP table (which influences VBUK, naturally). Unfortunately, status mismatches are not as rare in SAP, but there are several different correction reports already available in the SAP notes. Many of them were mentioned on SCN as well, make sure to search.

    If the document flow and configuration looks OK, if this works fine in another case and none of the existing correction reports fit the bill, open an incident with SAP Support.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 12, 2016 at 05:45 PM

    Thank you Veselina and Jelena for your answers

    I checked tables LIPS, VBUP , VBUK , they all updated the same, C for overpickstatus and B for overalwmstatus .All other statuses are the same too , checked the canceled transfer order ,

    and its completely update as canceled

    I also checked document flow by "sd_document_flow_get " and there is only one sto and one transfer order exist

    I even checked transaction LX47 but get no data for that delivery.

    I Opened Incident with SAP , I will update after resolving it.

    Best Regards


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.