Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

Create Variants

Former Member
0 Kudos


How to create variants while testing BAPI.

Pls help

Thankx in advance



Former Member
0 Kudos

While executing the BAPI you can save the test data by clicking on save button after entering the data in the parameters. The same can be retrieved by clicking on the TEST DATA DIRECTORY.



Note :Please mark the helpful answers

Active Contributor
0 Kudos


First have a Test Sequence, from menu Function Module ->Test->Test Sequence

Now one popup comes , here you can enter your BAP after that you enter BAPI_TRANSACTION_COMMIT .and then enter.

then input all BAPI prameters , then Press Save Button. then create it. this will create a variant. now you can use this variant for future also.



Former Member
0 Kudos


<b> 1 </b>. Execute the BAPI from se37.

<b> 2 </b>. Key values to be passed in the attributes.

<b> 3 </b>. Press SAVE

<b> 4 </b>. give any name.

<b> 5 </b>. Execute.

The next time you excute the BAPI, you can pick up the variant name and execute.



Pl close the thread if your problem is solved.

Former Member
0 Kudos

Hi ,

first you need to write a pgm using hat BAPI.

then you have to create a selection screen for all the input parameters of that BAPI.

then goto se38-> check variant-> change -> enter variant name -> create



Former Member
0 Kudos

1. Go to Tr cd 'SE37'.

2. Give the name of the FM

3. Press execute

4. Then choose 'Save data record' from main menu.

5. Fill data.

6. Then you will get this data from 'Test data directory' and you can use it as varient.



Former Member
0 Kudos

Hai Prabha

While Executing your BAPI press F8 Button

then give what are the Required Parameters for thet BAPI

Then Press on Save Button

it asks the comment Line to be filled

That is your Varient Name

Give some meaningful Name

and save it

again you want to run that BAPI

just press on F8 then click on 'Test Data Dictionary' Tab

That it.

Thanks & Regards

Sreenivasulu P