Skip to Content

Updating Custom fields in VL01N using BAPI

Hi Everyone,

I have to create a delivery for a particular Sales Order using BAPI. The Problem is every standard fields could be updated using BAPI, but some of the fields present in header details of VL01N are customised which I don't know how to update using BAPI. I need to update those custom fields using BAPI.

Kindly help me in this regard.

Thanks & Regards,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 03, 2015 at 06:46 AM

    Hello Jai,

    Let's take BAPI_OUTB_DELIVERY_CREATE_SLS for example.
    In this BAPI, parameter EXTENSION_IN can be used to transfer additional data.
    Then we can use BAdI BADI_DLV_CREATE_SLS_EXTIN to read parameter EXTENSION_IN of the BAPI.

    In BAPI_OUTB_DELIVERY_CREATE_SLS there is a call badi which you can use:

    *   Read ExtensionIn
        get badi lr_badi_in.
        call badi lr_badi_in->additional_input

    You need to implement
    Enhancement spot:  ES_SAPVL50I_BADI

    In order to store your data in a global memory (ex: global data of a custom function group). You will then be able to read this global memory from an implementation of BADI: LE_SHP_DELIVERY_PROC,
    Method: SAVE_DOCUMENT_PREPARE, for further processing.

    This is just a general information, you still need to discuss this in detail with your developer regarding how to do this to meet your requirement, based on your business requirement and the system situation.

    You may also have a look at following note if your system release is in SAPKH60005 or higher.

    949074 - BAPIs for generating outbound deliveries

    Hope I was able to help with above information.

    Best regards,

    Crystal Lin

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 03, 2015 at 08:48 AM

    Moved from SAP ERP SD Sales to ABAP Development

    Add comment
    10|10000 characters needed characters exceeded