Calling selection screen depends on radio buttion selection

I need to call two selection screens (not radio buttons selection screens) depends on radio buttion selection
Eg :
   R1-radio button
  R2- radio button
if we select R1- we should get selection screen to enter input values like parameters, select options
   PARAMETERS:     p_abc TYPE    MARA-matnr OBLIGATORY
  SELECT-OPTIONS: s_mno  FOR   MARC- chngr OBLIGATORY.
  PARAMETERS:     p_xyz TYPE     MARA - amktxOBLIGATORY.  (just example)
If we select R2, we should get selection screen to enter input values like parameters, select options
PARAMETERS:         p_abcd TYPE    KNA1-matnr OBLIGATORY
  SELECT-OPTIONS:  s_mnop  FOR   VBAK- chngr OBLIGATORY.
  PARAMETERS:        p_xyza TYPE     VBAP - amktxOBLIGATORY  (just example)
if we select 1 , other should be hide
Madhu

Hi,
this is an example:
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
PARAMETER R1 RADIOBUTTON GROUP G1 DEFAULT 'X' USER-COMMAND SET1.
PARAMETER R2 RADIOBUTTON GROUP G1 .
SELECTION-SCREEN BEGIN OF BLOCK B21 WITH FRAME TITLE TEXT-004.
PARAMETER: P1 LIKE IBIPPARMS-PATH MODIF ID FPA.
SELECTION-SCREEN END OF BLOCK B21.
SELECTION-SCREEN BEGIN OF BLOCK B22 WITH FRAME TITLE TEXT-004.
PARAMETER: P2 LIKE IBIPPARMS-PATH MODIF ID FPB.
SELECTION-SCREEN END OF BLOCK B22.
SELECTION-SCREEN END OF BLOCK B2.
DATA: P_CHECK.
AT SELECTION-SCREEN OUTPUT.
  IF P_CHECK <> 'X'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'FPA' OR
         SCREEN-GROUP1 = 'FPB'.
        SCREEN-INPUT = '0'.
        SCREEN-INVISIBLE = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    P_CHECK = 'X'.
  ENDIF.
  IF R1 = 'X'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'FPA'.
        SCREEN-INVISIBLE = '0'.
        SCREEN-INPUT = '1'.
        MODIFY SCREEN.
      ENDIF.
      IF SCREEN-GROUP1 = 'FPB'.
        SCREEN-INVISIBLE = '1'.
        SCREEN-INPUT = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
  IF R2 = 'X'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'FPB'.
        SCREEN-INVISIBLE = '0'.
        SCREEN-INPUT = '1'.
        MODIFY SCREEN.
      ENDIF.
      IF SCREEN-GROUP1 = 'FPA'.
        SCREEN-INVISIBLE = '1'.
        SCREEN-INPUT = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
Angelo.

Similar Messages

  • Defining Selection-Screen Depending on Client

    Good Morning,
    I need to hide one parameter from my selection-screen depending on sy-mandt.
    Is it possible? If yes, can anyone show an example?
    Regards,
    Pedro Gaspar

    hi
    u can put ur fields in a block sepicific for a particular client.
    u check the mandt and display the corresponding block while hiding the others.
    check this sample code:
    TABLES: eban,
            SSCRFIELDS.
    SELECTION-SCREEN BEGIN OF SCREEN 100 TITLE title.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETER:rad1 RADIOBUTTON GROUP rad USER-COMMAND frad1 DEFAULT 'X',
              rad2 RADIOBUTTON GROUP rad .
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.
    PARAMETER: mtr AS CHECKBOX MODIF ID g3 USER-COMMAND chk1,
               p_matnr TYPE eban-matnr MODIF ID g1,
               sloc AS CHECKBOX MODIF ID g3 USER-COMMAND chk2,
               str_loc TYPE eban-lgort MODIF ID g4.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.
    SELECT-OPTIONS: matnr1 FOR eban-matnr MODIF ID g2.
    SELECTION-SCREEN END OF BLOCK b3.
    SELECTION-SCREEN PUSHBUTTON /20(10) name USER-COMMAND UCOM.
    SELECTION-SCREEN END OF SCREEN 100.
    name = 'FETCH'.
    title = 'Test Report'.
    CALL SELECTION-SCREEN '100'.
    TYPE-POOLS slis.
    declaration of internal tables and work areas to be used
    DATA: BEGIN OF it_pr OCCURS 0,
          banfn TYPE eban-banfn,
          bnfpo TYPE eban-bnfpo,
          loekz TYPE eban-loekz,
          statu TYPE eban-statu,
          ekgrp TYPE eban-ekgrp,
          matnr TYPE eban-matnr,
          werks TYPE eban-werks,
          lgort TYPE eban-lgort,
          preis TYPE eban-preis,
          peinh TYPE eban-peinh,
          END OF it_pr.
    DATA: BEGIN OF it_mat OCCURS 0,
          matnr TYPE eban-matnr,
          END OF it_mat.
    *DATA:BEGIN OF ITAB1 OCCURS 0,
      DATA: l_answer.
    DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
          wa_fieldcat LIKE LINE OF it_fieldcat,
          it_event TYPE slis_t_event,
          wa_event TYPE slis_alv_event.
    declaration of variables to be used
    DATA: r_ucomm TYPE sy-ucomm,
          mat_no TYPE eban-matnr,
          len TYPE i VALUE 1,
          count TYPE i VALUE IS INITIAL,
          iflag TYPE i VALUE IS INITIAL,
          iflag1 TYPE i VALUE 0.
    DATA :pr_id TYPE sy-repid,
    rt_extab TYPE slis_t_extab.
    INITIALIZATION.
      pr_id = sy-repid.
    AT SELECTION-SCREEN OUTPUT.
    <b>  IF rad1 = 'X' AND SY-MANDT = <client 1></b>
        LOOP AT SCREEN.
          IF screen-group1 = 'G1' OR screen-group1 = 'G4'.
            screen-active = '1'.
            screen-input = 0.
          ELSEIF screen-group1 = 'G2'.
            screen-active = '0'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      <b>ELSEIF rad2 = 'X'  and sy-mandt = <client 1></b>
        LOOP AT SCREEN.
          IF screen-group1 = 'G1'  OR screen-group1 = 'G4' OR screen-group1 = 'G3' OR screen-group1 = 'G5'.
            screen-active = '0'.
          ELSEIF screen-group1 = 'G2'.
            screen-active = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
      IF mtr = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'G1'.
            screen-input = 1 .
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
      IF sloc = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'G4'.
            screen-input = 1 .
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    clear sy-ucomm.
    iflag = 1.
    endif.
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • Selection Screen Depeon Upon Radio Button

    How to display Selection Screen depend upon the Radiobutton Flag.
    SELECTION-SCREEN BEGIN OF BLOCK OPTION WITH FRAME TITLE TEXT-T01.
    PARAMETERS: <b>CUSTOMER</b> LIKE KNA1-LOEVM DEFAULT 'X'
                                     RADIOBUTTON GROUP HIT.
    PARAMETERS: <b>VENDOR</b>   LIKE LFA1-LOEVM  RADIOBUTTON GROUP HIT.
    SELECTION-SCREEN END OF BLOCK OPTION.
    SELECTION-SCREEN SKIP 0.
    SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-T02 .
    PARAMETERS    : P_BUKRS TYPE T001-BUKRS DEFAULT 'EIS' OBLIGATORY.
                                          "Company Code
    SELECT-OPTIONS:
                    S_LAND1 FOR T005-LAND1 DEFAULT 'IT' OBLIGATORY,
                                          "Country
                    S_SPMON FOR S031-SPMON,         "Period
              <b>      S_KUNNR FOR KNA1-KUNNR,         "Customer
                    S_LIFNR FOR LFA1-LIFNR,         "Vendor</b>                S_STCEG FOR KNA1-STCEG,         "VAT Registration Number
                    S_STCD1 FOR KNA1-STCD1,                     "TAX Code1
                    S_STCD2 FOR KNA1-STCD2.                     "TAX Code2
    SELECTION-SCREEN END OF BLOCK 1.
    I want to diaplay <b>S_KUNNR</b> or <b>S_LIFNR</b> depend upon Radiobutton Flag.
    Could any body help me.
    Thanx in Advance.<b></b><b></b>

    You can try this.
    report zrich_0001.
    tables: t005, s031, kna1, lfa1.
    selection-screen begin of block option with frame title text-t01.
    parameters: customer like kna1-loevm default 'X'
                     radiobutton group hit  user-command chk.   "<- ADD THIS
    parameters: vendor like lfa1-loevm radiobutton group hit.
    selection-screen end of block option.
    selection-screen skip 0.
    selection-screen begin of block 1 with frame title text-t02 .
    parameters : p_bukrs type t001-bukrs default 'EIS' obligatory.
    * "Company Code
    select-options:
    s_land1 for t005-land1 default 'IT' obligatory,
    * "Country
    s_spmon for s031-spmon,
    s_kunnr for kna1-kunnr modif id kun, "<- ADD THIS
    s_lifnr for lfa1-lifnr modif id lif, "<- ADD THIS
    s_stcd1 for kna1-stcd1,                                     "TAX Code1
    s_stcd2 for kna1-stcd2.                                     "TAX Code2
    selection-screen end of block 1.
    *  ADD ALL THIS
    at selection-screen output.
      loop at screen.
        if customer = 'X'
            and screen-group1 = 'LIF'.
          screen-active = '0'.
          modify screen.
        endif.
        if vendor = 'X'
            and screen-group1 = 'KUN'.
          screen-active = '0'.
          modify screen.
        endif.
      endloop.
    REgards,
    Rich Heilman

  • Creation of selection screen with 2 radio button groups

    Hi All,
    I have following selecton screen to be created:
    1. Radio Button for File
       A. Radio Button for PC File
           - Parameter for PC File Input
       B. Radio Button for UNIX File
           - Parameter for Unix File Input
    2. Radio Button for Material
        - Material Select-Option
    As per above Either of Radio Buttons 1/2 File/Material will be selected.
    If 1(File) Selected Radio Button for PC File/Unix File will be selected, No other radio buttons will be active.
    If 2(Material) Selected Material Select-option input will be given, No other radio buttons will be active.
    How can we write the selection screen code for above design.
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    go through the following example-----
    **************************************INTERNAL TABLE DECLERATION**************************************
    DATA: BEGIN OF ITAB2 OCCURS 0,
             VALUE(250) TYPE C,
             END   OF ITAB2.
    **************************************DATA DECLERATION************************************************
    DATA: PATH LIKE DYNPREAD-FIELDNAME.
    DATA : P TYPE STRING,
           D TYPE STRING.
    DATA : V_DATASET    LIKE FILENAMECI-FILEEXTERN.
    **************************************SELECTION SCREEN***********************************************
    PARAMETERS: V_PATH TYPE RLGRAP-FILENAME DEFAULT 'C:\Documents and Settings\vchaturvedi\Desktop\vijay.txt'.
    PARAMETERS: D_PATH TYPE RLGRAP-FILENAME.
    SKIP 5.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    PARAMETERS: PC_ONE    RADIOBUTTON GROUP RAD1 DEFAULT 'X',
                PC_OTHER    RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR V_PATH.
    HELP FOR SEARCHING FILES PATH************************************************
      IF PC_ONE = 'X'.
        CALL FUNCTION 'F4_FILENAME'
         EXPORTING
      PROGRAM_NAME        =  'Z8VIJAY_SHADOWER_COVERSIONDATA'
      DYNPRO_NUMBER       = SYST-DYNNR
           FIELD_NAME          = PATH
         IMPORTING
           FILE_NAME           = V_PATH.
    *******CONVERT IN TO STRING************
        P = V_PATH.
      ENDIF.
    **************************************SELECTION SCREEN VALIDATION***********************************
    AT SELECTION-SCREEN.
      IF V_PATH = ''.
        MESSAGE E014.                    "FILE PATH NOT FOUND!!!!!!!
      ENDIF.
      IF D_PATH = ''.
        MESSAGE E016.                "TARGET FILE NOT FOUND!!!!!!!
      ENDIF.
    *******************FOR DOWNLOAD**********
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR D_PATH.
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
      PROGRAM_NAME        = 'Z8VIJAY_SHADOWER_COVERSIONDATA'
      DYNPRO_NUMBER       = SYST-DYNNR
         FIELD_NAME           = PATH
       IMPORTING
         FILE_NAME           = D_PATH.
    ***************CONVERT INTO STRING***********
      D = D_PATH.
    *******************************************MAIN LOGIC************************************************
    START-OF-SELECTION.
      IF P = ''.
        P = 'C:\Documents and Settings\vchaturvedi\Desktop\vijay.txt'.
      ENDIF.
    ******************UPLOAD DATA FROM OTHERS TO INTERNAL TABLE****************
      CALL FUNCTION 'GUI_UPLOAD'
              EXPORTING
                FILENAME                      = P
             FILETYPE                      = 'ASC'
             HAS_FIELD_SEPARATOR           = ' '
             HEADER_LENGTH                 = 0
             READ_BY_LINE                  = 'X'
             DAT_MODE                      = ' '
             CODEPAGE                      = ' '
             IGNORE_CERR                   = ABAP_TRUE
             REPLACEMENT                   = '#'
             CHECK_BOM                     = ' '
           IMPORTING
             FILELENGTH                    =
             HEADER                        =
              TABLES
                DATA_TAB                      = ITAB2
             EXCEPTIONS
               FILE_OPEN_ERROR               = 1
               FILE_READ_ERROR               = 2
               NO_BATCH                      = 3
               GUI_REFUSE_FILETRANSFER       = 4
               INVALID_TYPE                  = 5
               NO_AUTHORITY                  = 6
               UNKNOWN_ERROR                 = 7
               BAD_DATA_FORMAT               = 8
               HEADER_NOT_ALLOWED            = 9
               SEPARATOR_NOT_ALLOWED         = 10
               HEADER_TOO_LONG               = 11
               UNKNOWN_DP_ERROR              = 12
               ACCESS_DENIED                 = 13
               DP_OUT_OF_MEMORY              = 14
               DISK_FULL                     = 15
               DP_TIMEOUT                    = 16
               OTHERS                        = 17
          IF sy-subrc = 1.
           MESSAGE E014.                    "FILE PATH NOT FOUND!!!!!!!
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    ******************************DOWNLOAD DATA FROM INTERNAL TABLE TO OTHERS******************************
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                    =
          FILENAME                        = D
      FILETYPE                        = 'ASC'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      =
        TABLES
          DATA_TAB                        = ITAB2
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF PC_OTHER = 'X'.
    ****************************8FOR ONE SERVER TO ANOTHER************************************************
      OPEN DATASET V_DATASET FOR INPUT IN TEXT MODE ENCODING DEFAULT.
        IF SY-SUBRC = 0.
          DO.
            READ DATASET V_DATASET INTO ITAB2.
            IF SY-SUBRC <> 0.
              EXIT.
            ENDIF.
            APPEND ITAB2.
          ENDDO.
        ENDIF.
      ENDIF.
    *********************************PRINTING DATA *********************************************************
      LOOP AT ITAB2.
        WRITE :/5 ITAB2-VALUE.
      ENDLOOP.
    ****do reward if usefull
    Regards,
    vijay

  • At-selection screen output and radio button together

    Hi all,
    I want to make  a screen with radio buttons and a drop down menu on selection screen as soon as I check any button and click on Open from drop down menu the output should come according to the button cheked but the problem is that desired output is not coming.
    Please see if something could be done.
    Thanks,
    Shweta

    Hi,
    Here is the code see y it didnt responds,
    I made ZMENU2 in SE41 with Menu bar as OPEN , also activated buttons BACK and EXIT.
    tables : sscrfields.
    CONSTANTS : buttonselected TYPE c LENGTH 1 VALUE 'X'.
    DATA: ok_code LIKE sy-ucomm.
    SELECTION-SCREEN BEGIN OF BLOCK frame1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN ULINE /1(60).
    PARAMETERS: first RADIOBUTTON GROUP rad DEFAULT 'X',
    second RADIOBUTTON GROUP rad,
    third RADIOBUTTON GROUP rad,
    fourth RADIOBUTTON GROUP rad,
    fifth RADIOBUTTON GROUP rad.
    SELECTION-SCREEN END OF BLOCK frame1.
    AT SELECTION-SCREEN OUTPUT.
      SET PF-STATUS 'ZMENU2'.
      If first = buttonselected and ok_code = 'OPEN'..
             WRITE 'You selected first button'.
        ELSEIF second = buttonselected and ok_code = 'OPEN'..
            WRITE 'You selected second button'.
        ELSEIF third = buttonselected and ok_code = 'OPEN'.
            WRITE 'You selected third button'.
        ELSEIF fourth = buttonselected and ok_code = 'OPEN'.
            WRITE 'You selected fourth button'.
        ELSEIF fifth = buttonselected and ok_code = 'OPEN'.
            WRITE 'You selected fifth button'.
        ELSEIF ok_code ='BACK'.
           LEAVE PROGRAM.
        ELSEIF ok_code ='EXIT'.
          LEAVE PROGRAM.
      ENDIF.

  • Mandatory fields in the Selection screen if a Radio button in on

    Hi all,
      In my selection screen I have got 2 radio buttons and few select-options and parameters.
    I need to make (date) one select-option as mandatory when the second radio button is checked.
    can you please help me to make this.
    Please send me code if possible.
    Regards,
    Shalem

    Hi
    It's Simple.
    AT SELECTION-SCREEN OUTPUT.
    IF RADIO2 = 'X'.
        IF S_DATE IS INITIAL.
            error message.
        ENDIF.
    ENDIF.
    The above code behave same as the MANDATORY option.
    Regards
    Surya.

  • Display Hide screen elements on radio button select

    Hi all,
    We have requirement to display some elements if radio button 1 is selected and display others elements if radio button 2 is selected .
    All elements should display/hide on radio button click not on any other button .
    <REMOVED BY MODERATOR>
    Regards,
    Edited by: Alvaro Tejada Galindo on Jun 12, 2008 5:34 PM

    Hi,
    Refer the code below:
    *Radiobuttons for selecting single material or range of BOM components
    SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
    *Radiobutton for selecting material
    PARAMETERS:rb_mat RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND com1.
    *Radiobutton for selecting BOM components
    PARAMETERS:rb_comp RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b1.
    *Enter BOM header and details
    SELECTION-SCREEN BEGIN OF BLOCK sub1 WITH FRAME TITLE text-002.
    PARAMETERS:p_matnr TYPE mara-matnr MODIF ID id1.                 "Material Number
    PARAMETERS:p_werks TYPE marc-werks MODIF ID id1.                 "Plant
    PARAMETERS:p_stlan TYPE mast-stlan MODIF ID id1.                 "BOM usage
    PARAMETERS:p_stlal TYPE mast-stlal MODIF ID id1.                 "Alternative BOM
    PARAMETERS:p_capid TYPE rc29l-capid MODIF ID id1.                "BOM Application
    SELECTION-SCREEN END OF BLOCK sub1.
    *Enter BOM components
    SELECTION-SCREEN BEGIN OF BLOCK sub2 WITH FRAME TITLE text-003.
    SELECT-OPTIONS:s_matnr FOR marc-matnr MODIF ID id2.              "Material Number(BOM component)
    SELECTION-SCREEN END OF BLOCK sub2.
    *Enter document details
    SELECTION-SCREEN BEGIN OF BLOCK sub3 WITH FRAME TITLE text-004.
    *Document number
    PARAMETERS:p_doknr TYPE draw-doknr.
    *Document Type
    PARAMETERS:p_dokar TYPE draw-dokar.
    *Document Part
    PARAMETERS:p_doktl TYPE draw-doktl DEFAULT '000'.
    *Document Version
    PARAMETERS:p_dokvr TYPE draw-dokvr DEFAULT '00'.
    SELECTION-SCREEN END OF BLOCK sub3.
    *Display screen based on selection of radio button
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF rb_mat = 'X'.
          IF screen-group1 = 'ID2'.
            screen-active = 0.
          ENDIF.
        ELSEIF rb_comp = 'X'.
          IF screen-group1 = 'ID1'.
            screen-active = 0.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.

  • Selection screen: PNP database or other selection criteria

    I received a specification of a new to be developed program where they defined a selection screen with a with 2 radio buttons:
    1.     Use the logical database PHP for data selection (rb1);
    2.     Use other criteria for data selection (rb2).
    My question is, is this possible?
    Or should I add the other criteria between the GET PERNR and the following code with?
    Sample:
    GET PERNR
      IF rb2 = ‘X’.
        [Check other criteria]
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
      ENDIF.
    null

    When either pnp OR other selection :
    Create program 1 with 2 radiobuttons ==> pnp-selection (rb1)or other selection (rb2). When rb1 is selected go to pgm1 with pnp ; when rb2 is selected go to pgm2 with other selection criteria. Copy pgm1 to pgm2 and add extra selections en delete pnp-statements.
    When pnp WITH extra selections : 1 pgm can be used as you described.

  • Help on the selection screen.....Select-options default values

    Dear Friends,
    We have one requirement,i.e. In Report program i am using select-option once will execute the program ALV report will be generated.In ALV Report we have one button like 'WM DATA'.Once click the WMDATA one pop-up is displaying...In that pop-up also same select-options are there upto here it's working fine...Now my problem is on pop-up select-options i have to display by default..... which i am using on report select-options values.
    Please help on the same
    Thank You.

    Do like this. Before calling your next screen assign the select option value or just assign the value in start of selection only.
    tables
    :lqua.
    SELECT-OPTIONS:
    s_lgnum FOR lqua-lgnum MODIF ID sc1 OBLIGATORY,
    s_lgtyp FOR lqua-lgtyp MODIF ID sc1.
    SELECTION-SCREEN BEGIN OF SCREEN 300 .
    SELECT-OPTIONS : s_lgnum1 FOR lqua-lgnum OBLIGATORY,
    s_lgtyp1 FOR lqua-lgtyp OBLIGATORY.
    SELECTION-SCREEN END OF SCREEN 300.
    START-OF-SELECTION.
    s_lgnum1[] = s_lgnum[].
    s_lgtyp1[] = s_lgtyp[].
    call SELECTION-SCREEN 300.

  • Selection-screen as subscreen in other selection screen

    Hi,
    is it possible to attached one selection screen, which has been created as subscreen (selection-screen begin of sreen 2000 as subscreen) to the other one (standard one 1000), created just with selection-screen commands (begin of block, etc)?
    Thank you.
    J

    Hi,
    Try using tab strips in the selection screen..
    http://help.sap.com/saphelp_nw04/helpdata/EN/00/deb23789e95378e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/content.htm
    Thanks
    Naren

  • Report selection screen values defaults to previous selections

    Hello BW experts,
       Hope all doing well.  We are using BW3.5 . Recently upgraded  from patch 18 to  20.
    When we run BW report with certain selections in the selection screen, for ex : Fiscal year 2007.
    And run a diffrent report which has Fiscal year as  a variable screen. Now the fiscal year is defaults to 2007. Any idea why this is happening. Please help with this. We did n't have this problem before.
    Thanks a lot.

    Hi Kiran,
                Try to change the variable entry to :" MANDATORY,INITIAL VALUE NOT ALLOWED".
    Regards,
    Vijay.

  • Problem using At Selection Screen on value request for *"Select Fieldname"*

    Hi All,
    I Have a requirement of passing mutiple paraters value or selection option values in selection screen.
    For Eg :I Have -
    *--- Selection Screen
        Select-options :  s1  for vbak-vbeln ,
                                              s2  for vbap-posnr.
    *--- At Selection Screen     
        At Selection Screen on value request for s1-low.
         i need to pass S1-low as well as S2-low ...
         i.e first item of the Sales Document.
        Value is getting passed in S1-low but not in S2-low
        Can anybody help me on this ...
       Thanks in Advance ..

    Hi,
    Make use of the FM "F4IF_INT_TABLE_VALUE_REQUEST" for the value request for the first field.
    Use the "FIELD_MAPPING" in the tables parameter of the above FM.
    Please go through the FM documentation.
    Hope this will help you.
    Regards,
    Smart Varghese

  • In the LDB selection screen -Diff b/w  Data selection / person selection

    Hi Experts,
    Want to know what is the difference between
    Data Selection Period
    Person Selection Period
    in the other period , in the selection screen of the LDB PNP.
    Thanx in Advance.
    Regards,
    IFF

    hi,
    Please Refer to this link.
    [abap hr question;
    This will Help You.
    Reward if helpful.
    Regards
    Sumit Agarwal

  • LDB selection screen -Diff b/w Data selection / person selection  period

    Hi Experts,
    Want to know what is the difference between
    Data Selection Period
    Person Selection Period
    in the other period , in the selection screen of the LDB PNP.
    Thanx in Advance.
    Regards,
    IFF

    hi,
    Plz follow this link.
    Re: Data selection period & Person selection period
    This will Help.
    Regards
    Sumit Agrwal

  • Adding a new input field on selection screen after input in a select option

    Hi Experts,
    There are 2 input fields on the selection screen.
    I would like to add a new select option field when a value is entered in the 2nd field <b>only</b>. If there is an input in the 1st field or both the fields, the new input field should not appear.
    Message was edited by:
            Gaurav Kothari

    execute the code .
    you will get sel option for s_lgort only when there is a value in s_werks.
    tables mard.
    select-options: s_matnr for mard-matnr,
                    s_werks for mard-werks,
                    s_lgort for mard-lgort modif id abc.
    at selection-screen output.
    if not s_werks[] is initial and s_matnr[] is initial.
    loop at screen.
    if screen-group1 = 'ABC'.
    screen-active = '1'.
    modify screen.
    endif.
    endloop.
    else.
    loop at screen.
    if screen-group1 = 'ABC'.
    screen-active = '0'.
    modify screen.
    endif.
    endloop.
    endif.

Maybe you are looking for

  • Problem while opening PDF attachment in Inbox

    Hi all, I am sending PDF attachment through email to inbox. When am trying to open PDF attachment i am getting error- 'There was an eror opening this document.The fuile changed and couldnt be open' When i click on attachment some bytes are getting tr

  • Sales report: Profit center wise includes net, gross and sales tax URGENT

    Helllo Friends, Please help me on the below report Client requirement is: Sales report which includes the below 1. Profit center 2. Net sales 3. Sales tax 4. Gross sales 5. Period Please help me Thanks for your help in advance Narasim

  • AcrobatActiveXVB SDK Sample - Links in PDF Not working

    Hi, I am trying to create an application in VS.net (similar to AcrobatActiveXVB SDK Sample) to display PDF files in my application.  PDF file opens fine.  But external links in PDF file are not working.  I trying to display a main index pdf file, whi

  • Selection screen help

    In report program, how can i get the default screen values as current month's low and high values as sy-datum will only give current date. i. e. suppose today it is dec 30 then, default low value should show dec 01 and high should show dec 31. please

  • Using home wifi to make phone calls

    Please someone - I have been reading info until I can't see! Will someone please give me some step by step instructions as to how to set up a C6 using a SIP client? I've seen almost every phone discussed but the C series. Thanks