Doubt in selection screen modification

Hi all,
I have  a Checkbox (select all) in my selection screen and 23 other check boxes.
When i click the 'select all' checkbox, all the 23 checkboxes should be selected automatically in the selection screen and the lf i remove the tick mark in the checkbox, all the 23 check boxes should be cleared automatically and it should allow the user to select any of the checkboxes on his own..
I'm able to select all, when it is ticked.   But my pbm is when the 'select all' tick mark is removed, i'm clearing all the 23 checkboxes.   so after this, if the user a select any check box on his own, it is not taken. Bcoz, i'm clearing all the value in 'at selection screen' event.
Could any one help to achieve this ...
Regards,
Shanthi

Hi Shanti,
Here is the modified code of the fellow SDN. Just check. It works as u requested.
REPORT zvenkat_notepad.
SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME.
PARAMETERS:p_all AS CHECKBOX USER-COMMAND rusr.
SELECTION-SCREEN : END OF BLOCK blk1.
SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME.
PARAMETERS: p_chk1  AS CHECKBOX,
            p_chk2  AS CHECKBOX,
            p_chk3  AS CHECKBOX,
            p_chk4  AS CHECKBOX,
            p_chk5  AS CHECKBOX,
            p_chk6  AS CHECKBOX,
            p_chk7  AS CHECKBOX,
            p_chk8  AS CHECKBOX,
            p_chk9  AS CHECKBOX,
            p_chk10 AS CHECKBOX,
            p_chk11 AS CHECKBOX,
            p_chk12 AS CHECKBOX,
            p_chk13 AS CHECKBOX,
            p_chk14 AS CHECKBOX,
            p_chk15 AS CHECKBOX,
            p_chk16 AS CHECKBOX,
            p_chk17 AS CHECKBOX,
            p_chk18 AS CHECKBOX,
            p_chk19 AS CHECKBOX,
            p_chk20 AS CHECKBOX,
            p_chk21 AS CHECKBOX,
            p_chk22 AS CHECKBOX,
            p_chk23 AS CHECKBOX.
SELECTION-SCREEN : END OF BLOCK blk2.
AT SELECTION-SCREEN." OUTPUT.
  IF p_all = 'X'.
    p_chk1 = 'X'.
    p_chk2 = 'X'.
    p_chk3 = 'X'.
    p_chk4 = 'X'.
    p_chk5 = 'X'.
    p_chk6 = 'X'.
    p_chk7 = 'X'.
    p_chk8 = 'X'.
    p_chk9 = 'X'.
    p_chk10 = 'X'.
    p_chk11 = 'X'.
    p_chk12 = 'X'.
    p_chk13 = 'X'.
    p_chk14 = 'X'.
    p_chk15 = 'X'.
    p_chk16 = 'X'.
    p_chk17 = 'X'.
    p_chk18 = 'X'.
    p_chk19 = 'X'.
    p_chk20 = 'X'.
    p_chk21 = 'X'.
    p_chk22 = 'X'.
    p_chk23 = 'X'.
  ENDIF.
  IF sy-ucomm = 'RUSR' AND p_all = space.
    CLEAR:
          p_chk1,
          p_chk2,
          p_chk3,
          p_chk4,
          p_chk5,
          p_chk6,
          p_chk7,
          p_chk8,
          p_chk9,
          p_chk10,
          p_chk11,
          p_chk12,
          p_chk13,
          p_chk14,
          p_chk15,
          p_chk16,
          p_chk17,
          p_chk18,
          p_chk19,
          p_chk20,
          p_chk21,
          p_chk22,
          p_chk23.
  ENDIF.
Regards,
Venkat.O

Similar Messages

  • Doubt in selection screen

    Hi i have a doubt in selection screen I had given statement as below now i can see the output screen and i'm getting the output also now i want to know the value of only one vendor. If i had given a vendor number it must select the particular data of that vendor only can u give me any suggestions please
    SELECTION-SCREEN BEGIN OF BLOCK P WITH FRAME TITLE TEXT-000.
          PARAMETERS: VENDORNO like EKKo-LIFNR,
                      PURORG like EKKO-EKORG,
                      PLANT like EKPO-WERKS,
                      PURDOC like EKKO-BEDAT.
    SELECTION-SCREEN END OF BLOCK P.

    Hi Pavan,
    <b>I think this is what u required when u select vendor number automatically for that particular vendor u require values in the remaining 3 parameter fields.
    </b>
    REPORT zex31 .
    PARAMETERS: vendorno LIKE ekko-lifnr,
                      purorg LIKE ekko-ekorg,
                      plant LIKE ekpo-werks,
                      purdoc LIKE ekko-bedat.
    DATA: dynfields TYPE TABLE OF dynpread WITH HEADER LINE.
    DATA: return TYPE TABLE OF ddshretval WITH HEADER LINE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR vendorno.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                tabname           = 'EKKO'
                fieldname         = 'LIFNR'
                dynpprog          = sy-cprog
                dynpnr            = sy-dynnr
                dynprofield       = 'VENDORNO'
           TABLES
                return_tab        = return
           EXCEPTIONS
                field_not_found   = 1
                no_help_for_field = 2
                inconsistent_help = 3
                no_values_found   = 4
                OTHERS            = 5.
      BREAK-POINT.
      REFRESH dynfields.
      READ TABLE return WITH KEY fieldname = 'VENDORNO'.
    Add it back to the dynpro.
      dynfields-fieldname = return-retfield.
      dynfields-fieldvalue = return-fieldval.
      APPEND dynfields.
    Get the company code from db and add to dynpro
      DATA: xekko TYPE ekko,
            xekpo TYPE ekpo.
      CLEAR xekko.
      CLEAR xekpo.
      SELECT SINGLE * INTO xekko
      FROM ekko
      WHERE lifnr = return-fieldval.
      dynfields-fieldname = 'PURORG'.
      dynfields-fieldvalue = xekko-ekorg.
      APPEND dynfields.
      dynfields-fieldname = 'PURDOC'.
      dynfields-fieldvalue = xekko-bedat.
      APPEND dynfields.
      SELECT SINGLE * INTO xekpo
       FROM ekpo
       WHERE ebeln = xekko-ebeln.
      dynfields-fieldname = 'PLANT'.
      dynfields-fieldvalue = xekpo-werks.
      APPEND dynfields.
    Update the dynpro values.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
           EXPORTING
                dyname     = sy-cprog
                dynumb     = sy-dynnr
           TABLES
                dynpfields = dynfields
           EXCEPTIONS
                OTHERS     = 8.
    START-OF-SELECTION.

  • Selection screen modification based on various buttons in selection screen

    Hi,
    I have 1 query related with Selection screen modification.
    In my Report Program,I have created GUI Status for my selection screen
    Now 2 buttons in application toolbar are coming on selection sceen.
    For this i used,'At selection screen output' event.
    And there are 2 blocks on selection screen.
    If user press button1 then block2 should not display.
    and if user press button2 then block1 should not display.
    but the problem is i m not getting reqd result and also while doing debugging its not showing me sy-ucomm value.
    Any pointers on this.
    Thanks,
    Mamta

    Hi Mamta,
       have it in a group then you can write code accordingly see sample example,
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS       : p_r1 RADIOBUTTON GROUP rad
                            USER-COMMAND clk DEFAULT 'X'.            " upload Radio Button
    SELECTION-SCREEN COMMENT 5(35) text-003.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK 001 WITH FRAME TITLE text-001.
    PARAMETERS: p_upl       LIKE rlgrap-filename MODIF ID a           "Upload File
                             DEFAULT 'c:\temp\parbmat.xls',
                p_werks     like t001w-werks MODIF ID a,              "Plant
    PARAMETERS: p_rest      LIKE rlgrap-filename MODIF ID a           "Dwonload File Path
                             DEFAULT 'c:\temp\Success.xls'.
    SELECTION-SCREEN : END OF BLOCK 001.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : p_r2 RADIOBUTTON GROUP rad.
    SELECTION-SCREEN COMMENT 5(35) text-004.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK 002 WITH FRAME TITLE text-002.
    PARAMETERS     : p_plant  LIKE marc-werks MODIF ID b.                "Plant
    PARAMETERS     : p_lgort  LIKE mard-lgort MODIF ID b.                "Storage Location
    PARAMETERS     : p_vkorg  LIKE mvke-vkorg MODIF ID b.                "Sales Organization
    PARAMETERS     : p_vtweg  LIKE mvke-vtweg MODIF ID b.                "Distribution Channel
    SELECT-OPTIONS : s_mat FOR  mara-matnr MODIF ID b.                  "Material No No
    SELECT-OPTIONS : s_dat FOR  mara-ersda MODIF ID b.                  "Date on Record Created
    PARAMETERS     : p_down LIKE rlgrap-filename MODIF ID b
                      DEFAULT 'c:\temp\Material Master.xls'.           "Download File Path
    SELECTION-SCREEN : END OF BLOCK 002.
    AT SELECTION-SCREEN OUTPUT.
    *Inactive Fields depending on the radio button
      LOOP AT SCREEN.
        IF p_r1 = 'X'.
          IF screen-group1 = 'B'.
            screen-active = 0.
          ENDIF.
        ELSEIF p_r2 = 'X'.
          IF screen-group1 = 'A'.
            screen-active = 0.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Edited by: suresh suresh on Jul 28, 2009 12:42 PM
    Edited by: suresh suresh on Jul 28, 2009 12:42 PM

  • At-selection-screen modification

    Hi Experts,
    I am doing the selection screen modification. The selection screen is designed such as i have two radio buttons 1. header & 2. Item anb beside header radio button i have field sales document number and beside item radio button sales item number field.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30) text-005.
    SELECTION-SCREEN: position 32.
    parameter:p_sh type c radiobutton group rg.                "Sales header
    selection-screen: comment 35(15) for field p_sh.
    selection-screen: comment 60(20) for field p_vbeln.
    parameter:p_vbeln like vbak-vbeln MODIF ID gp5.            "Sales Document
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: position 32.
    parameter:p_si type c radiobutton group rg.                "Sales Item
    selection-screen: comment 35(15) for field p_si.
    selection-screen: comment 60(20) for field p_posnr.
    parameter:p_posnr like vbap-posnr MODIF ID gp6.            "Sales Document Item
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: skip.
    This is the selection screen  code where for sales document i have assiged Modif id GP5 for Item Modif id GP6.  so when i check radio button p_sh ( header ) then sales document ( p_vbeln) shoudl be active for input .
    if i check p_si (item) then both saleds document (p_vbeln) and p_posnr both have different group names i.e GP5 & GP6 should be active. i.e screen-inpu = 1.
    I have written the following code for header but for item i am unable to make screen-input = 1 for two different groups. how to do that?
    LOOP AT SCREEN.
        IF ( P_SH NE 'X' AND SCREEN-GROUP1 EQ 'GP5' ) OR
           ( P_SI NE 'X' AND SCREEN-GROUP1 EQ 'GP6' ).
          screen-input = 0.
          MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    This code is working when i click header radio button but for when i click item radio button (p_si) only item field is active i am unable to make sales docuemnt active at same time. please help me in this regard.
    Regards,
    sunil kairam.

    Hi,
    Check this piece of code changed a bit.
    PARAMETERS : p_ct  RADIOBUTTON GROUP grp .
    SELECT-OPTIONS : s_kunnr FOR kna1-kunnr,
    PARAMETERS : p_sh RADIOBUTTON GROUP grp.
    SELECT-OPTIONS : s_vbeln  FOR vbak-vbeln,                
    PARAMETERS : p_si  RADIOBUTTON GROUP grp.
    SELECT-OPTIONS : s_vbeln1  FOR vbak-vbeln,
                                   s_posnr   for vbak-posnr.
    IF p_ct  IS NOT INITIAL .
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'S_KUNNR-LOW'.
              screen-input = 1.
              MODIFY SCREEN.
             WHEN 'S_KUNNR-HIGH'.
              screen-input = 1.
              MODIFY SCREEN.
               WHEN 'S_VBELN-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSEIF p_sh IS NOT INITIAL.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'S_KUNNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
             WHEN 'S_KUNNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
               WHEN 'S_VBELN-LOW'.
              screen-input = 1.
              MODIFY SCREEN.
            WHEN 'S_VBELN-HIGH'.
              screen-input = 1.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
    now one more  ELSEIF p_si  IS NOT INITIAL
    now make s_vbeln1 and s_posnr as input 1 and rest others as input 0.
    endif.
    Regards,
    Nagaraj

  • Selection screen modification

    Hi Experts,
                  Kindly gothrough the below codes and when i click on rb2 radiobutton only that selection option  must appear but it is coming when i execute the program,, can any one help to resolve this issue...,
    *& Report  ZPROGRAM_KPI
    REPORT  ZPROGRAM_KPI.
    TYPE-POOLS SLIS.
    tables : pb4000.
    DATA : IT_FCAT TYPE SLIS_T_FIELDCAT_ALV,
           WA_FCAT LIKE LINE OF IT_FCAT.
    DATA : IT_FCAT1 TYPE SLIS_T_FIELDCAT_ALV,
           WA_FCAT1 LIKE LINE OF IT_FCAT1.
    data :       lv_end   TYPE  dats,
                 lv_beg   TYPE  dats,
                 v        type  i.
    data : begin of wa_pb40001,
                    pernr type pb4000-pernr,
                    SUBTY TYPE PB4000-SUBTY,
                    begda type pb4000-begda,
                    end of wa_pb40001,
                    it_pb40001 like table of wa_pb40001.
    data : begin of wa_pb40002,
                    pernr type pb4000-pernr,
                    SUBTY TYPE PB4000-SUBTY,
                    begda type pb4000-begda,
                    end of wa_pb40002,
                    it_pb40002 like table of wa_pb40002.
    selection-screen begin of block k with frame title text-001.
    parameter :  rb1 radiobutton group t, rb2 radiobutton group t.
    selection-screen end of block k.
    if rb1 = 'X'.
    CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'
      EXPORTING
        i_date_old = sy-datum
      IMPORTING
        e_date_new = lv_end.
    lv_beg = lv_end.
    lv_beg+6(2) = '01'.
    SELECT  pernr SUBTY   FROM pb4000 INTO TABLE it_pb40001 where  begda BETWEEN lv_beg AND lv_end.
    perform fcat using '1' 'PERNR' 'Personnel number' '20' 'C610'.
    perform fcat using '1' 'SUBTY' 'Sub type' '20' 'C310'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = SY-CPROG
       I_GRID_TITLE                      = 'Report for displaying personnel number in previous month'
       IT_FIELDCAT                       = IT_FCAT
      TABLES
        t_outtab                          = IT_PB40001.
    elseif rb2 = 'X'.
    select-options s_date for wa_pb40001-begda obligatory.
    SELECT  pernr SUBTY   FROM pb4000 INTO TABLE it_pb40002 where  begda in s_date.
    perform fcat1 using '1' 'PERNR' 'Personnel number' '20' 'C610'.
    perform fcat1 using '1' 'SUBTY' 'Sub type' '20' 'C310'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = SY-CPROG
       I_GRID_TITLE                      = 'Report for displaying personnel number using selection screen'
       IT_FIELDCAT                       = IT_FCAT1
      TABLES
        t_outtab                          = IT_PB40002.
    endif.
    *&      Form  FCAT
          text
         -->P_0068   text
         -->P_0069   text
         -->P_0070   text
    form FCAT  using    FP_COL_POS
                        FP_FIELDNAME
                        FP_SELTEXT_M
                        FP_OUTPUTLEN
                        FP_EMPHASIZE.
    WA_FCAT-COL_POS     = FP_COL_POS.
    WA_FCAT-FIELDNAME   = FP_FIELDNAME.
    WA_FCAT-SELTEXT_M   = FP_SELTEXT_M.
    WA_FCAT-OUTPUTLEN   = FP_OUTPUTLEN.
    WA_FCAT-EMPHASIZE   = FP_EMPHASIZE.
    APPEND WA_FCAT TO IT_FCAT.
    CLEAR WA_fCAT.
    endform.                    " FCAT
    *&      Form  FCAT
          text
         -->P_0068   text
         -->P_0069   text
         -->P_0070   text
    form FCAT1  using    FP_COL_POS
                        FP_FIELDNAME
                        FP_SELTEXT_M
                        FP_OUTPUTLEN
                        FP_EMPHASIZE.
    WA_FCAT1-COL_POS     = FP_COL_POS.
    WA_FCAT1-FIELDNAME   = FP_FIELDNAME.
    WA_FCAT1-SELTEXT_M   = FP_SELTEXT_M.
    WA_FCAT1-OUTPUTLEN   = FP_OUTPUTLEN.
    WA_FCAT1-EMPHASIZE   = FP_EMPHASIZE.
    APPEND WA_FCAT1 TO IT_FCAT1.
    CLEAR WA_fCAT1.
    endform.                    " FCAT
    Regards,
    Thiru. R

    Copy paste this code for your new requirement:
    REPORT ZTEST15.
    TYPE-POOLS SLIS.
    TABLES : PB4000.
    DATA : IT_FCAT TYPE SLIS_T_FIELDCAT_ALV,
    WA_FCAT LIKE LINE OF IT_FCAT.
    DATA : IT_FCAT1 TYPE SLIS_T_FIELDCAT_ALV,
    WA_FCAT1 LIKE LINE OF IT_FCAT1.
    DATA : LV_END TYPE DATS,
    LV_BEG TYPE DATS,
    V TYPE I.
    DATA : BEGIN OF WA_PB40001,
    PERNR TYPE PB4000-PERNR,
    SUBTY TYPE PB4000-SUBTY,
    BEGDA TYPE PB4000-BEGDA,
    END OF WA_PB40001,
    IT_PB40001 LIKE TABLE OF WA_PB40001.
    DATA : BEGIN OF WA_PB40002,
    PERNR TYPE PB4000-PERNR,
    SUBTY TYPE PB4000-SUBTY,
    BEGDA TYPE PB4000-BEGDA,
    END OF WA_PB40002,
    IT_PB40002 LIKE TABLE OF WA_PB40002.
    SELECTION-SCREEN BEGIN OF BLOCK K WITH FRAME TITLE TEXT-001.
    PARAMETER : RB1 RADIOBUTTON GROUP T DEFAULT 'X' USER-COMMAND RB,
                RB2 RADIOBUTTON GROUP T.
    SELECT-OPTIONS S_DATE FOR WA_PB40001-BEGDA MODIF ID DAT.
    SELECTION-SCREEN END OF BLOCK K.
    AT SELECTION-SCREEN OUTPUT.
      IF RB1 = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'DAT'.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN.
      IF RB1 = 'X'.
        CLEAR: S_DATE[], S_DATE.
      ENDIF.
      IF SY-UCOMM = 'ONLI'.
        IF RB1 = 'X'.
          CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'
            EXPORTING
              I_DATE_OLD = SY-DATUM
            IMPORTING
              E_DATE_NEW = LV_END.
          LV_BEG = LV_END.
          LV_BEG+6(2) = '01'.
          SELECT PERNR SUBTY FROM PB4000 INTO TABLE IT_PB40001 WHERE BEGDA BETWEEN LV_BEG AND LV_END.
          PERFORM FCAT USING '1' 'PERNR' 'Personnel number' '20' 'C610'.
          PERFORM FCAT USING '1' 'SUBTY' 'Sub type' '20' 'C310'.
          CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
            EXPORTING
              I_CALLBACK_PROGRAM = SY-CPROG
              I_GRID_TITLE       = 'Report for displaying personnel number in previous month'
              IT_FIELDCAT        = IT_FCAT
            TABLES
              T_OUTTAB           = IT_PB40001.
        ELSEIF RB2 = 'X'.
          IF S_DATE-LOW IS INITIAL.
            MESSAGE 'Enter date' TYPE 'E' DISPLAY LIKE 'S'.
          ENDIF.
          SELECT PERNR SUBTY FROM PB4000 INTO TABLE IT_PB40002 WHERE BEGDA IN S_DATE.
          PERFORM FCAT1 USING '1' 'PERNR' 'Personnel number' '20' 'C610'.
          PERFORM FCAT1 USING '1' 'SUBTY' 'Sub type' '20' 'C310'.
          CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
            EXPORTING
              I_CALLBACK_PROGRAM = SY-CPROG
              I_GRID_TITLE       = 'Report for displaying personnel number using selection screen'
              IT_FIELDCAT        = IT_FCAT1
            TABLES
              T_OUTTAB           = IT_PB40002.
        ENDIF.
      ENDIF.
    *&      Form  FCAT
          text
         -->FP_COL_POS    text
         -->FP_FIELDNAME  text
         -->FP_SELTEXT_M  text
         -->FP_OUTPUTLEN  text
         -->FP_EMPHASIZE  text
    FORM FCAT USING FP_COL_POS
    FP_FIELDNAME
    FP_SELTEXT_M
    FP_OUTPUTLEN
    FP_EMPHASIZE.
      WA_FCAT-COL_POS = FP_COL_POS.
      WA_FCAT-FIELDNAME = FP_FIELDNAME.
      WA_FCAT-SELTEXT_M = FP_SELTEXT_M.
      WA_FCAT-OUTPUTLEN = FP_OUTPUTLEN.
      WA_FCAT-EMPHASIZE = FP_EMPHASIZE.
      APPEND WA_FCAT TO IT_FCAT.
      CLEAR WA_FCAT.
    ENDFORM. " FCAT
    *&      Form  FCAT1
          text
         -->FP_COL_POS    text
         -->FP_FIELDNAME  text
         -->FP_SELTEXT_M  text
         -->FP_OUTPUTLEN  text
         -->FP_EMPHASIZE  text
    FORM FCAT1 USING FP_COL_POS
    FP_FIELDNAME
    FP_SELTEXT_M
    FP_OUTPUTLEN
    FP_EMPHASIZE.
      WA_FCAT1-COL_POS = FP_COL_POS.
      WA_FCAT1-FIELDNAME = FP_FIELDNAME.
      WA_FCAT1-SELTEXT_M = FP_SELTEXT_M.
      WA_FCAT1-OUTPUTLEN = FP_OUTPUTLEN.
      WA_FCAT1-EMPHASIZE = FP_EMPHASIZE.
      APPEND WA_FCAT1 TO IT_FCAT1.
      CLEAR WA_FCAT1.
    ENDFORM. " FCAT

  • Dynamic Selection screen modification

    Hi,
    I have two radio buttons R_A and R_B and 2 parameters P_A and P_B on selsection screen
    When i click on R_A , P_A should be visible ---> It Works
    When i click on R_B , P_B should be visible ---> It Works
    But after clicking on R_B if i click on R_A, then P_B is visble and P_A is not visible.
    How should i go abt this.???

    HI,
    Chk this:
    Selection-screen begin of block b1 WITH FRAME NO INTERVALS.
    Parameters: s1 radiobutton group g1 user-command u1 default 'X',
                p_name(10) MODIF ID M1,
                p_email(20) MODIF ID M1,
                s2 radiobutton group G1.
    Parameters: p_name1(10) MODIF ID M2,
                p_fax(10) MODIF ID M2.
    Selection-screen end of block b1 .
    AT SELECTION-SCREEN OUTPUT.
    *  IF S_BOX = 'X'.
          LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'M3'.
            SCREEN-ACTIVE = '0'.
            MODIFY SCREEN.
          ELSE.
            SCREEN-ACTIVE = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    *  ENDIF.
      IF S1 = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'M2'.
            SCREEN-ACTIVE = '0'.
            MODIFY SCREEN.
          ELSEIF SCREEN-GROUP1 = 'M1'.
            SCREEN-ACTIVE = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF S2 = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'M1'.
            SCREEN-ACTIVE = '0'.
            MODIFY SCREEN.
          ELSEIF SCREEN-GROUP1 = 'M2'.
            SCREEN-ACTIVE = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    regards,
    madhumitha

  • Doubt on selection-screen

    Hi gurus,
    I done one report to get the Purchase order details. At the time of creating purchase order the users enters a One text field in the Purchase order header text of ME21N transaction. I need to fetch that field into Report. Upto this its fine. I also done this report by using the function module "READ_TEXT". The o/p is also generated successfully.
    But now our client is asking, Please put that text field in selection-screen. Once he presses F4 in that field he needs to display all the values in text field. I know how to do if it is a table field. But it is a purchase order header text. Client enters different text when he creates diferent purchase orders.
      Based on that text field only the report o/p will needs to display.
    For example:
    The User1 creats a Purchase order using ME21N. In that he enters Purchase order header text as ABC.
        when ever he creats a purchase order he enters only ABC.In this way he creats 100 Purchase orders.
      if the user execute the report and in selection screen of that text field , suppose he gives a  ABC, only those 100 purchase orders only needs to appear.
       Like this so many users enters no.of text items. Suppose there are 100 users. totally 100 text values will be there.
        once he presses F4 help on the selecton screen all 100 values need to display. And this is dynamic, the no may increase in future also. thats totally depends on Purcase orders.
    Please guide me how to  do this. 
          Thanks in Advance...
    Thanks and Regards
    Siri........

    hi frnd,
    try like this
    write the logic to fetch text fields into some internal table in
    at selection-screen output event.
    and pass this to selection-option as f4 using ...> call function 'F4IF_INT_TABLE_VALUE_REQUEST'.
    ex
    at selection-screen output.
    use fm "READ_TEXT".  and assign all values to one internal table
    then
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'.
    hope it may help u.
    regards,
    chandu

  • Selection screen modification in case of SAP Query

    Hi All,
    I want to modify the selection screen in a standard progam.
    This program is getting generated through SAP QUERY.
    i want to modify some fields and also delete some fields in the
    selection screen. All these fields which i want to modify or delete
    are the logical database fields.So i can't do it through the t-code SQ01
    and SQ02. Also this is a program generated through the SAP QUERY,
    so i can't modify the generated code. Request if any one of you can suggest me to solve this.
    Waiting for a prompt reply!!
    Thanks,
    Rupesh

    Go to SQ02
    Select your Infoset-->Change
    On next Screen.
    Select GoTo->Code->Initialization.
    Write there code
    LOOP AT SCREEN.
      IF screen-name EQ 'SP$00004'.
           screen-required = 1.
           MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  • ABAP selection screen modification

    Hello,
    I have the following selection screen:
    PARAMETERS:
    p_kalaid LIKE kala-kalaid,
    p_kalabe LIKE kala-kalabez,
    p_kalada LIKE kala-kaladat,
    p_klvaf  LIKE kalv-klvar,
    p_tvers  LIKE kala-tvers,
    p_kokrs  LIKE kala-kokrs,
    p_bukrs  LIKE kala-bukrs,              
    p_group  LIKE kala-rfc_group.  
    When I choose F4 on <b>p_kalaid</b> and then select one value proposed, it fills <b>p_kalaid</b> (as expected), but it fills <b>p_kalada</b> automatically as well! 
    My goal is to have all parameters fill in automatically with data from tables <b>KALA</b> and <b>KALV</b> based on my key selection (<b>p_kalaid</b>)... how can i do this?
    Thanks,
    Tim

    Hy!
    I don´t know if there is an easier way,
    but I would try it to program the F4 Matchcode selection in the event AT SELECTION-SCREEN. by my own!
    After that you could read the other information with the result from the selcection and fill the other parameters.
    There is a function where you can program your own selection but I forgot the name! (Something with MATCHCODE  and F4 in it!) Sorry...
    Jesus loves you!
    Manuel

  • PNP Selection Screen Modification

    Hi All,
    Can anyone tell how to remove the payroll period section completely from the pnp selection screen. I tried all the means going to HR Report Category, I couldnt find the perfect category to hide the payroll period selection. It neither allow me to create a new one for my program. Please help me out as soon as possible with steps/navigation whichever possible..
    Thanks in advance,
    Charan

    you can create your own selection screen by going to Attributes -> HR Report Category -> New Report Category(button on the bottom of popup screen).
    here, you can select/deselect selection criteria.
    it looks like you were in the correct place - why didn't it let you create a new report category?
    if helpful, please don't forget to reward points.
    thanks,
    robert.

  • Sap query report-selection screen modification

    Hi
    I  have created a SAP query report using the logical database KDF ,the selection screen was created automatically.For vendor report open item and Cleared item Push button would be there in FBL1N but here it only displays Open key date,clearing dates.The open key date is mandatory to give though i give clearing dates as i need vendor cleared items.
    Is ther way to change the selection screen to get the option open item and cleared item push button as in FBL1N.
    This is because i was filtering a vendor only for particular doc type only for clearing items but report takes open item too though i meantioned clearing date rate.How to modify the selection screen in sap query report when Logicaldatabase is selcted.

    I need to get only the cleared items.I donot need open items.Then if go for BSIK is it wrong.Should go only for BSAK.
    I couldnt find the table BSAK in logical database KDF.
    Edited by: mysap query on Mar 18, 2009 3:15 PM
    Edited by: mysap query on Mar 18, 2009 3:15 PM

  • Doubt with selection screen

    Hi all!
    I have to show the inspection lot details (QA32) as per the requirements given in the selection screen.
    In my selection screen , I should have select option for Inspection lot created date(QALS-ENSTEHDAT) and lot created time (QALS-ENTSTEZEIT). I would like to know the lots created from yesterday evening till today morning.
    When I give the values 09.02.2008 to 10.02.2008 for date and 17:30:00 to 10:00:00 for time , it'll obviously intimate that 'From- time is greater than To- time'.Is there any way to relate the From-date to From-time and To-date to To-time in the selection screen , so that my problem will be solved.Please help with possible code.
    Edited by: Jayasri P. on Feb 9, 2008 5:55 AM

    Hi,
    try this.........
    TABLES qals.
    DATA it_qals TYPE TABLE OF qals WITH HEADER LINE.
    SELECT-OPTIONS   s_date  FOR  qals-enstehdat  NO-EXTENSION.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN comment (10)   for field  p_timel.
    SELECTION-SCREEN POSITION 35.
    PARAMETERS       p_timel LIKE qals-entstezeit.
    SELECTION-SCREEN comment 54(2)  for field  p_timeh.
    SELECTION-SCREEN POSITION 60.
    PARAMETERS       p_timeh LIKE qals-entstezeit.
    SELECTION-SCREEN END   OF LINE.
    SELECT *
    FROM   qals
    INTO   TABLE it_qals
    WHERE  enstehdat IN s_date.
    IF sy-subrc IS INITIAL.
      SORT it_qals BY enstehdat entstezeit.
      LOOP AT it_qals WHERE enstehdat EQ s_date-low
                      OR    enstehdat EQ s_date-high.
        CASE it_qals-enstehdat.
          WHEN s_date-low.
            IF it_qals-entstezeit LT p_timel.
              DELETE it_qals.
            ENDIF.
          WHEN s_date-high.
            IF it_qals-entstezeit GT p_timeh.
              DELETE it_qals.
            ENDIF.
        ENDCASE.
      ENDLOOP.
    ENDIF.
    LOOP AT it_qals.
      WRITE : / it_qals-enstehdat ,it_qals-entstezeit.
    ENDLOOP.
    also goto selection text and give descriptionas below..
    P_TIMEH     to
    P_TIMEL     Time
    S_DATE     Date
    Cheers,
    jose.

  • Doubt in Selection-Screen for Program type "Function Group"

    Hi Gurus,
    I created a Function group in that i created one screen and writtem the Screen flow logic. In that screen I called a Function module "COMPLEX_SELECTIONS_DIALOG" For Creating a selection-Screen.
    The code snippet is like below.
    CASE ok_code .
        WHEN c_clk1.
          CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
         EXPORTING
           title                   = text-002
           text                    = 'Material Number'
           signed                  = 'X'
            lower_case              = ' '
            no_interval_check       = ' '
             just_display            = ' '          " Un commented by Srihari
             just_incl               = 'X'          " Un commented by Srihari
            excluded_options        =
            description             =
            help_field              =
            search_help             =
           tab_and_field           = st_tab
          TABLES
            range                   = r_matnr
         EXCEPTIONS
           no_range_tab            = 1
           cancelled               = 2
           internal_error          = 3
           invalid_fieldname       = 4
           OTHERS                  = 5.
    it works fine. But the problem is if i click the multiple selection button for the select-option in selection screen and enter the values and copy those value. In the multiple selection button green button is not coming like noram report selection-screen. Please remember I used the program type as "Function Group" not "Module Pool".
    Please send your suggestions.
    Thanks,
    Srihari.

    Ok, I am not 100% sure, if I understand you correctly, you said, you created one screen to 'simulate' a standard selection screen behavior without using select-options statement?
    If that's not correct, could you please post a few more details on what exactly you are doing.
    I had to 'simulate' a select-option behavior which I did as follows:
    - I created a range variable to store the values (s_ctby)
    - on the screen I defined the LOW (s_ctby-low), HIGH (s_ctby-high) and the multiple selection field pushbutton
    - In the PBO I set the icons for the multiple selection pushbutton
      READ TABLE s_ctby INDEX 2 TRANSPORTING NO FIELDS.
      IF sy-subrc NE 0.
        gv_createby = gc_icon_enter_data.
      ELSE.
        gv_createby = gc_icon_disp_data.
      ENDIF.
    - In the PBO make sure that any values entered on the screen are transferred to the range
    * transfer any changed values into the correct range for user transaction
    * (screen 0110) because that screen just 'simulates' a selection screen
    * so we have to make sure that any data the user enters in the selection
    * fields is passed into the appropriate ranges
      IF sy-tcode EQ gc_trans_user.
    *   created by
        IF NOT s_ctby-high IS INITIAL.
          s_ctby-sign   = c_i.
          s_ctby-option = c_bt.
          IF s_ctby[] IS INITIAL.
            INSERT s_ctby INDEX 1.
          ELSE.
            MODIFY s_ctby INDEX 1.
          ENDIF.
        ELSEIF NOT s_ctby-low  IS INITIAL AND
                   s_ctby-high IS INITIAL.
          s_ctby-sign   = c_i.
          s_ctby-option = c_eq.
          IF s_ctby[] IS INITIAL.
            INSERT s_ctby INDEX 1.
          ELSE.
            MODIFY s_ctby INDEX 1.
          ENDIF.
        ELSEIF s_ctby-low  IS INITIAL AND
               s_ctby-high IS INITIAL.
          DELETE s_ctby INDEX 1.
        ENDIF.
    - If the user hits the multiple selection pushbutton
        WHEN gc_fc_create_by.
    *     if the user hits the multiple selection button on the screen
    *     we call the standard SAP functionality to show the multiple
    *     selection popup SAP uses on a standard selection screen
          CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
            EXPORTING
              title             = text-t02
            TABLES
              range             = s_ctby
            EXCEPTIONS
              no_range_tab      = 1
              cancelled         = 2
              internal_error    = 3
              invalid_fieldname = 4
              OTHERS            = 5.
          IF sy-subrc NE 0 AND NOT sy-msgty IS INITIAL.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    *     now update the header line so the screen fields display the correct values
          CLEAR s_ctby.
          READ TABLE s_ctby INDEX 1.
    Hope that helps,
    Michael

  • I have doubt in Selection Screen

    Hi all.
    I was created Dialogue screen as  a initial screen 9000. after that i changed 1000 as initial screen (Selection screen),Moved 9000 as second screen,i have some application tool bar in selection screen 1000.it is displaying when iam execute my program without transaction code.but it does not display when i execute programe by Transaction code,i was given  screen no 1000 for t-code.
    Regards,
    Jay

    Hi Jay,
    Although i am not fully clear of the situation..please try the following suggestions that may prove useful..
    1) for dummy sake try creating a new Tcode with dialog (option 1) again and see it you can achieve the desired output by running it...if not you can delete the new tcode you have created
    Reason : Creating a fresh Tcode may put an end to your problem because i guess that you may have created the tcode first and reassigned the screens later......
    2)  try the "set PF status"  code written in the module...if possible debugg in the Tcode and direct execute version marking the "Set PF status" as break point..
    I am sure you can come up with something there...
    ReAson : Last resort of any ABAPer is the debugger...
    Regards
    BX
    "Happy New Year"

  • RFDOPR10 selection screen modifications

    Hi,
    I am attempting to modify the transaction S_ALR_87012178.  I have copied RFDOPR10 into ZRFDOPR10. 
    I need to modify the selection screen.  The problem I am encountering is that there are only some selection-screen elements in the report.  Where are the other ones coming from? IE. Customer selection through Line item selection. 
    The only elements that I can find in the report are Output Control and Further selections.

    Option 1:
    On the program attributes screen where the link to the logical database is, there is a field "Selection Screen" which for some logical databases gives you a choice of what selection screen the LDB will provide, perhaps even a blank one.
    Option 2:
    In some cases where a selection screen is set up by a logical database, there are options available in customizing through SPRO to control the layout of that selection screen.
    The one I am familiar with is logical database PNP for HR where the resulting selection screen can be changed significantly in HR customising.
    It may be that there are some similar options for the DDR selection screen - I suggest you check the relevant area of the IMG (SPRO), particularly any "Information System" customizing options.
    hope this is of some assistance.
    Andrew

Maybe you are looking for

  • Working offline with data from Access 2010 web database

    Hello all, I have an Access 2010 web database that I have published to a SharePoint site. Users currently work with the data via one of several Access 2010 front end applications that simply have linked tables and client queires, forms and reports. O

  • Password input and save WiFi Settings

    Hi @all, I've got 2 Q's: #1: Is there another way to enter the WiFi password, other than with the remote? My WiFi pwd is 64 characters long including special chars. Hence, entering this pwd with the remote is a bit cumbersome. #2: how do I save diffe

  • LRT 214 Issue connecting to windstream network running thru adtran switch to cisco modem

    Well this one has been perplexing and I am not sure where my problem might be.  Currently the site has a static IP coming in on a T1 that is running data and voip.  The cisco modem is in bridge mode and it connects to an adtran switch then it connect

  • WD Passport 1TB unmounts itself all the time

    I get this once so often: "The disk was not ejected properly. If possible, always eject a disk before unplugging it or turning it off." I have done the following (to debug/fix) and it stills ejects itself. - Upgraded OSX to latest version - Upgraded

  • Change modules pop up window

    How do I remove pop up window 'An error occurred while attempting to change modules' every time I try to load Lightroom 5?