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: 

Table control and a selection screen

Former Member
0 Kudos

Hi,

I have a requirement where I am supposed to be designing a screen that has a table control with fields

w/selection column label 1(non-editable) i/o field(from) i/o field(to)

w/selection column label 2(non-editable) i/o field(from) i/o field(to)

-


-


On searching the forum threads, I found related threads as to how to implement a selection screen (as the I/O fields are similar to select-options) in module pool programming. But mine requires the use of table control and a kind of selection screen embedded into it. Please guide me through this requirement.

1 REPLY 1

Former Member
0 Kudos

Hi

If you need to implement a table control on selection screen u need to use a tabstrip as graphic element supports the table control.

So

1 - Step: define a tabstrip with 1 tab only:

SELECTION-SCREEN BEGIN OF BLOCK 3.
SELECTION-SCREEN BEGIN OF TABBED BLOCK MAX FOR 22 LINES.
SELECTION-SCREEN TAB (25) TABS1 USER-COMMAND UCOMM1
         DEFAULT SCREEN 100.
SELECTION-SCREEN END OF BLOCK MAX.
SELECTION-SCREEN END OF BLOCK 3.

2 - Step design the subscreen (in my sample the dynrpo 100) and insert the table control there:

PROCESS BEFORE OUTPUT.

  MODULE INIT_CTRL.

  LOOP WITH CONTROL T_CTRL.

    MODULE DISPLAY_DATA.
  ENDLOOP.

PROCESS AFTER INPUT.
  LOOP WITH CONTROL T_CTRL.

      MODULE UPDATE_DATA.

  ENDLOOP.

In the module DISPLAY_DATA and UPDATE_DATA u need to implement the code to transfer the data from internal table to table control and from table control to internal table, in order to display and update the data.

Max