Friday, 4 October 2013

How to Create Variant to BAPI or FM while Debugging

Requirement:Create a Variant to BAPI/FM while Debugging a Report

Procedure:
First of all open a report and set break point to BAPI or function module to which you want to create variant.
Then execute the report by providing required input fields and data.
Step 1: Set a break point to the FM/BAPI.
Step 2: You must go into the code for FM (click F5 at FM/BAPI)
Step 3: Then in the side tool bar you will have an option

 


Following screen will be displayed.

 


Select ‘Save parameter as Test data’ option.


 

Following screen will be displayed.

 

Provide text in the field (which is variant name).


 

After saving following message will be displayed.

 


Go to se37 transaction and open the BAPI/FM for which we created variant.

 

Execute the BAPI/FM

 

Click on Test data dictionary

 


We will find the variant we created.


Done! :)




 




No comments:

Post a Comment