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

bapi or function module to upload data to xk02

Former Member
0 Likes
4,554

Hi Experts,

I want to upload data to XK02 with the following fields.

BUKRS
EKORG
LIFNR
NAME1
NAME2
STREET
HOUSE_NUM1
STR_SUPPL1
STR_SUPPL2
STR_SUPPL3
LOCATION
POST_CODE1
CITY1
COUNTRY
REGION
TEL_NUMBER
TEL_EXTENS
MOB_NUMBER
FAX_NUMBER
FAX_EXTENS
SMTP_ADDR
STCEG
BANKL
BANKN
AKONT
ZTERM
GUZTE
ZWELS
WAERS
FDGRV
REPRF

I tried BAPI_VENDOR_EDIT to upload the above mentioned fields data from the excel sheet but in that bapi except vendor no other values we cant pass. Is there any other function modules or bapi to upload above mentioned data to XK02 transaction code.

Regards,

Karthik

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,848

No actual BAPI  exists yet, but you could look at method cmd_ei_api=>maintain_bapi

Regards,

Raymond

9 REPLIES 9
Read only

Former Member
0 Likes
2,848

Hi Karthik,

Please research thoroughly before posting because tonnes on material is available on this.

In brief, the BAPIs BAPI_VENDOR_CREATE/BAPI_VENDOR_EDIT etc do a direct call transaction to XK01/XK02 so they can be only used in creating vendors in dialog mode which renders them mostly inappropriate for general needs.

For clarity please read,

http://scn.sap.com/thread/3179582

http://scn.sap.com/thread/138495

http://scn.sap.com/thread/941442

https://scn.sap.com/thread/930542

BR,

Ankit.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,849

No actual BAPI  exists yet, but you could look at method cmd_ei_api=>maintain_bapi

Regards,

Raymond

Read only

0 Likes
2,848

Hi Raymond,

thanks for the reply, maintain_bapi method was usefull for my requirement.

Regards,

Karthik

Read only

former_member386202
Active Contributor
0 Likes
2,848

Hi,

Use BAPI BAPI_VENDOR_EDIT,

Regards,

Prashant

Read only

0 Likes
2,848

Look better at this BAPI before suggesting its use

Regards,

Raymond

Read only

0 Likes
2,848

Hi Raymond,

I want to change the vendor master details. I am using the method maintain_bapi of class vmd_ei_api to modify the existing record. In my excel am using few fields to modify and i dont want to update personal number, incoterms etc which is not there in my excel file. but after updating, personel number and incoterms are updated with 00000 and space but i want the orignial values to be as it is for incotems and personel no.

For example: before uploading personel no is 45 then afet uploading also it should be 45 but it is replaced with 000.

Regards,

Karthik

Read only

0 Likes
2,848

Please share your code where you are populating values. Following link may also be helpful.

http://scn.sap.com/thread/3388043

Regards

Read only

Former Member
0 Likes
2,848

Hi,

Go through the following links,

http://scn.sap.com/thread/3177379

http://scn.sap.com/thread/1796697

Warm Regards,

John.

Read only

tchandru
Newcomer
0 Likes
2,848

kindly ,can you share your coding part for this XK02 transaction code. Because i too got same requirement i tried various methos but it is not working.

thanks and regards,

chandru