Skip to Content
avatar image
Former Member

BAPI BAPI_SALESORDER_CHANGE runs Successfully but sales order not updated

Hi Experts,

I need to change region of partner address, i am using BAPI 'BAPI_SALESORDER_CHANGE'. This BAPI is giving me success error message but its not

updating the sales order.


Please Suggest...

Regards,

Sushil Kumar Shrivastava

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jul 13, 2017 at 10:16 AM

    Read sap notes 1472089 - Cannot change partner address with BAPI_SALESORDER_CHANGE - SAPSQL_ARRAY_INSERT_DUPREC in LV05IU15 and especially 366265 - How should I fill the BAPI parameters?.

    I am not a real developer, but by following the instructions I was able to update partner address data for a sales order via a test sequence.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 12, 2017 at 02:36 PM

    I think you'll want to uncomment the call to set the partner table update flag to 'U'. May also need to set the itm_number to '000000', not sure on that one.

    wa_partner-updateflag = 'U'.
    wa_partner-itm_number = '000000'.
    Add comment
    10|10000 characters needed characters exceeded

  • Jul 13, 2017 at 02:42 AM

    Hi,

    Try adding this at line 143.

    wa_part_addr-updateflag = 'U'.

    Regards,

    Priyanka.

    Add comment
    10|10000 characters needed characters exceeded