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

Table control on Tabbed selection-screen

Former Member
0 Likes
440

Hi All,

My Requirement is: I have a tabbed selection-screen with 3 tabs.

On one of the tabs I have to include a Table control.

Currently I'm displaying Table control as Pop-up . But I want that on the screen itself.

Please suggest me how to do this.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
355

Once i have done this. but only table control was there on the screen.

design a screen and place one table control.

y will declare one default subscreen in the selection screen tab declaration,

and

At selection-screen.

change the value of the deflaut screen to ur designed screen.

below is one example

controls: tab type tableview using screen 201.

SELECTION-SCREEN BEGIN OF TABBED BLOCK object FOR 50 LINES.

SELECTION-SCREEN TAB (60) tab_cls USER-COMMAND ut_cls

DEFAULT SCREEN 101.

SELECTION-SCREEN TAB (60) tab_rcp USER-COMMAND ut_rcp

DEFAULT SCREEN 200.

SELECTION-SCREEN END OF BLOCK object.

SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN NESTING LEVEL 2.

parameters: P_lifnr type lfa1-lifnr.

SELECTION-SCREEN END OF SCREEN 0101.

SELECTION-SCREEN BEGIN OF SCREEN 0200 AS SUBSCREEN NESTING LEVEL 2.

parameters: p_ebele type ekko-ebeln.

SELECTION-SCREEN END OF SCREEN 0200.

AT SELECTION-SCREEN.

CASE sy-dynnr.

WHEN 1000.

CASE sy-ucomm.

WHEN 'PUSH1'.

object-dynnr = 100.

WHEN 'UT_RCP'.

object-dynnr = 201.

WHEN OTHERS.

...

ENDCASE.

here the defualt screen is 200 but for table control purpose i changed it to 201 which has the table control in it.

1 REPLY 1
Read only

Former Member
0 Likes
356

Once i have done this. but only table control was there on the screen.

design a screen and place one table control.

y will declare one default subscreen in the selection screen tab declaration,

and

At selection-screen.

change the value of the deflaut screen to ur designed screen.

below is one example

controls: tab type tableview using screen 201.

SELECTION-SCREEN BEGIN OF TABBED BLOCK object FOR 50 LINES.

SELECTION-SCREEN TAB (60) tab_cls USER-COMMAND ut_cls

DEFAULT SCREEN 101.

SELECTION-SCREEN TAB (60) tab_rcp USER-COMMAND ut_rcp

DEFAULT SCREEN 200.

SELECTION-SCREEN END OF BLOCK object.

SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN NESTING LEVEL 2.

parameters: P_lifnr type lfa1-lifnr.

SELECTION-SCREEN END OF SCREEN 0101.

SELECTION-SCREEN BEGIN OF SCREEN 0200 AS SUBSCREEN NESTING LEVEL 2.

parameters: p_ebele type ekko-ebeln.

SELECTION-SCREEN END OF SCREEN 0200.

AT SELECTION-SCREEN.

CASE sy-dynnr.

WHEN 1000.

CASE sy-ucomm.

WHEN 'PUSH1'.

object-dynnr = 100.

WHEN 'UT_RCP'.

object-dynnr = 201.

WHEN OTHERS.

...

ENDCASE.

here the defualt screen is 200 but for table control purpose i changed it to 201 which has the table control in it.