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

BAPI_SALESORDER_CHANGE

Hi,

I need to update Reason for Rejection(VBAP-AGBRU) and Line item text for sale order. I am using BAPI_SALESORDER_CHANGE for it but it is not updating.

I pass all the required information to the BAPI,

- Sales Order Number : 70000782

- Update Flag in HEADER_INX (U)

- Item Number and Reason for Rejection in ITEM_IN : 000010/ZW

- Item Number, Update Flag, Reason for Rejection (X) in ITEM_INX

This is ORDER_TEXT Values which I am passing:-

DOC_NUMBER 70000782

ITM_NUMBER 000010

TEXT_ID VBBP

LANGU EN

LANGU_ISO

FORMAT_COL

TEXT_LINE THIS IS TEST UPDATE OF DATA

FUNCTION 009

It is showing below lines in return table but it is not updating values.

S V4 233 ORDER_HEADER_IN has been processed successfully

S V4 233 ITEM_IN has been processed successfully

S V1 311 IR Debit Memo 70000782 has been saved

What would be the reason why it is not updating sale order, Please suggest

Rgds

Ankesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 22, 2014 at 07:04 AM

    Hi Ankesh,

    After calling the BAPI 'BAPI_SALESORDER_CHANGE ', you also need to call FM 'BAPI_TRANSACTION_COMMIT' if the return table does not have any error messages.

    Regards,

    Apeksha.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2014 at 07:26 AM

    Hi Ankesh,

    from the values of return table it is clear the record is updating but check once that you are populating

    ORDER_ITEM_IN table correctly specially field REASON_REJ..

    might be this field is not populated check in debugger..

    Regards,

    Shashikanth

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2014 at 07:37 AM

    Hi

    In the BAPI, check in the structure BAPISDITM, the field value for REASON_REJ is filled.

    Also in the BAPI, check in the structure BAPISDITMX, the field value for REASON_REJ is 'X'.

    Also use the BAPI_TRANSACTION_COMMIT function module at the end.

    Regards

    Shaik

    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.