Skip to Content
author's profile photo
Former Member

Can i use call transaction in BAPI

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Sep 30, 2005 at 08:01 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo
    Former Member
    Oct 01, 2005 at 04:59 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo
    Former Member
    Oct 01, 2005 at 10:42 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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