Selection-Screen TABS

Hi All ,
I have created one selection screen with TABS.
But, I want to give the names for that TABS.
My code is :
SELECTION-SCREEN BEGIN OF TABBED BLOCK TABB1 FOR 20 LINES.
SELECTION-SCREEN tab (40) tab1 USER-COMMAND tab1
DEFAULT SCREEN 1010  .
SELECTION-SCREEN TAB (20) TAB2 USER-COMMAND TAB2
DEFAULT SCREEN 1020.
SELECTION-SCREEN END OF BLOCK TABB1.
*I have a radiobutton group in each of my tabs in the selection screen.
SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN  .
SELECTION-SCREEN BEGIN OF BLOCK GUI WITH FRAME TITLE TEXT-001.
PARAMETERS: P_GUI1 RADIOBUTTON GROUP GUI,
P_GUI2 RADIOBUTTON GROUP GUI,
P_GUI3 RADIOBUTTON GROUP GUI,
P_GUI4 RADIOBUTTON GROUP GUI,
P_GUI5 RADIOBUTTON GROUP GUI.
SELECTION-SCREEN END OF BLOCK GUI.
SELECTION-SCREEN END OF SCREEN 1010.
SELECTION-SCREEN BEGIN OF SCREEN 1020 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK REP WITH FRAME." TITLE TEXT-REP.
PARAMETERS: P_REP1 RADIOBUTTON GROUP REP,
P_REP2 RADIOBUTTON GROUP REP,
P_REP3 RADIOBUTTON GROUP REP.
SELECTION-SCREEN END OF BLOCK REP.
SELECTION-SCREEN END OF SCREEN 1020.
Please any one help me how to solve this problem.
Regards,
Vandu.

Pl. see this sample code.
REPORT zravie_tabs_in_sel_screen .
*Creating tabs in selection screen
TABLES : zemp3,zdept,sscrfields.
DATA : gt_itab LIKE zemp3 OCCURS 0 WITH HEADER LINE.
*Subscreen 1
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN ULINE.
SELECT-OPTIONS : so_dno FOR zdept-deptno.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN END OF SCREEN 100.
*Subscreen 2
SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN ULINE.
SELECT-OPTIONS : so_eno FOR zemp3-empno.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN END OF SCREEN 200.
SELECTION-SCREEN : FUNCTION KEY 1,
                   FUNCTION KEY 2.
SELECTION-SCREEN : BEGIN OF TABBED BLOCK sub FOR 20 LINES,
                   END OF BLOCK sub.
INITIALIZATION .
  sscrfields-functxt_01 = 'Department information'.
  sscrfields-functxt_02 = 'Employee information'.
  sub-prog = sy-repid.
  sub-dynnr = 100.
AT SELECTION-SCREEN.
  CASE sy-dynnr.
    WHEN '0100'.
      IF sscrfields-ucomm = 'FC02'.
        sub-dynnr = 200.
      ELSE.
        sub-dynnr = 100.
      ENDIF.
    WHEN '0200'.
      IF sscrfields-ucomm = 'FC01'.
        sub-dynnr = 100.
      ELSE.
        sub-dynnr = 200.
      ENDIF.
  ENDCASE.
TOP-OF-PAGE.
  PERFORM header_display.
START-OF-SELECTION.
  CASE sub-dynnr.
    WHEN '100'.
     SELECT empno ename job salary FROM zemp3 INTO CORRESPONDING FIELDS
      OF TABLE gt_itab WHERE deptno IN so_dno.
      PERFORM records_display TABLES gt_itab.
    WHEN '200'.
     SELECT empno ename job salary FROM zemp3 INTO CORRESPONDING FIELDS
       OF TABLE gt_itab WHERE empno IN so_eno.
      PERFORM records_display TABLES gt_itab.
  ENDCASE.
*&      Form  records_display
      text
     -->P_GT_ITAB  text
FORM records_display TABLES   l_gt_itab STRUCTURE gt_itab.
  LOOP AT l_gt_itab.
    WRITE : / l_gt_itab-empno  UNDER text-003,
              l_gt_itab-ename  UNDER text-004,
              l_gt_itab-job    UNDER text-005,
              l_gt_itab-salary UNDER text-006.
  ENDLOOP.
ENDFORM.                    " records_display
*&      Form  header_display
      text
-->  p1        text
<--  p2        text
FORM header_display.
  FORMAT COLOR COL_HEADING INVERSE ON INTENSIFIED ON.
  WRITE AT 5  text-003.
  WRITE AT 20 text-004.
  WRITE AT 40 text-005.
  WRITE AT 70 text-006.
  SKIP 1.
  FORMAT COLOR OFF INVERSE OFF INTENSIFIED OFF.
ENDFORM.                    " header_display
Also check these standard demo programs
DEMO_SEL_SCREEN_WITH_TABSTRIP
DEMO_SEL_SCREEN_IN_TABSTRIP
Regards,
Joy.
Edited by: Joyjit Ghosh on Jun 30, 2008 4:58 PM

Similar Messages

  • Selection screen tab

    Hi,
    I have tabbed selection screen. When am in second tab if error occurs then first tab becomes as active tab, i want second as the active tab. Please advise on this.
    Regards,
    srikanth

    hi,
        kindly check this code.....
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tbl FOR 15 LINES.
    SELECTION-SCREEN TAB (15) tbl_tab1 USER-COMMAND tab1 DEFAULT SCREEN 9001.
    SELECTION-SCREEN TAB (15) tbl_tab2 USER-COMMAND tab2 DEFAULT SCREEN 9002.
    SELECTION-SCREEN END OF BLOCK tbl.
    SELECTION-SCREEN BEGIN OF SCREEN 9001 AS SUBSCREEN.
    PARAMETERS: pa_test.
    SELECTION-SCREEN END OF SCREEN 9001.
    SELECTION-SCREEN BEGIN OF SCREEN 9002 AS SUBSCREEN.
    SELECTION-SCREEN END OF SCREEN 9002.
    PARAMETERS:
    Hidden parameters to store the last selected tab strip
      pa_dynnr LIKE tbl-dynnr NO-DISPLAY,
      pa_acttb LIKE tbl-activetab NO-DISPLAY.
    INITIALIZATION.
    Descriptions of the tab strips
      tbl_tab1 = 'First tab'.
      tbl_tab2 = 'Second tab'.
    AT SELECTION-SCREEN OUTPUT. " PBO
    if the last choice is saved
      IF NOT pa_dynnr IS INITIAL.
      activate the last choice
        tbl-dynnr     = pa_dynnr.
        tbl-activetab = pa_acttb.
      clear the saved choice to make it only once
        pa_dynnr = ''.
        pa_acttb = ''.
      ENDIF.
    AT SELECTION-SCREEN. " PAI
    if the list is started (F8)
      IF sy-ucomm = 'ONLI'.
      save the last choice
        pa_dynnr = tbl-dynnr.
        pa_acttb = tbl-activetab.
      ENDIF.
    START-OF-SELECTION.
      WRITE: / tabstrip_tbl-activetab. " show which tabstrip is active

  • Retaining the selected tab in a tabbed block of selection screen

    Hi,
    My report has a selection screen with a tabbed block displaying 3 tabs. I want to retain the tab that was selected before executing the report and display that tab as the activetab when the user back navigates from the output list of the report to the selection screen.
    I tried to store the value of 'activetab' component of the tabbed block in a global variable and assigned the global variable to the 'activetab' component. But it is not working.
    Is there any other way by which we can do this?
    Thanks and Regards,
    Tongston

    I had a similar problem some time ago. One clarification first, global variables will not work because when you come back from report output, all the global/local variables are initialized that is when you come back to selection screen from report output, it is like a new instance of report.
    To resolve this you can use Export to memory ID / Import from memory ID statements, as these will retain the data across report instances.
    Now the following code is doing exactly what you wanted. You should copy/ paste it in an abap program and run it to see for yourself how I retained active tab.  Hope this will help you.
    REPORT  yy_test002.
    TABLES: bkpf, bseg, glt0, fdes, lfa1.
    DATA: g_acttab(132) TYPE c.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
    PARAMETERS: p_bukrs LIKE bkpf-bukrs,  "obligatory,
                p_upto LIKE bkpf-budat.
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.
    SELECT-OPTIONS: s_hkon1 FOR bseg-hkont NO-EXTENSION,
                    s_lifn1 FOR bseg-lifnr.
    SELECTION-SCREEN END OF SCREEN 101.
    SELECTION-SCREEN BEGIN OF SCREEN 102 AS SUBSCREEN.
    SELECT-OPTIONS: s_hkon2 FOR bseg-hkont NO-EXTENSION,
                    s_lifn2 FOR bseg-lifnr.
    SELECTION-SCREEN END OF SCREEN 102.
    SELECTION-SCREEN BEGIN OF SCREEN 103 AS SUBSCREEN.
    SELECT-OPTIONS: s_hkon3 FOR bseg-hkont NO-EXTENSION,
                    s_lifn3 FOR bseg-lifnr.
    SELECTION-SCREEN END OF SCREEN 103.
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME.
    PARAMETERS: p_dued LIKE bseg-fdtag.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tbblk FOR 8 LINES.
    SELECTION-SCREEN TAB (18) tabname1
    USER-COMMAND 'UTB1' DEFAULT SCREEN 101.
    SELECTION-SCREEN TAB (18) tabname2
    USER-COMMAND 'UTB2' DEFAULT SCREEN 102.
    SELECTION-SCREEN TAB (18) tabname3
    USER-COMMAND 'UTB3' DEFAULT SCREEN 103.
    SELECTION-SCREEN END OF BLOCK tbblk.
    SELECTION-SCREEN END OF BLOCK blk2.
    INITIALIZATION.
      tabname1 = 'GL Accounts set 1'.
      tabname2 = 'GL Accounts set 2'.
      tabname3 = 'GL Accounts set 3'.
      IMPORT g_acttab FROM MEMORY ID 'zssfsdfr3'.
      IF sy-subrc = 0.
        tbblk-prog = sy-repid.
        tbblk-activetab = g_acttab.
        CASE g_acttab.
          WHEN 'UTB1'.
            tbblk-dynnr = 101.
          WHEN 'UTB2'.
            tbblk-dynnr = 102.
          WHEN 'UTB3'.
            tbblk-dynnr = 103.
          WHEN OTHERS.
        ENDCASE.
      ENDIF.
    START-OF-SELECTION.
      g_acttab = tbblk-activetab.
      EXPORT g_acttab TO MEMORY ID 'zssfsdfr3'.
      WRITE:/ 'current active tab:', g_acttab.
      WRITE:/ 'bye'.

  • Table control on Tabbed selection-screen

    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.

    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.

  • Hide Tab in Selection Screen After Pressing Button

    Hiii All..
    My requirement is I have to disable the tab in the selection screen when the user presses the button 'Disable Tabstrip' which is present in Application toolbar..
    And it should come back if the user presses another button 'Enable Tabstrip' and that time the above screen should hide.
    I am showing u the screen..
    Link : [https://www.filesanywhere.com/FS/M.aspx?v=8972698c58616eb771af]
    If anyone knows then please help.
    Regards,
    Jhings.

    Thanks For the reply Anju...
    But the problem is.. this selection screen is not the default screen.. this is user defined screen.. and SY-UCOMM is not giving any value on the "AT SELECTION SCREEN OUTPUT" Event..
    I am giving u the code.. How I defined this..
    * This is screen where we are inclucing tab screen
    SELECTION-SCREEN : BEGIN OF SCREEN 100.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-005.
    SELECTION-SCREEN : BEGIN OF LINE.
    SELECTION-SCREEN : COMMENT 1(15) CUS_TXT.
    SELECT-OPTIONS : CUST_ID FOR VBAK-KUNNR.
    SELECTION-SCREEN : PUSHBUTTON 79(20) BUT1 USER-COMMAND CLICK1 VISIBLE LENGTH 20.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE.
    SELECTION-SCREEN : COMMENT 1(15) MAT_TXT.
    SELECT-OPTIONS :  MATNR FOR VBAP-MATNR.
    SELECTION-SCREEN : PUSHBUTTON 79(20) BUT2 USER-COMMAND CLICK2 VISIBLE LENGTH 20.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE.
    SELECTION-SCREEN : COMMENT 1(15) CRE_TXT.
    SELECT-OPTIONS : CRE_BY FOR VBAK-ERNAM.
    SELECTION-SCREEN : PUSHBUTTON 79(20) BUT3 USER-COMMAND CLICK3 VISIBLE LENGTH 20.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE.
    PARAMETERS : A AS CHECKBOX USER-COMMAND UC.
    SELECTION-SCREEN : COMMENT 5(33) CHK_TXT.
    PARAMETERS:        NUM TYPE I MODIF ID M1.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN: END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK T1 FOR 20 LINES.
    SELECTION-SCREEN TAB (10) NAME1 USER-COMMAND UCOMM1 DEFAULT SCREEN 101.
    SELECTION-SCREEN TAB (20) NAME2 USER-COMMAND UCOMM2 DEFAULT SCREEN 102.
    SELECTION-SCREEN TAB (30) NAME3 USER-COMMAND UCOMM3 DEFAULT SCREEN 103.
    SELECTION-SCREEN END OF BLOCK T1.
    SELECTION-SCREEN: FUNCTION KEY 1,
                      FUNCTION KEY 2.
    SELECTION-SCREEN : END OF SCREEN 100.
    * These are subscreens
    SELECTION-SCREEN : BEGIN OF SCREEN 101 AS SUBSCREEN.
    SELECTION-SCREEN : BEGIN OF BLOCK B6 WITH FRAME TITLE TEXT-006.
    PARAMETERS : CUS_NAM1(30) TYPE C,
                 CONTACT1(12) TYPE C,
                 CITY1(30) TYPE C.
    SELECTION-SCREEN : SKIP.
    SELECTION-SCREEN : PUSHBUTTON 1(20) BUT11 USER-COMMAND CLICK11 VISIBLE LENGTH 10.
    SELECTION-SCREEN : PUSHBUTTON 25(20) BUT12 USER-COMMAND CLICK12 VISIBLE LENGTH 10.
    SELECTION-SCREEN: END OF BLOCK B6.
    SELECTION-SCREEN : END OF SCREEN 101.
    SELECTION-SCREEN : BEGIN OF SCREEN 102 AS SUBSCREEN.
    SELECTION-SCREEN : BEGIN OF BLOCK B7 WITH FRAME TITLE TEXT-007.
    PARAMETERS : MAT_DES1(30) TYPE C MODIF ID M1,
                 UNT1(12) TYPE C MODIF ID M1,
                 MAT_TYP1(30) TYPE C MODIF ID M1.
    SELECTION-SCREEN : SKIP.
    SELECTION-SCREEN : PUSHBUTTON 1(20) BUT13 USER-COMMAND CLICK13 VISIBLE LENGTH 10.
    SELECTION-SCREEN : PUSHBUTTON 25(20) BUT14 USER-COMMAND CLICK14 VISIBLE LENGTH 10.
    SELECTION-SCREEN: END OF BLOCK B7.
    SELECTION-SCREEN : END OF SCREEN 102.
    SELECTION-SCREEN : BEGIN OF SCREEN 103 AS SUBSCREEN.
    SELECTION-SCREEN : BEGIN OF BLOCK B8 WITH FRAME TITLE TEXT-008.
    PARAMETERS : F_NAM1(30) TYPE C MODIF ID M1,
                 L_NAM1(12) TYPE C MODIF ID M1,
                 C_NO1(30) TYPE C MODIF ID M1.
    SELECTION-SCREEN : SKIP.
    SELECTION-SCREEN : PUSHBUTTON 1(20) BUT15 USER-COMMAND CLICK15 VISIBLE LENGTH 10.
    SELECTION-SCREEN : PUSHBUTTON 25(20) BUT16 USER-COMMAND CLICK16 VISIBLE LENGTH 10.
    SELECTION-SCREEN: END OF BLOCK B8.
    SELECTION-SCREEN : END OF SCREEN 103.
    Hope This could help u..
    Regards,
    Jhings

  • Tab Initialization on selection screen.

    Hi,
    i have one selection screen with tabbular format and i want to make restriction for users like if they have passed data on first tab then they can not use second tab or vice-versa. can we do this in tabbular format and how to put check on that please provide sample code if you have.
    Thanks,

    Hi,
    Check this example..
    TABLES: sscrfields.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 14 LINES.
    SELECTION-SCREEN TAB (15) tabs1 USER-COMMAND ucomm1
                         DEFAULT SCREEN 12.
    SELECTION-SCREEN TAB (15) tabs2 USER-COMMAND ucomm2
                         DEFAULT SCREEN 2000.
    SELECTION-SCREEN END OF BLOCK tabb1.
    INITIALIZATION.
      tabs1 = 'Tab1'.
      tabs2 = 'Tab2'.
      SELECTION-SCREEN BEGIN OF SCREEN 12 AS SUBSCREEN.
      PARAMETERS     par1 LIKE spfli-carrid.
      SELECTION-SCREEN END OF SCREEN 12.
      SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.
      SELECT-OPTIONS sel1 FOR sy-subrc.
      SELECTION-SCREEN END OF SCREEN 2000.
    AT SELECTION-SCREEN .
      CASE sscrfields-ucomm.
        WHEN 'UCOMM1'.
    Check if there is anything given on that screen.
          IF NOT sel1[] IS INITIAL.
            MESSAGE e208(00) WITH 'you cannot go to other tab'.
          ENDIF.
        WHEN 'UCOMM2'.
    Check if there is anything given on that screen.
          IF NOT par1 IS INITIAL.
            MESSAGE e208(00) WITH 'you cannot go to other tab'.
          ENDIF.
      ENDCASE.
    START-OF-SELECTION.
      WRITE: / 'Sucessful'.
    Thanks,
    Naren

  • How to handle multiple radiobutton groups in a selection screen?

    Hi All,
    I have tabbed selection screen.
    * SELECTION SCREEN                                    *
    SELECTION-SCREEN BEGIN OF TABBED BLOCK TABB1 FOR 20 LINES.
    SELECTION-SCREEN TAB (20) TAB1 USER-COMMAND TAB1
                         DEFAULT SCREEN 1010.
    SELECTION-SCREEN TAB (20) TAB2 USER-COMMAND TAB2
                         DEFAULT SCREEN 1020.
    SELECTION-SCREEN END OF BLOCK TABB1.
    I have a radiobutton group in each of my tabs in the selection screen.
    SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK GUI WITH FRAME." TITLE TEXT-GUI.
    PARAMETERS: P_GUI1 RADIOBUTTON GROUP GUI,
                P_GUI2 RADIOBUTTON GROUP GUI,
                P_GUI3 RADIOBUTTON GROUP GUI,
                P_GUI4 RADIOBUTTON GROUP GUI,
                P_GUI5 RADIOBUTTON GROUP GUI,
    SELECTION-SCREEN END OF BLOCK GUI.
    SELECTION-SCREEN END OF SCREEN 1010.
    SELECTION-SCREEN BEGIN OF SCREEN 1020 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK REP WITH FRAME." TITLE TEXT-REP.
    PARAMETERS: P_REP1 RADIOBUTTON GROUP REP,
                P_REP2 RADIOBUTTON GROUP REP,
                P_REP3 RADIOBUTTON GROUP REP.
    SELECTION-SCREEN END OF BLOCK REP.
    SELECTION-SCREEN END OF SCREEN 1020.
    The issue is I want to be able to process only one of the tabs based on the checked radiobutton, but by default both the groups will have one of the radiobuttons checked. My piece of code is something like this.
    data : c_selected(1) value 'X'.
    case c_selected.
    when P_GUI1.
    * Process GUI 1
    when P_GUI2.
    * Process GUI 2
    when P_GUI3.
    * Process GUI 3
    when P_GUI4.
    * Process GUI 4
    when P_GUI5.
    * Process GUI 5
    when P_REP1.
    * Process Report 1
    when P_REP2.
    * Process Report 2
    when P_REP3.
    * Process Report 3
    endcase.
    How do I acheive this?
    Karthik
    Edited by: Karthik Boyapalli on Jun 16, 2008 9:10 PM

    The issue is I want to be able to process only one of the tabs based on the checked radiobutton, but by default both the groups will have one of the radiobuttons checked. My piece of code is something like this.
    You will be able to process the Radiobutton based on the tab. Use the sy-ucomm to determine the TAB that is selected on the selection screen. Then you can do further processing based on the radio button selected.
    Only one TAB will be available for User Interaction so there will be no issue with processing based on the radio button

  • Table control in report selection screen

    I have a selection screen with some fields. Now, below these fields, I need a table control in which i will have input parameters with 3 fields so that i can enter data in combinations and use the same while executing the report like an internal table.
    1. I should be able to save it as a Variants.
    2. I should be able to schedule a background job.
    I found similar notes but they dont help me save variants and with job schedules.
    Request your help in this regard.
    Regards
    Kasi

    Hi
    In the selection-screen u can generated a tabstrip:
    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.
    So the system'll generate a tabstrip in the selection-screen, here it'll load only the screen 100.
    By screen painter u have to create a subscreen 100 where u insert your table control.
    Max

  • Tabstrip on selection screen

    Hi All,
    I have created selection screen with 3 tab strips.
    i have 2 radios button in each tab strip. My problem is, when i have selected first radio button from 2nd tab strip and execute, then it is executing first tab strip radio button first and when i click on back button then my second tab strip radio button getting executed.
    So could you please do let me know, how to execute directly 2nd tab strip radio button directly wiht out executing first tab strip.
    Regards,
    Jo

    Hello,
    Assign a user command to each tab strip as follows.
    SELECTION-SCREEN BEGIN OF BLOCK sel .
    SELECTION-SCREEN SKIP.
    *---------------------------* TABSTRIP *-------------------------------*
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 15 LINES.
    SELECTION-SCREEN TAB (40) title1 USER-COMMAND ucomm1 DEFAULT SCREEN 1001.
    SELECTION-SCREEN TAB (40) title2 USER-COMMAND ucomm2 DEFAULT SCREEN 1002.
    SELECTION-SCREEN TAB (40) title3 USER-COMMAND ucomm3 DEFAULT SCREEN 1003.
    SELECTION-SCREEN END OF BLOCK tabb1.
    SELECTION-SCREEN END OF BLOCK sel.
    *-------------------------* SCREEN 1001 *------------------------------*
    SELECTION-SCREEN: BEGIN OF SCREEN 1001 AS SUBSCREEN          .
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE title.
    PARAMETERS: radio_button1  RADIOBUTTON GROUP rad DEFAULT 'X'.
    "Insert all your other radio button in the first tabstrip here
    SELECTION-SCREEN: END OF BLOCK b1                            .
    SELECTION-SCREEN: END OF SCREEN 1001                         .
    *-------------------------* SCREEN 1002 *------------------------------*
    SELECTION-SCREEN: BEGIN OF SCREEN 1002 AS SUBSCREEN          .
    SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE titlex.
    PARAMETERS: radio_button2 RADIOBUTTON GROUP rad1.
    "Insert all your other radio button in the second tabstrip here
    SELECTION-SCREEN: END OF BLOCK b2                            .
    SELECTION-SCREEN: END OF SCREEN 1002                         .
    *-------------------------* SCREEN 1003 *------------------------------*
    SELECTION-SCREEN: BEGIN OF SCREEN 1003 AS SUBSCREEN          .
    SELECTION-SCREEN: BEGIN OF BLOCK b3 WITH FRAME TITLE titlexx.
    PARAMETERS: radio_button3 RADIOBUTTON GROUP rad2.
    "Insert all your other radio button in the third tabstrip here
    SELECTION-SCREEN: END OF BLOCK b3                            .
    SELECTION-SCREEN: END OF SCREEN 1003                         .
    In this case the first tabstrip has the user command UCOMM1, the second tabstrip has the user command UCOMM2 and likewise for the third and last tabstrip.
    Now in the START-OF-SELECTION event.
    Start by doing a case for active tabs before doing a check which radio button is selected as follows.
    CASE tabb1-activetab.
         WHEN 'UCOMM1'.  "First tabstrip
              CASE 'X'. "To check which radio button is checked
               "Here you do the processing upon the radio button selected.
              WHEN radio_button1. 
                   CALL TRANSACTION 'SE38'.
              ENDCASE.
         WHEN 'UCOMM2'.  "Second tabstrip
              CASE 'X'. "To check which radio button is checked
              "Here you do the processing upon the radio button selected.
              WHEN radio_button2. 
                   CALL TRANSACTION 'SE11'.
              ENDCASE.
         WHEN 'UCOMM3'.  "Third tabstrip
              CASE 'X'. "To check which radio button is checked
              "Here you do the processing upon the radio button selected.
              WHEN radio_button3.
                   CALL TRANSACTION 'SE09'.
              ENDCASE.
    ENDCASE.
    Hope it helps.
    Thanks and Kind Regards,
    Yovish.
    Message was edited by: Yovish Bissessur

  • Layout Option on Selection Screen For Zreport

    Hi All,
           Plz explain how to do coding for using Layout option  on selection screen of
    report. Also i should be able to save and create new layout on selection screen.
           Thnaks in advance.
    Aniket Dayama

    hi,
    creation of sub-screens.
    selection-screen begin of tabbed block <name of the tab> for < height of the tab in no's> lines.
    eg;
    selection-screen tab(20) l1 <data element> user-comand <name of the funcion code>
    selection-screen end of block <name of the tab strip>.
    eg;
    selection-screen begin of tabbed block mytab for 10 lines.
    selection-screen tab(20) l1 user-command tab1.
    selection-screen tab (20) l2 user-command tab2..
    selection-screen end of block mytab.
    Under initialization.
    data element = text-01.
    data element = text=02.
    How to initialize the tab with default screen.
    <name of the tab> - prog = sy-repid.
    <name of the tab>- dynnr = '<subscreen no>'.
    <nane of the tab>-activetab = '<user-command for the strip>
    if this has solved ur problem then dont forget to reward with points.
    with regards,
    madhuri.

  • Table control and a selection screen

    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.

    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

  • Different Report Output based on different tabstrips on selection screen

    Hi all,
    I have a selection screen which has 3 tabstrips.
    The screen nos are 101,102  and 103.
    Now in each tab there are different input parameters and based on each tab there will be 3 different outputs.
    i.e when I click on tab1 and give the required inputs i will get 1 report output.
    similarly I will get different ouput in the other 2 tabs.
    Can any one suggest some solution how to achieve this.
    Thanks and Regards
    Nazmul Azad

    Look for documentation at [SELECTION-SCREEN - TABBED BLOCK |http://help.sap.com/abapdocu/en/ABAPSELECTION-SCREEN_TABBED.htm]
    Adapgt the sample provided, and in the START-OF-SELECTON event add a CASE/WHEN to execute whichever report you want based on mytab-dynnr value.
    Regards,
    Raymond

  • How to add user defined functions in Menu bar of a Selection Screen?

    Hi,
    Can anybody please suggest me that how can I add user defined functions in the menu bar of a Selection Screen?
    Regards
    s@k

    Dear Amit,
    I am referring to the standard SAP program: RIEQUI20.
    On the initial screen, there are 3 tabs.
    Code:
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tab FOR 25 LINES.
    SELECTION-SCREEN TAB (20) tab1 USER-COMMAND ucomm1
                         DEFAULT SCREEN 001.
    SELECTION-SCREEN TAB (20) tab2 USER-COMMAND ucomm2
                         DEFAULT SCREEN 002.
    SELECTION-SCREEN TAB (20) tab3 USER-COMMAND ucomm2
                         DEFAULT SCREEN 003.
    SELECTION-SCREEN END OF BLOCK tab.
    AT SELECTION-SCREEN.
      CLEAR gv_okcode.
      gv_okcode = sy-ucomm.
      CLEAR sy-ucomm.
      CASE gv_okcode.
        WHEN 'IH08'.
          CALL TRANSACTION 'IH08'. "Equipment Selection
        WHEN 'IW29'.
          CALL TRANSACTION 'IW29'. "Notification Selection
        WHEN 'IW39'.
          CALL TRANSACTION 'IW39'. "Order List Selection
        WHEN OTHERS.
      ENDCASE.
    *   Check date:                                         
      IF NOT datuv IS INITIAL                            
      AND NOT datub IS INITIAL.                         
        IF datub >= datuv.                              
        ELSE.                                           
          MESSAGE e884(ih) WITH datuv datub.            
        ENDIF.                                           
      ENDIF.                                             
      IF variant IS INITIAL AND
         dy_vari IS INITIAL.
        PERFORM get_default_variant_f14 USING variant.
      ENDIF.
      PERFORM variant_existence_f14 USING variant.
      IF datuv IS INITIAL.
        datuv = sy-datum.
      ENDIF.
      IF datub IS INITIAL.
        datub = sy-datum.
      ENDIF.
      IF sy-ucomm = 'ADDR'.
        PERFORM adress_sel_f01 USING 'EQUIR'.
      ENDIF.
      PERFORM check_parnr_f76.
    *  AT SELECTION SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      STATICS: l_slset TYPE sy-slset.
    *--- Set initial variant
      PERFORM variant_init_f14 USING 'INST' 'INST' 'INST' 'RIEQUI20'.
      IF variant IS INITIAL AND
         dy_vari IS INITIAL AND
        gv_variant_flag IS INITIAL.
        PERFORM get_default_variant_f14 USING variant.
        gv_variant_flag = 'X'.
      ENDIF.
    *--- Set Icon for adress-button
      PERFORM set_icon_f01 USING dy_adrfl ad_icon text-ad0 text-ad1.
    *--- get classification data from select option
    *--- (if new variant or if called via submit or F3)
      IF ( l_slset NE sy-slset ) OR
         ( s_comw[] IS NOT INITIAL AND gt_clsd_comw[] IS INITIAL ).
        l_slset = sy-slset.
        gv_class_old = dy_class.
        gv_klart_old = dy_klart.
        PERFORM copy_selopt_comw_f79 TABLES gt_clsd_comw s_comw.
        PERFORM class_search_init_f77 USING 'EQUI'.
      ENDIF.
    *--- set Icon for classification
      LOOP AT gt_clsd_comw TRANSPORTING NO FIELDS          
                          WHERE atcod > '0'.               
        EXIT.                                              
      ENDLOOP.                                             
      IF sy-subrc IS INITIAL.
        gv_comw_flag = 'X'.
      ELSE.
        CLEAR gv_comw_flag.
      ENDIF.
      PERFORM set_icon_f01 USING gv_comw_flag cl_icon text-cl0 text-cl1.
      CALL METHOD cl_uid_cust=>selection_screen_output.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR variant.
      PERFORM variant_inputhelp_f14 USING variant 'RIEQUI20'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR dy_parnr.
      PERFORM f4_for_parnr_f76.
    AT SELECTION-SCREEN ON BLOCK clse.
      IF dy_class NE gv_class_old
        OR dy_klart NE gv_klart_old.
        gv_class_old = dy_class.
        gv_klart_old = dy_klart.
        CLEAR gv_comw_flag.
        REFRESH gt_clsd_comw.
        REFRESH s_comw.
      ENDIF.
      PERFORM class_exist_f77 USING dy_klart dy_class 'DY_CLASS'.
      IF sy-ucomm = 'COMW'.
        CALL FUNCTION 'IHCLSD_VALUATION_POPUP'
          EXPORTING
            i_klart               = dy_klart
            i_class               = dy_class
            i_language            = sy-langu
            i_key_date            = sy-datum
            i_also_subclasses     = dy_subcl
          TABLES
            ct_comw               = gt_clsd_comw
          EXCEPTIONS
            exc_no_class          = 1
            exc_klart_not_allowed = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *--- fill classification data in select option
        PERFORM copy_comw_selopt_f79 TABLES gt_clsd_comw s_comw.
      ENDIF.
      IF sy-ucomm = 'ONLI'.
        sscrfields-ucomm = sy-ucomm.
      ENDIF.
    Regards
    s@k
    Edited by: siemens.a.k on Jan 15, 2010 10:10 AM

  • Urgent : selection screen

    Hi Experts ,
       i am passing sub screens dynamically into the selection screen . IN output i am getting vertical scroll bar in subscreen. my requirement is to avoid scroll bar to that perticular subscreen.
    pls send the code how to avoid that scroll bar , here i am sending the coed below ( for 1300 sub screen i am getting scroll bar)
    pls do needfull .
    Thanks,
    Nagendra.
    tables
    TABLES:
      sscrfields,
      draw,          "Document Info Records
      drat,          "Texts for Document Info Records
      cabn,          "Characteristic
      cawn,          "characteristic values
      cawnt,         "characteristic value text
      ausp,          "Characteristic values
      tdwa,          "Document Types
      lfa1,          "Vendors
      ekko,          "Purchasing Documents Header
      ekpo,          "Purchasing Document items
      t023t,         "Material Group Descriptions
      klah,          "Classes
      cabnt,         "Characteristic descriptions
      lfb1,          "Vendor master (company Code)
      t059t,         "texts for minority indicators
      tdws,          "Document status
      tdwst,         "Document Status Text
      sos04,         "SAPoffice: screen fields for function group SO04
      t006,          "Units of Measurement
      tcurx,         "Decimal Places in Currencies
    *+MD1K960995
      ekbe.
    Parameters
    Program Parameters
    SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK buyingguide
                              WITH FRAME TITLE text-104.
      Company Code
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-300  FOR FIELD s_bukrs.
    SELECT-OPTIONS: s_bukrs FOR ekko-bukrs MEMORY ID buk.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document Category
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-301  FOR FIELD s_bstyp.
    SELECT-OPTIONS: s_bstyp FOR ekko-bstyp DEFAULT 'K'.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-302  FOR FIELD s_bsart.
    SELECT-OPTIONS: s_bsart FOR ekko-bsart MEMORY ID bsa.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document Creation Date
    SELECTION-SCREEN BEGIN OF LINE.  "MD1K964692
    SELECTION-SCREEN COMMENT 1(28) text-303  FOR FIELD s_aedat. "MD1K964692
    SELECT-OPTIONS: s_aedat FOR ekko-aedat.   "MD1K964692
    SELECTION-SCREEN END   OF LINE.           "MD1K964692
      Purchasing Document Creator
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-304  FOR FIELD s_ernam.
    SELECT-OPTIONS: s_ernam FOR ekko-ernam.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document Vendor Account Number
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-305  FOR FIELD s_lifnr.
    SELECT-OPTIONS: s_lifnr FOR ekko-lifnr MEMORY ID lif.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Organization
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-306  FOR FIELD s_ekorg.
    SELECT-OPTIONS: s_ekorg FOR ekko-ekorg MEMORY ID eko.
    SELECTION-SCREEN END   OF LINE.
    *+G1
      Purchasing Group
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-340  FOR FIELD s_ekorg.
    SELECT-OPTIONS: s_ekgrp FOR ekko-ekgrp MEMORY ID ekg.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document date
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-341  FOR FIELD s_ekorg.
    SELECT-OPTIONS: s_bedat FOR ekko-bedat MEMORY ID bed.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item plant
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-307  FOR FIELD s_werks.
    SELECT-OPTIONS: s_werks FOR ekpo-werks MEMORY ID wrk.
    SELECTION-SCREEN END   OF LINE.
    *+MD1K971124
    *+MD1K971479
    Number of Purchasing Info Record
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-342  FOR FIELD s_infnr.
    SELECT-OPTIONS: s_infnr FOR ekpo-infnr MEMORY ID inf.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item  material group
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-308  FOR FIELD s_matkl.
    SELECT-OPTIONS: s_matkl FOR ekpo-matkl MEMORY ID mkl.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item category
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-309  FOR FIELD s_pstyp.
    SELECT-OPTIONS: s_pstyp FOR ekpo-pstyp DEFAULT 8 TO 9.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item material number
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-310  FOR FIELD s_matnr.
    SELECT-OPTIONS: s_matnr FOR ekpo-matnr MEMORY ID mat.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item deletion indicator
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-311  FOR FIELD s_loekz.
    SELECT-OPTIONS: s_loekz FOR ekpo-loekz DEFAULT space.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-317 FOR FIELD s_ebeln.
    SELECT-OPTIONS: s_ebeln FOR ekko-ebeln MEMORY ID vrt.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-312  FOR FIELD s_ebelp.
    SELECT-OPTIONS: s_ebelp FOR ekpo-ebelp MEMORY ID bsp.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item purchase req number
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-313  FOR FIELD s_banfn.
    SELECT-OPTIONS: s_banfn FOR ekpo-banfn MEMORY ID ban.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item reference purchase document
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-318  FOR FIELD s_konnr.
    SELECT-OPTIONS: s_konnr FOR ekpo-konnr.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item reference purchase document item
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-319  FOR FIELD s_ktpnr.
    SELECT-OPTIONS: s_ktpnr FOR ekpo-ktpnr.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document validity from date
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-314  FOR FIELD s_kdatb.
    SELECT-OPTIONS: s_kdatb FOR ekko-kdatb.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document validity to date
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-315  FOR FIELD s_kdate.
    SELECT-OPTIONS: s_kdate FOR ekko-kdate DEFAULT sy-datum
                                                TO '99991231'.
    SELECTION-SCREEN END   OF LINE.
      Vendor Rating
    SELECTION-SCREEN BEGIN OF LINE.
    *SELECTION-SCREEN COMMENT 1(28) text-316  FOR FIELD s_zmrate.
    *SELECT-OPTIONS: s_zmrate FOR ekko-zz_moc_rating.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN END OF BLOCK buyingguide.
    SELECTION-SCREEN END OF SCREEN 1100.
    SELECTION-SCREEN BEGIN OF SCREEN 1200 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK document
                              WITH FRAME TITLE text-024.
      Document number
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_dokar  FOR FIELD s_dokar.
    SELECT-OPTIONS: s_dokar FOR draw-dokar DEFAULT 'CN1'.
    SELECTION-SCREEN END   OF LINE.
      Document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_doknr  FOR FIELD s_doknr.
    SELECT-OPTIONS: s_doknr FOR draw-doknr.
    SELECTION-SCREEN END   OF LINE.
      Document part
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_doktl  FOR FIELD s_doktl.
    SELECT-OPTIONS: s_doktl FOR draw-doktl.
    SELECTION-SCREEN END   OF LINE.
      Document version
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_dokvr  FOR FIELD s_dokvr.
    SELECT-OPTIONS: s_dokvr FOR draw-dokvr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN SKIP 1.
      Document Status
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_dokst  FOR FIELD s_dokst.
    SELECT-OPTIONS: s_dokst FOR draw-dokst." DEFAULT 'AC'.
    SELECTION-SCREEN END   OF LINE.
      Document Creation Date
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_adat   FOR FIELD s_adat.
    SELECT-OPTIONS: s_adat  FOR draw-adatum.
    SELECTION-SCREEN END   OF LINE.
      Document Creator
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_dwnam  FOR FIELD s_dwnam.
    SELECT-OPTIONS: s_dwnam  FOR draw-dwnam.
    SELECTION-SCREEN END   OF LINE.
      Document text
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_dktxt  FOR FIELD s_dktxt.
    SELECT-OPTIONS: s_dktxt  FOR drat-dktxt.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN SKIP 1.
      Parent Document number
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_prear  FOR FIELD s_prear.
    SELECT-OPTIONS: s_prear FOR draw-prear.
    SELECTION-SCREEN END   OF LINE.
      Parent Document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_prenr  FOR FIELD s_prenr.
    SELECT-OPTIONS: s_prenr FOR draw-prenr.
    SELECTION-SCREEN END   OF LINE.
      Parent Document part
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_pretl  FOR FIELD s_pretl.
    SELECT-OPTIONS: s_pretl FOR draw-pretl.
    SELECTION-SCREEN END   OF LINE.
      Parent Document version
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_prevr  FOR FIELD s_prevr.
    SELECT-OPTIONS: s_prevr FOR draw-prevr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN END OF BLOCK document.
    SELECTION-SCREEN END OF SCREEN 1200.
    SELECTION-SCREEN BEGIN OF SCREEN 1300 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK charact
                              WITH FRAME TITLE text-025.
      Class
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) c_class  FOR FIELD p_class.
    PARAMETERS: p_class LIKE klah-class OBLIGATORY
                                        MATCHCODE OBJECT clas
                                        DEFAULT 'CONTRACTS'.
    SELECTION-SCREEN END   OF LINE.
      Class Type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) c_klart  FOR FIELD p_klart.
    PARAMETERS: p_klart LIKE klah-klart OBLIGATORY DEFAULT '017'.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN COMMENT /1(67) text-203.
    SELECTION-SCREEN COMMENT /5(16) text-204.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_01atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_01atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_01atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_02atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_02atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_02atm  FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_03atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_03atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_03atm  FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_05atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_05atm LIKE cabn-atnam OBLIGATORY
                                   VISIBLE LENGTH 26
                                   MODIF ID chr.
    SELECT-OPTIONS: s_05atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_04atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_04atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_04atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_06atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_06atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_06atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_07atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_07atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_07atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_08atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_08atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_08atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_09atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_09atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_09atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_10atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_10atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_10atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_11atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_11atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_11atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_12atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_12atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_12atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_13atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_13atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_13atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_14atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_14atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_14atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_15atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_15atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_15atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_16atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_16atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_16atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_17atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_17atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_17atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_18atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_18atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_18atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_19atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_19atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_19atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_20atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_20atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_20atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_21atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_21atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_21atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_22atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_22atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_22atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_23atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_23atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_23atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_24atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_24atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_24atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_25atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_25atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_25atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN END OF BLOCK charact.
    SELECTION-SCREEN END OF SCREEN 1300.
      Main Selection screen that will incorporate the subscreens
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabs FOR 24 LINES.
    SELECTION-SCREEN TAB (20) text-103 USER-COMMAND ucomm1
                                       DEFAULT SCREEN 1100.
    SELECTION-SCREEN TAB (20) text-100 USER-COMMAND ucomm2
                                       DEFAULT SCREEN 1200.
    SELECTION-SCREEN TAB (30) text-101 USER-COMMAND ucomm3
                                       DEFAULT SCREEN 1300.
    SELECTION-SCREEN END OF BLOCK tabs.
    SELECTION-SCREEN BEGIN OF BLOCK misc WITH FRAME TITLE text-061.
        ALV Variant
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-066 FOR FIELD p_alvvar.
    PARAMETERS: p_alvvar LIKE disvariant-variant.  "alv variant
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN END   OF BLOCK misc.

    hi nagendra,
    i got ur problem. i put the subscreen in ur main screen.
    i was gone through from ur program. there is number of parameters and select-option. and ur subscreen size is small according to your taken fields.
    there is two option
    1 ) . make your subscreen size full in main screen .
    2) . Or you can put all fields in main screen . it does not matter for codding.
    rewards if helpfull.

  • Issue In Providing 255 Charcters From The Selection Screen Select-Option

    Dear Guru,
    I am searching for table field with having length = 255 character.
    which i want to use in select-option for proving data from the selection screen.
    I have found the table myhlp and it associated field allvals which is having length = 255.
    I am using it as below in my selection screen for the value to be provided 255 character long.
    SELECTION-SCREEN : BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECT-OPTIONS   : s_mlbody FOR myhlp-allvals  NO INTERVALS.
    SELECTION-SCREEN : END OF BLOCK b3.
    Now when i am going for the multiple selection option --> It is providing me the Multiple selection popup and giving me the provision of provide multiple line .
    But the issue is that --> For a particular single value line in the popup i am able to enter only 45 charcters not 255 character.
    But i need to put 255 charcter for particular line in a single value..
    Please give me some guideline how resolve this or any other alternative way of reading the 255 charcter from the selection screen
    Thanks & regards
    Saifur Rahaman

    Hi,
         As said by A@s selction screen with table control will be a good option.
    design a custom screen with SUBSCREEN as screeen attribute using tcode se51.
    For table control sample - go through Tcode ABAPDOCU - abap user dialogs-screens-complex screen- table control
    Try Following,
    REPORT Zsample .
    controls: tc type tableview using screen 200.
    parameters: p_user type myhlp-username.
    data: begin of itab occurs 50,
          field1(255) type c,
          end of itab.
    data: i_out type standard table of myhlp.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK MAX FOR 22 LINES.
    SELECTION-SCREEN TAB (25) TABS1 USER-COMMAND UCOMM1
             DEFAULT SCREEN 200.
    SELECTION-SCREEN END OF BLOCK MAX.
    start-of-selection.
    select * from myhlp into table i_out for all entries in itab
              where username eq p_user
                    and allvals = itab-field1.
    MODULE READ_ITAB INPUT.
    insert itab index tc-current_line.
    ENDMODULE.                 " READ_ITAB  INPUT

Maybe you are looking for

  • Node not visible in the JTreeTable

    Hi i am using the example provided at www.java.sun.com for TreeTable. I have a tree table and when i add new nodes the data is visible in the table but the nodes are not visible. I don't know how to resolve this problem. Below is my code where i'm ad

  • PI Monitor Message: "Hitherto shalt thou come, but no further". No lie   :)

    In attempting to troubleshoot a recent issue I attempted to use the PI Message Display Tool. This is using URL: http://<myserver>:<myport>/MessagingSystem/monitor/monitor.jsp The initial page displays fine. I can select 'Audit Log' for a message with

  • My FCP 4.5 quit when I want to export in MPEG 2, help me please

    I finished to buy the system the 10,4 and Toast Titanium 7. In the FCP 4.5 I make to export in the QuickTime conversion I choose the MPEG-2 and the FCP is unexpectedly quit. Some thing must be in conflict, but I do not know what. I already order Univ

  • Get the web name using web id in sharepoint

    Hi, I have a web id.I want to get the web name. can someone provide the code for it?

  • Grid Control 11g R1 installation error OUI-10133

    Hello All, I'm installing Oracle Enterprise Manager 11g Release 1 on SUSE Linux 10 x86_64. Here I'm facing an error *"OUI-10133:Invalid staging area. There are no top level components for Linux available for Installation in this staging area."*. Inst