Radiobuttons in Selection-Screen

Hello!
I have a radiobutton group 'radi' with 7 Radiobuttons.
Now I want to check, which one was marked in AT SELECTION-SCREEN.
How can I do that?
Regards Michael

hi michael,
just execute the code
regards,
vikky.
REPORT zp6 .
DATA m TYPE c.
PARAMETERS: p1 RADIOBUTTON GROUP radi,
            p2 RADIOBUTTON GROUP radi,
            p3 RADIOBUTTON GROUP radi,
            p4 RADIOBUTTON GROUP radi,
            p5 RADIOBUTTON GROUP radi,
            p6 RADIOBUTTON GROUP radi,
            p7 RADIOBUTTON GROUP radi.
AT SELECTION-SCREEN.
START-OF-SELECTION.
  CASE 'X'.
    WHEN p1.
      m = 'X'.
      WRITE 'Radio button p1 is selected' .
    WHEN p2.
      m = 'X'.
      WRITE 'Radio button p2 is selected' .
    WHEN p3.
      m = 'X'.
      WRITE 'Radio button p3 is selected' .
    WHEN p4.
      m = 'X'.
      WRITE 'Radio button p4 is selected' .
    WHEN p5.
      m = 'X'.
      WRITE 'Radio button p5 is selected' .
    WHEN p6.
      m = 'X'.
      WRITE 'Radio button p6 is selected' .
    WHEN p7.
      m = 'X'.
      WRITE 'Radio button p7 is selected' .
  ENDCASE.

Similar Messages

  • Problem in Selection Screen.

    Dear Experts,
    I am facing a problem in Selection Screen.
    <b>I have 2 radio buttons ,</b>
    <b>Radio Button 1</b> - Choosing the file from desktop and
    <b>Radio Button 2</b> - Executing from Database
    Under Option1 - i have a <b>FILE</b> parameter which is <b><u>Mandatory.</u></b>
    Problem Case -
    <b>when I choose option 2, Option 1 should be disabled. in the sense the file name which is mandatory here should not be mandatory . Currently, when i choose option 2 - i have to provide some dummy characters in the file parameter because the file parameter is mandatory, and <u><b>I want to avoid this.</b></u>
    Please see the entire code .</b>
    REPORT ZTEST.
    DATA: LV_FILE_PATH(20) TYPE  C.
    DATA: LV_MASK(20)      TYPE  C VALUE   ',*.XLS ,*.XLS.     '.
    *-- Macro to put radiobutton on selection screen
    *-- &1 - radiobutton parameter name
    *-- &2 - text element (description)
    *-- &3 - radiobutton group
    DEFINE MAKE_RADIOBUTTON.
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS: &1 RADIOBUTTON GROUP &3.
      SELECTION-SCREEN COMMENT 3(60) &2.
      SELECTION-SCREEN END OF LINE.
    END-OF-DEFINITION.
    SELECTION-SCREEN BEGIN OF BLOCK A0 WITH FRAME TITLE T000.
    * From Config File
    MAKE_RADIOBUTTON RB_1  ALL_DATA SRC.
    SELECTION-SCREEN BEGIN OF BLOCK A1 WITH FRAME TITLE T001.
    * Config file from Presentation server
    PARAMETERS: P_FILE1   LIKE T390D-DBNAME  OBLIGATORY. "
    SELECTION-SCREEN END OF BLOCK A1.
    * From database table
    MAKE_RADIOBUTTON RB_2 INC_DOWN SRC.
    SELECTION-SCREEN END OF BLOCK A0.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE1.
      CALL FUNCTION 'WS_QUERY'
           EXPORTING
                QUERY  = 'CD'  "// Current Directory
           IMPORTING
                RETURN = LV_FILE_PATH.
      CALL FUNCTION 'WS_FILENAME_GET'
           EXPORTING
                DEF_FILENAME     = 'TA_DOWNLOAD.MDB'
                DEF_PATH         = LV_FILE_PATH
                MASK             = LV_MASK
                MODE             = 'O'
           IMPORTING
                FILENAME         = P_FILE1
           EXCEPTIONS
                INV_WINSYS       = 1
                NO_BATCH         = 2
                SELECTION_CANCEL = 3
                SELECTION_ERROR  = 4
                OTHERS           = 5.
    INITIALIZATION.
      ALL_DATA = 'From Desktop     : ? '.
      INC_DOWN = 'From Database    : ?'.
      T000     = 'Configuration Upload'.
    Please help
    Thanks

    Hi
    You should do some modifications like these:
    DEFINE MAKE_RADIOBUTTON_1.
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS: &1 RADIOBUTTON GROUP &3 USER-COMMAND &4.
      SELECTION-SCREEN COMMENT 3(60) &2.
      SELECTION-SCREEN END OF LINE.
    END-OF-DEFINITION.
    DEFINE MAKE_RADIOBUTTON_2.
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS: &1 RADIOBUTTON GROUP &3.
      SELECTION-SCREEN COMMENT 3(60) &2.
      SELECTION-SCREEN END OF LINE.
    END-OF-DEFINITION.
    SELECTION-SCREEN BEGIN OF BLOCK A0 WITH FRAME TITLE T000.
    From Config File
    MAKE_RADIOBUTTON_1 RB_1  ALL_DATA SRC AAA.
    SELECTION-SCREEN BEGIN OF BLOCK A1 WITH FRAME TITLE T001.
    Config file from Presentation server
    PARAMETERS: P_FILE1   LIKE T390D-DBNAME MODIF ID FIL. "
    SELECTION-SCREEN END OF BLOCK A1.
    From database table
    MAKE_RADIOBUTTON_2 RB_2 INC_DOWN SRC.
    SELECTION-SCREEN END OF BLOCK A0.
    AT SELECTION-SCREEN OUTPUT.
      IF RB_2 = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'FIL'.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Max

  • Selection Screen in 3.0F

    Hi Guys,
    I am trying to activate and deactivate some parameters on selection screen by clicking Radiobutton of selection-screen in SAP 3.0F. I tried USER-COMMAND but it is not allowing me to do in 3.0F version. Please let me know there is any other way??? It is urgent

    Hi
    Check if you can do with 'At Selection-screen output' event and change thedisplay properties of fieldsby looping at table 'SCREEN'.
    Mean while I will try to find the code for it.
    Regards
    Santosh

  • 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

  • Behaviour of radiobutton and mandatory fields in a selection screen

    Hello all
    In the selection screen in a report , I have one mandatory field F1 and 2 radio button  p_val and p_prov. there's no relationship between p_prov, p_val & F1.
    I have 2 others fields p_dom and p_seg which are active when I select p_val : they are also mandatory when selecting p_val.
    p_prov is the default radiobutton so p_dom and p_seg are inactive when the screen appears
    I have 2 problems :
    1 - First I select p_val (the message for F1 as mandatory appears -> normal) so p_val appears selected but The 2 fields p_dom and p_seg are not active. I would like them to be active even I have not filled F1.
    2- I fill F1then I select p_val, so p_dom and p_seg are active, I fill only p_dom but not p_seg : I select radio button p_prov (the message for p_seg as mandatory appears -> normal) : p_prov appears selected but I don't want it.
    Thanks for your help.
    below the code of selection screen with event at selection-screen output :
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS : p_val RADIOBUTTON GROUP GR2 USER-COMMAND radio.
      SELECTION-SCREEN COMMENT 4(37) text-132.
      SELECTION-SCREEN END OF LINE.
      PARAMETERS : p_dom TYPE GSBER OBLIGATORY MODIF ID SC1.
      PARAMETERS : p_seg TYPE FB_SEGMENT OBLIGATORY MODIF ID SC1.
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS : p_prov RADIOBUTTON GROUP GR2 DEFAULT 'X'.
      SELECTION-SCREEN COMMENT 4(37) text-133.
      SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'SC1'.
          IF p_prov = 'X'.
            SCREEN-INPUT = '0'.
            SCREEN-REQUIRED = '0'.
          ENDIF.
          IF p_val = 'X'.
            SCREEN-INPUT = '1'.
            SCREEN-REQUIRED = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

    hello Jerome,
    Here you go.
    2 things to remember:
       1. Remove the obligatory addition from all fields.
       2. Remove the input required while changing the screen elements.
    PARAMETER: f1 TYPE c LENGTH 10.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : p_val RADIOBUTTON GROUP gr2 USER-COMMAND radio.
    SELECTION-SCREEN COMMENT 4(37) text-132.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS : p_dom TYPE gsber MODIF ID sc1.
    PARAMETERS : p_seg TYPE fb_segment MODIF ID sc1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : p_prov RADIOBUTTON GROUP gr2 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 4(37) text-133.
    SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'SC1'.
          IF p_prov = 'X'.
            screen-input = '0'.
          ENDIF.
          IF p_val = 'X'.
            screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN.
      CHECK sy-ucomm <> 'RADIO'.
      IF p_val = 'X'.
        IF p_dom IS INITIAL OR p_seg IS INITIAL.
          MESSAGE 'Fill Mandatory fields' TYPE 'E'.
        ENDIF.
      ENDIF.
      IF f1 IS INITIAL.
        MESSAGE 'Fill F1' TYPE 'E'.
      ENDIF.
    Thanks,
    Jinesh.

  • Selection screen block is invisable when radiobutton is selected

    Hi Experts,
    i am sending the my code...........my requerment is  : Radiobutton(rb_cdr1)   is checked donu2019t show the  Fourth & Sixth block and no output files will be generated in those respective blocks. Only Show option a & b in the Fifth block. If the Radio button in unchecked donu2019t show the options a & b in the Fifth block)
    if Radiobutton(rb_csr1) donu2019t show the  fifth Sixth block . iam try to using loop at scrren and
    IF screen-group1 = 's1'.
       screen-invisible = '0'.
    But it's not working..........plz help me on this........
    file download option for dazel system.
    SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-h04.
    PARAMETERS: rb_dzlcl RADIOBUTTON GROUP gr2 MODIF ID s1,
                rb_dzapp RADIOBUTTON GROUP gr2 MODIF ID s1,
                p_dzfl   TYPE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK b4.
    SELECTION-SCREEN BEGIN OF BLOCK b7 WITH FRAME TITLE text-h07.
    PARAMETERS: rb_cdr1   RADIOBUTTON GROUP gr5 ,
                rb_csr1  RADIOBUTTON GROUP gr5  .
    SELECTION-SCREEN END OF BLOCK b7.
    Contibution detail report & UNIX File option
    SELECTION-SCREEN BEGIN OF BLOCK b5 WITH FRAME TITLE text-h05.
    PARAMETERS: rb_cdr   RADIOBUTTON GROUP gr3 MODIF ID s1,
                rb_loca  RADIOBUTTON GROUP gr3 MODIF ID s1,
                rb_appl  RADIOBUTTON GROUP gr3 MODIF ID s1,
                p_flnam TYPE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK b5.
    Contibution Summary report & UNIX File option
    SELECTION-SCREEN BEGIN OF BLOCK b6 WITH FRAME TITLE text-h06.
    PARAMETERS:  rb_csr  RADIOBUTTON GROUP gr4 MODIF ID s2,
                 rb_loc  RADIOBUTTON GROUP gr4 MODIF ID s2,
                 rb_app  RADIOBUTTON GROUP gr4 MODIF ID s2,
                 p_fln TYPE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK b6.
    Thanks in advance........

    hi !
    try the following one and make some changes that you want
    SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-h04.
    PARAMETERS: rb_dzlcl RADIOBUTTON GROUP gr2 MODIF ID s1,
    rb_dzapp RADIOBUTTON GROUP gr2 MODIF ID s1,
    p_dzfl TYPE rlgrap-filename MODIF ID s1.
    SELECTION-SCREEN END OF BLOCK b4.
    SELECTION-SCREEN BEGIN OF BLOCK b7 WITH FRAME TITLE text-h07.
    PARAMETERS: rb_cdr1 RADIOBUTTON GROUP gr5 MODIF ID s3 ,
    rb_csr1 RADIOBUTTON GROUP gr5 DEFAULT 'X'.
    SELECTION-SCREEN END OF BLOCK b7.
    Contibution detail report & UNIX File option
    SELECTION-SCREEN BEGIN OF BLOCK b5 WITH FRAME TITLE text-h05.
    PARAMETERS: rb_cdr RADIOBUTTON GROUP gr3 MODIF ID s1,
    rb_loca RADIOBUTTON GROUP gr3," MODIF ID s1,
    rb_appl RADIOBUTTON GROUP gr3," MODIF ID s1,
    p_flnam TYPE rlgrap-filename MODIF ID s1.
    SELECTION-SCREEN END OF BLOCK b5.
    Contibution Summary report & UNIX File option
    SELECTION-SCREEN BEGIN OF BLOCK b6 WITH FRAME TITLE text-h06.
    PARAMETERS: rb_csr RADIOBUTTON GROUP gr4 MODIF ID s2,
    rb_loc RADIOBUTTON GROUP gr4 MODIF ID s2,
    rb_app RADIOBUTTON GROUP gr4 MODIF ID s2,
    p_fln TYPE rlgrap-filename MODIF ID s2.
    SELECTION-SCREEN END OF BLOCK b6.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF screen-group1 = 'S2' or
       screen-group1 = 'S1'.
      IF rb_csr1 = 'X'.
        screen-active = 0.
      ELSEIF rb_cdr1 = 'X' .
         screen-active = 1.
      ENDIF.
    ELSEIF screen-group1 = 'S3'.
      IF rb_cdr1 eq 'X'.
        screen-active = 1.
      ELSEIF rb_csr1 = 'X' .
         screen-active = 1.
      ENDIF.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.

  • How to catch a switching of radiobutton in "AT SELECTION-SCREEN"

    Hi,
    I have a selection screen with 2 radiobuttons in group 001.
    I need to perform some code when I change a status of particular radiobutton (checked - unchecked).
    I have a code in AT SELECTION SCREEN ON RADIOBUTTON GROUP 001 but this code is not executed on changing a status of particular radiobutton.
    Any help is appreciated.
    Thank you.
    Marian

    Check the sample code.
    REPORT  ypra_sample56.
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
    PARAMETER: p_r1 RADIOBUTTON GROUP rg1 USER-COMMAND vend DEFAULT 'X',
               p_r2 RADIOBUTTON GROUP rg1,
               p_r3 RADIOBUTTON GROUP rg1.
    SELECTION-SCREEN END OF BLOCK a1.
    SELECTION-SCREEN BEGIN OF BLOCK a2 WITH FRAME TITLE text-002.
    PARAMETER: p_c1 TYPE c AS CHECKBOX,
               p_c2 TYPE c AS CHECKBOX,
               p_c3 TYPE c AS CHECKBOX,
               p_c4 TYPE c AS CHECKBOX,
               p_c5 TYPE c AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK a2.
               INITIALIZATION
    INITIALIZATION.
      PERFORM enable_fields.
               AT SELECTION SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      PERFORM sel_screen_output.
               START OF SELECTION
    START-OF-SELECTION.
      DATA: ws_data TYPE tarifnr.
      ws_data  =  'ZPNGT_EM1'.
      IF ws_data CA '1' OR ws_data CA '2' .
        WRITE:/ ws_data.
      ENDIF.
    *&      Form  sel_screen_output
          Selection screen Output
    FORM sel_screen_output.
      IF p_r1 EQ 'X' OR p_r2 EQ 'X'.
        PERFORM enable_fields.
      ENDIF.
      IF p_r3 EQ 'X'.
        LOOP AT SCREEN.
          IF screen-name EQ 'P_C4' OR screen-name = 'P_C5'.
            screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " sel_screen_output
    *&      Form  enable_fields
          enable fields in selection screen
    FORM enable_fields .
      IF p_r1 EQ 'X' OR p_r2 EQ 'X'.
        LOOP AT SCREEN.
          IF screen-name EQ 'P_C4' OR screen-name EQ 'P_C5'.
            screen-input = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " disable_fields
    Regards,
    Prakash.

  • Radiobutton during at selection-screen event is not triggered

    Hi experts,
    I have this event:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file
    perform f_file_sel.
    I want to select a file according to the radiobuttons on the selection screen, but during the f_file_sel form I recognized, that the radiobutton which I selected is not triggered.
    It's only triggered after 'start-of-selection'.
    How can I force the program to trigger it when f_file_sel is processing?

    Hi,
    SELECT-OPTIONS : so_matnr1    FOR  mvke-matnr MODIF ID id1,
                                    so_matnr2   FOR  mara-wrkst MODIF ID id2.
    PARAMETERS : rb_mat TYPE c RADIOBUTTON GROUP rbg DEFAULT 'X' USER-COMMAND hid,
                              rb_var TYPE c RADIOBUTTON GROUP rbg.
    LOOP AT SCREEN.
        IF rb_mat EQ c_x.
          IF screen-group1 EQ  'ID2'.
            screen-input = '0'.
          ENDIF.
        ENDIF.
        IF rb_var EQ c_x.
          IF screen-group1 EQ 'ID1'.
            screen-input = '0'.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Apply this piece of code to your requirement with files in place of fields.Hope your issue will be resolved.
    Regards,
    Anand.

  • Regarding At selection-screen on Radiobutton    output....

    Hi...
    This is the code I used, to check AT SELECTION-SCREEN ON RADIOBUTTON.
    But, after displaying the error message,
    all fields are becoming inactive in selection screen.
    CODE:
    TYPES : BEGIN OF st_employee,
                  cid TYPE zintelli_emp-cid,              
                 cname TYPE zintelli_emp-cname,         
             l   ocation TYPE zintelli_emp-location,           
                phno TYPE zintelli_emp-phno ,          
                gender TYPE zintelli_emp-gender,       
            END OF st_employee.
    DATA :  it_employee TYPE STANDARD TABLE OF      st_employee,
            wa_employee TYPE st_employee,
            v_cid TYPE  zintelli_emp-cid.
    SELECTION-SCREEN BEGIN OF SCREEN 500 TITLE title.
    PARAMETERS : p_cid TYPE st_employee-cid obligatory.
    PARAMETERS : p_cname TYPE st_employee-cname,       
                 p_culoc TYPE st_employeelocation,    
                 p_phno TYPE st_employee-phno. 
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(6) rc1.
    PARAMETERS : rb_1 RADIOBUTTON GROUP b .
    SELECTION-SCREEN COMMENT 15(7) rc2.
    PARAMETERS :  rb_2 RADIOBUTTON GROUP b.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN PUSHBUTTON /35(10) pb1 USER-COMMAND pb1.
    SELECTION-SCREEN SKIP 5.
    SELECTION-SCREEN END OF SCREEN 500.
    CALL SELECTION-SCREEN '500'.
    INITIALIZATION.
      title  = 'CUSTOMER INFORMATION'.
      pb1 = 'INSERT'.
      rc1 = 'MALE'.
      rc2 = 'FEMALE'.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP b.
      IF rb_1 EQ 'X'.
        p_cid = p_cid+0(1).
        IF p_cid NE 'M'.
          MESSAGE e020(z50871msg) WITH 'The id should start with "M" '.
         EXIT.
        ENDIF.
      ELSE.
        p_cid = p_cid+0(1).
        IF p_cid NE 'F'.
          MESSAGE e020(z50871msg) WITH 'The id should start with "F" '.
          EXIT.
        ENDIF.
        ENDIF.
    Regards
    sandeep.

    At selection-screen on FIELD
              Will give work like: If given input is wrong then it will give the Error message and all other fields will be diasable except the entered wrong on At selection-screen on FIELD.
    until you give the right input it won't go for next At Selection-screen On FILED.
    If you Don't want to disable other fields Use ONLY AT SELECTION-SCREEN.
    Regards,
    Umashankar

  • Regarding At selection-screen on radiobutton

    Hi..
    I need sample code on AT SELECTION-SCREEN ON RADIOBUTTON.
    thanx and regards
    Sandeep.

    Hi,
    Just copy paste this code and run it,
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    PARAMETERS: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
    R2 RADIOBUTTON GROUP RAD1,
    R3 RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.
    PARAMETERS: R4 RADIOBUTTON GROUP RAD2 DEFAULT 'X',
    R5 RADIOBUTTON GROUP RAD2,
    R6 RADIOBUTTON GROUP RAD2.
    SELECTION-SCREEN END OF BLOCK B2.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF R1 = 'X'.
    MESSAGE W040(HB).
    ENDIF.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD2.
    IF R4 = 'X'.
    MESSAGE W040(HB).
    ENDIF.
    note: after selecting the choices press F8 and test.
    hope this helps.

  • Change RadioButtons position in Selection Screen.

    HI is there any way to change the default position of a radiboutton in a selection screen.
    I mean, show the text option of the radiobutton in the right side, not the left side.
    Thanks a lot.

    hi Jose,
    you have to do something like:
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT x(y)... "x for starting position, y for length
    SELECTION-SCREEN POSITION 20. "next line will start at this position
    PARAMETERS : p_rb RADIOBUTTON GROUP rb1
    SELECTION-SCREEN END OF LINE.
    hope this helps
    ec

  • At selection-screen on radiobutton group is triggering again on execute??

    Hi Friends,
    I want to show a Information pop up on selection of a radio button for that i have done
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RG.
      IF P_UPL = 'X'.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            TITEL = TEXT-017
            TXT1  = TEXT-015
            TXT2  = TEXT-016.
      ENDIF.
    I have two radio buttons and second radio button is P_UPL. Its working fine.
    But same event is getting triggered when execute button is pressed( i mean when report is executed ), which i don't want.
    How to restrict.
    Any help is greately appreciated.
    Thanks,
    Simha

    when the event is clicked for the first time .
    Initiate the before the popup is called .
    Now when again when you execute and p_upl = 'X'
    check the falg if value then don't call the pop-up .
    and clear the flag at that moment .
    So the Popup fun is ignored when you click execute event .
    SEE THE lines in bold .
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RG.
      IF P_UPL = 'X'.
    if v_flag is initial.
    v_flag = 'X'.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            TITEL = TEXT-017
            TXT1  = TEXT-015
            TXT2  = TEXT-016.
    ENDIF.
      ENDIF.

  • Enable a field in selection screen using radiobuttons

    Hi gurus,
    I am having 2 radio buttons in a group.
    If I click on the second radio button a field for path should appear i.e enabled or else the field should be in disable mode if it is first radio button.
    Please send me the code.
    promise to reward
    Mac

    Hi
      Try this code
    tables ltak.
    parameters :rad_tc radiobutton group rad1 default 'X' user-command ucom,
                rad_pr radiobutton group rad1 .
    selection-screen begin of block blk1 with frame.
    selection-screen begin of line.
    selection-screen comment 1(20) text-001.
    parameters : p_tanum like ltak-tanum modif id abc.
    parameters : p_tapos like ltap-tapos modif id abc.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text-002.
    parameters : p_user like sy-uname modif id abc.
    selection-screen end of line.
    selection-screen end of block blk1.
    selection-screen begin of block blk3 with frame.
    selection-screen comment 1(20) text-003.
    select-options : s_tanum for ltak-tanum modif id cda.
    parameters : zp_user like sy-uname modif id cda.
    selection-screen end of block blk3.
    at selection-screen output.
      loop at screen.
        if rad_tc = 'X' and screen-group1 = 'CDA'.
          screen-input = '0'.
          modify screen.
        endif.
        if rad_pr = 'X' and screen-group1 = 'ABC'.
          screen-input = '0'.
          modify screen.
        endif.
      endloop.
    If your query is solved kindly close the thread and award points
    cheers
    Shafiq

  • Adding radiobutton to WD selection screen

    Hello all,
      can some one please let me know how to add a radio button to the  WD selection screen.
    Thanks in advance
    Regards
    Amarender Reddy B

    hi amarender......
          just drag and place the radio button from theui element list.
          bind an attribute from the context to it.
          you can see an example in:
         wdr_test_ui_elements component.
    --regards,
      alex b justin

  • Help needed in selection screen - Urgent

    Hi Experts,
    I have a selection screen. I have three radi buttons in that selection screen. Based on the selection of the radio buttons I need to activate corresponding selection screen parameters.
    e.g : if radiobutton1 is selected, njo activation needed,
           if radiobutton2 is selected, activate selection screen parameter p_one,
           if radiobutton3 is selected, activate selection screen parameter p_two.
    All three radiobuttons are attached to the same radio button group.
    I have assigned the parameters p_one, p_two, p_three to MODIF ID as follows.
    p_one - NULL
    p_two - t01
    p_three - t02.
    on the selection of a radio button I want the corresponding parameter to get activated.
    please help me.
    Regards,
    Arul jothi A.

    hi
    jothi
    AT SELECTION-SCREEN OUTPUT.                                      
      CASE SY-TCODE.                                                 
        WHEN 'ZEDI6'.                                                
          LOOP AT SCREEN.                                             
            CASE SCREEN-GROUP4.                                      
              WHEN '001'.                  "Sales order select       
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '002'.                  "Delivery select          
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                        
              WHEN '003'.                  "Invoice select           
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '004'.                  "PO Select                
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
    regards
    praveen

Maybe you are looking for

  • Itunes 9.02 wont install

    I am trying a new install of itunes and when I try to run it it tells me that itune folder can not be found or created

  • Can I clean the clear ink head for mx7600 printer?

    Clear ink tank indicator displayed so replaced it with genuine PGI-9 clear tank per instructions and same problem plus new B300 error code.  Figured must've been bad new tank so ordered another and same problems.  Ran all clean and deep clean utiliti

  • Trouble with unlocking and locking a 3rd gen iPod touch

    When I lock or unlock my iPod it will either re unlock itself or relock itself so if I was to lock my iPod right now it would unlock and be at my lock screen and if I press the button again it will lock and relock right away again I have to do this a

  • Re: VF31 Billing Errors occurred while processing output MSG no VN073

    Hi Joan, Thanks for your time. In VF02 I can print the billing document correctly. Out of 45 bills in VF31 I could successfully got one bill only. Others gave me error. I am trying to investigate what is different for thiss one bill so it got clicked

  • Remove developer tools

    I've tried everything I can find on-line but I cannot prevent the developer tools from interfering when I type in a search or type in text on a web page. I have gone to about:config and turned off every dev listed, still nothing changes. Please tell