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

Issue modifying vendor master details using class vmd_ei_api

Former Member
0 Likes
1,238

Hi experts,

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

6 REPLIES 6
Read only

NAeda
Contributor
0 Likes
964

I think the method is creating new vendor instead of updating, Instead you can try with other FM's.

The links may be useful

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

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

Read only

former_member212005
Active Contributor
0 Likes
964

Are you passing 'X' in datax components for above fields?

If you are.......then please change it.

Only fields which you are populating and want to change should have value of 'X' in DATAX components.

Read only

former_member206575
Participant
0 Likes
964

I'll also have a go:

Did you put 'M' in the TASK fields?

Read only

0 Likes
964

Hi Edwin,

Yes i mentioned 'M' in task fields and whichever fields am passing the data for that fields am passing 'X' in the datax components.

Regards,

Karthik

Read only

0 Likes
964

Vinu:

Check out the below link, wherein one of the person's had a similar question and which was answered.

There is also sample code in it. Try this and compare with yours to determine what has to be populated and what is to be not...... and let us know if it is working or not.

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

Read only

Former Member
0 Likes
964

You can use functional module

call function 'VENDOR_UPDATE'
     exporting
       i_lfa1  = it_lfa1
       i_lfb1  = it_lfb1
       i_lfm1  = it_lfm1
       i_ylfa1 = it_lfa1
       i_ylfb1 = it_lfb1
       i_ylfm1 = it_lfm1
     tables
       t_xlfas = it_flfas
       t_xlfb5 = it_flfb5
       t_xlfbk = it_flfbk
       t_xlfza = it_flfza
       t_ylfas = it_flfas
       t_ylfb5 = it_flfb5
       t_ylfbk = it_flfbk
       t_ylfza = it_flfza.