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.

Similar Messages

  • 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

  • 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

  • Selection Based on Radio buttons in SAP Query

    Hi All,
    I am new to SAP Query.
    I have added the radio buttons on the selection screen of my SAP query screen.
    Can anyone please tell me how to make the field selection in query based on the status of these radio buttons.
    Thanks And Regards,
    Rupesh

    HI
    you have to do this using modif id. here is a sample program to do this
    PARAMETERS show_all radiobutton  group g1 USER-COMMAND flag.
    PARAMETERS no_show radiobutton  group g1 default 'X'.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p1(10) TYPE c,
                p2(10) TYPE c,
                p3(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    PARAMETERS: p4(10) TYPE c modif id bl2,
                p5(10) TYPE c modif id bl2,
                p6(10) TYPE c MODIF ID bl2.
      SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF show_all <> 'X' AND
           screen-group1 = 'BL2'.
           screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
    endloop.
    reward if helpful
    Message was edited by: Harikishore Sreenivasulu

  • Workbook selection screen shown diffent value than its query selection scre

    My work book contents only one query.
    But the selection screen of work book gives me pop-up as 45.2008 for calweek as default value while my query was showing me 04.2009 is value of my current calendar week.
    Regards,
    Krunal

    Krunal,
    When you say pop - up, do you mean the variables screen?
    Are you saying that the variable has a default value of 45.2008?  Is it a Customer Exit / SAP Exit variable or an input variable?
    Regards
    Gill

  • Selection screen validation in HR ad hoc query

    Hi Experts,
    I have created a query in SQ01. My infoset is created using Logical database PNPCE. Selection criteria contains Fields  Personnel Number and Employment status. so when the query will be run, I want to display error message if invalid personnel number or Employment status is entered. Please let me know, How do I achieve it.
    Thanks in advane.
    Regards.

    Hi
    After declaring selection screen fields.
    select the field to handle validation and click on the button 'Check coding for
    Element' .
    you will get a block to handle the validation.

  • 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

  • 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

  • Selection Screen pop up issue - with jump query RRI

    Hi Experts,
    I am facing one issue regarding Jump Query(RRI) functionality.
    I have one query and also one drill down query.
    I need to jump from the first query to the drill down query.
    To achieve this , I have added the first query as sender in RSBBS T-Code and added the drill down query as Receiver.
    I have also done the variable assignment from the Assignment Details tab.
    Now the Jump functionality is working.
    But , whenever I am jumping to the receiver query , The selection screen pop up is appearing.
    I don't want this selection screen to appear during jump.
    Please help me in this regard.
    Thanks,
    Biswarup

    Hi ,
    For testing purpose , I have used a single query as sender as well as receiver query.
    So , the characteristics set is same.
    The query is a simple query, with only one input variable.
    and I have assigned it, from variable assignment.
    But still the selection screen pop up is coming , when trying to jump.
    Please suggest.
    Regards,
    Biswarup

  • 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.

  • How to can we do selection-screen modification for LDB?

    Hi All,
    I have custom field in my selection-screen of LDB PNP.
    Can you people please let me know how can I put the selection-screen modificaiton For ex:
    i have created
    parameters a as checbox.
    select-options: p_btrtl for p0001-btrtl no-intervals.
    now If the check box is selected then p_btrtl we can enter values or esle If check box is not selected then p_btrtl will be grayed out, ( I.e. SCREEN-INPUT = 0)
    This is simple from ABAP without LDB. But with LDB can we achieve?????????????
    Satish
    Edited by: Satish Vasireddy on Jun 23, 2010 4:05 PM

    you can use the following logic for the additional selection validation. I have done by using PNP LDB. Ex : I have done for one of the field in IT0377.
    SELECT-OPTIONS: s_bplan FOR p0377-bplan.
    *&      Form  check_selection_0377
      This subroutine is used to check the selection screen
    FORM check_selection_0377.
      LOOP AT p0377 WHERE pltyp  IN s_bplan
                     AND levl1 IN s_lti
                     AND   begda LE pn-endda
                     AND   endda GE pn-begda.
        CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY'
          EXPORTING
            tclas            = 'A'
            pernr            = pernr-pernr
            infty            = p0377-infty
            subty            = p0377-subty
            begda            = pn-begda
            endda            = pn-endda
            level            = 'R'
          EXCEPTIONS
            no_authorization = 1
            internal_error   = 2
            OTHERS           = 3.
        IF NOT sy-subrc IS INITIAL.
          DELETE p0377.
        ENDIF.
      ENDLOOP.
    selection not found and no value selected
      IF sy-subrc NE 0.
        READ TABLE s_bplan.
        IF sy-subrc EQ 0.
          REJECT.
        ENDIF.
        READ TABLE s_lti.
        IF sy-subrc EQ 0.
          REJECT.
        ENDIF.
      ENDIF.
    ENDFORM.                    " check_selection_0377
    Regards,
    Preetham

  • At Selection Screen modification for a paramter

    hi
    two questions
    I am trying to make a parameter field have a default value with un-editable mode...
    So I did it this way
    *& Report  Z_506757_TEST3                                              *
    REPORT  Z_506757_TEST3                          .
    TYPES: STR(20).
    TABLES: VBRP.
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS: FNAME TYPE STR,
                LNAME TYPE STR,
                FINAL TYPE STR DEFAULT '200'.
    SELECTION-SCREEN END OF BLOCK B1.
    *INITIALIZATION.
    final = '200'.
    APPEND final.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-NAME = 'FINAL'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
        PERFORM MERGE.
      ENDLOOP.
    *&      Form  merge
          text
    FORM MERGE.
      CONCATENATE FNAME LNAME INTO FINAL.
    ENDFORM.                    "merge
    I dont get the default value as 200.. if the screen-input = 0... so how should handle this problem
    Another problem is if i fill the FNAME AND LNAME fields, WITHOUT PRESSING THE EXECUTE BUTTON i should get the value filled in the FINAL field
    Can this be handled in the At-SELECTIOn Screen output
    Is this possible

    I tried this code in my system and it works as expected. The field FINAL is not input enabled and is defauled to 200.
    REPORT zkartest.
    TYPES: str(20).
    PARAMETERS: fname TYPE str,
                lname TYPE str,
                final TYPE str DEFAULT '200'.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'FINAL'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

Maybe you are looking for