Passing a multiple value in to inut table of BAPI in weddynpro java

Hi,
I am a facing a problem How to  pass a more than one personnal perno in to inpuut parameter of Bapi which is a table(It_Pernr).
And Personnal nos are a output of anothe function module which we are displaying in Table and,,,, and from selecting a row of table we want to pass it in to another BAPI input(table type).
its very urgen ,,,, plz help me....

Hi All,
Now I am able to pass a value in it_pernr table .
Actually for this we have to intantiate a object of model class which contains a personnel no in my case this is pernrtab, basically this is a internal table of backend system.
i implemented like below and for me its working fine
// Create and add the selected elements into a collection
                       list = new ArrayList();
                      for(int i=0; i<wdContext.nodeIt_Pernr().size(); i++) {
                           if(wdContext.nodeIt_Pernr().isMultiSelected(i)) {
                                list.add(wdContext.nodeIt_Pernr().getElementAt(i));
                      if (wdContext.nodeIt_Pernr().getLeadSelection() == 0) {
                           int j = wdContext.nodeIt_Pernr().getLeadSelection();
                           list.add(wdContext.nodeIt_Pernr().getElementAt(j));
                     //how to get back element
            for(int i=0; i<list.size(); i++) {
//create object of model class pernrtab basically this is a internal table which contains personnel nos list
                           Pernrtab p = new Pernrtab();
                           IIt_PernrElement pernrElemnt = (IIt_PernrElement) list.get(i);
                          p.setPernr(pernrElemnt.getPernr());
                           inp2.addIt_Pernr(p);
Thanks,
Reagards
YAgyashikha
Edited by: yagyashikha on Jun 30, 2010 1:45 PM

Similar Messages

  • How to pass checkbox multiple value in URL as parameter?

    Hello,
    I have a checkbox in two page. The checkbox is based on a LOV and user can check more than one value at a time. The return value of the checkbox is like "ID1:ID2".
    I want to call another page with the same checkbox item and want to pass the checked value via the URL.
    This cause problem because checked value are separated with : that not work in URL.
    So, how can I pass checkbox multiple value in parameter via an URL?
    Thanks
    Jean

    Jean,
    Why pass it in a URL instead of just using what's in session state? On your second page, set the Source Type of the check box item to ITEM and enter the name of the check box item on the first page.
    Sergio

  • Passing single/multiple values to stored proc parameter from crystal report

    I tried below solution posted on this forum to pass either a single value or multi-value to a sql server stored procedure parameter (varchar datatype) from crystal report XI R2.
    In my crystal report , I am displaying all the available parameter values to the user  and the user will select either a single value or multi value.
    This worked when I select single value and when I say show sql query in my subreport  I see the following:
    {CALL "XYZ"."dbo"."storedprocedurename";1('Product  1')}
    But this did not worked when I selected multiple values and when I say show sql query in my subreport  I see the following:
    {CALL "XYZ"."dbo"."storedprocedurename";1('Product 1,Product 2')}
    I think it might work if it is as below:*
    For multiple values:
    {CALL "xyz"."dbo"."storedprocedurename";1('Product 1', 'Product 2')}
    Please advise.
    Solution Posted on this forum is as follows:
    Hi,
    As you must be aware of that a crystal report created of a stored procedure will allow only a single value for inserting a multiple value as a parameter in your report and pass those values to your stored procedure please follow the below work around which will be helpful for you.
    Symptom
    In Crystal Reports, you want to pass a multi-value parameter to a stored procedure. The problem with doing so is that Crystal Reports considers the multi-value parameter to be an array.
    How can you pass a multi-value parameter to a stored procedure?
    Resolution
    Here are the steps to pass a multi-value parameter to a stored procedure:
    1. Create a Crystal report, and add a multi-value parameter.
    2. Since the multi-value parameter is treated as an array, create a formula that uses the JOIN function. Create a formula as below:
    //Formula: @JoinFormula
    Join ({?Multi-value parameter array},";")
    ====================
    NOTE:
    In the formula above, a semi-colon (";") is the delimiter.
    ====================
    3. Within the main report, create a subreport based on the stored procedure, and include the parameter to be populated with the multi-value list.
    4. Link the Join formula in the main report to the stored procedure parameter in the subreport.
    Doing so passes a multi-value parameter to the stored procedure.
    Regards,
    Vinay

    Hi Vinay,
    First you need to make sure the stored procedure accepts multiple values in the fashion 'a','b','c'.
    Then, create this formula in the Main Report:
    numbervar i;
    stringvar s;
    for i:= 1 to ubound({?Parameter}) do
        s := s + "'" + {?Parameter}<i> + "'" + ",";
    left(s,len(s)-1);
    Link this formula to the sub-report's parameter.
    Hope this helps!
    -Abhilash

  • How to pass a multiple value parameter to SQL Command?

    Hi,
    I created a SQL Command with parameter.  But, I need the parameter to be set as multiple value.  After creating the SQL Command and it's parameter under the Database Expert, I went to Field Explorer --->  Parameter Fields and found the parameter that I had created for the SQL Command.  But when I wanted to edit the parameter to make it a multiple value parameter, the multiple value option was fix grayed as single parameter and I couldn't change it to multiple parameter.  Is there any way that I can set a parameter that is attached to SQL Command as multiple value rather than single value?  Thanks.
    Cheers,
    Al

    Al,
    That's a feature that, apparently, is only available in CR 2008.  If you are using CR 2008, use this link to see how to do it.
    [https://boc.sdn.sap.com/node/19268]
    Cheers,
    Jason

  • Return multiple value into pl/sql table

    Hi,
    i have created a table and there is select statement stored in one column which returns multiple rows/values.
    IN other procedure i want to execute this select statement(which stored in column as single value) and insert the return values in table.
    Is this possible? if yes then please explain in detail.
    Regards,
    kam.

    user629129 wrote:
    Hi,
    i have created a table and there is select statement stored in one column which returns multiple rows/values.
    IN other procedure i want to execute this select statement(which stored in column as single value) and insert the return values in table.
    Is this possible? if yes then please explain in detail.
    Regards,
    kam.Kam,
    Are you looking for table functions?
    http://www.gokhanatil.com/2011/02/oracle-table-functions.html
    Best Regards,
    Gokhan Atil
    If this question is answered, please mark appropriate posts as correct/helpful and the thread as closed. Thanks

  • Passing multiple values to a parameter in report

    Can anyone help me how to pass multiple parameters to a parameter in my report.
    As user is able to select multiple values from list of values , can I pass the selected values to calling function.
    Suppose if User selects Value1,Value2,Value3 from list of values of a parameter P_Org,
    I need to pass all these values to parameter P_Org in my Before Trigger Function in Discoverer reproting tool.
    Thanks in advance

    I have a Before trigger Function to which the parameters will be passed.
    Suppose if User selects multiple values for a parameter then how to pass these multiple Values to that parameter?
    eg:In first Workbook Before Trigger is fired and the paramters for the trigger are
    'par1','par2','par3' etc.
    If User selects multiple values for a parameter 'par1' from the list of values displayed then how to pass all these values to 'par1' in Function?
    After firing the trigger rows are inserted in a temp_table .My second Workbook will
    fetch the rows inserted in this Temp Table.
    I hope u understood what my requirement is...
    Thanks in advance

  • Passing multiple values to select-option low by submit at one go from zpro.

    Hi all,
    I have a requirement pass descrete multiple values form my z-program to to select-option low on selction screen of standard SAP program using SUBMIT statment at one go.At the same time select-option high will be empty.I will be thankful if anybody can help me in this regard.
    Sandeep.

    Hi Check this link...on submitting programs
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db9d7535c111d1829f0000e829fbfe/frameset.htm
    here is the code . we are calling the same program....you can call any other program as well.
    REPORT  demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS      paramet(14) TYPE c.
    SELECT-OPTIONS  selecto FOR number.
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
          rspar TYPE TABLE OF rsparams,
          wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
         / 'Selection 2'.
    AT LINE-SELECTION.
      CASE sy-lilli.
        WHEN 4.
          seltab-sign = 'I'. seltab-option = 'BT'.
          seltab-low  = 1.   seltab-high   = 5.
          APPEND seltab.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH paramet eq 'Selection 1'
                          WITH selecto IN seltab
                          WITH selecto ne 3
                          AND RETURN.
        WHEN 5.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
          wa_rspar-low  = 14.  wa_rspar-high = 17.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
          wa_rspar-low  = 'Selection 2'.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
          wa_rspar-low  = 10.
          APPEND wa_rspar TO rspar.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH SELECTION-TABLE rspar
                          AND RETURN.
      ENDCASE.

  • Passing multiple values to a parmeters in SQL Query

    Hi friends,
    I have the following requirement -
    I need to pass multiple values to the parameter 'WHERE hou.name = (:id1)' and the query is copied below for your reference .
    SELECT partno part_num,
         customer customer_name,
         hou.name op_name
         FROM hr_organization_units hou,
         oe_transaction_types_all sot,
         ra_customers rc,
         ra_addresses_all ra,
         ra_site_uses_all rsu,
         oe_order_headers_all h,
         oe_order_lines_all l,pwr_sod50 ps
         WHERE hou.name = (:id1)
    -- and hou.name = (:id4)
    --hou.name in ('CPS FRANCE','CPS GERMANY')
    --and hou.name = (:id1,hou.name)
         and trunc(ps.sch_ship_date) between nvl(:id2,trunc(ps.sch_ship_date)) and nvl(to_date(:id3)+.99999,trunc(ps.sch_ship_date))
         and ps.group_id = 9999999
         and hou.organization_id=h.org_id
         and ps.line_id =l.line_id
         and l.header_id =h.header_id
         and h.invoice_to_org_id=rsu.site_use_id
         and rsu.address_id =ra.address_id
         and ra.customer_id =rc.customer_id
         and h.order_type_id =sot.transaction_type_id
    Looking for your help on this.
    Thanks In Advance.
    Thanks & Regards
    Ramya Nomula

    Hi karthik,
    I am sorry for the wrong updation of my anonymus block.
    My requirement is to pass a multiple values to the parameter in SQL query, and here is the code which is working now for the multiple values with ourt single quotes to the values -
    SELECT partno part_num,
         customer customer_name,
         ps.customer_id customer_id,
         avail_qty avail_qty,
         sch_ship_date schedule_Ship_date,
         so_num order_no,
         h.header_id header_id,
         line_num line_no,
         l.ordered_quantity ordered_quantity,
         scd_qty qty_open,
         s_price unit_price,
         part_flag flag,
         sub_inv subinv,
         sbu,
         hold,
         qoh,
         line_detail_id detail_id,
         picking_line_id,
         picking_line_detail_id,
         rc.customer_name cust_name,
         rc.customer_number customer_number,
         rsu.location location,
         sot.attribute5 order_type,
         ps.line_id line_id,
         h.transactional_curr_code transactional_curr_code,
         hou.name op_name
         FROM hr_organization_units hou,
         oe_transaction_types_all sot,
         ra_customers rc,
         ra_addresses_all ra,
         ra_site_uses_all rsu,
         oe_order_headers_all h,
         oe_order_lines_all l,pwr_sod50 ps
         WHERE ','||:id1||',' like '%,'||hou.name||',%'
         and trunc(ps.sch_ship_date) between nvl(:id2,trunc(ps.sch_ship_date)) and nvl(to_date(:id3)+.99999,trunc(ps.sch_ship_date))
         and ps.group_id = 9999999
         and hou.organization_id=h.org_id
         and ps.line_id =l.line_id
         and l.header_id =h.header_id
         and h.invoice_to_org_id=rsu.site_use_id
         and rsu.address_id =ra.address_id
         and ra.customer_id =rc.customer_id
         and h.order_type_id =sot.transaction_type_id;
    Condition for sending multiple Oprtaing Units -
    WHERE ','||:id1||',' like '%,'||hou.name||',%'
    This above condition is working when i am passing multiple values with out single quotes...but not working for multiple values with single quotes.
    Sample queries tested -
    select 1 from dual where ',aa,bb,cc,' like '%,bb,%' (This is working)
    select 1 from dual where ','aa','bb','cc',' like '%,'bb',%'(This is not working).
    Thanks In Advance!
    Looking for Your Great Help.
    Thanks & Regards
    Ramya Nomula

  • How to pass multiple values to a single parameter in BW report URL

    Hi Experts,
    I am new to EP and learning .... i am stuck at one point where we need to pass multiple parameters to a BW report URL, this is the URL that we launch from BSP.... Suppose i have to pass different multiple values to a single parameter, how to do it....
    i m getting many answers to pass parameters to iviews, reports, but not specific to my case.. can u plz help me....
    Thanks in advance
    Priya Rai

    What is the prolem you are facing if you split the single date param as two parameters say startdate and enddate?
    If you pass as single string then you might have to split the same at reciever end.
    Are you trying any thing specific?

  • Pass Multiple values of single field to ITS url

    Hi ,
    I have one transaction code(YW37P),
    I that have one field(Order No) in the selection screen, which has capable to accept multiple values (i.e multiple single values) and excute the t code.
    Now my question is how to pass this multiple values of one single field to the ITS url and by pass the selection screen.
    I have gone through the blogs which explains about how to pass only one single value of single field to ITS url and by pass the selection screen
    please provide some solution for this
    Regards
    Srinivas

    Hello Srinivas,
    How do you enter multiple order numbers in the field usually?  Is there a space or comma separating the numbers?  If so you will probably need to encode the space or comma, ie if a comma %2C.  The easiest way to figure it out is to use a tool like HTTPwatch and capture the POST data to see the value that is normally sent by the transaction. 
    Edgar

  • SQL Command code for multiple value string parameter

    Hi,
    I'm using crystal 2008 and there is a check box for multiple value  SQL Command  I need some help in writing the SQL Command code  for oracle (or sql server) for a multiple value STRING  parameter.
    Thanks in advance,
    Marilyn

    I could be wrong here, but I do not believe you can pass a multiple valued parameter to an SQL Command data source.  How I have gotten around this in the past is to put the "real" report into a subreport.  In the main report, create a formula field (basic syntax):
    formula = join({?parameter}, "|")
    Then, use this to pass the selected values to the subreport's parameter (call it {?sr-parm}).  The SQL Command in the subreport can then use that (MS SQL):
    select *
    from table
    where charindex(table.field, '{?sr-parm}') > 0
    HTH,
    Carl

  • Multiple values in Presentation Variable

    Hi All,
    I have a requirement like this. I have a report that report is Direct Database request. I want to pass the multiple values from the prompt in to the Direct database request report.
    The single values is already passed in the direct database report with this syntax (@{PresentationVariable Name}). But when i tried to select multiple values from the prompt it doesn't work.
    So can someone have any idea or any workaround how it can be achievable. My version of OBIEE is 11g.
    Regards
    Ashish

    use something like below in DDB req
    Column in  '@{PresentationVariable Name}'
    just save it and test with prompt value using db page.

  • Passing current row values as parameter issues.

    JDeveloper - 11.1.1.6
    JHeadstart - 11.1.1.4.26
    Weblogic - 10.3.5
    I am having trouble passing parameters from a table to a popup.
    I have a master group that contains a detail group, within this detail group I have created a group region. This region is meant to show remarks for the current details table record.
    In the details group (table layout) I have specified as the region "depends on" item a textInput field so that when I click the context area I get the popup.
    The remarks group (in the popup) has a composite key comprised of three attributes that exist in the detail table. What I need to do is pass these values as parameters to the remarks group.
    Here is what I have done so far:
    1. Created parameters on the top level remarks group - names match parameters set in region
    2. Created a "query bind parameters" string with the necessary VO bind variables.
    3. In the detail group where the region exists I have created the parameters that I am trying to pass TO the remarks group.
    My problem is that the parameter values that I am trying to pass to the region/remarks group are not being filled correctly. For parameter values I have tried:
    #{row.bindings.attributeName.inputValue}
    #{bindings.DetailGroupNameAttributeName.inputValue}
    #{bindings.DetailGroupNameTableAttributeName.inputValue}
    Many, many others
    These attributes exist and are editable in the table.
    All I want to do is pass these three values from the detail table (per row) to the remarks group. What am I missing? What EL expression will give me the per row values I need? I know there is a lot of material out there on this, but I seem to have tried them all, I don't know where I've gone wrong.
    Thanks...

    I think I have figured this out...
    I am a bit embarrassed but it turns out that the bindings for the variables I was trying to pass were not being generated. I forced it and now things seem work as expected.
    Is there some sort of bug in JHS that would cause the bindings not to be generated? I don't understand because the fields are all visible and update-able in my table. Why would some bindings be created, but not these?
    I'd like to understand what where I went wrong.
    Thanks!

  • Re : Multiple values resut of CASE statement

    Hello All,
    Hope all is well. I was trying to basically return multiple values if a certain value 'X' was passed. for example,
    select
    case T1.C1
    when 'X' then ('XX','YY')
    else T1.C1
    end
    from T1
    but I am getting error. I am unable to figure out as to how do you get multiple values out of a single value in SQL. I will then be passing this multiple values as filter in where clause. For example,
    where ('XX','YY') in T2.C1
    Thanks in advance and let me know if I have missed on something.
    - Sam

    Hello Frank,
    Thanks for the response. You are correct , when value happens to be 'X' then I want to pass ('XX','YY') ( result of sub query) to the outer query. In essense, I want to pass multiple values to the outer query when a specific value is 'X'.
    For Example,
    I want query to be
    select T1.C1,T1.C2
    from T1
    where T1.C1 in ('XX','YY') // When the value of T2.C1 happens to be 'X'
    Let me know if I am clear here ..... The query throws no syntax error but does not return any data ...when there is data for T1.C1 in ('XX','YY') in DB. If I ran the query as is as posted above , query does return data but when it is ran as sub query as mentioned in previous posts , the query does not return any data !!!! ..thats where I am puzzled.
    Thanks again,
    Sam
    Edited by: user588790 on Jan 29, 2009 12:38 PM

  • Diill through configuration BPC to ECC with multiple values for each dims

    Hi Guys,
    I have a situation where I want to pass on multiple values (ex: Country A is made up of multiple company codes 1000, 1010, 1020).
    I added these 3 values in member property maintenance for the node Country A under a propety I created called ECC_CC.
    In the URL for DT I have ECC screeen field name BURKS_LOW=?
    When I test this DT, I go the transaction screen (eg: K5EZ) and the company code is filled with 1000 and does not recognize other values.
    Did anybody expoerience this situaton? What needs to be done to enable multiple selections insteaf of single selections as it is doign now?
    Thanks in advance
    Raj

    Hi Rich,
    I saw your similr reply to Vijy/IBM. Thanks for your queston.
    I have a followup question. Is there any workaround to accomlish this task.
    Example: What if I pass a single value though a custom ECC transaction (ZKE5Z) for profict center parmeter weather it is parent node value (eg: WWACX) or base member value (eg: 1000). Is there anyway in ECC to receive this parameter, parse it and flatten it as necsary to multiple values and execute standard txn KE5Z.
    Just a wild thought. Feel free to shoot me if I am wrong!
    Thanks
    Raj
    Note:I'll award points even if he sanwer is "NO" for this question - just kidding!

Maybe you are looking for

  • Parent member values in Fact tables

    Hello, I want to understand something, as far as I know, we can only send data to base level members, right ? Then how come we find rows of data that have parent member values in the Fact tables ? (assuming we do not play manually with the database o

  • New ipod touch 5 not recognized in itunes

    Hi - Just got new ipod touch 5 with new style connector.  I have latestest version of itunes (even uninstalled / reinstalled it 10.7.0.14) Pod has been fully charged externally, Pod is not recognised through USB port direct connection - I have tried

  • I am not able to upload my iTunes from the iCloud to my new iPod.  Any suggestions?

    I just downloaded all my songs into the iCloud through Match.  Now I'm trying to sync to my new iPod and it will not with the music I have selected to put on it.  Any suggestions?

  • SUN AS generates wrong WS code very often !

    Hi I am using NB 4.1 and SUN AS 8.1 to create some WEB services. I am using JSR 109 compatible WS stub generation. Application server generates them when a WS is being deployed. There are several cases when it generates wrong java code that cannot be

  • Uninstall Pixel Bender plug-in for CS5

    Does anyone know how to uninstall Pixel Bender plug-in for CS5?