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: 
Read only

update file data into xk02

Former Member
0 Likes
3,072

Hi All,

I need to update file data into vendor master general data,company code data ,purchase org data in xk02 . Is there any BAPI for xk02 to update all the vendor master data into general data,company code, purchase org data.

Please any one share sample code for BAPI.

I have searched in SCN and could not find any sample code for this function modules BAPI_Vendor_Edit or vendor_update.

please help me for sample code.

your valuable answers will be much appreciated and points will be rewarded.

Thanks

Sunitha.

Hi All,

I need to update file data into vendor master general data,company code data ,purchase org data in xk02 . Is there any BAPI for xk02 to update all the vendor master data into general data,company code, purchase org data.

Please any one share sample code for BAPI.

I have searched in SCN and could not find any sample code for this function modules BAPI_Vendor_Edit or vendor_update.

please help me for sample code.

your valuable answers will be much appreciated and points will be rewarded.

Thanks

Sunitha.

10 REPLIES 10
Read only

Former Member
0 Likes
2,211

Hi,

BAPI_VENDOR_EDIT won't let you change DB data: it simply calls on line transaction.

Marco

Read only

0 Likes
2,211

Hi Macro,

I need to update vendor master data in xk02 general,company code, purchase org data. Please suggest me is there any particular BAPI for that.

Thanks for you reply.

Regards

Suni.

Read only

0 Likes
2,211

HI,

I think there's no BAPI for updating vendor master data, you have to use a batch input. If you like you can do that with LSMW.

Marco

Read only

0 Likes
2,211

Hi Macro,

Do you have BDC code for updating XK02 please share.

Thanks for your reply.

Regards

Suni.

Read only

Former Member
0 Likes
2,211
Read only

0 Likes
2,211

Hi Nitin,

I need to update all the vendor master data not only partner functions, please suggest me is there any particular BAPI for that.

Thanks

Suni.

Read only

Former Member
0 Likes
2,211

Hi,

try tcode MASS with object LFA1 or use Batch-Input (SM35).

Regards, Dieter

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,211

Perform some seach on : method MAINTAIN_BAPI of class VMD_EI_API

Also forget "BAPI_Vendor_Edit or vendor_update".

  • BAPI_VENDOR_EDIT only call the transaction XK02 after checking existence of vendor in database.
  • VENDOR_UPDATE is an update task FM, just a part of the open-sql statements executed at end of update (no check, many updates missing)

Regards,

Raymond

Read only

Former Member
0 Likes
2,211

Hi Sunitha,

I prefer to use LSMW here.You can achieve it by using batch recording option here.

Do a recording for the XK02 tcode with all mandatory required fields filled and create a sample file and upload.I t is higly ecomnomical in your case than a BDC upload.

Please go through the video links where upold for XK01 is done.

SAP LSMW from Hyderabad . INDIA . - YouTube

Rewards are appreciated if found useful.

Regards,

Kannan

Read only

Former Member
0 Likes
2,211

There is no true BAPI available.

You could use idoc Function modules BAPI_IDOC_INPUT1 (ADRMAS idoc - Address data) and

IDOC_INPUT_CREDITOR (CREMAS idoc - Vendor data).

These function modules in turn call XK01/XK02 using the CALL Transaction statement.

You could write  a program directly calling CALL TRANSACTION.

I can't give you ready made code. These are just leads, you will have to develop the program yourself.