How to select range of values (select-options) in BDC?

Dear experts,
  I need to write a BDC program for the T-code CN72 where i need to  handle a range of intervals (select-options) for the WBS element field in the initial screen.I have done the recording. what is the logic in BDC to handle the range of intervals ?
How do we handle the range of intervals?

Hi,
  Suppose your select-option field name is N_PSPNR .then send the values as N_PSPNR-LOW = 'ABC'
    N_PSPNR-HIGH = '678' . In recording u will find the screen field name and what value is passed.
regards
Manish

Similar Messages

  • Select range of values in dynpro aplication

    Hi ,
    I have to do some changes on existing dynpro transaction. I have add pop up with two input fields (FROM and TO)
    After pressing ok button data should be selected d from internal table for all values  between  FROM and TO ( from the screen) .
    As this is a dynpro application iI cannot use select-options statement.
    In the internal table where from data should be selected it can be several entries for the value entered on screen, I need all of them . So  if user enterson   FROM = 'B'  TO = ' D'   (from the table i_tab )
    I_tab
    1 A
    2 B
    3 B
    4 C
    5 D
    6 D
    7 E
    I need folowing entries to be selected .
    2 B
    3 B
    4 C
    5 D
    6 D
    Please advice how can I do that without select-option.
    Thanks.

    Hi ,
    I did try and it works in two cases when FROM and TO fields are filled in, and when  o,ly FROM is filed in.
    When  FROM is empty and TO field is filled in the range is populated but  no data is selected in folowing loop.
    Please advice
    r_bname_wa-low = gv_user_from .
    r_bname_wa-high = gv_user_to.
    r_bname_wa-sign = 'I'.
    if  gv_user_from is initial or
        gv_user_to is initial.
        r_bname_wa-option = 'EQ'.  "equal
    else.
        r_bname_wa-option = 'BT'.  "between
    endif.
    append r_bname_wa to r_bname.
    loop at i_lrf_wkqu  where bname in r_bname.
         append i_lrf_wkqu  to i_lrf_wkqu_tmp.
        endloop.

  • How to display multiple prompt values selected, in the report

    Hi,
    I have a LOV : SELECT DISTINCT CO.V_MOVEMENT.ORIGIN_BRANCH_CODE FROM CO.V_MOVEMENT ORDER BY 1
    and a parameter associated with it which is multiple selection enabled. The parameter name is P_BRANCH.
    When I am displaying P_BRANCH at the top of my report (RTF), it's showing only one value whereas I need to display all the selected value as Comma Separated.
    Please help.
    Thanks & Regards,
    Antara

    The other option to fetch all the selected values to the report (RTF) is to create a dataset for the field and in the template create a repeating group for each value.
    Eg:
    1) The SQL is : ( In SQL Server, where :P_S_ORIGIN_BRANCH_CODE is Prompt )
    SELECT DISTINCT
    :P_S_ORIGIN_BRANCH_CODE as P_BRANCH
    2) XML is :
    <DATA_DS>
    <G_1>
    <P_BRANCH>RTM</P_BRANCH>
    </G_1>
    <G_1>
    <P_BRANCH>ABC</P_BRANCH>
    </G_1>
    </DATA_DS>
    3) In report we can display the values as below:
    RTM,
    ABC
    But The Required Output in RTF is : (Values seperated by ",")
    RTM, ABC
    Your help would be highly appreciated.
    Thanks & Regards,
    Antara
    Edited by: user450412 on Oct 10, 2011 4:11 PM

  • How to display the current value selected in DDLB of another screen

    hi Experts
    I need some info regarding the dropdownlist in BSP.
    I have two screens . One screen contains the table view which contains a set of records.Each record has two columns.
    Second screen contains 2 drop down list.
    When i select one record and then press the submit button in the first screen .Then i want that the selected value of the selected record will display in the DDLB of the second screen. And then i can again select the value from the drop down list.
    For example:
    1st screen:
    record 1.
    col 1     col 2
    record 2
    col 1     col 2
    2nd screen
    ddlb1...........
    ddlb2...........
    So when i select the record1, then the current value of col1 and col2 should visible on the ddlbs of second screen first time. Then i choose other value from the ddlbs.....
    My Question is how to do the following
    "when i select the record1, then the current value of col1 and col2 should visible on the ddlbs of second screen".
    please provide some suggestions...
    Thanks.

    Hi,
    You can use form with post method
    like
    <htmlb:form method = "post"
                      action = "page2.htm"
                      target = "coding" >
    <htmlb:dropdownListBox id             = "labelAlignment"
                                               selection      = "<%= me->labelAlignment %>"
                                               onClientSelect = "document.forms[0].submit();" >
                          <htmlb:listBoxItem key   = "LEFT"
                                             value = "LEFT" />
                          <htmlb:listBoxItem key   = "RIGHT"
                                             value = "RIGHT" />
                        </htmlb:dropdownListBox>
    So once you select col1 and col2 in your case its value is in page attribute say hold, this attributes needs to be defined in page2.htm also with auto checked. You can get the val selected in page1.htm
    If helpful rewards point.
    Regards,
    Albert

  • How to disable "Enter Parameter Values" for optional paramters?

    I'm having issues getting the Crystal Reports .NET Viewer to suppress the "Enter Parameter Values" dialog for optional parameters.  I have templates created using Crystal Reports 2008 and am linking against the CR for VS 2010 runtime.
    Within the report template the optional paramter has "Optional Prompt" set to "True".  This particular parameter also allows multiple values and is used in record selection.  Within the record selection it is using HasValue().
    It seems the parameter is set up properly as I have other parameters that are set within the code that are not prompted for.  If I pass in the optional parameter through the code the "Enter Paramater Values" dialog also does not appear and the report is generated correctly.  All of the parameters are set using ParameterFields and they are set before the ReportSource is set.
    Looking through the .NET API documentation it seems like the CrystalReportViewer should have an "EnableParameterPrompt" property that would do what I want however it doesn't seem to be a valid parameter as I get compile errors when I try to use it...  Not sure if it matters or not but I am using managed C++ and our application is built using Visual Studio 2005.  Could that maybe have something to do with it?
    Thanks,
    -Ben

    OK, I'm going to answer my own question as with a little more digging I was able to find out that I needed to set some stuff on the report document to specify that there are no values.  Still not sure why "EnableParameterPrompt" is not valid for me though as it seems like that would work as well.  At any rate here is what I needed to do:
    ReportDocument->ParameterFields[<Optional Parameter Name>]->CurrentValues->Clear();
    ReportDocument->ParameterFields[<Optional Parameter Name>]->CurrentValues->IsNoValue = true;
    -Ben

  • How to specify ranges in value mapping?

    Hi,
    Is there any possibility of specifying ranges in a value mapping?

    hi,
      Value mapping used maintaining the single values for various represendation.Not for Value ranges.
       You can handle that in mapping level.like
       If you using Graphical mapping then Input fieldBellow 60If---then ---C.
    Regards,
    Prakasu

  • Add Selection Ranges to KE30

    Hello -
    I was wondering if anyone knew how to add the selection ranges (single values, ranges, exclude single value, exclude range) to a KE30 report.
    Through the use of variables, I can add single values and ranges, but I would like the full functionality seen in other reports to be able to exclude a value, etc.
    Please let me know!
    Thanks.

    Hi Emmas,
      Select option variables in CO-PA-IS are defined in the following way:
    you can enter only single values or intervals and you are not allowed to use any excluding functionality and greater than or less
    than functionality. This decision was made by the application CO-PA-IS because of performance reasons.
      The functionality you are looking for is not available this way in CO-PA drilldown reports. The 'NOT EQUAL' selection is also not
    available in higher releases.
    I am sorry i could not provide a better answer.
    Best Regards,
    Abhisek Patnaik

  • Prompt: Restriction on multiple values selection

    Hi All,
    I want to restrict number of values selection on multi value selection prompt.
    How could I achive that,Please guide.
    Thanks in advance.
    Amruta

    Amruta,
    Amr is right, however, if your requirement is that the user is to select no more than two at any time, you might try this approach:
    Use the prompt but the operator is "=" (equal) versus "in" and use two prompts connected with an "or".  If the user only wants to select one item, then they can be told to use the same value for the first prompt and second prompt (choose "lion" first, and choose "lion" second) -- because they are connected with an "or" there is no ill effect other than an inefficient "where" clause generated.
    If you are required to provide more flexibility than just two items, then you are stuck in being able to limit selections when a list is presented and you're using "in" as the operator.
    Thanks,
    John

  • Please, How do i get the values from a h:selectManyCheckbox ?

    How do i get the values (selected or not) of a <h:selectManyCheckbox> tag and show them .For instance
    i have the folowing options :
    <h:selectManyCheckbox
                           id="cartas"
                       layout="pageDirection"
                        value="#{store.cartas}">
          <f:selectItems
                        value="#{cartas}"/>
        </h:selectManyCheckbox>
        <h:message styleClass="validationMessage" for="newsletters"/>with my faces-config.xml:
    <managed-bean>
        <description></description>
        <managed-bean-name>cartas</managed-bean-name>
        <managed-bean-class>java.util.ArrayList</managed-bean-class>
        <managed-bean-scope>application</managed-bean-scope>
        <list-entries>
          <value-class>javax.faces.model.SelectItem</value-class>
          <value>#{cartas0}</value>
          <value>#{cartas1}</value>
          <value>#{cartas2}</value>
          <value>#{cartas3}</value>
        </list-entries>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>cartas0</managed-bean-name>
        <managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
        <managed-bean-scope>none</managed-bean-scope>
        <managed-property>
          <property-name>label</property-name>
          <value>Semanal</value>
        </managed-property>
        <managed-property>
          <property-name>value</property-name>
          <value>200</value>
        </managed-property>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>cartas1</managed-bean-name>
        <managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
        <managed-bean-scope>none</managed-bean-scope>
        <managed-property>
          <property-name>label</property-name>
          <value>As bruxas</value>
        </managed-property>
        <managed-property>
          <property-name>value</property-name>
          <value>201</value>
        </managed-property>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>cartas2</managed-bean-name>
        <managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
        <managed-bean-scope>none</managed-bean-scope>
        <managed-property>
          <property-name>label</property-name>
          <value>Exercise</value>
        </managed-property>
        <managed-property>
          <property-name>value</property-name>
          <value>202</value>
        </managed-property>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>cartas3</managed-bean-name>
        <managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
        <managed-bean-scope>none</managed-bean-scope>
        <managed-property>
          <property-name>label</property-name>
          <value>Gusman Park</value>
        </managed-property>
        <managed-property>
          <property-name>value</property-name>
          <value>203</value>
        </managed-property>
      </managed-bean>Thanks for the atention!! All the best!!

    Hi,
    In your backing bean you will need to add a new variable to bind your control to, I think this variable needs to be of teh "HtmlSelectManyCheckbox" type. The on your jsp page you can add binding="#{myBean.myVariable}".
    When you want to get the values of the selectMany in your backing bean, you can call the getSelectedValues() function on your HtmlSelectManyCheckbox variable.
    in backing bean:
    private HtmlSelectManyCheckbox hsmc;
    public HtmlSelectManyCheckbox getHsmc(){
        return hsmc;
    public void setHsmc(HtmlSelectManyCheckbox hsmc){
        this.hsmc = hsmc;
    public void someFunction(){
       Object[] obs = hsmc.getSelectedValues();
    }On jsp page:
    <h:selectManyCheckbox
                           id="cartas"
                       layout="pageDirection"
                        value="#{store.cartas}"
                         binding="#(myBean.hsmc}">
          <f:selectItems
                        value="#{cartas}"/>
        </h:selectManyCheckbox>

  • Data fetch for range of value inside an assistance class

    I want to create an assistance class where I can fetch data for the range of values selected ( basically when I select a range of sales order ).
    I was only only successfully in creating parameters, passing single values.
    Regards,
    Krishna.

    Hi Krishna,
    Logic to fetch the data of range ( implement in the method  )
       data : lv_matnr TYPE string VALUE 'MATNR',
                lr_matnr TYPE REF TO data.
    FIELD-SYMBOLS : <lr_matnr> TYPE ANY TABLE.
    ************ Method to call range of data ************************
    CALL METHOD wd_this->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD
      EXPORTING
        I_ID               = lv_matnr
      RECEIVING
        RT_RANGE_TABLE     = lr_matnr.
    ASSIGN lr_matnr->* to <lr_matnr>.
    *************** call the method of the assistance class
    wd_assist->GET_DATA( EXPORTING IR_MATNR = <lr_matnr> ).
    ****************** parameters of the method in the assistance class ********************
    Hope this helps you
    Thanks & Regards,
    Sankar Gelivi

  • HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.

    HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.
    how can we add range selection in screen painter.
    regards.

    Hi,
       create two input fields and a push button like select option in the screeen.
    Try checking this logic
    <b>Program:</b>
    <b>ranges</b> ra_matnr for mara-matnr.
    <b>Layout field name declaration:</b>
    Give the low field name as ra_range-low
      and high field name as ra_range-high.
    extension for pushbutton.--exten(function code)
    next -- function code for the enter key.
    PBO
    module status_3000.
    PAI
    module user_command_3000.
    <b>module user_command_3000.</b>
    if sy-ucomm = exten.
      call screen 400. (screen which shows extension values can be kept).
    elseif sy-ucomm = Next.
    if ra_matnr-low is not initial.
        ra_matnr-SIGN = 'I'.
        ra_matnr-OPTION = 'EQ'.
        APPEND ra_matnr.
        clear ra_matnr.
    endif.
    if ra_matnr-high is not initial.
        ra_matnr-SIGN = 'I'.
        ra_matnr-OPTION = 'EQ'.
        APPEND ra_matnr.
        clear ra_matnr.
    endif.
    endif.
    endmodule.
    module status_3000.
    read table ra_matnr  index 1 into ra_matnr .
    set pf-status '3000'.
    set title '3000'.
    endmodule
    Br,
    Laxmi.

  • How do I select a range of values in MySQL using a drop down menu

    Hi,
    I have a database of picture frames that have a value of
    frame width. I want to be able to select a range of values (i.e.
    .50" to 1") instead of each and every value (i.e. .50", .56", .76",
    etc.). I have a drop down menu (mnuWidth) with 5 ranges (see
    attached code).
    Each selection has a value from 1 to 5 indicating the range I
    want to search. In my results page I have let DW set up a recordset
    (see attached code)
    Can anyone tell me how to get this to choose a range instead
    of just the value entered by my menu?
    Thanks in advance.
    Tom

    I have been growing fond of lookup tables. Your lookup table would have your numbers in one column and the values you want returned in the next.
    Lookup table
    item
    Name
    1
    a
    2
    b
    3
    c
    4
    d
    5
    e
    6
    f
    7
    g
    8
    h
    9
    i
    Input table
    input
    Name
    1
    a
    B2 and copied down:
    LOOKUP(A2,lookup::$A$2:$A$11,lookup::$B$2:$B$11)
    Caution: Lookup will return the closest value so it it looks for "10" in this example it will return "i"
    If you don't want to see the error messages from blank inputs, wrap Lookup in IFERROR.
    hope this helps
    q

  • 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.

  • Report writer/Report painter - How to define the range on the selection scr

    Hi,
    I want to use one field "Fiscal year for CG breakdown" in my customized report in which user can select the year in range ie FROM - to - TO range.
    Can anybode tell me how do we define the range in the selection screen?
    I have tried using the General data selection.. but its not working.
    Edited by: Seema Nakhale on Oct 7, 2008 11:13 AM

    Hi,
    Create a variable for the Fiscal Year field in tcode GS11. While creating the variable for the field, use the option "Value Entry Only".
    Thereafter refer the variable in the "General Data Selection" for the field with the options "Set" and "Variable" both ticked for the fiscal year. Also enter the variable name created above in the field in General Data Selection.
    This will allow you to enter the fiscal year as range while executing the report.
    Regards,
    Ramanand

  • How can I re-display my selected option?

    In my jsp, I gain option values for a list of 'types' and 'names'
    If the currentType = null I do not show the form that accepts the 'names'.
    When a type is selected the Action class calls the getMethod in the ActionForm
    and upon success returns to the jsp page and presents the 'name' form.
    Unfortunately the 'type' form redisplays the first type in the list and not the
    currentType.
    Question. How can I set the selected option in my form to display the currentType?
    <!-- Access session bean for picklist types -->
    <jsp:useBean
    id="typesBean"
    scope="session"
    class="com.aaa.zzz.refdata.beans.CPartyTypesBean" >
    <jsp:setProperty name="typesBean" property="*" />
    </jsp:useBean>
    <%
    CPartyTypesBean typeBean = (CPartyTypesBean) session.getValue("typesBean");
    String[] PicklistTypes = typeBean.getTypes();
    %>
    <!-- Access Form Bean (ActionForm) for current Name & Type -->
    <jsp:useBean
    id="pb"
    scope="session"
    class="com.aaa.zzz.refdata.beans.CPartyPicklistBean" >
    </jsp:useBean>
    <jsp:setProperty name="pb" property="*" />
    <%
    String currentType = pb.getType();
    String currentName = pb.getName();
    %>
    <html:form action="/typeAction" focus="type">
    <table>
    <tr>
    <td WIDTH="20%">
    Picklist Type
    </td>
    <td WIDTH="30%">
    <select name="type">
    <%
    for(int i=0; i<PicklistTypes.length; i++)
    out.println("<option>" + PicklistTypes[i] + "</option>");
    %>
    </select>
    </td>
    <td WIDTH="20%">
    <html:submit property="submit" value="GetType"/>
    </td>
    <td WIDTH="30%">
    </td>
    </tr>
    </table>
    </html:form>
    <%
    if (currentType != null)
    %>
    <html:form action="/nameAction" focus="name">

    Thanks Beattris, I guess 'selected' is the obvious answer but what I was looking for was
    how to apply 'selected' to the loop that prints my options.
    However I figured it out and did this:
    <%
    for(int i=0; i<PicklistTypes.length; i++)
    String sel = null;
    if(currentType != null && currentType.compareTo(PicklistTypes)==0)
    sel = " SELECTED>";
    else
    sel = ">";
    out.println("<option value=" + PicklistTypes[i] + sel + PicklistTypes[i]+"</option>");
    %>

Maybe you are looking for

  • F4 help for date field in ITS

    hi all; I was working on ESS Leave Request, i am using the standard program SAPMWS20000081H and the service template WS20000081. Now in the EP view i am unable to get the F4 help for the date field 'Absence From' & 'Absence To'. i have checked the da

  • Dynamic columns on output values for a Web Service connection

    Hello, I'm trying to create a web service connection that is similar in response to the XML data connection in that i don't want to fix the number of columns per row down in the WSDL. i.e. i want to create an array of columns:   <xsd:complexType name

  • Java.sql.SQLException: Statement cache size has not been set

    All, I am trying to create a light weight SQL Layer.It uses JDBC to connect to the database via weblogic. When my application tries to connect to the database using JDBC alone (outside of weblogic) everything works fine. But when the application trie

  • Playlists not syncing correctly from iTunes to iPhone4

    iTunes is not syncing my playlists consistently. As it is difficult to describe exactly what is going wrong, I'll also list the things that I did to test the issue. I am currently using itunes v10.6.3.25 on Win7 64-bit and iOS v5.1.1 and iTunes Match

  • Webapp - where to store user files?

    Hi All, My app is packaged in a WAR file, which gets expanded by servlet container during deployment. The app operates with folders containing user data (files uploaded by users, email templates, etc). Where should I create these user data folders -