Skip to Content
author's profile photo Former Member
Former Member

BAPI

Hello everyone,

can anyone give me the complete steps for creating the BAPI fm..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Posted on Oct 18, 2006 at 10:06 AM

    hi,

    BAPIFM STEPS.

    1.CREATE BAPI structures to be used in FM .

    go to se11 .

    select datatype.

    provide ZBAPI.... st name .

    give the fields and activate it.

    like this we need to create the stru required within bapi FM.

    2.go to se37.

    provide ZBAPI<fm name> .

    SELECT REMOTELY ENABLED FM.

    3. ALL PARAMETERS MUST BE PASSED BY CALL BY ALUE METHOD.

    ACTIVETE AND RELAESE THE FM.

    REGARDS,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 10:10 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2006 at 10:11 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2006 at 10:14 AM

    http://www.erpgenie.com/sap/abap/bapi/index.htm

    see this link, its useful

    Regards

    - Gopi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 10:14 AM

    Programming a BAPI consists of some tasks like:

    • Defining BAPI Data structures ( using SE11 )

    • Creating BAPI Function Modules (For each method)

    • Defining BAPI Methods in the BOR

    • Generate and release

    1. Defining BAPI Data structures: This is the basic step followed while creating BAPIs. All the relevant structures that are required for BAPI have to be created using T-Code SE11. The structures can be created for Import/Tables parameters.

    2. Creating BAPI Function Modules: We must create new function group for each BAPI. If the BAPIs are related then the same can be grouped under the same FUNCTION GROUP to enable the sharing of global data amongst the related BAPIs.

    3. Defining BAPI Methods in the BOR: When creating a new object type in BOR (Business Object Repository), there can be two possibilities. Either it is created as a subtype of an existing business object or it is created as a new business object from scratch. Create a business object using the T-Code SWO1. The business object gets created with the standard interface that contains an Interface IFSAP, an Attribute ObjectType, and two methods namely ExistenceCheck and Display. All these cannot be changed. You can add a method to the business object. For this, we will choose from the menu path, Utillities -> API methods -> Add method. To use the business object Object type status has to be set to Implemented.

    4. Generate and Release: Go to SE37 and release the API enabled Function module. In the Object created in the BOR, set the status of Object Type Component to Released.

    You can then display the BAPI in the BAPI Explorer. Invoke the same using the T-code BAPI.

    I hope it helps.

    Best Regards,

    Vibha

    *Please mark all the helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 10:40 AM

    U need to reward points to all the helpful answers...

    Best Regards,

    Vibha

    *Please mark all the helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.