SQ01 -  Include a check box on ABAP query Selection screen

Hi Experts,
For my Abap Query, on the selection screen i am planning to include a check box such that if i click on the check box then a field will be displayed in the resulting output . On the other hand if i do not check on i should not be able the field in the output.
Please tell me how do i do this.
Thanks
Venkata Pradeep.

In infoset, Extras code tab
Code section: At selection-screen output
Do something like below:
  IF radiobutton1 = 'X'.    
     LOOP AT SCREEN.      
          IF screen-group1 = 'XXXX'.         "XXX is the filed group name you want to hide., you have to                                                                  find out what is it.
               screen-input = '1'.        
               screen-invisible = '0'.        
               MODIFY SCREEN.      
          ENDIF.    
     ENDLOOP.  
ELSE.   
     LOOP AT SCREEN.     
          IF screen-group1 = 'XXX'.        
               screen-input = '0'.       
               screen-invisible = '1'.       
               MODIFY SCREEN.     
          ENDIF.   
     ENDLOOP. 
ENDIF.

Similar Messages

  • Check box in SAP Query selection screen

    I want to keep 2 check box in SAP Query selection screen.
    could you please tell me any one.
    regards,
    kumar

    Hi Vijay,
    If these check boxes are the fields in the table you are using then you can do it in SQ01, otherwise you may required to make the changes in the standard code generated for that query.
    You can find the name of the generated program of the query when you execute the query.
    Reward points if useful.
    Regards,
    Atish

  • Addition of checkbox and 2 fields in ABap query selection screen

    Hi
    I need to add chack boxes and 2 fields in ABAP query which is using LDB QMI. can u pls let me know how to do that.

    Hi Tarun,
    I am still not clear with the problem..I guess you require plant in your selection screen which you have.
    i guess if you go to sq01tcode there is a option infoset query from where you can give your selection options and value.
    have you selected all the fields in infoset and made a selection screen?
    When you have done with your infoset you just need to diplay the fields and there is a automatic program generated.
    Let me know...
    Regards,
    Nihkil.

  • Validate plants selected in Abap Query selection screen

    Hi Everyone,
    I have a requirement wherein i have to validate 'authority check' for the plants populated in the selection screen in an already created abap query.
    I tried adding code in the code section. But i dont know how to use the select-option parameter. It already exists(VBAP-WERKS) in the table which is used for join, so i cannot add it in the additional fields. Am i correct ?
    Also, i saw that the report program for this query uses this parameter sa SP$00008. I tried using it but it gives an error The IN operator with "SP$00008" is followed neither by an internal table nor by a value list.
    Please help.
    Also, please advice whether this requirement can be catered in this query alone? or should i go with writing a new report program for this? ( i personally feel that this would beat the purpose of using Abap Query. )
    Regards,
    Tarun

    Hi Tarun,
    I am still not clear with the problem..I guess you require plant in your selection screen which you have.
    i guess if you go to sq01tcode there is a option infoset query from where you can give your selection options and value.
    have you selected all the fields in infoset and made a selection screen?
    When you have done with your infoset you just need to diplay the fields and there is a automatic program generated.
    Let me know...
    Regards,
    Nihkil.

  • Checkbox in the ABAP query selection screen

    Hi experts,
    The reqiurement is to add checkbox(parameter name: EX_ZE_ST) to the selection screen of the query and if its checked then the records with the quantity = 0, should not be displayed in the output.
    I added a check box and now my issue is, how to suppress displaying the record having quantity = 0.
    that quantity field is a custom added field and in sq02 i selected that quantity( Z_HANDQTY) field and gone into the code for the same and wrote below code...
    the total generated table view for this query is : marav
    if EX_ZE_ST = 'X' and Z_HANDQTY = 0.
    break-point.
    clear: marav, Z_MATDESC, Z_MATGRPDESC, Z_TAXIND,
            Z_TAXTYPE, MARD, MARD-LGPBE, Z_PREVMATNR,
            Z_CSTTOTAL, Z_CSTUNIT, Z_VSTOCK.
            FREE MEMORY ID 'AQLISTDATA'.
    endif.
    But still i could see a blank line in the output if that record has quantity( Z_HANDQTY) = 0.
    Thanks in advance...
    Karthik

    hi,
    Try this wa y...
    if EX_ZE_ST = 'X' and Z_HANDQTY = 0.
    break-point.
    clear: marav, Z_MATDESC, Z_MATGRPDESC, Z_TAXIND,
    Z_TAXTYPE, MARD, MARD-LGPBE, Z_PREVMATNR,
    Z_CSTTOTAL, Z_CSTUNIT, Z_VSTOCK.
    FREE MEMORY ID 'AQLISTDATA'.
    Continue.
    endif.

  • ABAP Query Selection screen

    Hi,
    I have an existing ABAP Query, my req is to add new Radio buttions block after the current seelction paramertes.
    i created radiobuttons in SQ02 infoset query with radiobuttons but when i run the report, selections screen has radio buttons first and then  previous selection criteria fields displaying...
    my req is first previous selection fields then radio buttons.
    how to change the sequence of the fields in selection screen?
    and based on the radio buttons, i need to filter the output data...
    in which event i have to write the code?
    Thanks
    Giri

    Sudheer,
    it is ABAP Query report... from SQ02... i cant modify those in SE38...
    current selection parameters are from table fields selected in SQ01 Query.... and radio buttons are in SQ02 Infoset.
    Giri

  • ABAP Query - Selection Screen Values Usage

    Hi,
       I have created an ABAP Query. For one of the selection-screen fields (CAUFV-FTRMI)
    which is select-options, I want to use the values during coding (in the where clause of a select query)
    in Extras section under the event "record processing". Please suggest how to make the the selection-screen values
    available during record processing event. Thanks in advance.
    Regards,
    Tejas Savla

    Hi Kartik,
                  I need to fetch data from some table KEKO depending on the values entered on the selection-screen for the field CAUFV-FTRMI. So, I need to find a way by which the selection-screen input values are available in the record processing event. The values are available in some variable SP$00002 of the automatically generated report program. But, this variable cannot be used in the Coding section of the ABAP QUERY. Please advise.
    Thanks & Regards,
    Tejas Savla

  • ABAP Query Selection screen parameters

    I need to add an additional selection screen parameter  in existing ABAP Query. How to modify the selection screen fields in existing ABAP query ? Kindly help me.

    Hi,
    GO to info set transaction SQ02
    Give the infoset
    Press change
    Press the selections button..Shift F7
    In the right hand side you will get a table control to enter the selection screen parameters..
    Press create button on top of the table control to create new parameters
    Thanks,
    Naren

  • ABAP Query Selection Screen Comment

    Hi,
      I want to display some text (just text) on Selection Screen of an abap query. If this was a regular abap program I could have simply used "SELECTION-SCREEN COMMENT... " and that would have been enough. But since I dont seem to have access to Initialize event I cant use this option.
    1.  Is there some way I can write code which will be executed in the initialize event of the abap query
    2. Is there some other way for us to just display comment (without any selection field) on the selection screen of abap query.

    Hi Saquib,
    Is the navigation correct ? I dont see any onfoset anywhere on se38 editor. Can you eloborate please.
    Thanks and Regards,
    Ben.
    Message was edited by: Daniel Ben

  • How can I Maximize a Windows and include a check box into my jtable

    Hi there,
    I have made a program to show a JTABLE it is working well, I'm talking about show information(DATA), my question is related with MAXIMIZE my jframe or window, how can I do that???
    other question is related with include or add a new column to my jtable, the goal here is achive include a check box column to select a recorde from my jtable..
    Some advise...
    here is part of my code
    public static void main(String args[]) throws SQLException {
    JFrame myFrame = new JFrame("Scan cut ");
    Container content = myFrame.getContentPane();
    content.setBackground(Color.white);
    content.setLayout(new FlowLayout());
    SendNotifyB = new JButton("Send Notify");
    content.add(SendNotifyB);
    //content.add(new JButton("Send Notify"));
    //content.add(new JButton("Add O-S-T"));
    SendNotifyB .addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JOptionPane.showInputDialog("Type Odds");
    JOptionPane.showInputDialog("Type Seconds");
    myFrame.getContentPane().add(new AS3());
    myFrame.setVisible(true);
    myFrame.pack();

    public class MyTableRenderer extends javax.swing.JCheckBox
      implements javax.swing.table.TableCellRendererand
    myTable.getColumnModel().getColumn(some value).setCellRenderer(new MyTableRenderer());I'll leave the maximizing and other code up to you as an exercise.
    Message was edited by:
    filestream

  • Putting a check box above column for selection in WD ALV

    Hi,
    Can anyone provide me a code snippet and help me how I can
    provide a check box above column for selection in WD ALV.
    Best Regards
    Sid

    Hi Sid,
    As far as I know we cannot put checkboxes directly above the Column headers.
    You can achieve this functionality in a round above method
    You can create a group of checkboxes above your ALV table with names of  columns to be selected beside each check box and proceed with your further processing.
    Also If you are just looking at which columns you need to select to be shown on the
    ALV output
    data: lr_standard_functions type ref to if_salv_wd_std_functions.
    lr_standard_functions ?= wd_this->r_table.
    lr_standard_functions->set_column_selection_allowed( ' ' ).
    Hope this is of some help.
    Regards,
    Ismail.
    Edited by: Ismail Basha on Jan 23, 2008 1:47 PM
    Edited by: Ismail Basha on Jan 24, 2008 3:23 AM

  • Query Selection Screen does not appear in Web Analyzer

    Hi Experts,
    Query Selection Screen appears when we open the query in Bex Analayzer in production system. But when we open the query in ABAP or JAVA Web view, the selection screen does not appears.
    As the volume of data in the cube is very high, and since the selection screen is not appearing, the query extracts 1.5Mrecords and results in dump.
    Kindly let me know the possibility for selection screen not appearing.
    Note: The selection screen appear in Development system in Bex Analyzer, ABAP View and Java View
    Regards
    Suresh Kumar

    Dear Suresh,
    You can check if the parameter &VARIABLE_SCREEN=X is added to standard template or not, If not add this,
    In order to add this parameter in the webtemplate you have to change 0ANALYSIS_PATTERN and save it as ZANALYSIS_PATTERN and enter this standard web template under TCODE RSCUSTV27.
    Also I would like to explain you the behavior of Web Analyzer,
    Parameter VARIABLE_SCREEN=X only influences the WEB application at startup. This will not come into affect
    when you use the 'New Analysis' button. The 'New Analysis' button resets the dataprovider so this would not
    affect the variable screen and would not redisplay the variable screen as you require.
    Regards,
    Arvind

  • BEx query selection screen takes long time to popup

    Hi,
    I have a query which is taking long time to popup the selection screen. I have tried in RSRT the generate report option, the generating report takes 45 to 60 mins. After the report is generated the query selection screen comes up in couple of seconds. The first time I run the query everything its fine but then for the second time the problem comes back again.
    The selection screen takes +/- 40 mins to comes up in RSRT and in the portal it times out.
    I have run the statistics of the query and according to the statistics report the query takes a  lot of time for the following component :
    OLAP: Query Gen.     2681,312682
    I have removed the query from the cache monitor and after that regenerate the report. But these steps didnu2019t solve my problem.
    I made two test queries, in one query I have made the CKFu2019s and RKFu2019s directly at the infoprovider, and dragged and dropped in the KF structure. In the other query I made the CKFu2019s and RKFu2019s in the query KF structure itself. The query where I have the CKFu2019s and RKFu2019s at the infoprovider that query times out, the other query where I put the CKFu2019s and RKFu2019s in the query KF structure doesn't has this performance problem.
    What I donu2019t know is why the query is failing when I use RKFu2019s and CKFu2019s from the infoprovider, the other query donu2019t have this problem.
    Please advise how to proceed.
    Thanks in advance,
    Arash

    Hi,
    Please check the following notes which should be useful.
    1387593 - Performance optimization for query change/generation
    1416737 - Performance optimization for query change/generation(2)
    1396485 - Performance optimization for query check/save
    Then please execute the SE38 report ANALYZE_RSZ_TABLES (see notes
    1472915, 1506560) and repair/correct the different tables to optmize
    the query definition tables.
    Regards,
    Amit

  • F4 search-help in infoset query selection-screen fields

    Hi all,
    I created an infoset, and it's corresponding query, and now I need to associate F4 search-help in two of the selection-screen fields. Since they don't have any reference field associated (they are SAP standard table fields), there are no possible values available to select.
    How can I do this?
    I have already tried to use the "AT SELECTION-SCREEN OUTPUT" in the infoset, but I'm not able to do that. When I try to use the select-options generated by the query (SP$00013 and SP$00014) I have a syntax error with "Field not known".
    Can you help me? I never done this before, so I really don't have a guess.
    Thanks in advance.
    Beste regards,
    Sónia Gonçalves

    Hi all,
    I have found thread  that helped me a lot in this issue.
    I just have one more doubt: I created the selection criterion and I can already see it in the query selection-screen, but it's appearing in the top of the selection-screen, in a different area called "General data selections".
    Isn't it possible to include it in the "Report-specific selctions"?
    Thanks in advance.
    Best regards,
    Sónia Gonçalves

  • Query Selection screen field validatoin

    I am testing a query using the RSRT2 transaction and have a query selection screen whose fields i want to create custom validations for. ( which should trigger when check or execute is pressed )
    How can this be achieved ?
    I tried looking for exits but did not find a relevant one.
    Thanks in advance.

    Hello,
    You need to write a routine in SMOD for selection screen validations.
    It will come in i_step = 3. please refer foll code as example:
    The code example is to check whether date is less than or equal to current date. If user enters future date it pop ups saying enter date less than or equal to current date.
    DATA:  LI_VAR like rrrangeexit,
           wa_t_var_range like LI_VAR,
           count type i value 0.
    IF i_s_rkb1d-infocube EQ 'CUBE1' or
       i_s_rkb1d-infocube EQ 'CUBE2'.
    Check whether only one of date variable is entered in variable screen.
    IF I_STEP = 3.
        Read table i_t_var_range into wa_t_var_range with key vnam = 'VARDATE'.
          if wa_t_var_range-low > sy-datum.
            CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
              EXPORTING
                I_CLASS  = 'RSBBS'
                I_TYPE   = 'E'
                I_NUMBER = '000'
                I_MSGV1  = 'Enter date less than or equal to current date'.
            raise again.
          endif.
    ENDIF.
    ENDIF.
    Regards,
    Shashank

Maybe you are looking for

  • Deleted the seeded vo using jdr utils

    hi all, I was getting recursive substitution error when i substituted a vo.. by mistake i deleted the original vo.. i do not know how to revert... kindly help in this issue... thanks..

  • Installing and setting up Real Application Cluster

    We installed Oracle 9i R2 and then inserted the CD of RAC. The CD did not open any front-end for installing and configuring RAC. Please let me know how to start the setup and configure RAC on Windows XP.

  • Compatibilité mac/pc

    Bonjour, J'ai un macbook pro depuis peu et j'ai du mal à trouver un format d'enregistrement pour les fichiers afin qu'ils soient compatibles avec les Pc. J'utilise LibreOffice et j'ai essayé odf, odt cela ne marche pas les personnes (plusieurs person

  • Boot Camp one more partation in windows 7 Professional 64 bit

    I installed Marwicks and through Boot Camp Windows 7 Professional 64 bit and After installing windows 7 professional 64 bit I want to create another partation in windows but when i am creating another partation through windows disk management I am ab

  • SAP XI STANDARD CONTENT

    Hi gurus, Any expanation on this? Regards Sreeni