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

BAPI_SALESORDER_CHANGE

Hi Friends,

i am using BAPI_SALESORDER_CHANGE for updating sale order line item amount. I developed a code that is mentioned below. after executing contains of RETURN likeITEM_IN has been processed successfully

ORDER_HEADER_IN has been processed successfully

Warr/Emg Order-Parts 2010815 has been saved

but, it is not coming in SO. does anyone tell me where did i mistake

  • move itab_pso-vbeln to order_header_in-collect_no.

  • move itab_pso-vkorg to order_header_in-sales_org.

*

move 'U' to order_header_inx-updateflag.

  • move 'X' to order_header_inx-collect_no.

  • move 'X' to order_header_inx-sales_org.

move itab_pso-posnr to order_item_in-itm_number.

  • move itab_pso-pstyv to order_item_in-item_categ.

move itab_pso-kbetr_n to order_item_in-target_val.

append order_item_in.

move itab_pso-posnr to order_item_inx-itm_number.

move 'X' to order_item_inx-updateflag.

  • move 'X' to order_item_inx-item_categ.

move 'X' to order_item_inx-po_itm_no.

move 'X' to order_item_inx-target_val.

append order_item_inx.

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'

EXPORTING

SALESDOCUMENT = itab_pso-vbeln

ORDER_HEADER_IN = order_header_in

ORDER_HEADER_INX = order_header_inx

  • SIMULATION =

  • BEHAVE_WHEN_ERROR = ' '

  • INT_NUMBER_ASSIGNMENT = ' '

  • LOGIC_SWITCH =

TABLES

RETURN = return

ORDER_ITEM_IN = order_item_in

ORDER_ITEM_INX = order_item_inx

  • PARTNERS =

  • PARTNERCHANGES =

  • PARTNERADDRESSES =

  • ORDER_CFGS_REF =

  • ORDER_CFGS_INST =

  • ORDER_CFGS_PART_OF =

  • ORDER_CFGS_VALUE =

  • ORDER_CFGS_BLOB =

  • ORDER_CFGS_VK =

  • ORDER_CFGS_REFINST =

  • SCHEDULE_LINES =

  • SCHEDULE_LINESX =

  • ORDER_TEXT =

  • ORDER_KEYS =

  • CONDITIONS_IN =

  • CONDITIONS_INX =

  • EXTENSIONIN =

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'

  • IMPORTING

  • RETURN =

.

Tnanks in advance,

Parag

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 31, 2004 at 12:26 PM

    Hi,

    You have to use the conditions table (CONDITIONS_IN) for this. However, look at OSS note 188972 : although you have to use the table CONDITIONS_IN, you have to leave conditions_inx unmaintained (leave it in comment when calling the BAPI).

    Hope this helps,

    Marc

    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.