09-21-2015 4:22 PM
Hi everyone and thanks in advance for your help:
I'm able to create vendors using class method vmd_ei_api=>maintain_bapi.
My question is, what's the way to do if the vendor already exists and just want to create it for another company. For example: Vendor AAAA exists for company 1000. I want to extend this vendor to compay 2000. Is it possible using vmd_ei_api=>maintain_bapi?
Thanks and regards.
09-23-2015 9:37 AM
I was able to achieve my requirement. If the vendor allready exists just add all the information to structure gs_vmds_extern-vendors-company_data.
Put value 'M' (Create/Modify) in field gs_vmds_extern-vendors-header-object_task and value 'I' (Create) in field gs_vmds_extern-vendors-company_data-company-task
09-21-2015 4:28 PM
Must be, as I can see there is a COMPANY_DATA structure in IS_MASTER_DATA parameter
09-22-2015 7:35 AM
Yes you can read current company information with VMD_EI_API_EXTRACT=>GET_DATA
Then create new company record with VMD_EI_API=>MAINTAIN_BAPI.
You have to look at deep structure VMDS_EI_MAIN (IS_MASTER_DATA)
Regards,
Raymond
09-23-2015 9:37 AM
I was able to achieve my requirement. If the vendor allready exists just add all the information to structure gs_vmds_extern-vendors-company_data.
Put value 'M' (Create/Modify) in field gs_vmds_extern-vendors-header-object_task and value 'I' (Create) in field gs_vmds_extern-vendors-company_data-company-task
03-07-2016 1:59 PM