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

How to add Test data for a function module

Former Member
0 Likes
2,653

Hi experts,

i want to add test data for a function module . i don't know how to proceed on it . please help me...

with regards,

James...

Valuable answers will be rewarded...

3 REPLIES 3
Read only

Former Member
0 Likes
1,218

Hi James

Are you testing your function module through SE37? If so, you can enter test data into the fields, and before you execute it, press the Save button and give the data a meaningful name. This can then be recalled by pressing the Test Data Directory button.

Cheers

Lyal

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,218

go to SE37 and press the "single test" icon

There you can fill data and structure (use Help/Application Help and search "Testing Function Modules" for a guidance)

Regards

Read only

Former Member
0 Likes
1,218

Hi,

- Go to SE37 and execute your FM

- Enter the data you want to pass to FM

- Hit 'Save' button. Enter the meaningful name for your test scenario and save. That's it you have saved the test data.

You can also enter some other test data and save that also. In short, you can save multiple test scenario. Also, you can give multiple test scenario a same name and they do not overwrite each other ( but normally you give different name to differentiate them)

Next time you come to execute the FM again, hit the "test data" button and it will show you all the test scenario you have stored before. Select the one you want to use and it will load the data in FM parameters.

Let me know if you need any other information.

Regards,

RS