Application Development and Automation 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: 
Read only

bapi

Former Member
0 Likes
337

Hi All,

Pls can you help me,

In business object bulider :SW01 T-CODE

We should Generate the BAPI by clicking symbol 'ball'.

It should be done before Release the BAPI or after Releasing the BAPI.

Thanks

mars

2 REPLIES 2
Read only

Former Member
0 Likes
297

hi,

Testing the BAPI

Purpose

After you have implemented the function module your BAPI is based on and you have defined the BAPI as an SAP Business Object method in the Business Object Repository (BOR) you should check that the BAPI functions properly.

Prerequisites

Carry out the test together with persons responsible for quality control in your development group.

Before you start testing make sure that the underlying function module has been completely implemented and that the BAPI has been correctly defined in the BOR as a Business Object method.

Process Flow

You can test the BAPI in the following ways:

• By calling the underlying function module

You can individually test the function module in the Function Builder. You can enter the appropriate test values in the parameters of your function module and by running the test you can verify that the source code in the function module is processed without errors.

• Testing the BAPI in the BOR

You can test the BAPI by testing the individual method of the Business Object in the Business Object Builder. You need to know the technical name of the Business Object (object type) that you have already specified in Defining a BAPI and Its Interface.

Call the Business Object Builder by selecting Tools  Business Framework  BAPI Development  Business Object Builder. Specify the appropriate object type and then start running the test by selecting Test. To test the BAPI implementation, you need to specify appropriate test values in the parameters of the BAPI.

Note that for an instance-dependent BAPI you have to first specify an instance before you can run the BAPI test. Select Create instance and specify the required instance.

• By calling the BAPI in a Visual Basic program

If possible write a program in Visual Basic to call the BAPI.

- Check that the BAPI can be called by BAPI ActiveX Control.

- Check that the BAPI can be called by making RFC calls to the underlying function module.

• Check the availability of documentation in the different logon languages.

Result

If you find any errors in the BAPI implementation, correct them and repeat the tests until you and the quality control team in your group are fully satisfied with the BAPI implementation.

Releasing and Freezing the BAPI

After you have completed the function module and BAPI tests and you are satisfied that they function properly, the implementation is complete.

You can now release the function module the BAPI is based on and the method in the Business Object Repository (BOR), and freeze the BAPI as a method in the BOR.

Once the BAPI has been released and frozen, it becomes available as a fully implemented Business Object method.

Releasing and freezing also prevents anyone making incompatible changes to the BAPI, because all changes made to a released and frozen BAPI are automatically checked for compatibility in the BOR and the ABAP Dictionary, and incompatible changes are rejected.

Reward if this helpful for you.

Regards,

Siva

Read only

Former Member
0 Likes
297

Its not necessary to release the bapi before generating,if bapi is released no changes can be done.

cheers,

Srini.