2015 Jul 22 12:58 PM
Dear Experts,
I have read so many threads about Vendor master BAPI.Please refer to the link which was posted by me.. . Is it possibile to create custom BAPI for vendor master using direct 'insert' statement? Anybody has done this before? What SAP suggests about custom BAPI? Please guide me and share if you have any sample.
Thanks in advance
2015 Jul 22 2:10 PM
Remya,
From reading your previous thread, I would not call your approach as creating a custom BAPI nor would I suggest going for insert statements. There is a reason why people do not use inserts directly into the table. This is because we do not know all the dependencies that needs to be executed.
Instead if the class you had mentioned VMD_EI_API has all the methods to create a vendor, then just create a simple RFC thru which you get the required details from the external system and then use the methods of this class to create your vendor.
V.
2015 Jul 22 8:39 PM
I'm confused - what is wrong with using BAPI_VENDOR_CREATE? It does seem a bit silly that it just calls the transaction, but still - it's remote-enabled, so what's the problem?
2015 Jul 22 8:57 PM
Jelena,
Even though its remote enabled, how do we pass the data to the transaction?
V.
2015 Jul 22 9:43 PM
Oh, I see what you mean now. OMG, this is beyond ridiculous! Run Simple my back, jeez...
There are many posts on this on SCN, but no solution other than BDC, some shady functions or LSMW.
In any case I agree that updating tables directly seems like a very bad idea. It looks like there is IDoc available (CREMAS...), maybe that would be an option?
2015 Jul 22 9:52 PM
Jelena Perfiljeva wrote:
OMG, this is beyond ridiculous! Run Simple my back, jeez...
I am still breaking my head to understand what is the purpose of this BAPI.
V.
2015 Jul 22 10:08 PM
2015 Jul 22 11:32 PM
I'm by no means recommending this solution and know very little about it, but in ERP/ECC there is also something called Customer Vendor Integration (CVI), whereby the SAP Business Partner data gets mapped to/synchonized into Customers/Vendors (and vice versa) residing in the same system and client. The so called SAP Central Business Partner has BAPIs and at least the IS-x modules using BP normally have their own BAPIs to handle their (extended) BP.
There is nothing "simple" about it, it's lots of redundant data, and it's a "monstrosity" IMO, which I suspect is responsible for slowing down mass changes to Business Partners in our system to a crawl...
CVI also has a public Package Interface (FM CVI_EA_INBOUND_MAIN for example), but I have not come across documentation describing how to program to it...
cheers
Jānis
2015 Jul 23 3:43 AM
Stephen, thanks for chiming in. Ah, the good old "there won't be new BAPIs because it's all ES now". Oh, Enterprise Services, where art thou? "I had such *** hopes for us". Since there is no BDC in S/4HANA anymore (from what I've heard) I guess around 2025 SAP will finally develop a straight-forward API for this. Or maybe their competitors will...
2015 Jul 23 2:45 PM