Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change Vendor Using BAPI_SALES_ORDER_CHANGE

Former Member
0 Kudos

Hi ABAPers,

I want to change LIFNR by using BAPI_SALESORDER_CHANGE. where I have to change.

Given parameters:

BAPIVBELN-VBELN

BAPISDH1X - 'U'

<b>PARTNERCHANGES:</b>

DOCUMENT

ITM_NUMBER

UPDATEFLAG

PARTN_ROLE

PARTN_ROLE

Is this correct way to change LIFNR(Vendor) or any other procedure. Please Do the Needful

Thanks and Regads

Pravee.D

1 REPLY 1

former_member223537
Active Contributor
0 Kudos

Hi,

You need to pass BAPIPARNRC-PARTN_ROLE = 'LF' AND BAPIPARNRC-P_NUMB_OLD = 'the old value' BAPIPARNRC-P_NUMB_NEW = 'THE NEW VALUE'

BAPIPARNRC-DOCUMENT = 'Sales order no.'

BAPIPARNRC-UPDATEFLAG = 'U'

BAPIPARNRC-ITM_NUMBER = '000000'

BAPIPARNRC-REFOBJTYPE = 'THE BUSINESS OBJECT'.

Apart from this, you also need to pass in the header BAPI BAPISDH1 values of Sales org, div & distribution channel.

Best regards,

Prashant