Select-options in Infoset Query

Hello experts,
I'm working on a report in SAP HR and using infoset query.
I want to use select-options in my selection screen but without interval. In normal abap report we do this using 'NO INTERVALS' but how to achieve same in infoset query ?
please help.
regards,
siddhesh

Hello experts,
I'm working on a report in SAP HR and using infoset query.
I want to use select-options in my selection screen but without interval. In normal abap report we do this using 'NO INTERVALS' but how to achieve same in infoset query ?
please help.
regards,
siddhesh

Similar Messages

  • Selection field in Infoset Query

    Hi All,
    I have an Infoset which is based on Logical database PNP &  it has few additional fields. Now the requirement is to add one of the additional field to the selection screen of "Infoset Query". But in the Infoset query the 'Selection' checkbox for all the additional fields is graded out, & only the 'Output' Checkbox is enabled for all the Additional fields.
    I added a new additional field in Infoset and even that is not available for selection in the Infoset query.
    Kindly let me know if you have any info regarding this....
    Please note that i have this problem in 'Infoset Query' only.
    Thanks in advance.
    Regards,
    Karthick.

    Navin,
    Try with this link,everything in detail is explained about Infoset queries..
    http://shafiq.us/sap/index.php?view=article&id=54%3Aadhoc-query&option=com_content&Itemid=61
    hope..this will help you!
    Cheers,
    KK

  • 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

  • Off Set on a Select Option on the Query

    Hi Peolpe,
    How can i do to put a Off set on a select option on the query ?
    Thanks.

    Hello rafael,
    When you restrict any char. with a variable just right click on the variable, you will see the option on the contex menu.
    Sarhan.

  • Error with 'At Selection-Screen' in Infoset query (Urgent)

    Hi All,
    I have defined a field as a selection criteria in Selections tab of Infoset & written a few lines of code. The syntax is ok, but when i try to run the query, the system prompts the message as below & terminates:
    'Local SELECT-OPTIONS are not allowed (FORM routine or GET event is active).'
    I would like to know what code should i enter in the GET / GET LATE section. Can someone help me?
    Edited by: Vivek on Dec 31, 2007 10:27 AM

    Mr. Atish,
    Thanks for the reply, but wish to inform you, i have not written any code in GET / GET-LATE section of the infoset. I just read the SAP help files, where it mentions that i need to maintain some check code in GET / GET-LATE section if i have defined selection criteria in selections tab.
    May i know what code should i maintain?
    In selections tab i have defined 2 selection criterias, for one criteria i have maintained the code & for the other in Extras field i have maintained a Default value & entered 'NO-DISPLAY'.
    Await your inputs to resolve this problem.
    Vivek

  • Report select options similar to Query output options : Urgent !!!!!

    Hi All,
    I have developed a custom report . The output options of this report needs to be included in Selection screen like in SQ01 queries, there should be option to output the report results in different formats like List Viewer, ABAP List, Spread Sheet etc.,. 
    If some variant is selected then user will select whatever the format he want .
    the output should display in that format .
    How I can acomodate all these options to output a report .
    How can I do this ..Pls help me its Urgent !!!!
    Points for Sure !!!
    Regards,
    Varma

    Hi,
       Try this code,
       at user-command.
       case sy-ucomm.
       when 'disp'.
       write:.......   "abap list
       when 'buton1'
        call function 'reuse_alv_list_display'.
         endcase.
    i hope it gives ur answer
    Reward if it helps.

  • Selection Criteria in Infoset

    Hi All,
    In infosets, in the selections tab, i have defined a selection criteria & i want to restrict the values for this.
    Eg: for MARC-WERKS
    For single values i can use... DEFAULT '1000'
    For a rangle of values i can use ... DEFAULT '1000' TO '1005'
    But i am not sure how to enter the values if it is not in range i.e. i want the default values to be
    1000, 1001, 1004, 1008
    Hope my question is clear, await inputs.
    Anyone to help on this?
    Edited by: Vivek on Dec 22, 2007 5:54 PM

    Mr. Sriram,
    Thanks for the inputs. But when i try to declare a field in Selections tab as 'Selection Criteria' & add a few lines of code to this field & try executing the query, i get the below message from system & the query terminates.
    'Local SELECT-OPTIONS are not allowed (FORM routine or GET event is
    active).'
    I would like to know how to correct this error. I have tried for a few selection options in different query, but get the same error.
    Is it because, if select-options i.e. in 'At Selection-Screen' is defined in infoset the query should not have any selection options & all selections must be handled in the infoset itself?
    Await your inputs.
    Vivek

  • [PERSISTENCE CLASS] SELECT OPTION in WHERE statement

    Hi Gurus,
    I would like to know how could I code the WHERE statement with a SELECT OPTION, in Persistence Class ?
    Currenlty, I would like to code this kind of request :
              DELETE FROM      ziTab
                             WHERE   zdate IN so_date.      
    Do you know, how could I code it ?
    Many thx for helps.
    Best regards.
    Rachid.

    Sorry Glen,
    Unfortunately, I am trying to find the correct syntax to use a SELECT OPTION in a Query Request of Persistence Class:
    Something like that:
    SELECT-OPTIONS so_date     FOR    sy-datum                      .
    DATA lo_query_manager TYPE REF TO if_os_query_manager           .
    DATA lo_query         TYPE REF TO if_os_query                   .
    DATA lo_agent         TYPE REF TO zca_persistence_zint_rsbankinv.
    DATA lo_base          TYPE REF TO zcb_persistence_zint_rsbankinv.
    DATA lo_rsbankinv     TYPE REF TO zcl_persistence_zint_rsbankinv.
    DATA lo_table         TYPE        osreftab                      .
    DATA ls_table         TYPE REF TO zcl_persistence_zint_rsbankinv.
    DATA ls_tmp           TYPE REF TO object                        .
    DATA lv_string        TYPE        string                        .
    DATA lo_exception     TYPE REF TO cx_root                       .
    TRY .
       lo_agent    = zca_persistence_zint_rsbankinv=>agent.
    * Create Query
       lo_query_manager = cl_os_system=>get_query_manager( ).
       lo_query         = lo_query_manager->create_query( i_filter     = 'ZEXDAT IN PAR1' ).
       lo_table         =
       lo_agent->if_os_ca_persistency~get_persistent_by_query(
       i_query = lo_query
       i_par1  =  so_date
       LOOP AT lo_table INTO ls_tmp.
         ls_table ?= ls_tmp        .
         lv_string = ls_table->zget_all_fields( ).
         WRITE lv_string.
       ENDLOOP.
    CATCH cx_root INTO lo_exception.
       lv_string = lo_exception->get_text( ).
       WRITE lv_string.
    ENDTRY.
    But I have an error message :
    Syntax error when parsing a query : Excepected symbol 'IN' (row: O, column: 7)
    Any idea ?

  • 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

  • InfoSet Query - Long Description while selecting variable values

    Dear Experts,
    We have an InfoSet Query on different InfoObjects like 0CUSTOMER, 0CUST_COMPC etc and the common link between these InfoObjects is CUSTOMER.
    We have a variable created on this CUSTOMER. The requirement is that when this query is executed, user should be able to select a value of Customer (F4 help) and at that time, he should be able to view both Key and Long Text of Customer.
    We know that if we change the CUSTOMER InfoObject --> BEx Properties tab, then we can display Long Text and Key in Query Selection Screens. However we can not do that because it would affect all queries in which this InfoObject is used.
    If we go to Query Design, and choose "Long Text and Key" in properties of Customer, then system displays Long Text and Key of Customer but after the report execution is done.
    We want to display the Long Text of Customer to User at the time of selection and that too without making any InfoObject level change.
    If it was InfoProvider, we could have done it using "Provider specific properties of Characteristic" option. But this is InfoSet and that option does not appear here.
    Please suggest the solution.
    Regards
    P

    Rohit,
    Are you looking to display long text for infoobject instead of short description ?
    Then go tp rsd1>infoobject>display/change-->master data/texts -->text table properties -->check long text exists.
    It supports a long text field with a length of 60 characters
    Activate the infoobject
    --Doodle
    Message was edited by: Doodle

  • Infoset-query-selection-screen-default-values

    Hi All,
    I am having the requirement as I need to put default values in the selecion-screen of the report by using  Infoset query. Let me know the settings required for this.
    I am using SQ01, SQ02, SQ03 T.Codes.
    And I need display  one record only if any field contains mulitple records, for example in the HR-ABAP, field p0105-usrid contains multiple values depending on the subtype.So, I need to display USRID when URSTY = '900'. All these should display by Infoset query only.
    Pls help me in this scenario , its an urgent requirement.I am very much thankful for you for reading my proble, if you will provide some sort of solution, I feel very happy.
    Advance thanks for this .
    Regards,
    Prakash.

    Prakash,
    To default the values on your selection screen, you will need to do some ABAP I guess. (if you do not want to use variant). Open up the infioset in SQ02 and then goto code option for the PNP**** field and then you can code to initialize the selection screen variables. Test with an ABAPer.
    To display multiple records as multiple columns, you will have to create custom fields in infoset, and then go from there. Again see ABAPer.

  • Select distinct from an infoset query

    Hello
    I need to select distinct / delete duplicate from an infoset query created thru SQ02.
    Please let me to know how this can be done?
    Many thanks in advance!
    regards
    Sanjyot

    Hi,
    You can verywell use infoset query if you are doing following things
    Join using Keyfields to retreive data from tables
    If not using keyfields create index for those table fields  in those fields which will improve in accessing database
    Try to use minimum of tables of small size dont try to join big tables like GLPCA and all.
    Try to load small set of data like a period or month. Dont try for a year or so.
    if your performance is good for aperiod you can go for a year.
    If you are good in function module you can try function module in which you will have the option of specifying no of records to be selected usign package size.
    Hope this helps for you.
    Thanks,
    Arun

  • 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

  • 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

  • SQ01 Infoset Query - making a selection mandatory

    Hello,
    Is it possible to make a selection mandatory on an Infoset Query? If so, how do you do this?
    I have a report that I created using infoset query, but need to make a selection option mandatory to prevent the scenario of the report being run with no selections.
    many thanks,
    Allan

    When you display infoset go into the infoset>Goto>selections  or click on the app tool bar button for selections,
    it will open up a table will all the screen fields. Adjacent to these, there are 3 check boxes for Standard selection, required entry and default. Check the required entry field.

Maybe you are looking for

  • Attachments in pdf are damaged and can't be opened, however they open on an Ipad

    Tried to open with several programs: Adobe reader 11.07 , PDF architect , all gave a "damaged" error. OS is Windows 8.1 Imap e-mail protocol Forwarding message to another PC was no solution, only the IPad opened the file(s)

  • Connection Pooling in 903

    Hi, I'm trying to use the oc4j connection pooling as described in the J2EE Service guide. my data-sources.xml looks like this: <?xml version="1.0" standalone='yes'?> <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds

  • Script to find if list of Apps patches exists in DB 'A' but not in DB 'B'

    Hi All, DB:11.1.0.7 Oracle Apps:12.1.1 OS:Linux 86x64 bits Red Hat Could anyone please share the script to find if list of patches exists in DB 'A' but not in DB 'B' Thanks for your time Regards,

  • FJS-00012  Error when executing script.

    Folks, please i need help, i'm installing sap on oracle 9.2 SYSID CBT, this is SAP 4.71. It stops on the "creating or registering SAP Services (post processing)" phase, and inside the file  SAPSTARTSRV.EXE.log it's just the word SERVICE NOT STARTED.

  • Understanding an ABAP Program RMCBNEUA

    Hi guys, I need to document a program RMCBNEUA.All the comments given in the program are in deutch.How do I understand the code since I am not an expert in ABAP. Regards Ankit Harish