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

Passing Table Control to a routine

Former Member
0 Kudos

Hi all

I am writing a routine common to many dynpros. In this routine I have to handle data about a table control, but I don't know how to pass it to a routine .. or better, I don't know how to declare the form:

FORM my_form table_control TYPE ????

If is impossible, it should be sufficient to have the COLS table of the table control, but also here cannot understand which type can be used for passing this table as arguments to a form.

does anyone faced this issue ?

thanks for help




Active Contributor
0 Kudos

If you actually need to pass the Table Control you can use CXTAB_CONTROL (Use type-pools: CXTAB) If you need to parse the actual data, you have to pass the corresponding internal table.

Active Contributor
0 Kudos

Though you have a table control, you will be looping at some itab for that table control. Why dont you pass that itab to the subroutine.

FORM test TABLES p_gt_test.


p_gt_test will become the structure that you are actually passing. Hope this helps.