‎2013 Jul 09 11:16 AM
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
‎2013 Jul 09 11:57 AM
I think the method is creating new vendor instead of updating, Instead you can try with other FM's.
The links may be useful
‎2013 Jul 09 1:01 PM
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.
‎2013 Jul 09 1:33 PM
‎2013 Jul 11 7:40 AM
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
‎2013 Jul 11 12:58 PM
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.
‎2013 Jul 11 7:58 AM
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.