Thursday, January 15, 2015

ABAP Tip-Function module Test Data



Chapter 001
ABAP Tip-Function module Test Data
Source : http://abapjoy.blogspot.com

It is very trivial to input the test data whenever you test function module.
As you already know, we can save the test data in function module by clicking the save button  and reuse the test data.

When calling function module from ABAP program, there is another way to save the test data.
Lets make a simple example, its to save the data into test data of function module which is to get the last data of the month.

First, you need to set the break point at the line calling the function module.

When the debugger is activated at the break point, go to next step by pressing next icon  to move to function module source.

If you reach to function module, click the  icon like upper screen.
There will be popup screen which allows you to save the data into function module test data.


Click the Save Parameters as Test Data(SE37) and input title.



Now, you can see the test data saved in T-CODE:SE37. We can get to call this test data anytime.



No comments:

Post a Comment