‎2009 May 01 12:42 PM
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.
‎2009 May 01 1:40 PM
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.
‎2009 May 01 1:40 PM
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.