Default Selection Option on LDB based Query

I have written an InfoSet and Query over logical database KDF.  One selection option from the logical database is the clearing date (KD_AUGDT).  I want to select only items that are still open (not cleared) so, manually, I set the selection option to single value [EQ], and no date.
I want to set this default value within the InfoSet with a coding element so that any query using this InfoSet defaults with the value EQ set.
Thanks for your help.
Sergio

Thanks for your reply, Waseem
This is not an ideal solution for my needs, unfortunately.  The selection option I need to set here is that the value is equal to 'blank'.  I want to only show open items and via this LDB I can only do so this way.  Also, as a control on performance, I wanted to delegate this InfoSet to open items only so I would prefer to restrict from within the InfoSet.
Sergio

Similar Messages

  • Hiding of Select Options in screen based on selection in selection list box

    Hi People,
             I have a screen where i have put a selection list box, it is pre-filled with values, Now based on the value which user selects, I want to show/hide some select-options fields. I have declared the select options in the top include of my program,
    SELECT-OPTIONS: so_user FOR ls_rsp_user-user_id MODIF ID 222,
                    so_userg FOR ls_rsp_usergrp-user_grp_id MODIF ID 333,
                    so_ccode FOR ls_vdmp-bukrs MODIF ID 444,
    then in the PBO of my screen, I have written a module, set screen in which I loop over screen & check the group id's
    LOOP AT SCREEN.
        IF screen-group1 = '111'.
          IF gv_hier_resp_fields_flag IS NOT INITIAL.
            screen-active = 1.
          ELSE.
            screen-active = 0.
          ENDIF.
        ELSEIF screen-group1 = '222'.
          IF gv_user_fields_flag IS NOT INITIAL.
            screen-active = 1.
          ELSE.
            screen-active = 0.
          ENDIF.
        ELSEIF screen-group1 = '333'.
          IF gv_user_group_fields_flag IS NOT INITIAL.
            screen-active = 1.
          ELSE.
            screen-active = 0.
        ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    I am setting some flags based on the value which user selects in the selection list box, When I debugged I found that the flags were being set correctly, but the screen group value never set to '222' or '333', these are id's i have used for select options. Hence I am unable to hide/show the select options fields.  Kindly suggest some solutions for this.
    Thanks & Regards,
    Deepak

    then in the PBO of my screen
    Your SELECT-OPTIONS are defined in a SELECTION-SCREEN so the PBO actions must be maintained in a AT SELECTION-SCREEN OUTPUT block.
    I suppose the selection-screen is a subscreen, if you dont want to get unwanted interactions with a main selection-screen of the report, check sy-dynnr
    AT SELECTION-SCREEN OUTPUT.
       CASE sy-dynnr.
         WHEN '1000'. " main screen of report
         WHEN '0100'. " selection-screen defined as subscreen
           LOOP AT SCREEN.
             CASE SCREEN-GROUP1.
               WHEN '111'.
             ENDCASE.
           ENDLOOP.
       ENDCASE.
    Regards,
    Raymond

  • Default Select Option

    Hi All,
    I want to default a Select-option with a value.
    How to do it.
    Regards,
    Sandy

    Hi,
    <b>Use RANGE table for the Default values rather than Select Option.</b>
    <b>
    RANGES Tables</b>
    You can use the RANGES statement to create internal tables of the same type as selection tables.
    RANGES <rangetab> FOR <f>.
    This statement is simply a shortened form of the following statements:
    DATA: BEGIN OF <rangetab> OCCURS 0,
             SIGN(1),
             OPTION(2)
             LOW  LIKE <f>,
             HIGH LIKE <f>,
          END OF <rangetab>.
    Internal tables created with RANGES have the same structure as selection tables, but they do not have the same functionality.
    Regards,
    Ranjit Thakur.
    <b>Please Mark The Helpful Answer.</b>

  • How to display selected options in lookup F4  query selection screen

    i have to provide selected options  infoprovider specific than all values from database.

    in our company let there is PMACTIVITY TYPE and there is 140 activities, for aspecific group of our manager /users reports designed
    they have specific list of activities ,can i restrict by some ways to show only those relevant options in F4 selection screen
    Regards
    satish

  • How to set the default selected option as NO_OPTION in a JoptionPane

    This is just an example program to create the same scenario in the project.When clicked on OK button, it will pop up a JOptionPane confirm dialog with YES-NO buttons.I want to set the default selected button as NO button. In the below program, the keyboard focus is set on NO button, but in the look and feel the selection is still YES button. Can anyone suggest a solution to make both the focus on NO button?
    public class Test extends JPanel implements ActionListener{
         Test() {
              JButton btn = new JButton("OK");
              this.add(btn);
              btn.addActionListener(this);
         public void actionPerformed(ActionEvent e) {
              Object[] o = {"Yes", "No"};
              JOptionPane p = new JOptionPane("Are u sure?",JOptionPane.QUESTION_MESSAGE,JOptionPane.YES_OPTION,null,o,null);
              //p.setWantsInput(false);
              p.setInitialSelectionValue(o[1]);
              try {
                   UIManager.setLookAndFeel(new MetalLookAndFeel());
              } catch (UnsupportedLookAndFeelException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              //p.setFocusCycleRoot(false);
              p.setInitialValue(o[1]);
         //p.getRootPane().getDefaultButton().requestFocusInWindow();
              UIManager.put("Button.defaultButtonFollowsFocus", Boolean.FALSE);
              p.createDialog(this, "").setVisible(true);
              if(p.getValue() == o[0]) {
                   System.out.println("yes");
              }else if(p.getValue() == o[1]) {
                   System.out.println("no");
              //p.setWantsInput(true);
              //p.showConfirmDialog(this, "Are u sure?");
              //p.setInitialSelectionValue(new Integer(JOptionPane.NO_OPTION));
         public static void main(String[] args) {
              Test t = new Test();
              JFrame f = new JFrame();
              f.getContentPane().add(t);
              f.pack();
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.setSize(500, 500);
              f.setVisible(true);
         }

    not sure what you're trying to do, but try this
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Test extends JPanel implements ActionListener
      Test()
        JButton btn = new JButton("OK");
        this.add(btn);
        btn.addActionListener(this);
      public void actionPerformed(ActionEvent e)
        Object[] o = {"Yes", "No"};
        int value = JOptionPane.showOptionDialog(null,"Are u sure?","",-1,-1,null,o,o[1]);
        if(value == 0) System.out.println("yes");
        else if(value == 1) System.out.println("no");
      public static void main(String[] args)
        UIManager.put("Button.defaultButtonFollowsFocus", Boolean.TRUE);
        Test t = new Test();
        JFrame f = new JFrame();
        f.getContentPane().add(t);
        f.pack();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setSize(500, 500);
        f.setVisible(true);
    }

  • Select option in LDB

    hi i am using a LDB in my report whcih had 3 fields.i dont want the third field to be displayed on the selection screen.how can i do that,plz suggest.it does not have modifid to changes the status in the at selection screen output.
    regards

    Hi,
    First of all to find the Screen Field name follow the steps bellow.
    1. --> Display the Screen With all the fields
    2. --> Place you Muse Courser on the Field you want to hide using the Loop at Screen
    3. --> Press 'F1' Key and on the display Window
    4. --> From the Tool bar select the Technical Information Button
    5 ---> From here you will be able to find the name of the Field
    Now Please Have a Look at the following Thead, hope it will solve out your problem
    [Hide Fields in LDB|Re: Not able to hide all fields on PNP selection screen.]
    Please Reply if any Problem,
    Kind Regards,
    Faisal
    Edited by: Faisal Altaf on Feb 5, 2009 9:55 AM

  • E-recruitment: Defaulting select options in the Dropdowns (WDA Cand, Rec)

    Question: Using COnfigurations ID's, is there an option to default values for the fileds with drop downs. EX: Country filed shows several entries in candidate and recruiter applications. would it be possible to  default USA in the country drop down filed using configuration ID's. If yes, please explain.
    Version - E-rec 604 support pack 5. Webdynpro Interface, seperate front end and back end - candidate Scenerios #3 as per Note 1017866.
    Request e-rec Pro's to post the solution, if they have faced this issue in there e-rec implementation exp.
    Thanks & Regards,
    David.,...

    Hi,
    preselecting values is not possible via configuration. You can only solve that by programming, thus creating enhancements to the WDA components.
    Best regards
    Sebastian

  • Mix of Parameters & Select Options in a Selection screen in WD4A

    Hi All.
    I just created my first selection screen in WD4A couple of days back.
    Now, we have to mix up some parameters and select-options just like in normal ABAP.
    But I could only find a way to insert a "Range" into the WD4A screens via "Create_Range_table".
    Supposing I have 2 select-options, then 2 parameters - i.e. no Pattern or range or intervals options (simple = option); then again 2 select-options.
    Can't we make a simple Parameter option in WD4A selection screen? I know we can make no_extension and no_intervals as true so that it does look like a parameter. But still user can enter a pattern search in it like a select-option.
    Hope my query is clear.
    Another question is : As far as I understood, we ALWAYS need a IT_RESULT table in the method ADD_SELECTION_FIELD. Then why is it not mandatory in the method? 
    Thanks in adv.

    Hi Aishi,
    In an early version of SelectOptions, the parameter it_result was mandatory. Some time later, a developer contacted me and showed me an example where it was benefitial to first create the field and to pass in the range table at a later point in his algorithm. This can be done by calling set_range_table_of_sel_field( ). Hence, the parameter has become optional. Of course, a range table needs to be specified before the page gets rendered.
    Best regards,
    Thomas

  • MMBE Selection Options

    Is is possible to change the default selection options for this transaction?  Specifically uncheck the "No zero stock lines" option.

    Hi Julie,
    Welcome to SDN.
    You can use transaction variant (transaction code SHD0) to initial the "No zero stock lines" option.
    No technical development required.
    For more information, please check this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/f639fb015111d396480000e82de14a/content.htm
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Default selection in prompt

    Hello,
    Using obiee 11.1.1
    I created one presentation variable in the prompt using sql results.
    Using that prompt in my anaysis.i..e which i am using in the filter.
    Initailly when i run the dashboard since no value is selected from the filter its shows no results found
    No Results
    The specified criteria didn't result in any data.
    This is often caused by applying filters and/or selections that are too restrictive or that contain incorrect values. Please check your Analysis Filters and try again. The filters currently being applied are shown below.
    M_NAME is equal to / is in VarMName
    Whar i want is
    scenario 1->what to do so that the No results found msg should not come and just the filter should be displayed.
    or
    scenario 2-display all the values of filter in the report initially i.e. as though one has selected all the filter value.
    or
    scenario 3->By default select one filter value and show result for that.
    I want to know how to do the 3 scenarios?
    Thanks

    Hello,
    Thanks for the reply.
    Scenario 1 i achieved.Thanks for that.
    Diff between 2 and 3 is
    2->Display null in the filter and in the report display all the values for which filters were genertrated.
    3->Display one filter value and in the report display only values with matching filter.
    I am using the presentation variable now only in creating filter.
    I did one thing i edited the pv and then in the default selection i pasted the same query which i am using in the lov,so when i run the dashboard
    i ma seeing initially the first filter geting selected but in the report region it wont show the machting filter result,it shows no result found, until i click on apply or refresh.Dont know why the filter query not taking the default value of pv?
    for 2->how to modify the filter because now its using the pv and only when the pv is null it should show everything
    How to do 2 and 3
    Thanks

  • How to set default value in select option for ABAP query

    Hi experts,
    What is the way to set up default values for select-options in ABAP query.
    e.g.
    I have one field 'Year' in my ABAP query selection screen.
    I want value of current year to be appeared here whenever user execute report
    Thanks in Advance
    -Harkamal

    Hi Harkamal,
    execute your Query via SQ01. On Selection-Screen
    goto save Variant. Mark your field
    as selection variable an press Button election variable.
    Take variable from TVARV and use it.
    Than save the Variant.
    Look at TVARV if the 'Year' is updated to the actualYear!
    regards, Dieter

  • Infoset Query- How do I clear the in-built selection screen in LDB

    Dear Experts,
    When LDB is used in queries unwanted selection screen blocks appear.
    Please help in getting rid of the same.
    Kind Regards
    Jogeswara Rao

    Hello Jogeswara,
    1.  In the Infoset push button Extras and then select Code tab.
    2.  Select AT SELECTION-SCREEN OUTPUT for Code Section.
    Suppose your query is based on logical database KDF and you went to hide the SELECT-OPTIONS for Company Code.
    loop at screen.
      if SCREEN-NAME = '%_KD_BUKRS_%_APP_%-TEXT' OR
         SCREEN-NAME = '%_KD_BUKRS_%_APP_%-OPTI_PUSH' OR
         SCREEN-NAME = '%_KD_BUKRS_%_APP_%-TO_TEXT' OR
         SCREEN-NAME = '%_KD_BUKRS_%_APP_%-VALU_PUSH' OR
         SCREEN-NAME = 'KD_BUKRS-LOW' OR
         SCREEN-NAME = 'KD_BUKRS-HIGH'.
        screen-invisible = '1'.
        screen-active = '0'.
        modify screen.
      endif.
    endloop.
    Kind Regards,
    Rae Ellen Woytowiez

  • Disable the select-options dynamically based on value selected in listbox

    Hi friends,
    I have a peculiar problem in my program.
    I have a list box with two values.
    1) With Ref to Reservation No.
    2) Production order.
    I am doing the object for Transfer Posting ( Similar to MIGO).
    The contents of the listbox here are acting as the label to my select-options.
    I have two select-options in my program.
    1) Reservation No (s_rsnum for rsnum)
    2) Production Order (s_porder for aufnr)
    In runtime, based on the label selected in the listbox, the corresponding select-option should be in visible mode.
    for eg: if i select "With ref to Reservation No" S_rsnum should be enabled and vice-versa.

    Hi,
    here an example with listbox:
    TABLES: MARA.
    PARAMETERS: P0 DEFAULT 'KAUF' LIKE MARA-MTART AS LISTBOX VISIBLE LENGTH 8 USER-COMMAND DUMMY.
    SELECTION-SCREEN: SKIP 3.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR MODIF ID DI1.
    SELECTION-SCREEN: SKIP 3.
    SELECT-OPTIONS: S_MATKL FOR MARA-MATKL MODIF ID DI2.
    AT SELECTION-SCREEN OUTPUT.
      IF P0 = 'KAUF'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 EQ 'DI1'.
            SCREEN-ACTIVE      = '1'.
            SCREEN-INPUT       = '1'.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 EQ 'DI2'.
            SCREEN-ACTIVE      = '0'.
            SCREEN-INPUT       = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
      IF P0 <> 'KAUF'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 EQ 'DI1'.
            SCREEN-ACTIVE      = '0'.
            SCREEN-INPUT       = '0'.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 EQ 'DI2'.
            SCREEN-ACTIVE      = '1'.
            SCREEN-INPUT       = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    use your own listbox in If-Clauses.
    Regards, Dieter

  • Alternative for "check select-options" for select query.

    hi all,
    my report is using a "GET" syntax, followed by "check select-options".
    My senior told me to replace the Get syntax with select query.
    Now, my program also has dynamic selection screen.
    the dynamic selection screen almost has all the fields of database table.
    so, what is the way to replace this check select-options while applying select query?
    can you tell me how dynamic selection screen fields are populated? are they stored in some internal table?
    thanks for help.

    HI
    Here is some points about LDB.
    Logical databases are special ABAP programs that retrieve data and make it available to application programs. The most common use of logical databases is still to read data from database tables by linking them to executable ABAP programs.
    However, from Release 4.5A, it has also been possible to call logical databases using the function module LDB_PROCESS. This allows you to call several logical databases from any ABAP program, nested in any way. It is also possible to call a logical database more than once in a program, if it has been programmed to allow this. This is particularly useful for programs with type 1.
    Logical databases contain Open SQL statements that read data from the database. You do not therefore need to use SQL in your own programs. The logical database reads the program, stores them in the program if necessary, and then passes them line by line to the application program or the function module LDB_PROCESS using an interface work area
    For further on LDB's refer to this link.
    [http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm]
    Hope this will help.
    Reward if helpful.
    Sumit Agarwal

  • Adding Selection Options Fields in Report(Using Query)

    Hi,
    how can we add Selection Fields Options in Query Reports Which we create using SQ01. I need a default option by which we can add all the selection option given by user.
    Anybody can help me..?
    Regards
    lijo Joseph

    Do you have anything defined in the 'Calcs' section?
    If so, any fields returned by the query that are not included in the calculation will be automatically added to the Group fields (using the same logic as required with calculations/group by in any SQL query). The fields won't be able to be removed from the Group list unless the Calc is also removed.

Maybe you are looking for

  • Where is the file menu on pages?

    I am a first-time MacBook user and have used a PC for years.  I am trying to use the Pages software on Mountain Lion - on my new Mac.  I can't find the "File" menu in order to see how to "save," "save as," or especially how to save it as a .doc so th

  • Regarding F4 logic

    In my requiremet, I have to go to T-code IW51. There while we go to the second screen, we will have two fields where we can enter code groups. Now if an entry already exists in one of the fields, the user should not be allowed to press F4 on the othe

  • Linking a nav button to page + other

    I have 2 questions 1. I had found somewhere that tells the simple way to link my flash button to a page in my site, but I couldn't find it...I need to know how to link my buttons to the appropriate pages. When I did them a while ago, nothing happened

  • Livetime iOS app is no longer available

    I want to test livetime iOS app with servicedesk 7.0.1, but I don't find the app in both EMEA and US appstore. Anybody Know why this app is no longer available?

  • Splitting Of Quota

    Hi, Splitting of Requirement between two suppliers not happening for MRP type PD and Lot size ES Working fine with VB and ES With regards Ram