2014 Jul 03 11:35 AM
Hi experts,
Tired of searching for BAPI for vendor creation. BAPI_VENDOR_CREATE is the right bapi, but it calls XK01 tcode nothing else. i need to create vendor from third party tool using JCo. Also tried with VENDOR_INSERT, it directly updates data to the table and not RFC, so its not advisable. Please let me know if there is any solution.
Thanks in Advance
Hi experts,
Tired of searching for BAPI for vendor creation. BAPI_VENDOR_CREATE is the right bapi, but it calls XK01 tcode nothing else. i need to create vendor from third party tool using JCo. Also tried with VENDOR_INSERT, it directly updates data to the table and not RFC, so its not advisable. Please let me know if there is any solution.
Thanks in Advance
2014 Jul 03 12:15 PM
HI Remya,
Use Idoc CREMAS05 for vendor creation. Populate the segments with required data and post the inbound idoc through middleware.
Regards,
Lokeswari
2014 Jul 03 2:07 PM
Hi,
You can use class VMD_EI_API. You can find many about it in SCN.
If You want call it from outer system You should create your own remote-enabled 'Z' function module which will fill parameters and execute this class methods..
Regards,
Jarek
2014 Jul 03 2:30 PM
Hi Remya,
create a Z RFC function module and call the function module VENDOR_INSERT inside that by passing the values.
2014 Jul 04 8:07 AM
Please check this http://scn.sap.com/thread/392066
It directly updates 3 tables. So its not advisable...
2014 Jul 04 8:36 AM
Hi,
As seen above, the best solution is to use class VMD_EI_API. check it in se24
I used it to create vendors and it works wonderfully.
This really acts like a BAPI.
If I remember well, you have to initialize the vendor with method INITIALIZE.
Fill your structure IS_MASTER_DATA, it contains every data you need to update.
HEADER Types VMDS_EI_HEADER
=> Contains the vendor number
CENTRAL_DATA Types VMDS_EI_CENTRAL_DATA
=> Contains most of the vendor data (LFA1)
COMPANY_DATA Types VMDS_EI_VMD_COMPANY
= > Contains most of the company data (LFB1)
PURCHASING_DATA Types VMDS_EI_VMD_PURCHASING
=> Contains most of the purchasing organization data (LFM1)
If you use specific fields, you simply need to had it to the includes.
Then call method MAINTAIN_BAPI with them.
Please check this question as answered if you think it is, else I would answer to your questions.
When I tried to find something on this subject I couldn't find anything usefull except this class name in the middle of nowhere, so I hope my search would help someone
2014 Jul 04 10:19 AM
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |