Calling a BAPI method at run-time

Calling a BAPI method at run-time

I have to import and export data from SAP dynamically at run-time. I have tried to call BAPIs at run time but was stuck with a problem. The problem is that when I call a BAPI giving its name at run-time it sometimes gets called and sometimes I have to give its description name to call it. I have checked the BOR in which the name and description fields corresponding to a BAPI method are both the same and are set as description. Please help me diagnose the problem and also provide me with some tips to call a BAPI method at run-time.

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

A BAPI should always be called by invoking the RFC-enabled Function Module (RFM) that implements it. You can look up this name in SAPGUI transaction 'BAPI'. For instance, the name of the RFM for BAPI CompanyCode.GetList is BAPI_COMPANYCODE_GETLIST.

This was first published in December 2003