Query variable : selection option with no interval

Hello,
Is it possible to define a query variable as selection option, with no interval (like in abap).
I am in 3.X version.
Many Thanks in advance,
Manuel

Hi Manuel,
This should be possible through multiple single value variables, but to ensure that the user has not in input the same charateristic value for exclusion and selection you may choose to write customer exit at the background.
I think interval and select option would allow 'To values'.
So I was wrong in what I said before. SORRY
However multiple single value would not allow exclusion, I think.
Your scenario would only be possible by excluding multiple single values in variable type select option and process the variable using customer exit, to trmove all to Values.
But you are right, you cannot have your scenrio handled , I think.
( ie multiple exclusion in from values with no To Values )
One more way is restrict your characteristic by two input ready variables, one select option for exclusion and have a customer exit to delte all inclusion that were input accidently and one multiple value ready for input variable.
But, all in all, there would be no straight drive through this I think.
Hope it helps,
Regards,
Sunmit.

Similar Messages

  • Checking against Select-Options with "CP" using "IF value IN select_option"

    Dear experts,
    first of all: I'm sorry, if this question already should have been asked and answered!
    I tried quite a lot of search terms but didn't find anything helpful.
    We are using a statement like "IF value IN select_option" to perform comparisons after the Select-Options have been used in a SELECT statement. This logical expression fails (compared to the results of the DB-SELECT) whenever a select-option line contains the option CP (Contains Pattern). To be more specific: The case sensitivity of the LOW value doesn't seem to play a role any more. A variable with the value 'ABCD' would be positively checked against a select-option with OPTION 'CP' and LOW 'abc*', whereas this value wouldn't have been selected if the select-option had been used in a DB-SELECT.
    Does anybody know a workaround?
    Thanks in advance
    Andreas

    Dear Keshav,
    it's an own field in an own table, defined as CHAR of length 140 (lowercase allowed), reflecting to a line of remittance info of an account statement. A regular Select-Option for this field is provided in a report which works perfectly fine regarding the case sensitivity. For reasons I don't want to point out in detail we need to check a value in this field against the select-option without selecting it from the db again.
    Let's assume that a field remittance_info contains the value 'ABCD'.
    A line of the select-option table looks like this:
    select_option_table-SIGN = 'I'
    select_option_table-OPTION = 'CP'
    select_option_table-LOW = 'abc*'.
    Then an ABAP statement such as
    IF remittance_info IN select_option_table.
    * would be true !!!
    ENDIF.
    but wouldn't deliver a result in a SELECT such as
    SELECT * FROM my_table INTO TABLE my_internal_table WHERE remittance_info IN select_option_table.
    because of the differences in lower/upper case.
    regards
    Andreas

  • How to write select options with extension in module pool program

    hi,
    M having  the following fields through screen painter.
    1. sales offfice
    2.sales district
    3.customer no
    for those three fields no extension is not provided and no search help is there.
    i want write  seletion options to get extension in that module pool
    screen.
    plese send coding for me , please let me know how to get that
    select options with the above all three fields.
    Thanks & Regards
    Raji

    Check it
    In top include
    DATA: number(4) TYPE n VALUE '9005',
    PROCESS BEFORE OUTPUT.
      MODULE status_9001.
      CALL SUBSCREEN AREA1 INCLUDING SY-REPID number.
    PROCESS AFTER INPUT.
      MODULE user_command_9001.
      CALL SUBSCREEN AREA1.
    *&      Module  status_9001  OUTPUT
          text
    MODULE status_9001 OUTPUT.
      SELECTION-SCREEN BEGIN OF SCREEN 9005 AS SUBSCREEN.
      PARAMETER pa_bukrs TYPE t001-bukrs.
      select-options matnr for wa_matnr.
      SELECTION-SCREEN END OF SCREEN 9005.
    ENDMODULE.                 " status_9001  OUTPUT

  • Creating a Select-option with no-intervals and a parameter on a single line

    Hi
    I have a unusual reqirment of creating a select-option with no intervals obligatory and a parameter on a single line. Is this possible? Can any one please provide me a solution for this. I reffered to the SAP help and what i found out is a single line can contain only parameters.

    Hi,
    humm,
    I guess it's not possible on one line.
    SORRY I've tried and it works!
    Try this :
    SELECTION-SCREEN BEGIN OF BLOCK main WITH FRAME
                     TITLE text-s01 NO INTERVALS.
    SELECTION-SCREEN begin of line.
    PARAMETERS : p_gjahr LIKE bkpf-gjahr OBLIGATORY MEMORY ID gjr.
    SELECT-OPTIONS : s_blart FOR bkpf-blart MODIF ID knt .
    SELECTION-SCREEN end of line.
    SELECTION-SCREEN END OF BLOCK main.
    Regards,
    erwan

  • Select/option with cfquery - how to pass selected value to field downform

    I have a form that has a basic select/option dropdown using a cfquery result.  I would like to use the value that the user selects to pre-populate an editable 'title' field further along on the form.  For example:
    <form action="index.cfm?fuseaction=sendEmail" method="POST" name="email_approval" enctype="multipart/form-data">
    <table width="500" border="1" cellspacing="0" cellpadding="2" align="center">
    <tr>
      <td align="left">Request ID:</td>
      <td align="left" width="100"><b><cfoutput>#RequestId#</cfoutput></b></td>
      <td align="left">Application:</td>
      <td align="left" width="400"><b><cfoutput>#this_request.app_abbrev#</cfoutput></b></td>
      <td align="left">WR/RD#:</td>
      <td align="left" width="400"><b><cfoutput>#this_request.request_number#</cfoutput></b></td>
    </tr>
    <tr>
      <td align="left">Email Type:</td>
      <td align="left" colspan="2">
          <select name="approval_type" size="1" >
          <cfoutput query="approval_types">
             <option value="#approval_types.approval_descrip#" style="font-size:8pt">#approval_types.approval_descrip#</option>
           </cfoutput>
         </select>
      </td>
      <td align="left"> </td>
      <td align="left">Date Sent:</td>
      <td align="left"><b><cfoutput>#dateformat(Now(), "MM/DD/YYYY")#</cfoutput></b></td>
    </tr>
      <cfset subjectLine = "#RequestId#" & " " & "#approval_types.approval_descrip#" & " Approval Request" >
    <script  type="text/javascript" language="JavaScript">
    <cfoutput>
      var #toScript(subjectLine, "jsLine")#;
    </cfoutput>
    </script>
    <script  type="text/javascript" language="JavaScript">
    function setValue()
      document.getElementById('subject').value =jsLine;
    </script>
    <tr>
      <td align="left">Subject:</td>
      <td align="left" colspan="5">
       <b><input type="Text" name="subject"  required="Yes" size="70" maxlength="70" onClick="setValue();"></b>
    </td>
    </tr>
    When the user gets to the subject field,the onClick will pre-populate the field with the combined value using <cfset subjectLine = "#RequestId#" & " " & "#approval_types.approval_descrip#" & " Approval Request" >.  regardless of what is selected, it uses the first item in the query list because that is what is rendered when the form is loaded (got that).  I figure that I need a javascript onChange event for the select statement for the dropdown, but can't figure out how to pass this javascript variable back to the CF form.  Any ideas, or am I stuck?
    Thanks in advance for your thoughts!

    You will need to do it with JS as the values you want to access are not set until the form is submitted. This should give you what you want.
    It uses a hidden form field to hold the requestID, that is then accessed with JS. (I am assuming this value is available when the page loads)
    <form action="index.cfm?fuseaction=sendEmail" method="POST" name="email_approval" enctype="multipart/form-data">
    <input type="hidden" name="requestID" id="reqID" value="1234" />
    <table width="500" border="1" cellspacing="0" cellpadding="2" align="center">
    <tr>
      <td align="left">Email Type:</td>
      <td align="left" colspan="2">
          <select name="approval_type" id="approval_type" size="1" >
             <option value="test" style="font-size:8pt">test</option>
         </select>
      </td>
      <td align="left"> </td>
      <td align="left">Date Sent:</td>
      <td align="left"><b><cfoutput>#dateformat(Now(), "MM/DD/YYYY")#</cfoutput></b></td>
    </tr>
    <script  type="text/javascript" language="JavaScript">
    function setValue(){
        var e = document.getElementById("approval_type");
        var approval_type_value = e.options[e.selectedIndex].value;
        var subjectLine = document.getElementById('reqID').value + ' ' + approval_type_value + ' Approval Request';
        document.getElementById("subject").value = subjectLine;
        alert(subjectLine); 
    </script> 
    <tr>
      <td align="left">Subject:</td>
      <td align="left" colspan="5">
       <b><input type="Text" name="subject"  required="Yes" size="70" maxlength="70" onClick="setValue();"></b>
    </td>
    </tr>

  • Variable Selection option takes lot of time

    Hi All,
    One of my variable for the info object "0GL_Account" is taking lot of time while displaying the list for selection options (almost 12-13 mins for 950 records). I tried bmany changes in the info object properties.....but in vain........moreover, many other variables with equal no. of records are all performing properly. Please suggest the remedy...

    Hi,
    It depends how are you reading your InfoObject master data in the query.
    You can read the values that exist in the InfoProvider, or you can read the values that exist in the master data of the InfoObject.
    Both options take different time in reading the values.
    You can try both options in transaction rsd1 tab Business Explorer in the option "Query Execution Filter Val. Selectn".
    Diogo.

  • Query variable for InfoObject with texts

    Hello experts,
    In the BW I have an InfoObject of type NUMC 19 that stores tasks master data and does have texts, we assume that the InfoObject is called Z_TASK. The texts represent the multi lingual task names. I need to build up a query that filters on the task names, e.g. all tasks between A* and C*.
    When I use a variable in the query, the variable takes the key field values (NUMC values of the InfoObject Z_TASK).
    My questions are:
    1. Is there a possibility to solve this problem using query variables?
    2. Other solutions?
    Thanks in advance.
    Marco

    Hi Marco,
    one possibility would be to create a ods object and post the master data to that ods. Include the text (description) into the datafields of the ods. Enable BEX reporting for the ods. Create a Query on it with a variable selection on the text. Now go back to your other query and create a variable for your task infoobject. Use the prequery on the ods as replacement path for z_task. That should do the job.
    kind regards
    Siggi

  • Select options with out intervals and with extension in WebDynpro ABAP

    Hi webdynpro experts,
    I am with working with webdynpro select options.
    Is there any way to hide selection screen intervals with extension same as ABAP?
    Your input is appreicated.
    Thanks
    Rajesh Yadla

    Hi Prabhu,
    I have two radio buttons ex: R1 and R2 and three Fields Ex: Vendor, User Name and Password.
    When I select R1 Vendor field should be Visible and when I select R2 Vendor field should be invisible.
    I created one attribute of type WDUI_VISIBILITY and binded in Visbility property of Vendor field.
    On action of R1 I am setting attribute value as Visible using Set_attribute method and On Action of R2 I am setting BLANK in Set_attribute method. But somehow I am unable get the solution......
    Thanks
    Basu

  • Creating select option with the search help based on other select option

    Hi,
    I have displayed a selection screen with two select options S1 and S2.
    My requirement is that the values in the search help of S2 should get filled based on the values selected in S1.
    Note: User has option to select multiple values in S1.
    Does anybody know how to implement this?
    Thanks,
    Feroz

    >
    Sanjeeva wrote:
    > Hi,
    >
    > With standard f4 you cannot acheive this. You need to write customise with OVS or Simple value selector by reading S1 selected values.
    >
    > Thanks,
    > Sanjeev
    I'm getting fairly tired of seeing this completely incorrect information on this forum.  As stated before and already found out by this poster, you can map input and output values between multiple data dictionary search helps. You do NOT have to resort to using OVS for this option.

  • Field in the selection screen as a select option with two default values

    Hi All,
    can anybody tell me how to put field in the selection screen with two defaul values.
    for ex:  selection screen the Account Group KNA1-KTOKD as a select option. The defeault value should be Y001 and Y005.
    please reply ASAP. Its urgent.
    Thanks in advance,
    Madhu

    Hi Madhu,
    Since Select options are nothing but ranges, you can use the following code to add two distinct values to the select options by default.
    s_ktokd-sign = 'I'.
    s_ktokd-option = 'EQ'.
    s_ktokd-low = 'Y001'.
    append s_ktokd.
    s_ktokd-low = 'Y005'.
    append s_ktokd.
    clear s_ktokd.
    However, if you want to mention a range like all the values between these given two values to be considered then u may use,
    select-options : s_ktokd for KNA1-KTOKD default 'Y001' to 'Y005'.
    or
    s_ktokd-sign = 'I'.
    s_ktokd-option = 'BT'.
    s_ktokd-low = 'Y001'.
    s_ktokd-high = 'Y005'.
    append s_ktokd.
    Reward if helpful.

  • Select-options with where condition

    Hello ABAPers,
    I want to create a select-options like s_operid for vbpa-kunnr but with a condition specified is VBPA-KUNNR where VBPA-PARVW = 'WE'.
    Thanks in advance. Pls reply asap. Points will definitely be rewarded.
    Ritu

    hi,
    use this
    PARAMETERS : TAB_ID TYPE ZALOAD_PROD_COMB-TAB_ID OBLIGATORY.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR TAB_ID.
    DATA : BEGIN OF INT_TAB_ID OCCURS 0,
                TAB_ID TYPE ZALOAD_PROD_COMB-TAB_ID,
             END OF INT_TAB_ID.
      DATA : LOC_MAX TYPE ZALOAD_PROD_COMB-TAB_ID.
      CLEAR INT_TAB_ID.
      REFRESH INT_TAB_ID.
      SELECT MAX( TAB_ID) INTO (LOC_MAX) FROM ZALOAD_PROD_COMB.
      COUNT = LOC_MAX + 1.
      DO 10 TIMES.
        MOVE COUNT TO INT_TAB_ID-TAB_ID.
        APPEND INT_TAB_ID.
        COUNT = COUNT + 1.
      ENDDO.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
         RETFIELD            = 'TAB_ID'                        u201C Internal table field name
         DYNPPROG         = 'PROG_NAME                  u201C Program name
         DYNPNR              = SY-DYNNR
         DYNPROFIELD   =  'TAB_ID'                        u201C Field where u need F4 help
         VALUE_ORG       = 'S'
       WINDOW_TITLE  = u2018Any descriptionu2019
        TABLES
          VALUE_TAB      = INT_TAB_ID.                   u201C Internal table name
    Mark the post answered once ur problem is solved ....

  • Select Option with masked entry in GRR3 report

    Hi,
    I am trying to find out if it is possible in standard to call a grr3 report like s_alr_87013611 (cost center report) and be able to enter the cost element like 4* to get all values for cost elements starting with 4.
    When trying this I get an error message and the only select option that appears is "=".
    In a KE80 report like S_ALR_87013326 on profit centers I can select the account and here it works fine with 4*.
    What is responsible for this and where can I do the settings? Any help is greatly appreciated.
    Thomas

    Follow-up:
    I noted in another post, that you can set the default value in the entity object, and this can carry through to the List-based object and retain that as the "selected" option.
    How do you set the selected option programmatically/via properties or tag attributes, without doing something like this:
    <select name="Cardtype1">
    <c:forEach var="listEntry" items="${bindings.Cardtype1.displayData}">
    <c:choose>
    <c:when test="${listEntry.prompt=='VISA'}">
    <option value="<c:out value='${listEntry.index}'/>" selected="true">
    </c:when>
    <c:otherwise>
    <option value="<c:out value='${listEntry.index}'/>" >
    </c:otherwise>
    </c:choose>
    <c:out value="${listEntry.prompt}"/>
    </option>
    </c:forEach>
    </select>

  • Standard Match Code for Selection Options with Example

    Hi Guys,
                 Can anybody tell me Standard Match Code or Search help for Selection Options.
             ex: MBEW-MATNR , MBEW-BWKEY and MBEW-BWTAR. can anybody tell how to keep Search Help or Match Code for the Above Fields in ECC 6.0 with Example
              Very Urgent.
    Thanks,
    Gopi.

    Well Gopi.. as per your requirement no need to use collective search help.
    I guess you have three fields in selection-screen,out 3 fields you have two fields contains search help.
    Create your user defined search help BWTAR ..
    Check the below links for creation search help :
    http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    Hope you got it.
    Thanks
    Seshu

  • Select-options with 2 rows

    Hi,
    i've got to make a report with 2 rows in the select-options
    SELECT-OPTIONS: sel001 FOR stichtag NO INTERVALS NO-EXTENSION,
                    sel002 FOR dfkkop-gpart DEFAULT 'M00000' TO 'M99999',
                    sel003 FOR dfkkop-vtref DEFAULT 'A00000' TO 'A99999',
                    sel004 FOR dimaiobpar-zstatus DEFAULT '1' NO INTERVALS.
    for sel003 i need another default-row with 'B00000' to 'B99999' so that i can assign both rows to vtref_r
    APPEND sel002 TO gpart_r.
    APPEND sel003 TO vtref_r.
      CALL FUNCTION 'FKK_OPEN_ITEM_SELECT_WITH_DATE'
           EXPORTING
                i_key_date = stichtag
                i_gpart    = gpart_r
                i_vtref    = vtref_r
           TABLES
                t_op       = itab2.
    i need both in this function.
    regards,
    Tobias

    Hi Tobias,
    You can use the header line of sel003 to append these values to the selection table sel003 (actually sel003 is the name of the header line as well as the table created using SELECT-OPTIONS sel003 for.... statement).
    APPEND sel002 TO gpart_r.
    APPEND sel003 TO vtref_r.
    "set the header line for sel003 for the second row
    sel003-sign = 'I'.
    sel003-option = 'BT'. "between for a range
    sel003-low = 'B00000'.
    sel003-high = 'B99999'.
    append sel003.
    clear sel003." this will clear the header line sel003
    CALL FUNCTION 'FKK_OPEN_ITEM_SELECT_WITH_DATE'
    EXPORTING
    i_key_date = stichtag
    i_gpart = gpart_r
    i_vtref = vtref_r
    TABLES
    t_op = itab2.
    Using header lines is an obsolete way in ABAP Objects context, try avoiding it.
    Hope this helps.
    Thanks
    Sanjeev

  • How to make dynamic select list with time interval of 15 minutes

    Dear all,
    I've a question. I need a select list that contains time with intervals of 15 minutes from 08:00 till 16:00.
    example 8:00
    8:15
    8:30
    8:45
    9:00
    9:15
    and so on till 16:00
    The values or stored in a varchar column.
    Can someone please help me with this one?
    Best regards,
    Caroline

    I think the easiest way would be to create a table "INTERVALS" with one row and column "INT_PERIOD"? per 15 minute period description
    8:00
    8:15
    16:00
    Then create your select list item based on a Dynamic List, or Query as
    SELECT int_period d, int_period r
    FROM INTERVALS
    ORDER BY INT_PERIODYou could write something to load the table, but that might take about as long to just edit in the values.
    Making it a Dynamic LOV, you then have it available anywhere else you might need it.
    Edited by: Bob37 on May 4, 2012 8:57 AM

Maybe you are looking for

  • Problem using var1 to identify a name of two files.

    Hi people, In my configuration part I use the %Var1% statement to assing the name of diferents files, but when I open the file in a editor text inside of it I see the name of the file to. I only need the file name to identify it but I don't need it i

  • Maybe a bug? using  DBMS_XMLGen.ctxHandle;

    Hi all, I use a Oracle 10g Database, and i don't know if the following is a bug or i have done something wrong. I am trying: CREATE OR REPLACE PROCEDURE MAIN.PRUEBA_XML IS v_xml clob; v_ctx DBMS_XMLGen.ctxHandle; doc xmldom.DOMDocument; BEGIN DBMS_LO

  • Value too long in property 'Currency'

    Hi SCN, Im trying to upload AR Open Balance using DTW, But I encountered an error such Value too long in property 'Currency' And when I checked the template I used, I only used 3 values, which was PHP. How can I resolve this? Regards, Mahj

  • What exactly is a smart mail box?

    I have searched around and cannot quite workout what the difference between a normal mail and a smart mail box is....just seems like a glorified way of implementing rules?

  • Not allowing to create field starting with underscore and numbers

    Hi All I'm trying to create a datatype in PI 7.1 with element starting with underscore and numbers like _Name , 1.0.Name. when I'm trying to activate the dataype. I'm getting the error Activation of the change list canceled.please help me out Thanks