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: 

about table control in the selection screen

Former Member
0 Kudos

i want to create a table control in the selection screen of my report.i can create the table control using SE51.but how to program with the table control in the report.for example i should fetch the data for the personnel nos entered in the table control of the selection screen.how to do this.can any of u provide sample code for this.

thanks.

3 REPLIES 3

Former Member
0 Kudos

Hi vadivel,

Create internal table and create table control using same internal table

e.g.

data : begin of it,

end of it.

start-of-selection.

call screen 100.

If you create table control using wizard then code automatically come here.

Now, Put one push button in same screen where table control is available. let's say push button Display report.

Now, use export <IT> to memory id <ID> and submit report <report name> and return. now, define same internal table in this submitted report and use import <IT> from memory id <ID>. Now, table control data is available in internal table, use that data and make code as per your requirement. If you dont want to use push button then use menu bar and at user-command event.

Hope this help

Regards,

Parag

0 Kudos

please can u give me some detailed code on that.

thanks.

0 Kudos

Hello Murthy,

It is difficult to provide the entire code from scratch. I shall try to give you an outline and you build up from there. If you get any doubts, then just get back with the details.

1. Refer to the program DEMO_DYNPRO_TABLE_CONTROL_2. It is a short one and should be easy to understand.

2. Are you very particular about using a selection-screen ? You can use a normal screen as well (as in the above example program). You need to go for a Selection Screen only if you have a select-options on your screen besides the tables control.

Regards,

Anand Mandalika.