Help With Multiple Selection

I have a data template with several parameters. For one of the parameters I want to be able to select one, multiple or ALL values. At this time I can select one value and it runs fine. If I select more then one value, then I get an error that says: INVALID NUMBER
I am not sure what I am doing wrong.
Here is my data template:
<dataTemplate name="ld_status" dataSourceRef="xmlpdemo">
     <parameters>
          <parameter name="p_ke" dataType="number"/>          <parameter name="p_beg_twn" dataType="number"/>
          <parameter name="p_td" dataType="character"/>
          <parameter name="p_beg_rng" dataType="number"/>
          <parameter name="p_rd" dataType="character"/>
          <parameter name="p_beg_section" dataType="number"/>
          <parameter name="p_end_twn" dataType="number"/>
          <parameter name="p_td2" dataType="character"/>
          <parameter name="p_end_rng" dataType="number"/>
          <parameter name="p_rd2" dataType="character"/>
          <parameter name="p_end_section" dataType="number"/>
          <parameter name="p_beg_parcel" dataType="number"/>
          <parameter name="p_end_parcel" dataType="number"/>
          <parameter name="p_beg_active" dataType="character"/>
          <parameter name="p_end_active" dataType="character"/>
     </parameters>
     <dataQuery>
          <sqlStatement name="Q1">
               <![CDATA[select distinct
     l.quad o_quad
,     l.twp o_twp
,     l.rng o_rng
,     l.section o_section
,     l.county o_county
,     l.fund o_fund
,     l.parcel o_parcel
,     get_land#_display(l.quad,l.twp,l.rng,l.section,l.county,l.fund,l.parcel)
     o_display_land
,     get_cnty_desc(l.county) o_county_display
,     get_fund_desc(l.fund) o_fund_display
,     decode(l.active, 'A','Active', 'I','Inactive', ' ') o_active
,     l.surface o_surface
,     l.oil_gas o_oil_gas
,     l.mineral o_mineral
,     l.surface_open o_surface_open
,     l.oil_gas_open o_oil_gas_open
,     l.mineral_open o_mineral_open
,     t018.description o_class_description
,     t002.description o_ownership_description
,     l.leased o_leased
,     l.surface_text o_surface_text
,     l.oil_gas_text o_oil_gas_text
,     l.mineral_text o_mineral_text
,     l.comments o_comments
,     l.last_maint o_last_maint
,     l.surface_maint o_surface_maint
,     l.oil_gas_maint o_oil_gas_maint
,     l.mineral_maint o_mineral_maint
,     l.comment_maint o_comment_maint
from     land_legal l
,     t018_land_classification t018
,     t002_ownership t002
,     statmast s
,       quad q
where l.class = t018.code (+)
and  l.ownership = t002.code (+)
and l.parcel = 1
and l.quad = s.quad
and l.twp = s.twp
and l.rng = s.rng
and l.section = s.section
and l.county = s.county
and l.fund = s.fund
and l.quad = q.quad
and (to_char(l.twp,'000')||'-'||to_char(q.td)||'-'||to_char(l.rng,'000')
||'-'||to_char(q.rd)||'-'||to_char(l.section,'00')) >=
(to_char(:p_beg_twn,'000')||'-'||to_char(:p_td)||'-'||to_char(:p_beg_rng,'000')||'-'||to_char(:p_rd)||'-'||to_char(:p_beg_section,'00'))
and
(to_char(l.twp,'000')||'-'||to_char(q.td)||'-'||to_char(l.rng,'000')
||'-'||to_char(q.rd)||'-'||to_char(l.section,'00')) <=
(to_char(:p_end_twn,'000')||'-'||to_char(:p_td2)||'-'||to_char(:p_end_rng,'000')||'-'||to_char(:p_rd2)||'-'||to_char(:p_end_section,'00'))
]]>
          </sqlStatement>
          <sqlStatement name="Q2">
               <![CDATA[select     l.quad d_quad
,     l.twp d_twp
,     l.rng d_rng
,     l.section d_section
,     l.county d_county
,     l.fund d_fund
,     l.parcel d_parcel
,     get_land#_display(l.quad,l.twp,l.rng,l.section,l.county,l.fund,l.parcel)
     d_display_land
,     get_cnty_desc(l.county) d_county_display
,     get_fund_desc(l.fund) d_fund_display
,     decode(l.active, 'A','Active', 'I','Inactive', ' ') d_active
,     l.surface d_surface
,     l.oil_gas d_oil_gas
,     l.mineral d_mineral
,     decode(l.active, 'A', l.surface, 0) d_act_surface
,     decode(l.active, 'A', l.oil_gas, 0) d_act_oil_gas
,     decode(l.active, 'A', l.mineral, 0) d_act_mineral
,     decode(l.active, 'I', l.surface, 0) d_ina_surface
,     decode(l.active, 'I', l.oil_gas, 0) d_ina_oil_gas
,     decode(l.active, 'I', l.mineral, 0) d_ina_mineral
,     decode(l.active, 'A', 1, 0) d_act_count
,     decode(l.active,'I',1, 0) d_ina_count
,     l.surface_open d_surface_open
,     l.oil_gas_open d_oil_gas_open
,     l.mineral_open d_mineral_open
,     t018.description d_class_description
,     t002.description d_ownership_description
,     l.leased d_leased
,     l.surface_text d_surface_text
,     l.oil_gas_text d_oil_gas_text
,     l.mineral_text d_mineral_text
,     l.comments d_comments
,     l.last_maint d_last_maint
,     l.surface_maint d_surface_maint
,     l.oil_gas_maint d_oil_gas_maint
,     l.mineral_maint d_mineral_maint
,     l.comment_maint d_comment_maint
,     s.ke d_test_ke
,     decode(s.stat_code, 5,'LEASE', 21,'APPLICATION', null) d_stat_desc
,     s.evtdate d_evtdate
,     ltrim(to_char(s.ke,'000')) || '-'
||     ltrim(to_char(s.lease#,'000000')) || '-'
||     ltrim(to_char(s.lse_code,'000')) || '-'
||     ltrim(to_char(s.lse_seq,'000')) d_kelease
,     s.rolodex# d_rolodex
,     s.appdate d_app_date
,     s.effdate d_effdate
,     decode(s.perpetual, 'Y','PERPETUAL', to_char(s.expdate,'yyyy-MM-dd')) d_expdate
,     s.aus aus
,     decode( s.stat_code, 5,get_t005_lease_desc(s.stat_code)
               , 21,get_t005_lease_desc(s.stat_code), null) d_desc_5_21
,     s.amend# amend
,     get_rolodex_lname(s.rolodex#) d_lname
from     land_legal l
,     statmast s
,     t018_land_classification t018
,     t002_ownership t002
where     [b]s.ke = :p_ke
and     l.parcel >= :p_beg_parcel
and     l.parcel <= :p_end_parcel
and     l.active >= :p_beg_active
and l.active <= :p_end_active
and     14 <> s.stat_code (+)
and     l.class = t018.code (+)
and     l.ownership = t002.code (+)
and     l.parcel <> 1
and     l.quad = s.quad (+)
and     l.twp = s.twp (+)
and     l.rng = s.rng (+)
and     l.section = s.section (+)
and     l.county = s.county (+)
and     l.fund = s.fund (+)
and     l.parcel = s.parcel (+)
and     l.active = s.active (+)
and l.quad = :o_quad
and     l.twp = :o_twp
and     l.rng = :o_rng
and     l.section = :o_section
and     l.county = :o_county
and     l.fund = :o_fund]]>
          </sqlStatement>
     </dataQuery>
     <dataStructure>
          <group name="G_OWNERSHIP" source="Q1">
               <element name="O_QUAD" value="O_QUAD"/>
               <element name="O_TWP" value="O_TWP"/>
               <element name="O_RNG" value="O_RNG"/>
               <element name="O_SECTION" value="O_SECTION"/>
               <element name="O_COUNTY" value="O_COUNTY"/>
               <element name="O_FUND" value="O_FUND"/>
               <element name="O_PARCEL" value="O_PARCEL"/>
               <element name="O_DISPLAY_LAND" value="O_DISPLAY_LAND"/>
               <element name="O_COUNTY_DISPLAY" value="O_COUNTY_DISPLAY"/>
               <element name="O_FUND_DISPLAY" value="O_FUND_DISPLAY"/>
               <element name="O_ACTIVE" value="O_ACTIVE"/>
               <element name="O_SURFACE" value="O_SURFACE"/>
               <element name="O_OIL_GAS" value="O_OIL_GAS"/>
               <element name="O_MINERAL" value="O_MINERAL"/>
               <element name="O_SURFACE_OPEN" value="O_SURFACE_OPEN"/>
               <element name="O_OIL_GAS_OPEN" value="O_OIL_GAS_OPEN"/>
               <element name="O_MINERAL_OPEN" value="O_MINERAL_OPEN"/>
               <element name="O_CLASS_DESCRIPTION" value="O_CLASS_DESCRIPTION"/>
               <element name="O_OWNERSHIP_DESCRIPTION" value="O_OWNERSHIP_DESCRIPTION"/>
               <element name="O_LEASED" value="O_LEASED"/>
               <element name="O_SURFACE_TEXT" value="O_SURFACE_TEXT"/>
               <element name="O_OIL_GAS_TEXT" value="O_OIL_GAS_TEXT"/>
               <element name="O_MINERAL_TEXT" value="O_MINERAL_TEXT"/>
               <element name="O_COMMENTS" value="O_COMMENTS"/>
               <element name="O_LAST_MAINT" value="O_LAST_MAINT"/>
               <element name="O_SURFACE_MAINT" value="O_SURFACE_MAINT"/>
               <element name="O_OIL_GAS_MAINT" value="O_OIL_GAS_MAINT"/>
               <element name="O_MINERAL_MAINT" value="O_MINERAL_MAINT"/>
               <element name="O_COMMENT_MAINT" value="O_COMMENT_MAINT"/>
               <group name="G_DETAIL" source="Q2">
                    <element name="D_QUAD" value="D_QUAD"/>
                    <element name="D_TWP" value="D_TWP"/>
                    <element name="D_RNG" value="D_RNG"/>
                    <element name="D_SECTION" value="D_SECTION"/>
                    <element name="D_COUNTY" value="D_COUNTY"/>
                    <element name="D_FUND" value="D_FUND"/>
                    <element name="D_PARCEL" value="D_PARCEL"/>
                    <element name="D_DISPLAY_LAND" value="D_DISPLAY_LAND"/>
                    <element name="D_COUNTY_DISPLAY" value="D_COUNTY_DISPLAY"/>
                    <element name="D_FUND_DISPLAY" value="D_FUND_DISPLAY"/>
                    <element name="D_ACTIVE" value="D_ACTIVE"/>
                    <element name="D_SURFACE" value="D_SURFACE"/>
                    <element name="D_OIL_GAS" value="D_OIL_GAS"/>
                    <element name="D_MINERAL" value="D_MINERAL"/>
                    <element name="D_ACT_SURFACE" value="D_ACT_SURFACE"/>
                    <element name="D_ACT_OIL_GAS" value="D_ACT_OIL_GAS"/>
                    <element name="D_ACT_MINERAL" value="D_ACT_MINERAL"/>
                    <element name="D_INA_SURFACE" value="D_INA_SURFACE"/>
                    <element name="D_INA_OIL_GAS" value="D_INA_OIL_GAS"/>
                    <element name="D_INA_MINERAL" value="D_INA_MINERAL"/>
                    <element name="D_ACT_COUNT" value="D_ACT_COUNT"/>
                    <element name="D_INA_COUNT" value="D_INA_COUNT"/>
                    <element name="D_SURFACE_OPEN" value="D_SURFACE_OPEN"/>
                    <element name="D_OIL_GAS_OPEN" value="D_OIL_GAS_OPEN"/>
                    <element name="D_MINERAL_OPEN" value="D_MINERAL_OPEN"/>
                    <element name="D_CLASS_DESCRIPTION" value="D_CLASS_DESCRIPTION"/>
                    <element name="D_OWNERSHIP_DESCRIPTION" value="D_OWNERSHIP_DESCRIPTION"/>
                    <element name="D_LEASED" value="D_LEASED"/>
                    <element name="D_SURFACE_TEXT" value="D_SURFACE_TEXT"/>
                    <element name="D_OIL_GAS_TEXT" value="D_OIL_GAS_TEXT"/>
                    <element name="D_MINERAL_TEXT" value="D_MINERAL_TEXT"/>
                    <element name="D_COMMENTS" value="D_COMMENTS"/>
                    <element name="D_LAST_MAINT" value="D_LAST_MAINT"/>
                    <element name="D_SURFACE_MAINT" value="D_SURFACE_MAINT"/>
                    <element name="D_OIL_GAS_MAINT" value="D_OIL_GAS_MAINT"/>
                    <element name="D_MINERAL_MAINT" value="D_MINERAL_MAINT"/>
                    <element name="D_COMMENT_MAINT" value="D_COMMENT_MAINT"/>
                    <element name="D_TEST_KE" value="D_TEST_KE"/>
                    <element name="D_STAT_DESC" value="D_STAT_DESC"/>
                    <element name="D_EVTDATE" value="D_EVTDATE"/>
                    <element name="D_KELEASE" value="D_KELEASE"/>
                    <element name="D_ROLODEX" value="D_ROLODEX"/>
                    <element name="D_APP_DATE" value="D_APP_DATE"/>
                    <element name="D_EFFDATE" value="D_EFFDATE"/>
                    <element name="D_EXPDATE" value="D_EXPDATE"/>
                    <element name="AUS" value="AUS"/>
                    <element name="D_DESC_5_21" value="D_DESC_5_21"/>
                    <element name="AMEND" value="AMEND"/>
                    <element name="D_LNAME" value="D_LNAME"/>
               </group>
          </group>
     </dataStructure>
</dataTemplate>
I want the parameter :p_ke to multiple select.
Here is my List of Values for the parameter :p_ke:
select     CODE KE
from     T052_KE_EXPLOSION
where CODE > 0
ORDER BY CODE
I have the option: MULTIPLE SELECTION....check for :p_ke
Does anyone know what I am doing wrong?
I appreciate any help I can get!
Susie

Susie,
use in the Query inside the Data Template a lexical parameter like
select * from emp &p_mylexical
This lexical parameter could be filled in a BeforeReport Trigger. In this Package-Call you will have something like
p_mylexcial := 'where deptno in ('||p_deptno||')';
where p_deptno is your multi-select parameter.
This should run if p_deptno is empty, has one value ore more.
If you want to see every row when no value is choosen ('all') then use something like
if p_deptno is not null then
p_mylexical := 'where DEPTNO in ('||p_deptno||')';
else
p_mylexical := null;
end if;
So for your example that means
- create a new lexical parameter (p_lexical)
- replace in your query in the data template s.ke = :p_ke with &p_lexical
- call a before report trigger in which is something like:
p_mylexcial := 's.ke in ('||p_ke||')';
Regards
Rainer

Similar Messages

  • Help with multiple select in LOV

    Howdy,
    Is it feasible to have aa LOV with and "all" option?
    For example, having the LOV(P2_USERLIST) of userid below WITH an "all" option to select user1 to user4 or individual ones if needed.
    all
    user1
    user2
    user3
    user4
    So my report query would be something like...
    select address,city
    from region
    where userid in (:P2_USERLIST)
    thanks

    Hi
    when multiple entries are selected your session state variable would look like this: "user1:user3:user4"
    So your IN query would not work. I usually do the following with such queries ..
    select address,city
    from region
    where :P2_USERLIST like '%'||userid||'%'
    when you have large data this might not be the best performing approach since it cannot
    do an index lookup ... but for "fair" amounts of data this just works and is simple ...
    Does this help
    -Carsten

  • One search help for multiple select-options in webdynpro abap

    Hi,
    I need a way to use one search help for multiple select-options fields. My scenario is :
    I have a table for keeping different organizational units' values of different systems. I have pasted some sample data from this table at the end of this mail. On the screen I want to have 1 select-options filed for werks, and 1 select-options filed for vkorg. (In fact I will have more org. unit fields...) In the beginning of my application the user will select sid.
    If the user selects ADS as SID, when he opens search-help for the first org. unit (werks), he will see the records with SID: ADS, VARBL = $WERKS, LANGU = SY-LANGU.
    If the user selects AGT as SID, when he opens search-help for the second org. unit (vkorg), he will see the records with SID: AGT, VARBL = $VKORG, LANGU = SY-LANGU.
    I have created a search-help taking SIDD, VARBL and LANGU as import parameters; used field mapping and bound this search help to my table. I have created 2 context nodes : org1 and org2 having attributes SID, VARBL, VALUE, LANGU .
    I have assigned related SID, VARBL and Langu values to these attributes at runtime as I needed. That way, if I use input field and reference to the related context attributes org1-value and org2-value2 accordingly, search help works well as I want.
    However, when I use select-options field , I can not bind the field to the context data. I can give reference only to ddic structure. Is there any way to reference to a context attribute? I searched for this in SDN, but could find nothing.
    I think I won't be able to use this way. What do you say?
    As I read from forums maybe using OVS help will be suitable for me. But I have to use one search-help for all select-options fields. Do you know how I can determine the active select-options field and pass its name (for instance "werks" ) as parameter to this OVS search help. (Also I'll pass SID and LANGU.)
    MY TABLE (ZBYYT080) CONTENTS:
    SID     VARBL     VALUE     LANGU     VTEXT
    ADS     $WERKS     1     T     Werk 0001
    ADS     $WERKS     11     T     OZYAS  GIDA URETIM YERI
    ADS     $WERKS     5501     T     BOYA GEBZE FABRİKASI
    ADS     $WERKS     5502     T     BOYA CIGLI FABRİKASI
    AGT     $WERKS     2301     T     KAMLI DAMIZLIK
    AGT     $WERKS     9601     T     PANAR DENIZ URETIM YERI
    ADS     $VKORG     22     T     AA KİMYASALLAR
    ADS     $VKORG     8001     T     İINSAAT BOYALARI
    AGT     $VKORG     6500     T     DAMk St.Org
    AGT     $VKORG     5400     T     PANAR St.Org.
    I wish I'm clear enough..
    I will be gald if someone answers me as soon as possible...
    Thanks İn advance..
    MERAL

    Hi,
    Your ques is how to refer to a DDIC search help to refer to selection screen parameter ?
    Am I right ?
    If Yes, then in the interface IF_WD_SELECT_OPTIONS
    method ADD_SELECTION_FIELD, ADD_PARAMETER_FIELD etc
    have importing param like I_VALUE_HELP_TYPE and  I_VALUE_HELP_ID, I_VALUE_HELP_MODE, I_VALUE_HELP_STRUCTURE
    etc which may help you to link your create DDIC Search help to selection screen params.
    this is just a clue from my side. I haven't tried it myself.
    You can go to the where used list of this method and find some sample implementations which use these params.
    Hope this helps.
    Regards
    Manas Dua

  • Applescript list with multiple selections

    Hello guys, i have h big problem...
    i was trying the multiple selections part by the command list, but if i select 2- and more it does nothing (i'm using if x is y then *linebreake* else if ...)
    so i tried another way script:
    tell application "Finder"
      --get folders of me--
              set a to get name of folders of folder "Contents:Resources:Versionen" of (path to me) --in this folder i got folders named  {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}--
              set b to choose from list a with prompt "Choose your Minecraft Version!" with multiple selections allowed
      --next step--
      count b
              set c to result
              repeat c times        --with this part i wanted to handle every selected folder as an individual to duplicate it somewere else
                        set ab to b * -1
      duplicate folder ab to folder (choose folder)
              end repeat
    end tell
    thanks for helping me

    The following script (tested under OS X 10.8.2) should do what you are asking for:
    tell application "Finder"
        set theSourceFolder to folder "Contents:Resources:Versionen" of (path to me)
        set theFolderNames to get name of folders of theSourceFolder
        set theChosenNames to choose from list theFolderNames with prompt "Choose your Minecraft Version!" with multiple selections allowed
        if result is false then return
        set theDestinationFolder to choose folder
        repeat with thisName in theChosenNames
            duplicate folder thisName of theSourceFolder to theDestinationFolder with replacing
        end repeat
    end tell
    Message was edited by: Pierre L.

  • How do i take one layer with multiple selections...

    how do i take one layer with multiple selections and make those selections their own layer?

    Yes sir. It w was really hard to explain. It is discontiguous segments that are separated by transparent areas. And I want those non transparent areas to be on their own layer. I have a photo shop file that has a bunch of buttons on them and they are on a transparent background. It is one layer. I want to select all the buttons and put them on their own layers. I can do this manually by selecting a button and cmd Just to a new layer, but when I have 200 buttons it is a daunting task.
    Sent by MailWise<http://www.mail-wise.com/installation/4> – Your emails, with style.

  • How to create a table with multiple select on???

    Hi all,
            I am  new to webdynpro and my requirement is to create a  table with multiple selection on.I have to add abt 10 rows in the table but only 5 rows should be visible and moreover a verticalscroll should be available to view other rows.Can anybody explain me in detail how to do that.Please reply as if you are explaining  to a newcomer.Reply ASAP as i have to do it today.
                                                                           Thanxs

    Hi,
    1. Create a value node in your context name Table and set its cardinality to 0:n
    2. Create 2 value attributes within the Table node name value1 and value2
    3. Goto Outline view> Right click on TransparentUIContainer>Apply Template> Select Table>mark the node Table and it's attributes.
    you have created a table and binded its value to context
    Table UI properties
    4.Set Selection Mode to Multi
    5.Set Visible Row Count to 5
    6.ScrollableColCount to 5
    In your implemetaion, you can add values to table as follow:
    IPrivate<viewname>.ITableElement ele = wdContext.nodeTable().createTableElement();
    ele.setValue1(<value>);
    ele.setValue2(<value>);
    wdContext.nodeTable().addElement(ele);
    The above code will allow you to add elements to your table node.
    Regards,
    Murtuza

  • How to select value from list with multiple selections ?

    HI,
    i have a list with multiple selections where i show email address retrieved from database.
    what i want to do is to send the selected email address to the invoiceedit.jsp.
    please look at the following code which gives you the better idea.
    <td class='smalltext'><select name="email" size="3" multiple="multiple">
       <% 
       Connection conn = null;
       Statement stmt = null;
       Statement stmt_contactperson = null;
       Statement stmt_address = null;
       try{
          conn = getREConnection();
           stmt = conn.createStatement();
       ResultSet rs = null;
       rs = stmt.executeQuery("SELECT PROPERTYID, VALUE FROM PROPERTIES WHERE ENTITYID="+ g_strGroupID+" AND NAME = 'invoice_default_email'");
       int numofrows = 0;
       while(rs.next())
               %>
       <option value="<%= rs.getString("VALUE") %>" selected="selected"> <%= rs.getString("VALUE")  %> </option>
        <%
           }//end of while
          %>
         </select>
        <a href="invoiceedit.jsp?entityid=<%=g_strGroupID%>&add=1"><font color="#000000">Add</font></a>
         <a href="invoiceedit.jsp?entityid=<%=g_strGroupID%>&email_to="><font color="#000000"> Edit</font></a> </td>thanks

    Use a form button instead of a link so that you can send it as a request parameter to the server. In the server side just use HttpServletRequest#getParameterValues() to obtain all values for the given parameter name. If you really need a link rather than a button, then use Javascript to submit the form on click of the link.
    That said, your design is bad. Java code belongs in Java classes, not in JSP files. Database access logic belongs in a DAO class. Business and controlling logic belongs in a Servlet class. Only presentation logic belongs in the JSP file. Avoid scriptlets as much as possible and use JSP EL and/or JSTL instead.

  • I need help with a SELECT query - help!

    Hello, I need help with a select statement.
    I have a table with 2 fields as shown below
    Name | Type
    John | 1
    John | 2
    John | 3
    Paul | 1
    Paul | 2
    Paul | 3
    Mark | 1
    Mark | 2
    I need a query that returns everything where the name has type 1 or 2 but not type 3. So in the example above the qery should bring back all the "Mark" records.
    Thanks,
    Ian

    Or, if the types are sequential from 1 upwards you could simply do:-
    SQL> create table t as
      2  select 'John' as name, 1 as type from dual union
      3  select 'John',2 from dual union
      4  select 'John',3 from dual union
      5  select 'Paul',1 from dual union
      6  select 'Paul',2 from dual union
      7  select 'Paul',3 from dual union
      8  select 'Paul',4 from dual union
      9  select 'Mark',1 from dual union
    10  select 'Mark',2 from dual;
    Table created.
    SQL> select name
      2  from t
      3  group by name
      4  having count(*) <= 2;
    NAME
    Mark
    SQL>Or another alternative if they aren't sequential:
    SQL> ed
    Wrote file afiedt.buf
      1  select name from (
      2    select name, max(type) t
      3    from t
      4    group by name
      5    )
      6* where t < 3
    SQL> /
    NAME
    Mark
    SQL>Message was edited by:
    blushadow

  • Need some help with the Select query.

    Need some help with the Select query.
    I had created a Z table with the following fields :
    ZADS :
    MANDT
    VKORG
    ABGRU.
    I had written a select query as below :
    select single vkorg abgru from ZADS into it_rej.
    IT_REJ is a Work area:
    DATA : BEGIN OF IT_REJ,
            VKORG TYPE VBAK-VKORG,
            ABGRU TYPE VBAP-ABGRU,
           END OF IT_REJ.
    This is causing performance issue. They are asking me to include the where condition for this select query.
    What should be my select query here?
    Please suggest....
    Any suggestion will be apprecaiated!
    Regards,
    Developer

    Hello Everybody!
    Thank you for all your response!
    I had changes this work area into Internal table and changed the select query. PLease let me know if this causes any performance issues?
    I had created a Z table with the following fields :
    ZADS :
    MANDT
    VKORG
    ABGRU.
    I had written a select query as below :
    I had removed the select single and insted of using the Structure it_rej, I had changed it into Internal table 
    select vkorg abgru from ZADS into it_rej.
    Earlier :
    IT_REJ is a Work area:
    DATA : BEGIN OF IT_REJ,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    Now :
    DATA : BEGIN OF IT_REJ occurs 0,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    I guess this will fix the issue correct?
    PLease suggest!
    Regards,
    Developer.

  • How to create parameter with multiple selection in a query (SQ02) ?

    Hi Exports
    Do you know how to create parameter with multiple selection in a query (transaction SQ02)?
    thanks.

    Hi
    i know how to create user parameter at SQ02,
    the question is how to create multiple selection parameter?

  • [svn:fx-trunk] 10943: Fix to dragging from List with multiple-selection

    Revision: 10943
    Author:   [email protected]
    Date:     2009-10-08 15:46:27 -0700 (Thu, 08 Oct 2009)
    Log Message:
    Fix to dragging from List with multiple-selection
    - The fix is to postpone the selection commit until we make sure the user has not started a drag gesture.
    - Exclude the dragEnabled, dropEnabled, dragMoveEnabled properties for DropDownList
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: Deepa
    Tests run: checkintests, mustella List, DropDownList
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as

  • List with multiple selection

    Hello;
    I seek a code to implement a list with multiple selection for a browser Web (HTML is imited).
    I have a list containing of the years, the user can select one or several years and I created dynamically a array : for each year a column.
    Thank you;

    Look at JList.
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JList.html
    � {�                                                                                                                                                                           

  • Help with multiple httpservice calls

    I need help with multiple httpservice call back to back, doing 10 different mysql query at startup of the app loading results into 14 datagrids/combobox all queries are to different tables.

    Hello,
    I think what Grizzzzzzzzzz means is the following:
        <mx:HTTPService id="serviceOne"
            url="here goes url"
            result="resultHandler1(event);"
            fault="faultHandler(event);"/>
        <mx:HTTPService id="serviceTwo"
            url="here goes url"
            result="resultHandler2(event);"
            fault="faultHandler(event);"/>
        <mx:HTTPService id="serviceThree"
            url="here goes url"
            result="resultHandler3(event);"
            fault="faultHandler(event);"/>
         // Result handler 1
         private function resultHandler1(event:ResultEvent):void{
              //Here do something with the results
             xmlCollection = event.result as XML;
             //then call the next service
             serviceTwo.send();
          // Result handler 2
          private function resultHandler2(event:ResultEvent):void{
              //Here do something with the results
             xmlCollection = event.result as XML;
             //then call the next service
              serviceThree.send();
    I hope this helps,
    Pierre

  • How can I create a XMP List with multiple selection

    Hello,
    I try to build my own XMP custom panel. Herefore I need a couple of lists with the possibility for multiple selections (e.g. the choice for one language or multiple languages).
    But how is it possible to integrate a list into a panel? There is no XMPList inside the custom folder. I have experimented with the standard mx:list and an array collection for data binding into the list. But how can I write the user selection into an XMP field? Example: In the List the user choose three languages (DE, EN, FR). Is it possible to collect the choice into a string and to write the result into an XMP standard field (e.g. dc:description)?
    A further question is, if it's possible to use the "HTTPService" to bind an external xml-file with the languages and other informations into the panel or is it only possible to work with an array collection inside the code?
    Here is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <fi:XMPForm
              xmlns:mx="http://www.adobe.com/2006/mxml"
              xmlns:fi="com.adobe.xmp.components.*" width="100%" height="100%"
              xmlns:Iptc4xmpCore ="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
              label="XMP-Custom Panel"
              initialize="ds.send()"
              >
         <!-- Each namespace prefix that is used within an xmpPath-attribute,
               MUST BE registered at the top of EACH panel where it is referenced -->
         <fi:XMPNamespaces>
              <fi:XMPNamespace prefix="dc" value="http://purl.org/dc/elements/1.1/"/>
         </fi:XMPNamespaces>
         <fi:XMPForm>
              <mx:HBox width="100%" height="26" verticalAlign="middle">
                   <mx:HRule width="50%"/>
                   <mx:Label text="Allgemeine Metadaten" fontSize="12" fontWeight="bold"/>
                   <fi:XMPSeparator width="50%"/>
              </mx:HBox>
              <fi:XMPFormItem
                        label="Titel"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Titel"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Druckkennzeichen"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Verfasser"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Versionsnummer"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%"/>
              </fi:XMPFormItem>
              <mx:HBox width="100%" height="26" verticalAlign="middle">
                   <mx:HRule width="50%"/>
                   <mx:Label text="Enthaltene Sprachen" fontSize="12" fontWeight="bold"/>
                   <fi:XMPSeparator width="50%"/>
              </mx:HBox>
              <!-- Beginn der Auswahl-Liste für die Sprachen -->
                 <mx:Script>
            <![CDATA[
                import flash.events.MouseEvent;
                import mx.controls.Alert;
                import mx.collections.ArrayCollection;
                private const NL:String = "\r";
                // A data provider created by using ActionScript
                [Bindable]
                private var subscriptions:ArrayCollection =
                    new ArrayCollection
                            {data:0, label:"Deutsch"},
                            {data:1, label:"Englisch"},
                            {data:2, label:"Französisch"},
                            {data:3, label:"Italienisch"}
                [Bindable]
                private var market:ArrayCollection =
                    new ArrayCollection
                            {data:0, label:"(Bitte Marktversion auswählen)"},
                            {data:1, label:"Marktversion Deutsch (M_DE)"},
                            {data:2, label:"Marktversion Englisch (M_EN)"},
                            {data:3, label:"Marktversion Frankreich (M_FR)"},
                            {data:4, label:"Marktversion Italien (M_IT)"}
                [Bindable]
                private var documenttyp:ArrayCollection =
                    new ArrayCollection
                            {data:0, label:"(Bitte Dokumenttyp auswählen)"},
                                  {data:1, label:"Gebrauchsanweisung"},
                            {data:2, label:"Ersatzteilkatalog"},
                            {data:3, label:"Service-Anleitung"},
                            {data:4, label:"Etikett"}
            ]]>
        </mx:Script>
                    <fi:XMPFormItem label="Sprachauswahl" width="100%">
                    <mx:List
                        id="userSubscriptions" rowCount="4"
                        allowMultipleSelection="true" width="100%"
                        dataProvider="{subscriptions}"
                    />
                </fi:XMPFormItem>
                    <mx:Text text="* Mehrfachauswahl möglich." fontWeight="normal" fontSize="10"/>
                <!-- Ende der Liste für die Auswahl von Sprachen -->
              <fi:XMPFormItem
                        label="Marktvariante"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%" dataProvider="{market}"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Dokumenttyp"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%" dataProvider="{documenttyp}"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Stichworte"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%">
                   <fi:XMPTextArea/>
              </fi:XMPFormItem>
              <mx:HBox width="100%" height="26" verticalAlign="middle">
                   <mx:HRule width="50%"/>
                   <mx:Label text="Metadaten Photoshop" fontSize="12" fontWeight="bold"/>
                   <fi:XMPSeparator width="50%"/>
              </mx:HBox>
              <fi:XMPFormItem
                        label="Originalname FA"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%" id="PS1">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Fotoauftragsnummer"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%" id="PS2">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Interne Anmerkungen"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%" id="PS3">
                   <fi:XMPTextArea/>
              </fi:XMPFormItem>
              <mx:Text text="* hier steht eine kleine Erläuterung" fontWeight="normal" fontSize="10"/>
         </fi:XMPForm>
    </fi:XMPForm>
    Any suggestions?
    Thank you in advance.
    Markus

    Hi Markus,
    the FileInfo SDK does not offer a ready-made list component allowing for multi-selection.
    So you would need to implement one using the FileInfo SDK API. Your component "XMPList" would inherit from mx:list and would need to implement the XMPRead and XMPWrite events and talk to the XMP using the IXMPAccess interface within those event handlers.
    Please have a look at the Programmer's Guide, section "XMP Flex components" and at the API description available in "docs" for further guidanc.
    Hope this helps
    Kind Regards
    Jörg
    Adobe XMP

  • Search not working with multiple select in dropdown field

    Hello,
    Please first visit below site for searching form on left side.
    http://diventarepartner.unicaimmobili.com/home-page_copy_dynamic
    There is a field called Tipologia which is dropdown menu with checkbox (multiple select). Choose more than one checkbox and its automatic append with comma in text field which is customized using javascript. Now then if you submit button then its not working as our products.
    Now for this there is a custom field in admin in web apps items. This field is same for all items and values are different for all items like that which you can see above dropdown checkboxes value.
    Now my question Is it possible that for that one field in admin which has different value for different items and when i search from website and checked that cehck boxes and it search for all different items ??
    For example in admin suppose 2 items which has different value for that one field. Suppose one has value called Appartamento and other is Villa. Now from search form which is on website, that dropdown checkboxes, if i select these two values (Appartamento and Villa) from these and then search, it will display that both items from web apps ???
    Is it possible ??? Can you help me for this ???
    Waiting for reply. Thanks in advance.

    Your link doesn't work. Do you mind reporting it?

Maybe you are looking for

  • How to modify a specific class in jar file ?

    I've downloaded a jar file for applet, the jar file works fine... but when I extract a specific class file from the jar file and just recompie it from my IDE (Eclipse) without even making any change and then compress again jar class files including t

  • Accidently synced my friends ipad with mine, how do I unsync/reset??

    So my friend brought me her ipad and I plugged it into my computer and opened itunes. I think i accidently clicked sync and now she cant see any of her old stuff. Now its basically a replica of my ipad. She had a lot of photos and apps that she doesn

  • HT4623 I can't use my phone after it updated

    After I updatedand backed up my phone.  It said there was a problem.  Should I restore to original settings?

  • Xalan: nesting transformations via extension element

    Hi, I'm doing XSLT transformations using xalan to get HTML, I have an extension element and a java class to do it, the corresponding method of this class, applies another tranformation and wants to return this result to the transformation result tree

  • Power Button only sleeps my MacBook Pro

    Greetings, After upgraded my mid-2010 MacBook Pro, the power can only sleep the computer. The dialogue box no longer appear that gives us the choices of shut down, sleep or restart. I can't find anyway in the System Preferences that can configure thi