Error in Select-Option

Hi Experts,
In my report i need to declare a select-option . This select-option is a combination of Period and fiscal year i..e the values in the select-option should be like
<b>PPP/YYYY</b> period and year need to be separated by <b>"/".</b>
I had declared in that format. <b>Here the period starts from 001-012</b>.So when ever the User enters <b>010/2005</b> in low and <b>007/2007</b> in high it is giving an error that <b>Lower limit is greater than Higher limit</b> .

Technically, I think you could actually achive this with the use of a custom data domain and on that domain refer to a custom conversion exit...this would mean that the value typed by the user in "PPP/YYYY" format could be converted immediately into "YYYYPPP" or whatever internally before screen validation kicks in... e.g. (logic below needs more work!!):
function conversion_exit_zppyy_input.
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(INPUT)
*"  EXPORTING
*"     REFERENCE(OUTPUT)
* Data should be in form PPP/YYYY
  data:
    l_ppp(3)            type c,
    l_yyyy(4)           type c.
  output = input.
*" add some validation here...
  split output at '/'
    into l_ppp l_yyyy.
*" add more validation here
  if sy-subrc is initial.
*" make it into YYYYPPP format
    concatenate l_yyyy l_ppp into output.
  endif.
endfunction.
You'd probably need an equivalent 'conversion_exit_zppyy_output" function too.
The question remaining in my mind is what you are going to do with the values once you have them in the range table...?  And what if user inputs wildcards etc?
Jonathan

Similar Messages

  • ERROR IN SELECT-OPTIONS COMPONENT

    Hi Friends,
    Currently, I am working on SELECT-OPTIONS component, Variants.
    In component controller WDDOINIT, I have got the instantiated the select-options component.
    And I have one more pop-up view, in Get_variant action method ,I will be getting the data of Variants and Using the methods set_range_table_of_sel_filed( ) and set_value_of_parameter_filed( ), I am setting the data to Selection-screen.
    For select-options fileds.
    CALL METHOD wd_comp_controller->m_handler->set_range_table_of_sel_field(
                        EXPORTING
                        i_id           = l_searchparameter-name
                        it_range_table = l_dref ).
    for Parameter fileds.
    ALL METHOD wd_comp_controller->m_handler->set_value_of_parameter_field(
                                    EXPORTING
                                    i_id = l_searchparameter-name
                                    i_value = l_dref ).
    It runs successfully for all the fileds , and after coming out of this method, I am getting an error like
    Subnode WDR_SELECT_OPTIONS#COMPONENTCONTROLLER.CONTEXT.BEGDA does not exist.
    But in webdynpro, For select-option fileds we will not be creating any context.
    Could you please help me, in solving this issue.
    Regards,
    Xavier.P
    Edited by: Xavier Reddy on Jan 20, 2009 11:07 AM

    Hi Xavier,
    CALL METHOD wd_comp_controller->m_handler->set_range_table_of_sel_field(
    EXPORTING
    i_id = l_searchparameter-name
    it_range_table = l_dref ).
    Put a break point on the method and check what value is passed in i_id field because here we pass the name of the field for which we want to create the range.
    Regards
    Arjun
    Edited by: Arjun on Jan 20, 2009 4:11 PM

  • WCF OData Service stored procedure call generates "Operation could destabilize the runtime" error with $select option

    I've been trying to call a stored procedure through Entity Framework and WCF Data Services (OData). It returns an entity not a complex type. Following walkthroughs found all over the web, I came up with this code inside my service:
    [WebGet]
    public IQueryable<Entity> GetEntitiesByParameterId(int parameterId)
    return CurrentDataSource.GetEntitiesByParameterId(parameterId).AsQueryable();
    Calling the proc this way: ~WcfService.svc/GetEntitiesByParameterId?parameterId=1 executes
    the stored procedure and returns entities that should be returned. No problem there.
    Everything works well until I try to use $select OData option ie. ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$select=name.
    Upon debugging, the method above runs without any error but it returns an Operation could destabilize the runtime error upon reaching the
    client. After so much research, apparently it is a very general error pointing to a lot of different causes. I haven't found one that really matches my particular problem. Closest are 
    http://stackoverflow.com/questions/378895/operation-could-destabilize-the-runtime
    https://social.msdn.microsoft.com/Forums/en-US/d2fb4767-dc09-4879-a62a-5b2ce96c4465/for-some-columns-entity-properties-executestorequery-failed-with-error-operation-could?forum=adodotnetdataservices 
    but none of the solutions worked on my end.
    Also, from the second article above:
    This is a known limitation of WCF DS. ...
    Second is that some of the queries won't work correctly because LINQ to EF needs little different LINQ expressions than LINQ to Objects in some cases. Which is the problem you're seeing.
    It has been posted on 2012. If it its true, are there still no updates on this? And is there any other workaround to get the $select working on the stored proc call?
    What works:
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$top=1
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$skip-5
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$filter={filter query}
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$expand=SomeNavigationProperty
    What doesn't work:
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$select=name
    Tech details:
    EntityFramework 5, WCF Data Service 5.0, OData V3
    *I've also tried upgrading to EF6 and WCF 5.6.2 and it still didn't work.
    Any help would be appreciated. Thanks!

    Someone from SO replied to my question there and said that $select is still not supported though I couldn't find any definitive documentation about it.
    From what I gather and observed, $select breaks the stored procedure call because it tries to alter the data shape already gotten from the database and attempts to return a dynamic entity instead. Something about the stored proc returning an ObjectResult might
    be messing it up. As I have said, these are merely my observations.
    Workaround: I found a simple and elegant workaround for it though. Since my stored procedures are only getting data from the database and does
    not alter data in any way (INSERT, UPDATE, DELETE), I tried using table-valued functions that returns a table equivalent to the entity on my EF. I've found that calling this function on the Service Operation method returns an IQueryable<Entity> which
    is basically what is needed. $select also works now and so does other OData query options.
    Steps:
    Create a function on the database
    Update EDMX -> Add function
    Add new Function Import with Entity return type
    Create service operation in WCF Data Service that calls CurrentDataSource.<FunctionName>()
    Test in fiddler.
    CODES
    Database Function:
    CREATE FUNCTION GetEntities(@parameter)
    RETURN @entites TABLE(
    [Id] [int],
    [Name] [nvarchar](100),
    AS
    BEGIN
    INSERT INTO @entities
    SELECT [Id], [Name], ... FROM [EntityTable]
    RETURN
    END
    WCF:
    [WebGet]
    public IQueryable<Entity> GetEntity(int parameter)
    return CurrentDataSource.GetEntity(parameter);
    It doesn't really solve the stored procedure problem but I'm marking this as answer until someone can provide a better one as it does solve what I'm trying to do.
    Hope this helps others too. :)

  • Enabling Select-options in an RFC function module

    Hi Abaper's,
    I am using BAdi definition NOTIF_EVENT_SAVE for sending mail notification to user.
    Under CHANGE_DATA_AT_SAVE method I have called an RFC enabled function module and written code here for mail notification.I used cl_bcs class for sending file.On executing this I am getting a mail box wherein we can enter user id and send mail.But I don't want to use cl_bcs for sending mail now.So I modified the code by including SO_NEW_DOCUMENT_SEND_API1 function.
    My requirement is I want to enable select-options in this function module so that user can get a popup wherein he can select user name from master.On activating I am getting following error:
    Local SELECT-OPTIONS are not allowed (FORM routine or GET event is active).
    Can any one help me how to resolve this error?
    I am using this customized function module for mail notification.If I hardcode mail id,notification is working properly.
    Regards,
    Sam

    sam24 wrote:>
    > My requirement is I want to enable select-options in this function module so that user can get a popup wherein he can select user name from master
    Hi Sam,
    in the function groups TOP include, you can define a selection-screen:
    SELECTION-SCREEN BEGIN OF SCREEN 9786 [TITLE title].
    select-options: s_uname for ...
    SELECTION-SCREEN END OF SCREEN 9786.
    and in the function use
    CALL SELECTION-SCREEN dynnr
                          [STARTING AT col1 lin1
                          [ENDING   AT col2 lin2]]
    Everything declared in the function body source code is local.
    But you must make sure that CHANGE_DATA_AT_SAVE is not processed in update task.
    Regards,
    Clemens
    Edited by: Clemens Li on Jan 16, 2011 7:36 PM

  • Is exist restriction for select-options.........?

    is exist restriction for select-options?
    for example:
    <b> data: ftxt04(4).
    select-options: txt04 for ftxt04.</b>

    Hi,
    You can restrict select-options.
    SELECT-OPTIONS : S_VKORG FOR TVKO-VKORG MEMORY ID VKO.
    Form F1000_RESTRICT_VKORG.
    INITIALIZATION.
    PERFORM F1000_RESTRICT_VKORG.
    Define the object to be passed to the RESTRICTION parameter
    DATA lw_restrict TYPE SSCR_RESTRICT.
    Auxiliary objects for filling RESTRICT
      DATA lw_opt_list TYPE sscr_opt_list.
      DATA lw_***      TYPE sscr_***.
    Assign selection screen objects to option list and sign
    NOINTERVLS: BT and NB not allowed
      CLEAR lw_opt_list.
      MOVE 'NOINTERVLS' TO lw_opt_list-name.
      MOVE 'X' TO: lw_opt_list-options-cp,
                   lw_opt_list-options-eq,
                   lw_opt_list-options-ge,
                   lw_opt_list-options-gt,
                   lw_opt_list-options-le,
                   lw_opt_list-options-lt,
                   lw_opt_list-options-ne,
                   lw_opt_list-options-np.
      APPEND lw_opt_list TO lw_restrict-opt_list_tab.
    KIND = 'S':
      CLEAR lw_***.
      MOVE:  'S'          TO  lw_***-kind,
             'S_VKORG'    TO  lw_***-name,
             'I'          TO  lw_***-sg_main,
             '*'          TO  lw_***-sg_addy,
             'NOINTERVLS' TO  lw_***-op_main.
      APPEND lw_***  TO  lw_restrict-***_tab.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
           EXPORTING
                restriction            = lw_restrict
           EXCEPTIONS
                too_late               = 1
                repeated               = 2
                selopt_without_options = 3
                selopt_without_signs   = 4
                invalid_sign           = 5
                empty_option_list      = 6
                invalid_kind           = 7
                repeated_kind_a        = 8
                OTHERS                 = 9.
      IF sy-subrc <> 0.     "Restriction error encountered for Select
                             "Option
        MESSAGE  I001 WITH 'ERROR IN SELECT OPTION'."ERROR IN SELECT OPTION
      ENDIF.
    endform.                    " F1000_RESTRICT_VKORG

  • Select-options in SELECT query - syntax error

    Hi all,
      I get the error below when I try to use the select options in a SELECT query . Please help me.
    "The IN operator with "SO_AWART" is followed neither by an internal
    table nor by a value list."
    The code i have used(Logical database  PNP is used):
    TABLES: pernr,
            catsdb.
    INCLUDE ztime_cwtr_top.    " global Data
    INCLUDE ztime_cwtr_f01.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    SELECT-OPTIONS SO_AWART FOR CATSDB-AWART.
    PARAMETERS P_THRES TYPE I.
    SELECTION-SCREEN END OF BLOCK B1.
    Get data from CATSDB table. Workdates within the date interval are considered.
      SELECT pernr workdate awart catsquantity beguz enduz status
      FROM catsdb
      INTO TABLE it_catsdb
      WHERE pernr  = pernr-pernr    AND
           workdate GE pn-begda     AND
           workdate LE pn-endda     AND
           status   IN ('20', '30') AND
           awart    IN  so_awart .
          awart    IN ('1100', '1137', '1138', '1139', '1140',
                      '1147', '1148', '1149', '1157', '2003' ).
    when I give the values directly i do not get any syntax error, but when I use select options in the where condition I get the syntax error.
    I have tried different options like using only the select-options in the where condition.
    Thanks in advance.....
    Madhu

    Solved.
    Code with syntax error:
    include z...top .
    include z...fo1.
    select-options: xxxxxxx
    Code  with no syntax error:
    select-options: xxxxxxx
    include z...top .
    include z...fo1.
    Thanks for all your help,
    Madhu

  • Error at transport in select option   is not followed by itab or value list

    Hi All,
    I have an issue with the following inner join. when i check with code inspector it is not showing any errors but i get the following error while transport.
    "The In operator with SO_MATKL is followed neither by an Internal table nor by a value list".
    This error appears after the system is unicode enabled is that it have any unicode significance please advice on this.
    The following is the code snippet.
    SELECT amatnr amtart aextwg amatkl bwerks bdispo b~ekgrp
        INTO TABLE tb_mara
        FROM mara AS a
       INNER JOIN marc AS b ON amatnr = bmatnr
       WHERE a~matnr IN so_matnr
         AND a~mtart IN so_mtart
         AND a~extwg IN so_extwg
         AND a~matkl IN so_matkl
         AND b~werks IN so_werks
         AND b~dispo IN so_dispo
         AND b~ekgrp IN so_ekgrp.

    Hi Gopal
    Am on UNICODE Enabled system and i dont have problem with below code. Please check, if you have used similar to this???
    tables: mara, marc.
    select-options: so_matnr for mara-matnr,
                    so_mtart for mara-mtart,
                    so_extwg for mara-extwg,
                    so_matkl for mara-matkl,
                    so_werks for marc-werks,
                    so_dispo for marc-dispo,
                    so_ekgrp for marc-ekgrp.
    types: begin of t_mara,
             matnr type matnr,
             mtart type mtart,
             extwg type extwg,
             matkl type matkl,
             werks type werks_d,
             dispo type dispo,
             ekgrp type ekgrp,
           end of t_mara.
    data: tb_mara type table of t_mara.
    SELECT a~matnr a~mtart a~extwg a~matkl b~werks b~dispo b~ekgrp
           INTO TABLE tb_mara
           FROM mara AS a
           INNER JOIN marc AS b ON a~matnr = b~matnr
           WHERE a~matnr IN so_matnr
           AND   a~mtart IN so_mtart
           AND   a~extwg IN so_extwg
           AND   a~matkl IN so_matkl
           AND   b~werks IN so_werks
           AND   b~dispo IN so_dispo
           AND   b~ekgrp IN so_ekgrp.
    Kind Regards
    Eswar

  • Error message for the select options

    hi.
    i want to throw thw error message if the user enters the value not valid(not in the range) for the zregion1 of zbwcntry of the select options.
    and user should be able to correct it before moving ahead.
    Also,iis not a mandatory field,So if it is initial,it can b blank.
    but if the input doesnot lie in the range,it should give error message on the selction screen.
    please guid with the line of codes.

    Check out this code:
    TABLES: PERNR.
    SELECT-OPTIONS VO_PERNR FOR PERNR-PERNR.
    AT SELECTION-SCREEN ON VO_PERNR.
      IF VO_PERNR IS INITIAL.
        MESSAGE 'Enter some employee IDs' TYPE 'E' DISPLAY LIKE 'S'.
      ELSE.
        IF '000001' NOT IN VO_PERNR.
          MESSAGE 'Employee id: 1, not selected' TYPE 'E' DISPLAY LIKE 'S'.
        ENDIF.
      ENDIF.

  • Error in using select option

    hi,
    i have used some fields in import in se37. I want that fields to be a select-options. so i gave associated type as selopt.
    but when i write a select query in source code it shows an error
    the IN operation with 'BSTYP' is followed neither by an internal table  nor by a value list.
    SELECT ebeln bukrs lifnr aedat FROM ekko INTO CORRESPONDING FIELDS OF TABLE i_ekko WHERE bstyp IN bstyp
                                                            AND
                                                                lifnr IN lifnr AND ekorg IN ekorg
                                                          AND bukrs IN bukrs AND aedat IN aedat.
    pls tell me a solution

    Hi,
    tables: ekpo.
    ranges: bstyp for ekpo-bstyp.
    bstyp-sign = 'I'.
    bstyp-option = 'EQ'
    bstyp-low = 'X'.
    append bstyp.'
    bstyp-low = 'Y'.
    append bstyp.'
    By Jan

  • Error while using selection option variable in the selection screen

    Hi All,
    I am facing an issue while using selection option variable in the selection screen for one of my reports.
    Scenario: For the field "Region From" we need to have wild card logic () in tes selection screen, for example if we put "BE" in the selection screen for the field Region From then the query should be executed only for those "Region From" values which begin from "BE".
    Approach: For the above requirement I have made a selection option variable for "Region From". This allows use wild card
    But when the report is executed we get the following error:
    "System error in program CL_RSR_REQUEST. Invalid filter on ETVRGNFR".
    (ETVRGNFR is technical name of the info object Region From)
    Though the report is executed it displays all the values for the field "Region From" irrespective of the selection given in the selection screen.
    Please give suggestions / alternate solutions to crack this issue.
    Thanks in advance
    Regards
    Priyanka.

    Hi,
    Try to use a variable of type Customer Exit and do the validation inside the exit to display according to your request.
    This is just my view, i am not sure if u are already using this or Char. Variable.
    Cheers.
    Ranga.

  • Error V0 104 while adding select option on customized screen

    Hi all,
    I have a screen added on the standard transaction IW21 (with selection screen definition and called like subscreen). On this screen I have some SELECT-OPTIONS and when I press the button of selecting multiple values, I get the following message: "Requested function & is not available here" (V0 104), where & is long number starting with %..I have added entries to the tables T185F and T185 with the transaction VFBS, but I dont know how to assign the Function codes to SELECT-OPTIONS..
    Thanks in advance for feedback!
    Anna
    Edited by: Anna L on Jul 16, 2008 11:03 AM

    Just an explanation: no matter the error message I get, the values are transferred correctly from the multiple selection screen to my screen.
    I hope somebody got similar case and can give me some hint...
    Thank you,
    Anna

  • Getting error in executing Select options

    Hi Experts,
    I am getting error in while executing select options in multiple selection range options in SCASEPS Transaction in PSRM module.
    suppose I am giving 500 records in a select options ( select single values tab) while executing i am getting message like "; general Error" , i am not getting values.
    can any body provide the solution.
    Thanks !
    Mahendar

    Hi Mahendar!
    I sorry, but the parsed SQL-statement must not exeed a limit of a defined size (is hardcoded restriction of DBMS).
    A workaround could be to use the SELECT ... FOR ALL ENTRIES-Statement!
    Kind regards
    Peter

  • Select-option in Module Pool-Error-Include block not specified .........

    Hi,
    I am trying to define a select-option at Module Pool level.
    In the program
    SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
    SELECT-OPTIONS: V_BWTAR FOR MSEG-BWTAR.
    SELECTION-SCREEN END OF SCREEN 1010.
    In the Screen flow logic it is as follows
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0600.
    CALL SUBSCREEN sub_1010 INCLUDING sy-repid '1010'.
    PROCESS AFTER INPUT.
    CALL SUBSCREEN sub_1010.
    MODULE USER_COMMAND_0600.
    At SE51 it is showing an error
    "Include block not specified,not defined or spelt incorrectly.".
    Please let me know how to correct this.
    Thanks,
    K.Kiran.

    HI Emre
    I am having the same issue.  there is not possible to create a subscreen by se51 since I already define the subscreen by selection-screen begin of screen *** as subscreen.
    regards TP

  • Selection option error message

    Dear Experts,
    I need your help to code an error message:
    This is an ABAP report program:
    User can enter either Group Key (LFA1-KONZS) or Vendor Number (LFA1-LIFNR), if enter both, send an messagee : 'Please enter either Group Key or Vendor Number, not both'
    The error message show at the status line of the button of the input selection option screen.
    How do I do that?
    Here are my codes so far:
    Selection Options
    selection-screen: begin of block box1 with frame title text-001.
    select-options: so_bukrs for bkpf-bukrs obligatory.
    select-options: so_blart for bkpf-blart obligatory.
    select-options: so_cpudt for bkpf-cpudt obligatory.
    select-options: so_konzs for lfa1-konzs.
    select-options: so_lifnr for lfa1-lifnr.
    selection-screen end of block box1.
    Thank you very much!
    Helen

    Hi,
    Test the following Sample Code Hope will solve out your problem,
    TABLES: bkpf, lfa1.
    SELECTION-SCREEN: BEGIN OF BLOCK box1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: so_bukrs FOR bkpf-bukrs OBLIGATORY.
    SELECT-OPTIONS: so_blart FOR bkpf-blart OBLIGATORY.
    SELECT-OPTIONS: so_cpudt FOR bkpf-cpudt OBLIGATORY.
    SELECT-OPTIONS: so_konzs FOR lfa1-konzs. " This
    SELECT-OPTIONS: so_lifnr FOR lfa1-lifnr. " This
    SELECTION-SCREEN END OF BLOCK box1.
    AT SELECTION-SCREEN.
      IF so_konzs IS NOT INITIAL AND so_lifnr IS NOT INITIAL.
        MESSAGE: 'Please enter either Group Key or Vendor Number, not both' TYPE 'I'.
      ENDIF.
    " if you need that user must enter one value from the both than use the following lines of code too else Remove
      IF so_konzs IS INITIAL AND so_lifnr IS INITIAL.
        MESSAGE: 'Please enter Group Key or Vendor Number, not both' TYPE 'I'.
      ENDIF.
    Kind Regards,
    Faisal
    Edited by: Faisal Altaf on Feb 9, 2009 10:16 PM
    Edited by: Faisal Altaf on Feb 9, 2009 10:34 PM

  • J1INUT Error - No data exist for processing with the given selection option

    Hi Guru's,
    I am using transaction J1INUT utilization of provision of TDS on Services for which in have made the provision with the help of J1INPR, But when I am executing J1INUT transaction .The following error message is displaying:
    No data exist for processing with the given selection options
    I have followed the below steps.
    1) ME21N - OP Creation
    2) ML81N - Service Entry
    3) J1INPR - Provision of TDS
    4) MIRO -  Invoice Posting
    I have checked the Table J_1IEWTPROV In that system is updating the table also. Even I have activated table TRWCA for field IND
    But still I am getting the same error. Any suggestions to resolve this.
    Appreciate your inputs. Thanks in Advance
    Regards,
    DeepaK

    Hi Deepak,
    Refer the below link and follow the steps - Provision for Taxes on Service Recieved.
    Re: Provision for Taxes on Service Recieved
    Hope it may useful to you.
    Regards,
    Govind Bhaskaran

Maybe you are looking for

  • Data is not getting loaded using the Demon for RDA

    Hi friends, We are doing a POC for Real Time Data acuisition. For this we have copied an exisiting datasource and made it Real Time enabled. Replicated the datasource now we can see the new datasource in BW. We have created an Init Info Package (This

  • SBH 80 cuts off and poor performance

    Hi I got my SBH 80 through Amazon UK, I was very happy with it till 3 months passed and it started to act funny ! It keeps disconnecting , sound keeps getting garbeled , and while at the gym as soon as I put the phone in my pocket or I am just a few

  • Updated N95 8Gb from v20 to v30 but restore failed

    I updated N95 8Gb from v20 to v30 but impossible to restore After restore and reboot the phone is empty with no data What is the problem ?

  • HT201317 How do I view all photos from my photo stream on my PC?

    When talking to an Apple employee, they stated that I had 374 photos in my photo stream but when bringing it up on my PC under pictures/photostream I can only get 114. Why can't I get the other 260 photos?

  • Why am I required to register BEFORE posting a question?

    Hello, In the recent past, I always saw a notation that anyone who wanted to post a question was NOT required to register before posting a question. Now all of a sudden, I would like to know why.