Skip to Content
author's profile photo Former Member
Former Member

Changing customer fields in VBKD by standard BAPI

Hi everybody,

how can I change customer fields in table VBKD by using BAPI BAPI_CUSTOMERCONTRACT_CHANGE.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 24, 2007 at 08:22 AM

    Hi..

    This is the Sample code. Change it as per ur need.

    d_VBELN = '50000172'.

    contract_header_inx-updateflag = 'U'.

    CLEAR contract_items_in.

    contract_items_in-itm_number = '100'.

    contract_items_in-material = 'H51-YY019'.

    contract_items_in-target_qty = '2'.

    APPEND contract_items_in.

    contract_items_inx-updateflag = 'U'.

    contract_items_inx-itm_number = '100'.

    contract_items_inx-material = 'X'.

    contract_items_inx-target_qty = 'X'.

    APPEND contract_items_inx.

    CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'

    EXPORTING

    SALESDOCUMENT = D_VBELN

    contract_header_in = contract_header_in

    contract_header_inx = contract_header_inx

    TABLES

    return = return

    contract_item_in = contract_items_in

    contract_item_inx = contract_items_inx.

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

    <b>Reward if Helpful.</b>

    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.