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

Custom BAPI creation

Former Member
0 Likes
1,333

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 

9 REPLIES 9
Read only

Former Member
0 Likes
1,290

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.

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,290

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?

Read only

0 Likes
1,290

Jelena,

Even though its remote enabled, how do we pass the data to the transaction?

V.

Read only

0 Likes
1,290

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?

Read only

0 Likes
1,290

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.

Read only

0 Likes
1,290

Jelena,

This is a way old issue

However I did find something back in 2012 that might have solved this issue(see the end of the thread).

Take care,

Stephen

Read only

0 Likes
1,290

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

Read only

0 Likes
1,290

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...

Read only

0 Likes
1,290

My understanding from the S/4 HANA Deep Dive is that SAP will have a public API for the solution(at least it was stated in the course).  I would consider it a major win for everyone if SAP does complete a full public API for S/4 HANA that covers all delivered business processes.

Take care,

Stephen