Application Development and Automation 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: 

BAPI for create/Update Vendor Partner functions (XK02)

Former Member
0 Kudos
5,034

Hi,

We have a requirement where in we need to update the partner functions of a vendor (table WYT3), transaction XK02. Is there any BAPI to do so?

Regards,

Vinod Nagre

1 ACCEPTED SOLUTION

Former Member
0 Kudos
1,908

if it possible go for below LSMW batch input method

Object 0040 Vendor master

Method 0001 Standard

Program Name RFBIKR00

Program Type B Batch Input

9 REPLIES 9

Former Member
0 Kudos
1,908

Hi,

see these function modules

VENDOR_UPDATE

VENDOR_MAINTAIN_XK02

regards

SAntosh

Abhijit74
Active Contributor
0 Kudos
1,908

Hi,

Check BAPI_VENDOR_EDIT, FM VENDOR_UPDATE , function module.

Thanks

Abhijit

Former Member
0 Kudos
1,908

Hi Abhijit and Santosh,

I checked these BAPI/FM, but couldn't find the parameters to update Partner Functions.

Please let me know the correct parameters or other BAPIs/FM.

Thanks.

Vinod Nagre

Former Member
0 Kudos
1,909

if it possible go for below LSMW batch input method

Object 0040 Vendor master

Method 0001 Standard

Program Name RFBIKR00

Program Type B Batch Input

0 Kudos
1,908

Thanks Chenna.

This solved my problem.

0 Kudos
1,908

Thanks. It really helped me.

Former Member
0 Kudos
1,908

Hi

Can you help me, how is possible update vendor data using net. connector with RFC function (or some another way to update vendors data from 3th party program). Up to now I read only data from LFA1 using net. connector (using RFC function RFC_READ_TABLE) and now I need update vendor data (e.g. NAME1, NAME2, ADRNR etc. from LFA1)

Our SAP system contains very much duplicate record (many LIFNR has the same STCD2, STCEG etc. but different NAME1 who contains typist's error or something like this. 6000 vendors has 1700 duplicates and incomplete record). Our Administrator don't know how set up SAP so that impossible create duplicite vendors! Because our system SAP contains very, very, very much elementary error, this system is not helpfull for our company.

Thank you

Former Member
0 Kudos
1,908

Hi,

I am also facing the same problem,

while using the lsmw , instead of updating the partnber value it append with a new value.

Can anyone please help me with it.

any help would be appreciated.

Thanks & Regards,

Arjav Gandhi

haveluri
Explorer
0 Kudos
1,908

After lot of try later this method worked for me to update PF in WYT3 table

Use the Class CL_MD_BP_MAINTAIN and call method VALIDATE_SINGLE and later call method MAINTAIN.

You have to give input to the extern structure - > pass already created BP and its GUID in 'U' update mode in Partner related Object and in vendor related details in Header pass the vendor name in U mode and update purchasing data with the details of ekorg and pass lfm1 - webre ,lfm1 - KALSK, lfm1-waers, lfm1-zterm fields mandatorily in data and in data x also provide X for these fields.

Later update your current state as "X" and Partner functions in Functions structure in vendor >> purchasing >>purchasing>> functions

initially call Validate single and maintain.

Here there might be a chance for abort for BUPA_central call in validate single but If you retry it it will not come, then call maintain.

Please remember while passing the Partner functions Please pass the existing functions ( same as in WYT3 in same order and at last add your new PF) in Update mode or else only the PF you insert will get inserted and other functions will be deleted.

Here if you try with BDC of BP also it will not work at the stage of page down or up and any other FM 's are not provided to update Partner Functions.