Dynamically Pass a list as input parameter to a Graphical Clac View

Hi All,
Can anyone please let me know if it is possible to pass a list of comma separated values as an input parameter to a graphical calculation view and how this list can be parsed inside the view?
The requirement is to invoke the graphical view using sql script.
Thanks,
Goutham

Hi Goutham,
Have a look on these documents:
Using Multiple Values in Input parameter for filtering in Graphical Calculation View
SAP HANA: Handling Dynamic Select Column List and Multiple values in input parameter
Regards,
Krishna Tangudu

Similar Messages

  • How can I pass dynamic value as a user input parameter in discoverer?

    Hi,
    I have a requirement for a discoverer report like this: The report will display only details for Suppliers that have expired (or soon to be) Insurance details. That is the Expiration Date is less than or equal to the day the report is being run plus any days specified in the Number of Days in the Future Parameter.
    The sample code as:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    AND pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>
    order by pca.expiration_date asc
    Now the parameter is Number of Days in the Future (Enter the number days in the future to extract the data. This will default to 0).
    Is it possible in discoverer to do so as in query i do that like a condition as pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>.
    How can I pass <No. of Days in the Future> as a user input parameter in discoverer?
    Please help.

    Hi,
    All you need to do is to create the condition in the discoverer instead of in the query.
    Create a custom folder containing the following sq (note that i removed the condition)l:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    Then create a discoverer report using this folder using all fields.
    Create a new calculation as (use this exact syntax):
    Sysdate + :No_of_Days_in_the_Future
    Create a new condition:
    pca.expiration_date <= <your calculation>
    To complete it add a sort as you did in the SQL.
    That's it.
    Tamir

  • MII BLS Trasaction calling SAP RFC call - How to pass XML document as input parameter

    Hi,
    1. I am very new to the SAP and SAP xMII workbench.
    I have a webpage with iGrid applet embedded on it. We have multiple rows in the iGrid applet that can be selected by user.
    After selecting single or multiple grid rows user clicking a 'button' on the web page.
    We are using iCommand applet (ExacuteQuery] to call the BLS transaction.
    Using iCommand applet on the webpage we are passing parameters to BLS Transaction.
    Would like to pass on the single/ multiple selected grid row values as a XML document to BLS Transaction variable which is an Input parameter for SAP RFC call.
    I am using SAP JCo Session to make the RFC call. 
    Any pointers will be helpful.
    2. Which is a best track in SAP training courses to get formal training.
    Thanks,
    Senthil

    Hi Senthil,
    What version of MII (or xMII) are you working with?  There are some examples of this type of transaction in the wiki which you may want to download and take a look at.
    Regards, Mike
    SAP Customer Experience Group - CEG

  • Pass a datarow as input parameter in a stored procedure

    Hi everyone!
    I wonder if anyone know how to pass a datarow (better if tipized like "tablenameRow") as input parameter for a stored procedure.
    links or suggestions are welcome! (i'm newbie in .net programming, so if you can post some code i'll be really grateful!)
    Thank you!

    Hi,
    YES!! its possible you can pass a datarow to a SP from your Dot net application.
    Here below i'm going to give you an example for Desktop Application.
    For Passing a datarow as Input Parameters, your SP need to support for all these parameters.
    I mean, if a data row has 03 Columns. Then your procedure should be able to take 03 arguments/parameters.
    --Adjust code according to your need.
    --Its for C# Desktop application.
    --Visual Studio Professional, Framework (2.0)
    //Setting connections.
    OracleConnection con=new OracleConnection("Data Source=orcl9i; user id=scott; password=tiger");
    OracleComand cmd=new OracleCommand(con);
    cmd.Type=CommandType.StoredProcedure; //you are useing SP
    cmd.Text="my_stored_procedure"; //Mention SP name.
    --if DataRow has Three columns. You need three parameters.
    OracleParameter p1=new OracleParameter ();//By default parameters are input parameters.
    OracleParameter p2=new OracleParameter ();
    OracleParameter p3=new OracleParameter ();
    //We assume that Datarow already has data in it.
    p1.ParametersName="sp_var1 ";
    p1.OracleDbType=OracleDbType.Varchar;
    p1.Value=tablenameRow[1]; //Here DataRow object's Column1 is input.
    p2.ParametersName="sp_var2 ";
    p2.OracleDbType=OracleDbType.Varchar;
    p2.Value=tablenameRow[2]; //Here DataRow object's Column2 is input.
    p3.ParametersName="sp_var3 ";
    p3.OracleDbType=OracleDbType.Varchar;
    p3.Value=tablenameRow[3]; //Here DataRow object's Column3 is input.
    cmd.OracleParameter.Add(p1); //Add parameters.
    cmd.OracleParameter.Add(p2); //Add parameters.
    cmd.OracleParameter.Add(p3); //Add parameters.
    cmd.ExecuteNonQuery(); //Execute Procedure here.
    Feel free to ask if still found problem.
    ....

  • How do I properly pass values into an input parameter form and app module?

    Using JDeveloper 11.1.1.4
    I created an application module that calls a PL/SQL procedure that uses input parameters. I exposed this to the data control and dropped the object on a jsff as a input parameter form. I need to set some of the input parameters on this form from values gathered and stored in a pageFlowScope bean. What is the proper way so that the values will: 1. show on the form, and 2. get to the java code in the application module that calls my procedure? An example field from my form is:
            <af:inputText value="#{bindings.pPayerId.inputValue}" label="Payer ID"
                          required="#{bindings.pPayerId.hints.mandatory}"
                          columns="#{bindings.pPayerId.hints.displayWidth}"
                          maximumLength="#{bindings.pPayerId.hints.precision}"
                          shortDesc="#{bindings.pPayerId.hints.tooltip}" id="it8">
              <f:validator binding="#{bindings.pPayerId.validator}"/>
              <af:convertNumber groupingUsed="false" pattern="#{bindings.pPayerId.format}"/>
            </af:inputText>Thanks,
    Troy

    Thanks Shay for pointing me in that direction.
    I didn't find the NDValue in the bindings, so I went to the pagedef xml and found it there. Changing the NDValue successfully delivered the value to the app module when the method was executed, but didn't show the value on the form. I had to add the same #{pageFlowScope.paramsBean.fileFormatParam} to the value of the input field and it now is working as needed.

  • Extracting Multiple Table Data Dynamically..Table is an Input parameter

    Hi All
    Can any one update the Program/design of extracting multiple table data as a list or to an excel sheet
    For eg:- Mutliple Tables are entered in selection screen and upon executing the output should be to an excel sheet sequenctially according to the table names entered in the selection screen
    Awaiting for your update
    Regards
    Shiva
    Edited by: shivakumar bandari on May 29, 2009 9:35 PM

    HI Naimes
    Thanks for youe reply
    your second step says to select data from 'table' here tables are dynamic in nature I mean they are an input parameters..how can I write select on a table..
    I can get the table existence from DD02L table and pass the retrieved tables to FM Get_Component_List to get the fields existing for the particular table,
    But I cannot pass the dynamic table value to select query to retrieve the data..Please update me if you have anything on retrieving data from dynamically inputted value
    Can I do this
    Select * from <dyntable>
    Any suggestions will be appreciated
    thank you

  • Passing a list as a parameter to a function

    Hi,
    I am relatively new to PL/SQL, but am used to passing lists to functions in other languages. In my PL/SQL function, currently I assign a SELECT to a cursor, and in the WHERE clause for the select, I have something hardcoded like
    WHERE field_name = ('apple', 'bat', 'cat').
    I would like to replace it by something like
    WHERE field_name = list_name
    where list_name is passed as a parameter to the function that I am defining. The reason I want to do this is because my list_name can have many more than three things in the future.
    Does PL/SQL support an easy way to do this? I have asked around with no success, but it seems to me that a language like PL/SQL ought to have something to support it, since just about every modern language does.
    Thanks,
    Regards,
    Srini

    The trickiest part of the asktom solution is ensuring the cardinality hint is used to help the optimizer understand that the in-list you are building likely contains only a handful of values instead of it 1 whole block worth assumption.
    The default assumption without the cardnility hint will ensure that an index on the column that is used for the IN clause will never be used, resulting in horrible performance.
    I think 10g fixes this, and does some dynamic sampling of the collections returned through that approach. I am not quite 100% sure about that, but I think that is the case.

  • Pass context variables to input parameter

    Hello,
    I want to pass context parameters to a service call.
    If you read the context parameters, they are aways declared of type wd_this->element_<context-name>
    If I pass the context paramter to the service call, I get a type mismatch error.
    So how could I pass context parameters to a service call without binding it, because the ui-element is already bound to another context element.
    Regards Christian

    Hello,
    I've solved the problem.
    The parameter of the service call was a table parameter.
    I've forgotten to check the table-operation checkbox at the wizard.
    Regards
    Christian

  • Need to pass field value as input parameter for a task

    I have the following scenario:
    User opens a task from UWL and sees a UI in which a Quote no. is generated, which is saved in the backend. Next time the user comes to this UI(from the same task in his UWL) he should see the Quote no. generated. Also, the data is fetched from backend by calling BAPI which takes the Quote no. as input, which was generated the first time user visited this UI.
    My concern is how can I store this Quote no. in GP, which was generated the first time, so that user sees the data specific to quote no., as relevant for that task.
    Please help.
    Thanks and Regards
    Aanchal

    Hi Srinivasan,
    Thanks for ur quick response.
    I am explaining my issue further.
    User comes to this UI (first time), Quote no. is generated. User fills some other fields( but does not complete whatever he has to) and saves the data to backend. Now user closes the window (task remains in his UWL), but now when he opens the task, he should see the Quote no. which was generated earlier and also data which he saved(by calling BAPI). How can I get this quote no.?
    Can you please explain what you mean by "expose the quote no. at process level"?
    Thanks and Regards
    Aanchal

  • How to pass a Structure as input parameter

    Hello,
    Anyone knows how to instanciate, populate and pass a Structure into RFCInvoke?
    Thanks!

    Hello,
    Please take a look at the documentations of netweaver RFC programing in this blog: 
    /people/ulrich.schmidt/blog/2008/11/08/new-developments-in-netweaver-rfc-communication
    It contains useful information of rfcInvoke.
    Kind regards, Istvan Elek

  • Passing a CLOB as input parameter

    Can someone help me pass a CLOB to a stored procedure in oracle:
    begin
    -- Call the procedure
    A(p_ccn => :p_ccn,
    p_xml => :p_xml,
    p_out_err_status => :p_out_err_status,
    p_out_err_msg => :p_out_err_msg);
    end;
    Here p_xml is a CLOB.
    If I have to run procedure A from SQL*PLUS how do I execute this? When I enter the xml as a string I get this error
    ORA-01405: fetched column value is NULL
    Please help

    CREATE OR REPLACE PROCEDURE A ( p_clob CLOB ) IS
    BEGIN
    DBMS_OUTPUT.PUT_LINE(TO_CHAR(DBMS_LOB.GETLENGTH(p_clob)));
    END;
    Procedure created.
    SET SERVEROUT ON
    EXEC A ( 'XYZ');
    3
    PL/SQL procedure successfully completed.

  • Is it possible to pass a field symbol as parameter from any method of view?

    Hi
    Is it possible to pass a field symbol as an importing parameter to teh globally declared attribute??

    While it is true that you can pass field symbols, they must be fully typed at the time you pass them  and they will be passed by value, not by reference. If you want to pass generically typed variables use a data reference (TYPE REF TO) instead.

  • Dynamic structure creating based on the input parameter

    Hi all,
                 How to create a dynamic structure based on the input parameter given in the selection screen. I have a file path given and it contains three fields in common, but after that depending upon the input given the fields get changed. For example, i have 0002 infotype given in the selection screen, my file path structure should contain pernr begda endda and PS0002 structure, if the infotype is changed the PS structure has to be changed dynamcially.
    Thank you,
    Usha.

    Ans

  • How can I pass Recordsets as input parameter to a Function ?

    Hi Gurus,
    I want to create a function that receive recordsets as input parameter also returns recordsets as output.
    I have a requirement to do stock taking for all order items of one Order number in one single query execution (to avoid row by row basis).
    From the post in the forum I know that a function can return recordsets / query result using REF CURSOR or pipelined table function.
    My question is : how to pass the recordsets as input parameter to that function ?
    (because I could have 75 rows item in one order number)
    Below is the DDL and the query :
    create table stocks (Product char(4), Warehouse char(5), expireddate date, qty_available number)
    insert into stocks values('P001', 'WH001', '01-dec-2006', 30)
    insert into stocks values('P001', 'WH002', '01-dec-2006', 50)
    insert into stocks values('P001', 'WH002', '01-jan-2007', 50 )
    insert into stocks values('P001', 'WH001', '01-Mar-2007', 150)
    insert into stocks values('P002', 'WH003', '01-dec-2006', 25)
    insert into stocks values('P002', 'WH003', '15-Jan-2007', 50)
    insert into stocks values('P002', 'WH003', '01-Mar-2007', 75)
    insert into stocks values('P003', 'WH001', '01-dec-2006', 30)
    insert into stocks values('P003', 'WH002', '15-Jan-2007', 40)
    insert into stocks values('P003', 'WH003', '01-Mar-2007', 50)
    CREATE TABLE Order_Detail (PRODUCT_ORD CHAR(4), QTY_ORD number, Priority_WH CHAR(5) )
    INSERT INTO Order_Detail VALUES ('P001', 75, 'WH003') // previously 'WH002'
    INSERT INTO Order_Detail VALUES ('P002', 45, 'WH002')
    INSERT INTO Order_Detail VALUES ('P003', 55, NULL)
    The query for stock taking :
    select product,warehouse,expireddate, least(qty_available-(sm - qty_ord),qty_available) qty
    from ( select product,warehouse,expireddate,qty_available,qty_ord, sum(qty_available) over(partition by product order by s.product,expireddate,decode(warehouse,priority_wh,0,1),warehouse ) sm
    from stocks s,order_detail o
    where s.product = o.product_ord order by s.product,expireddate,decode(warehouse,priority_wh,0,1) )
    where (sm - qty_ord) < qty_available

    Hi,
    This my requirement :
    I have (simplified)Order_Detail as below :
    CREATE TABLE Order_Detail (PRODUCT_ORD CHAR(4), QTY_ORD number, Priority_WH CHAR(5) )
    INSERT INTO Order_Detail VALUES ('P001', 75, 'WH003') // previously 'WH002'
    INSERT INTO Order_Detail VALUES ('P002', 45, 'WH002')
    INSERT INTO Order_Detail VALUES ('P003', 55, NULL)
    Then I want to do stock taking from my STOCK table (described on my first post on this thread)
    create table stocks (Product char(4), Warehouse char(5), expireddate date, qty_available number)
    The rule is : The stok taking is on First In First Out basis, on expireddate.
    And I want to do it in single query.
    I want to make this a Function / Stored Procedure so that other transaction can also make use of this query.
    That is why I need to pass the 3 rows oy mr Order_Detail above, do the query, and return the result.
    Then INSERT the result into ORDER_DETAIL_PER_EXPIRED_DATE table.
    I hope this clear my requirement, is this possible ?
    Thank you,
    xtanto

  • PL/SQL Input parameter

    Beginning my quest to learn PL/SQL....
    If you have a procedure which has an input statement which is define like the following...
    i_MyField IN OPS_User.MyField%Type
    I want this field to accept either NULL or a numeric value. If it is defined on OPS_User.MyField as being numeric and not null, can I still pass nulls to the input parameter?
    Thanks for your assistance!!

    Hello,
    The %TYPE is used to define the type of the input parameter, it does not imply that Oracle will perform runtime check of your arguments.
    Example
    MANAG>SELECT version from v$instance;
    VERSION
    9.2.0.4.0
    MANAG>
    MANAG>CREATE TABLE TEST_IT_1ST
    2 (
    3 MY_FIELD VARCHAR2(12) NOT NULL
    4 )
    5 ;
    Table created.
    MANAG>
    MANAG>
    MANAG>INSERT INTO TEST_IT_1ST(MY_FIELD) VaLUES(NULL);
    INSERT INTO TEST_IT_1ST(MY_FIELD) VaLUES(NULL)
    ERROR at line 1:
    ORA-01400: cannot insert NULL into ("OPS$RSTMANAG"."TEST_IT_1ST"."MY_FIELD")
    MANAG>
    MANAG>
    MANAG>CREATE OR REPLACE PROCEDURE MY_TEST(MY_PARAM IN TEST_IT_1ST.MY_FIELD%TYPE) IS
    2 BEGIN
    3 DBMS_OUTPUT.PUT_LINE(MY_PARAM);
    4 END;
    5 /
    Procedure created.
    MANAG>
    MANAG>EXECUTE MY_TEST(NULL);
    PL/SQL procedure successfully completed.
    MANAG>EXECUTE MY_TEST('More than twelve characters !');
    More than twelve characters !
    PL/SQL procedure successfully completed.
    MANAG>
    MANAG>DROP PROCEDURE MY_TEST;
    Procedure dropped.
    MANAG>DROP TABLE TEST_IT_1ST;
    Table dropped.
    MANAG>
    Finally, I recommend you to have a look on the "SQL and PL/SQL OTN Forum".
    PL/SQL
    Best regards,
    Franck.

Maybe you are looking for

  • Problem with downgrading bios. MSI P67A-GD65 (B3).

    Hi! I'm having problems with downgrading my bios from version 4.3 to 1.19. I want to downgrade, because 4.3 doesn't want to boot when I use xmp settings for my RAM ( that might be related to my CPU since I have i5 2500k which is 32nm and 4.3 version

  • ITunes signature is invalid??!!

    I am trying to download that latest version of iTunes, but it keeps saying that it can't download because my iTunes signature is invalid.  What does this mean and how can I fix it?

  • My iMac showed me a panic message and wont start Mac OS X after rebooting.

    I don't use my computer for almost anything but checking gmail, using msn, and the adobe programs (mainly photoshop and illustrator, I am a advertising student so I don't do much) It all started at 5:45 am when my computer normally wakes up by its ow

  • Insert missing rows from another table

    Hi I need to insert rows from another table if there is gaps in my transaction table. For each ärendenr there should be 5 Id status rows (1-5). Except for the fact that the inserted rows never should have higher IdStatus number then the highest value

  • Aperture 3.4 Day# Two

    After getting totally frustrated yesterday with trying to get 3.4 working without success( downloaded 3.1 a few times to no avail, being told by Aperture that I needed more room despite the 227G I had available, etc.) I waited to this morning for a f