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

Curiosity: How to use a table for input when testing a functionmodule?

Former Member
0 Likes
764

actually I am sick of writing test programs for every function I want to test using ABAP.

So why it is (made) impossible to generate input data for a table as input parameter of a functionmodule?

Has really nobody ever tested this stuff when the test function was implemented in SE37 or was this bug implemented on purpose to generate work?

5 REPLIES 5
Read only

naimesh_patel
Active Contributor
0 Likes
739

Andreas,

You can input data into the internal table by:

Test FM

> Testing initial screen --- click on the table icon against your table parameter

> Input your input data in the fields

> to Input more lines in the table.. press Insert Line (icon with plus sign)

After this press back button.

Now, you will have your test data in the tables.

Regards,

Naimesh

Read only

0 Likes
739

No, the above solutions only work if the table is given within the tables construction.

A normal table as a input parameter can be clicked, but the system will refuse to create an input line.

reagards

Andreas Kaiser

Read only

0 Likes
739

hi Andreas,

if you create a parameter within IMPORT parameters, and you TYPE it to a transparent table, that will be a structure in the FM and not an internal table. This is why you cannot create more lines during FM testing

hope this helps

ec

Read only

0 Likes
739

No, when I say internal table that means internal table.

That logic inconsistancy that database tables are defined using structures is known to me.

Is there someone left here who did not yet surrender to the SAP habit to allow only flat data structures?

Read only

Former Member
0 Likes
739

Hey!

Don't loose heart.

You can enter Data.

When you double click on the table icon it show a complex long squeezed line .

So you can oversome thins by clickin a button tool bar which show tree Heirarchy.

Then you would be able to see field's and enter data in front of 'em

Cheers!

Nishant