Application Development 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: 

Can i use call transaction in BAPI

Former Member
0 Kudos

Can I use call transaction in a BAPI and create master record.

7 REPLIES 7

Former Member
0 Kudos

Why not? BAPI_VENDOR_CREATE calls transaction XK01. I don't think it's the standard way of doing things though.

I don't think it buys you anything, so why not stick with BDC or call transaction?

Rob

Message was edited by: Rob Burbank

0 Kudos

There is no reason AS LONG AS this BAPI will not accessed from an external system. BAPIs are intended to accessed by external systems... otherwise, creating a Func Module is just fine.

I would be cautious with using BDCs. SAP continually changes screens with each upgrade. When you use BDCs, you are TOTALLY dependent on those screen fields. And when an upgrade changes a screen, you have extra work to do to fix your BDC in the new version.

By using a BAPI or a Func Mod, your impact from an upgrade is greatly reduced.

Remember to reward points accordingly.

Message was edited by: John Jakabcsin

Message was edited by: John Jakabcsin

Former Member
0 Kudos

Hello Lakshmi,

I dont see any reason behind using call transaction in a BAPI. Many be some cases uses both.

As in my case once, call transaction program developed by me was running for ever for sales order mass maintenance and I had to replace that with a BAPI.

As John said, there is a more risk in using call transaction compared to BAPI.

Regards,

Naren

0 Kudos

The three main ways of creating/changing SAP data are BAPI, call transaction and BDC. If there is no BAPI (which seems to be the case here) you are left with the other two.

Rob

Former Member
0 Kudos

Thanks for the replies but in my case i want to create a customer using BAPi which will be called remotely. I did not find any existing BAPI which suits my requirement. So, I am calling the transaction in my BAPI. If there r any other ways to do it pls. let me know.

Thanks.

0 Kudos

There's nothing wrong with doing a BDC in a custom BAPI or RFC enabled FM. If any changes happen to the transaction(Support Packs, upgrades), then you will just have to fix it.

What kind of master record are you trying to create?

Regards,

Rich Heilman

Message was edited by: Rich Heilman

0 Kudos

In my (limited) experience, remote enabled FMs are much easier to develop than BAPIs. That's the way I'd go.

Bear in mind that if, during a future upgrade, SAP makes the transaction unusable via BDC, you won't be able to change your BAPI or FM to use it; you'll have to use their BAPI.

I presume that neither BAPI_CUSTOMER_CREATEFROMDATA nor BAPI_CUSTOMER_CREATEFROMDATA1 suit your purpose.

Rob

Message was edited by: Rob Burbank