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.
cancel
Showing results for 
Search instead for 
Did you mean: 

internal table in a form routine

Former Member
0 Kudos

Hi,

I have a problem when I try to use an internal table to pass it into a form/Perform subroutine.

Here is my code :

DATA: BEGIN OF i_table_exple OCCURS 0,

ncont TYPE char18,

cdmvt TYPE char1,

END OF i_table_exple.

perform test_form using i_table_exple.

form test_form using i_table like i_table_exple.

loop at i_table.

write : / i_table-ncont.

write : / i_table-cdmvt.

endloop.

endform.

when I try to activate it, I have an error : "i_table" is neither specified under "tables" nor is it defined as an internal table

I think the way I pass my table to the form is not correct, but I don't know how to deal with it.

5 REPLIES 5

kesavadas_thekkillath
Active Contributor
0 Kudos

Please check f1 help of perform.

Former Member
0 Kudos

Please try a little harder before posting here. In this case, you are passing and receiving the work area not the internal table.

Rob

Edited by: Rob Burbank on Jun 3, 2010 12:09 PM

Former Member
0 Kudos

Try the following code:

TYPES: BEGIN OF t_table_exple ,

ncont TYPE char18,

cdmvt TYPE char1,

END OF t_table_exple.

DATA : i_table_exple TYPE t_table_exple OCCURS 0 WITH HEADER LINE.

perform test_form tables i_table_exple.

form test_form table i_table like i_table_exple.

loop at i_table.

write : / i_table-ncont.

write : / i_table-cdmvt.

endloop.

endform.

Former Member

Former Member
0 Kudos

Enough.

Rob