You are on page 1of 14

Now save after you add the method. Select & Double click on the API method.

Go to Tab: ABAP Check 'API Function'.

The above screen is displayed. Go to the ABAP tab as shown below.

Select the Radio button reading API Function as already said above.

click on the continue icon to proceed further.


Now select the Object ZBAPI_T001 as shown below.

Go to : EditChange Release StatusObject type To Modeled.

The above shown screen will be displayed. Click on yes.


The message shows, The object type status set to modeled. (or already modeled)
Go to : EditChange Release StatusObject type To Implemented.

You can see a message reading Object type status set to implemented
Now, go to: EditChange Release StatusObjectTo Released.

There would be two pop ups coming up. Click continue on the Pop Ups.
Keep the cursor on the 'Method'.
Go to: EditChange Release StatusObject type componentTO Modeled.

You can see the message reading status for method zbapifmt001 set to modeled.
Now, go to: EditChange Release StatusObject type component TO Implemented

You can see the message reading status for method zbapifmt001 set to implemented.
Now go to: EditChange Releasse Status Object type component To Released

You can see the message reading status for method zbapifmt001 set to Released.
Click on Generate Button. (the red ball kind of button is the Generate button)

After clicking on the generate button, you can see the message reading Object type 'ZBAPI_T001'
generated successfully.
Now go to BAPI Tcode (BOR) there we can find the BAPI (our BAPI)
The BAPI browser would look like the screen below.

You can click on the Alphabetical tab so that you can browse the BAPIs in an alphabetical order. Find
your BAPI as shown.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Now we are done with the creation of a BAPI.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Test Your BAPI.

Enter the name of your BAPI in the transaction SWO1 and click on Test.

The above screen is displayed. Click on the Execute icon against the BAPI as shown.

The above screen is displayed where you would require entering the data against the empty input fields.

We have entered some data in the Field.


After entering the data, click on the execute icon as shown below.

The following screen is displayed which has some values as is indicated by the ITEMTAB.

Click on the Edit table icon as shown below.

The results as per our input are as shown below.

By this, we would get it confirmed that our BAPI is working properly.


We can even check it by passing different values again. Come back to the input and execution screen.

After executing the BAPI based on the input provided, we get the following screen.

Hit on the execute icon.

In the above shown screen, hit on the edit table icon.

The above is the output we get from the input we provided.


We are now done with the creation and successful execution of a BAPI.

You might also like