Multiple Single Values with Select Options

hi,
I'm using the SELECT_OPTIONS to accept the multiple input values through CREATE_RANGE_TABLE and it is working well but
1) i have requirement for some input fields that should accept multiple single values means without RANGES(From .. To).. Usually we achieve this by statement SELECT-OPTIONS in ABAP,  could you help me out how i can achieve same functionality in webdynpro application.
2) i'm using dictionary search helps for WD4A, here i need to select multiple rows in the F4 results.
kindly provide suggestion how to achieve above functionalities.
thanks,
gupta.

Hi , make the ls_rsoptions-eq eq abap_true .. this disable the multiple value selection
data: ls_complex_restrictions type if_wd_select_options=>t_complex_restrictions,
           ls_rsoptions                    type rsoptions.
  clear ls_rsoptions.
  ls_rsoptions-bt = abap_false.
  ls_rsoptions-cp = abap_false.
  *ls_rsoptions-eq = abap_true.   " for enable only single value* 
ls_rsoptions-ge = abap_false.
  ls_rsoptions-gt = abap_false.
  ls_rsoptions-le = abap_false.
  ls_rsoptions-lt = abap_false.
  ls_rsoptions-nb = abap_false.
  ls_rsoptions-ne = abap_false.
  ls_rsoptions-np = abap_false.
  ls_complex_restrictions-m_exclude = ls_rsoptions.
  clear ls_rsoptions .
  ls_rsoptions-bt = abap_false.
  ls_rsoptions-cp = abap_false.
  *ls_rsoptions-eq = abap_true.   "  for enable only single value*
  ls_rsoptions-ge = abap_false.
  ls_rsoptions-gt = abap_false.
  ls_rsoptions-le = abap_false.
  ls_rsoptions-lt = abap_false.
  ls_rsoptions-nb = abap_false.
  ls_rsoptions-ne = abap_false.
  ls_rsoptions-np = abap_false.
  ls_complex_restrictions-m_include = ls_rsoptions.
wd_this->m_handler->ADD_SELECTION_FIELD(
    I_ID                         =  typename
    I_DESCRIPTION                = 'N length 5'
    IT_RESULT                    = lt_range_table
    I_COMPLEX_RESTRICTIONS       = ls_complex_restrictions
    I_USE_COMPLEX_RESTRICTION    = ABAP_TRUE
    I_NO_EXTENSION               = ABAP_false
    I_NO_INTERVALS               = ABAP_TRUE ).
for result see this screen shot from the below URL , hope this is your requirement
[http://i35.tinypic.com/2u8ckno.jpg|http://i35.tinypic.com/2u8ckno.jpg]
Regards
Chinnaiya P

Similar Messages

  • Difference between Multiple single values and Selection option variables

    Hi !
    Can any one tell me the difference between variable types:
    Multiple single values and Selection option?
    I used each one of them for selecting values for a characteristic but could not notice a difference in choosing values.
    Is there some difference in functionality or can they be used interchageably?
    Regards,
    Sri Harsha

    Harsha,
    When you go for slection option, in the variable input screen you will be having a button in the last where you can give your slections. There you can maintain either multiple single values and Multiple intervals or else not equal to also..
    Just check out there... you will be having tabs for each..
    Assign Points if it helps
    Gattu

  • How to get option select single Values in select options

    Hello All,
    I have a requirement where, in select-options i should avoid the range selection and should have only select single values option. User wanted to give the list of 10000 materials by using copy and paste as we have in normal abap with pase clip board option.
    Please let me know if you need any further clarification. your quick response would be highly appreciated.
    Thanks
    Raj.

    Thanks for the reply, I have already done this but when you add values to it at a time 1000 material information we can not add.
    so you go to selection screen and you have only one input box with arrowe button. click on the arrow and then you will get the screen where it will ask you to add five records and that to ranges.
    but if you click the same arrow in normal selection screen of SAP you get 4 tabs in which first tab will be select single values.
    and there by using copy from notepad option we can add how many entries we want.
    Let me know if you need any further clarification to understant the requirement.
    Thanks,
    RaJ.

  • Interval selection and multiple single values in WAD Graphs

    Hi ,
    I am developing a Web Application Designer Graph  by combining multiple reports. I have 0CALMONTH,Country as my variable selections. By default I am able to select only single values (January,Feb etc.) But I need to select intervals(From-To) for 0CALMONTH and Multiple Single values for 0COUNTRY .
    I found the below link to use intervals by generating javascript
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/f5daaddfdb4c60e10000000a155369/frameset.htm
    But the issue here is, I am not able to change 'From' value i.e. according to this document , Interval start  is to be fixed in the script and I cannot change it later .But I want to change the interval start  any time later. I am not sure how to achieve this using this option.  Also I want to use mulitple single values variable for Country .
    Kindly let me know if there is any other possible options or work-around available.
    Thanks for your time.
    Thanks & Regards,
    Raja.

    Hi Janine,
            Thanks for your reply.I am using 7.0 Templates.Sorry to miss that part.  I think I need to explain the issue little more . I am developing a Chart  using Web Application Designer.  My Chart should be having the Variable in the top of the page and I can able to see that variable . Even I am able to change the values after the execution. But this is working fine only for the Single values, for ex. I can change the selection from June to July in the Chart and I am getting the correct result in my chart based on the selection .
          But the issue is ,I need to select Intervals for the month .Even though I created another variable with the option 'Interval' in the Query Designer , it is not showing the interval screen (From..To) ,instead still it is showing the single values option. I am using two different variables for these purposes and everything is correct with the query designer query. I am able to see the variable in the template,but I am not able to choose the interval values (only the intervals ,single value is ok)
    Thanks for your response
    Thanks & Regards,
    Raja

  • Variable multiple single value filled with customer exit used in FOX form.

    Hi guys, I definitly need your help in the following scenario:
    I have variable (multiple single value) filled in a customer exit and use it in web template. There it is used in the drop down box for selecting a special date in the analysis item. And there comes the first question:Why the results from the customer exit are written in the way "date1; date2; date3" in one line? They should appear line by line in rows. How can I influence that? I tried both data binding types, "variable" and "characteristic".
    Now a button raises a planning function with a fox formula which should write the selected date (from the drop down box) in a customer table using "call function".
    I always get the error, that I need to restrict the variable to "single value". Why do I have to do that and if necessary how can I do that? Other planning functions without the fox formula also work properly with using the selection from the drop down box.
    I appreciate you help.
    Kind regards, Anja.

    Hi Vamsi.,
    Try this code.
    WHEN 'PREVIOUS_YEAR_1'.
    IF I_STEP = 2. "after the popup of user entry
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZCURRENT_YEAR_PERIOD'.
    break-point.
    IF SY-SUBRC EQ 0.
    WA_YEAR = LOC_VAR_RANGE-LOW+0(4). "Year
    WA_MONTH = LOC_VAR_RANGE-LOW+5(3). "Period
    WA_YEAR = WA_YEAR - 1.
    CONCATENATE WA_YEAR wa_month INTO WA_FISC_PERD .
    CONCATENATE WA_YEAR WA_MONTH1 INTO L_S_RANGE-HIGH .
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    ENDIF.
    ENDLOOP.
    endif.
    Assing points if it helps you.
    -- Selva

  • How to compare single value with multiple values

    In my query I have something like this:
    A.SOR_CD=B.SOR_CODE where A and B are 2 different tables. This condition is in the where clause. The column in table A has single values but some values in table B have multiple comma separated values (822, 869, 811, ..).  I want to match this single
    value on the left side with each of the comma separated values. Please let me know how will I be able to do it. The number of comma separated values on the right side may vary.

    Hi MadRad123,
    According to your description, you want to compare single value with multiple values in your query. Right?
    In this scenario, the table B has comma separated values, however those comma separated values are concatenated into a string. So we can use charindex() function to return the index of the table A value. And use this index as condition in
    your where clause. See the sample below:
    CREATE TABLE #temp1(
    ID nvarchar(50),
    Name nvarchar(50))
    INSERT INTO #temp1 VALUES
    ('1','A'),
    ('2','A'),
    ('3','A'),
    ('4','A'),
    ('5','A')
    CREATE TABLE #temp2(
    ID nvarchar(50),
    Name nvarchar(50))
    INSERT INTO #temp2 VALUES
    ('1','a,A'),
    ('2','A,B'),
    ('3','c'),
    ('4','A,C'),
    ('5','d')
    select * from #temp1 a inner join #temp2 b on a.ID=b.ID
    where CHARINDEX(a.Name,b.Name)>0
    The result looks like below:
    Reference:
    CHARINDEX (Transact-SQL)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Multiple records with select option

    i have to use select option in selection screen, which wl take the multiple values but that select option wont act as a range, the select option is a session name  from sm35, the table from where data is retrieved is APQI, i have used  a parameter before using select option ,like:
    selection-screen begin of line.
    parameters: P_grpid like apqi-groupid.
    select-options: s_grpid like apqi-groupid.
    selection-screen end of line.
    AT-SELECTION SCREEN ON VALUE REQUEST FOR p-GRPID. " previous situation
    {the code starts
    FM F4 selection is called}
    AT-SELECTION SCREEN ON VALUE REQUEST FOR S_GRPID-low. " CURRENT situation
    FM F4 selection is called}
    now when i give data in slection screen for s_grpid-low then it works as a parametr, but it doesnt take multiple values at s_grpid when i have alos mentioned the same for s_grpid-high.
    Please tell me how to achive multiple records with select option, or u can also send a sample code if you have..
    Thanks
    Swarnali

    Hello Swarnali,
    You need to fill internal table of select-option once you got into the event AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    so sudo code will be:
    AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    Select data from table.
       so_carr-LOW = value
       append so_carr.
    You can also use NO INTERVAL to suppress the so_carr-HIGH value on selection screen.
    Thanks,
    Augustin.

  • How to avoid SYSTEM_NO_TASK_STORAGE  with multiple single values variable

    Hi experts,
    I am trying to do a distribution with reference data standart SAP function.
    Fields to be changed:
    ZPDHIER2 (Economic Group II)
    ZPDHIER3 (Economic Group III)
    ZPDCLIENT (Client)
    Fields for condition:
    KEY FIGURE NAME
    Fields for reference:
    KEY FIGURE NAME
    ZPDSTATUS (Status)
    FISCPER3 (Fiscal Period)
    The parameters group is like:
    Fields for condition:
    Key figure: ZM_070 (one of the key figures)
    Fields for reference:
    Key figure: ZMONT_TN
    FISCPER3: 001
    Status: DE
    - "Only distribute not assigned" is checked
    I do not want the data to be distributed by any ZPDHIER2, ZPDHIER3 and ZPDCLIENT so I have restricted these characteristics in the planning level by some variables. These variables are user exit type and return multiple single values.
    The issue regarding this message is that when I execute this function, depending on the size of the data brought by ZPDCLIENT user exit variable, this dump might or might not occur. As for the testing I've done, i realize that if the number of clients exceed 500, dump will occur.
    This multiple single values variable (or any other solution) must be prepared for 3900 clients, and this number is expected to increase.
    Anyone have faced same problem?
    Hope you can provide me some help regarding this issue.
    Tanks in advance,
    André Oliveira

    Hi Wadih saad,
    I think the memory is not suffcient to hold the load. Check your swap space and memory during the client export and also check whether there is sufficient space in the hard disk to hold the export files.
    You must have calculated the client size by using the test run. This size must be available as free space in hard disk to do the export.
    Make the available space and do the export it will work.
    Regards,
    Maheswaran J

  • Copy using Variables with multiple single values in BEX

    Hi,
    I have a requirement wherein on executing the planning function, the system should take the FROM and TO values of 0FISCPER and copy the data accordingly.
    Source variable is 'Single Value'.
    Target variable is 'Multiple Single Value'.
    I tried to give the Command Range as below:
    $A$30:$C$31.
    The button sequence is as below:
    VAR_NAME_1      0         ZFISCPER
    VAR_VALUE_1     0
    VAR_NAME_2      1         ZFISCPER_M
    VAR_VALUE_2     1
    In the Analyzer, I entered the values as
    In A30, VAR_NAME_1     0     =C20
    In A31, VAR_NAME_2     1     =C21:C24
    The values that I entered are as below:
    C20 =   2007001 - Source value
    C21 =   2007002 - Target values
    C22 =   2007003
    C23 =   2007004
    C24 =   2007005.
    The problem that Im facing is the system is unable to identify the multiple values that I enter for Target Fiscper and it displays as :#VALUE!
    How to enter multiple single values and reference them accordingly?
    Rgds,
    Shyam

    Hi,
    I have tried to enter multiple single values as below:
    VAR_VALUE_1     0     000  - Source
    VAR_VALUE_1     1     003  -  Target
    VAR_VALUE_2     1     010
    VAR_VALUE_3     1     080
    VAR_VALUE_4     1     099
    When I tried to execute the planning function, the system copies the data from version 000 to ALL versions irrespective of values entered above.ie:
    1
    2
    3
    10
    80
    99
    100
    110
    Rgds
    Shyam

  • Multiple Single Values in Customer Exit

    Hi,
    Can we select multiple single values in the customer exit. I know that we can get single value or range of values with LOW, HIGH, OPTION, SIGN etc. But is it possible to do a multiple single values.
    Any help would be greatly appreciated.
    Thanks,
    Ace

    Ganesh,
    Thanks for the reply, it did give me good ide
    But I do not know how many multiple values I would have. I will be picking those values based on an internal table. So do I need to do another looping.
    Thanks,
    Ace

  • TextEdit for Multiple Single values

    Hi,
    I have a requirement to use the select option. But select option implementations
    looks very complex for me. So i am using textEdit for collecting multiple single values. Like sales order numbers need to be collected in search page to display the details in next page.
       How should i restrict the user to enter 10 degits in each line and i should i collect the each line into a range so that i can use the range variable in select statement.
      Basically i am looking for splitting the continues string with newline and carraigereturns characters into a internal table.
    I need to write code in onInputprocessing event.
    thanks for the quick response.
    Regards,
    Prav

    hi
    use this in oninputprocessing
    DATA textedit TYPE REF TO cl_htmlb_textedit.
    CLEAR textedit.
    textedit ?= cl_htmlb_manager=>get_data(
                                    request = runtime->server->request
                                   name    = 'textEdit'
                                   id      = 'risk'
    CLEAR risk.
    IF NOT textedit->text IS INITIAL.
      risk = textedit->text.
    ENDIF.
    regards saād
    reward points if helped

  • Does 'Multiple Single Values' work in BOBJ 4.0 Webi?

    Experts,
    We have a BOBJ 4.0 environment. We have a BEx variable defined as 'Multiple Single values' in BEx, so that the users can enter multiple materials at the same time to query as the input. The materials are like 02.200.100, 02.100.105, 02.100.402S etc.. In the BOBJ Webi prompt filter section, for the material, I am not able to input multiple single values for the material. I get a 'No values to display' message in the prompt section itself when I try to enter multiple materials separated by semicolon.
    The users have around 500 different materials for which they want to see the data at the same time. They have this materials separated by semicolon in excel, and they want to copy that and enter this information in BOBJ prompt section (where it says to enter the values). I tried separating the materials by semicolon, comma - nothing worked out. When I enter each material individually, and search it with it key, I am able to see the material. So, doesn't 'Multiple single values' option work in BOBJ? I was able to see the data for those 500 materials each separated by a semicolon using the multiple single values option through BEx Analyzer and Portal. Isn't the same functionality provided by BOBJ?
    Please find below my BOBJ prompt screen summary. Since 'Multiple single values' option was not working, I changed the BEx variable to 'Selection Option' in BEx, so in BOBJ we now have a 'Start Value' and a 'End Value' in BOBJ. Still my question is, whether BOBJ supports multiple single values option, so that the users can enter multiple values as input? The users want to enter the multiple materials in the "Enter Search Pattern" bar in the attached screenshot. Please let me know if this is feasible
    Thanks for your time. Points will be rewarded!
    Thanks,
    G.

    Hi Goutham R,
    As of 4.0. it was by a limitation.
    I have read some where that some users were able to meet the requirement by putting a semi colon at the end of each value in a excel and feeding it to the prompt but seems like you have already tried that.
    Please see if you put a vote here in this link:
    Selection option variable not behaving the same way in WebI : View Idea
    But I think this requirement can be met in Analysis edition for OLAP.
    BR
    Prabhith

  • SAP Web-BEx: Variable "Multiple single values" and Excludes

    Dear experts,
    I got a "ultiple single values"variable and use excludes to avoid cetrain data to be shown. Sofar thats all workin quite well.
    But.. if I want to use this variable during navigation,  the variable values are not shown.. why is that?
    It seems the system does not know how to handle the exclude combined with the variable value.
    Does anyone have a solution for this?
    Thanks
    Oliver

    Hi,
    In BEx Web, it makes a big difference: with multiple values you can only fill a list of different values.
    WIth selection option, you can do basically what you want (as the typical GUI selection screen in the Excel BEx): enter a single and an interval including or excluding values, use the LIKE (contains pattern, *) etc....
    hope this shed light
    Olivier.

  • Multiple single values variables in cockpit not possible ??

    Hi,
    I'm trying to create a variable in SEM-CPM-MC, but no matter what I do, I'm only able to create a runtime variable with selection type P - Variable for single value. I can select the other values, but when I save the variable, SAP automatically corrects it to P - Singe value again. I can also create a design variable with the other types, but not a runtime variable. How do I create a variable for which you can enter an interval/multiple single values?
    In the documentation it also says, that you should be able to create variables on a frame level. I don't see any button where I can create a variable on a frame level. I've done exactly as it says on help.sap.com, but I don't have a button to create a new variable on a frame level. How do I do that?
    Any help is appreciated and will be rewarded generously :o)
    Thanks,
    ramesh

    Hi Goutham R,
    As of 4.0. it was by a limitation.
    I have read some where that some users were able to meet the requirement by putting a semi colon at the end of each value in a excel and feeding it to the prompt but seems like you have already tried that.
    Please see if you put a vote here in this link:
    Selection option variable not behaving the same way in WebI : View Idea
    But I think this requirement can be met in Analysis edition for OLAP.
    BR
    Prabhith

  • Passing multiple single values from R/3 BAPI to BW Query in VC

    Hi Experts
    I have a VC model where I am calling an R/3 BAPI which is returning a table of customer accounts.  I'm trying to go directly from that BAPI to a BW Query and pass the table of accounts into the BW Query.
    The BW Query has been set up with a variable to accept multiple single values for accounts, and I have mapped the correct output field from the BAPI to the correct input field on the Query.
    The BAPI does not seem to be passing the table of accounts into the Query.   If I hard code a single account in the mapping of the BAPI to Query call, the Query successfully returns the data I expect.
    Can I pass a table of accounts to a BW Query in this way?
    Many Thanks
    Tom

    Hi
    Have you tried with 'Group & Combine' operator. Just add this operator & join your BAPI & BI Query to this. Then in ths configure of this oparator select the 'Accoount' field & gourp the data accordingly. Also specify the aggregation if required. & in the table/chart after the operator select the fields which you want to show.
    I hope this is what you are looking for.
    Regards
    Sandeep

Maybe you are looking for

  • Windows 8 Saying iPad drive needs to be scanned.

    When I connect iPad to new computer (Windows 8) receive the message - "There is a problem with this device. Scan the drive and fix it now". iPad worked ok on old computer. Can anyone help?.

  • Flash CS4 - Background Colour Change Not Changing in Test Movie

    Hello, Whenever I change the document's background colour in Flash CS4 and then "test movie", the background colour remains white. However if I publish it the colour will be the selected colour. It's not a huge deal since it publishes right, but I'd

  • Export of applicationfiles - filename

    Hello, We want to export applicationfiles from DMS. This can be done easily with CV04N, and then use Distribution function. Applicationfiles are then written to the folder that is configured. Problem is, the filenames generated by the system are mean

  • Program to test speed of internal network?

    Hi, Does anyone know of a program that I can use to test the speed of my internal network? A Windows program would be preferable as I am trying to see how much throughput I am getting from my MacBook Pro running Vista over my 802.11n AEBS to my Dell

  • Exporting figures to word from labview using activex??

    Does anybody know how to export figures into MS Word, XP edition from LabVIEW using activex. I am not using the report generation toolkit...dont have it....help wld be appreciated kuttu