Passing in parameters to Data Instance

Hi
I read in OSM 7.2 Release Notes on vf:instance :
You can now add explicit parameter values from within an XQuery or XPath that
augment or override the parameters defined in the OSM data dictionary using
vf:instance()
My question is, how do I make use of the parameters passed in in my Data Instance?
The example given in Developer's Guide says:
log:info($log,local-name(
vf:instance($order/oms:GetOrder.Response/oms:_root/oms:data[1],'DataInstance',<oms:url>file://us/catalog.xml</oms:url>)/*[1]
How do I make use of parameter oms:url in the Data Instance?
I tried using ${oms:url} but it gives me compile error.
I created a new namespace for the data instance to obtain the passed in parameters. Is this the correct way?
the xquery to invoke the data instance:
let $dataInstanceParams := <m1:params xmlns:m1="http://xxx.com/bcc/osm/com/orderopco/xml">
<m1:OMGroupRefID>{fn:normalize-space(im:MainOrderLineItem[0]/im:OMGroupRefID/text())}</m1:OMGroupRefID>
<m1:ActionCode>{fn:normalize-space(im:MainOrderLineItem[0]/im:ActionCode/text())}</m1:ActionCode>
</m1:params>
let $dboutput2 := vf:instance('CheckProductGroupExists',$dataInstanceParams/*)
adapter is JDBC adapter, built-in.
My Data Instance Behavior's oms:sql is:
<query xmlns:im="http://xxx.com/bcc/osm/com/orderopco">
<sql>
select opg_ref_id from C_OM_OPG_MAP
where om_product_group='{$OMGroupRefID}'
and action_code='{$ActionCode}'
</sql>
</query>
Thanks.
Will
Edited by: will.s on Dec 10, 2012 6:01 PM added xquery to invoke the data instance

Hi Will;
The DatabaseAdapter expects input parameters to be named "in:1", "in:2", "in:3" and so-on. The numbers 1, 2, 3, etc. correspond to the position of the ? entry in your SQL parameter. in:1 would be used as the value for the first ? in your sql, in:2 would be used as the value for the second ? and so-on.
So based on this, your xquery would need to be something like this:
let $dataInstanceParams := <m1:params xmlns:m1="http://xxx.com/bcc/osm/com/orderopco/xml">
<in:1>{fn:normalize-space(im:MainOrderLineItem[0]/im:OMGroupRefID/text())}</in:1>
<in:2>{fn:normalize-space(im:MainOrderLineItem[0]/im:ActionCode/text())}</in:2>
</m1:params>
let $dboutput2 := vf:instance('CheckProductGroupExists',$dataInstanceParams/*)
We don't care what the namespace is that you use, but the namespace prefix must be "in:".
For your reference, I'm copying below the full text of the Javadocs for the DatabaseAdapter. You can find the docs for this and other adapters in the OSM SDK Javadocs.
This class implements a View Framework external instance adapter that executes a SQL statement and builds an XML document based on the result set.
There are two mandatory parameters for this class, oms:sql and oms:dataSource.
oms:dataSource: Refers to the jndi name of a JDBC datasource defined in WebLogic. For example 'mslv/oms/oms1/internal/jdbc/DataSource'
oms:sql: Contains the sql that will be sent to the database. For example 'select * from scott.emp where empno=?'
Additional optional input parameters may be supplied that will be bound to parameters defined in the oms:sql value. For example, in the above sql statement a parameter is used to define the value for 'empno' in the where clause. A value for this parameter may be specified by defining a paremter called "in:1". If there were additional input parameters defined in the sql statement, these could be passed as "in:2", "in:3" and so on.
In all cases these input parameters will be assumed to be string values and bound to the sql statement as string values.
The following is an example of using the DatabaseAdapter to invoke a query:
<instance name="well_paid_salesman" xsi:type="externalInstanceType">
<adapter>com.mslv.oms.view.rule.adapter.DatabaseAdapter</adapter> <parameter
name="oms:dataSource">'mslv/oms/oms1/internal/jdbc/DataSource'</parameter> <parameter
name="oms:sql">"select * from scott.emp where job='SALESMAN' and sal > ?"</parameter> <parameter
name="in:1">1250</parameter> </instance>
The above declaration returns the following XML instance:
<results> <rowSet> <row> <empno>7499</empno> <ename>ALLEN</ename> <job>SALESMAN</job> <mgr>7698</mgr>
<hiredate>1981-02-20 00:00:00.0</hiredate> <sal>1600</sal> <comm>300</comm> <deptno>30</deptno> </row> <row>
<empno>7844</empno> <ename>TURNER</ename> <job>SALESMAN</job> <mgr>7698</mgr> <hiredate>1981-09-08
00:00:00.0</hiredate> <sal>1500</sal> <comm>0</comm> <deptno>30</deptno> </row> </rowSet> </results>
The DatabaseAdapter can also be used to execute SQL stored procedures.
The DatabaseAdapter provides a stored procedure SQL escape syntax that allows stored procedures to be called in a standard way for all RDBMSs. This escape syntax is defined as part of the Java JDBC API.
This escape syntax has one form that includes a result parameter and one that does not. If used, the result parameter must be registered as an OUT parameter. The other parameters can be used for input, output or both. Parameters are referred to sequentially, by number, with the first parameter being 1.
{?= call [,, ...]}
{call [,, ...]}
Values for input parameters to the stored procedure are specified using the in:1, in:2 (etc.) parameters in the same way as they are for regular SQL queries.
Output parameters are specified using out:1, out:2 (etc.). Keep in mind that the parameter number (1, 2, 3, etc.) are numbered sequentially from 1 ordered from left to right in the specified SQL statement including both input and output parameters.
The value of the parameter is the parameter SQL type (see http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Types.html for a list of types).
The following example illustrates how to call a database stored procedure that has one output parameter (the result of the stored procedure call), and one input parameter.
<instance name="lock_count" xsi:type="externalInstanceType">
<adapter>com.mslv.oms.view.rule.adapter.DatabaseAdapter</adapter> <parameter
name="oms:dataSource">'mslv/oms/oms1/internal/jdbc/DataSource'</parameter> <parameter
name="oms:sql">"{? = call om_cartridge_pkg.get_any_cartridge_id('my_cartridge',?)}"</parameter> <parameter
name="out:1">'INTEGER'</parameter> <parameter name="in:2">'1.1'</parameter> </instance>
The above declaration returns the following XML instance:
<results> <outputParameter number="1">1234</outputParameter> </results>

Similar Messages

  • Passing menu selections as parameters to Data Template

    Hi,
    Following is my data template where i am passing 3 parameters - product_names(drop down menu, with option of multiple select with All), balance_date and trailing_days:
    <dataTemplate name="ProductTrendDataTemplate" description="Product Trend Report" dataSourceRef="PI reporting DS">
         <properties>
              <property name="include_parameters" value="false"/>
              <property name="include_null_Element" value="false"/>
              <property name="include_rowsettag" value="false"/>
              <property name="scalable_mode" value="off"/>
         </properties>
         <parameters>
              <parameter name="product_names"/>
              <parameter name="balance_date" dataType="date"/>
              <parameter name="trailing_days" dataType="number" defaultValue="30"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="settlementlvl">
                   <![CDATA[     
              select
                to_char(eff_d , 'MM/DD/YYYY') as settlement_date,
                prdt_nm as product_name,
                sum(tt_now_mmda_bal_a) as balance,
                sum(acc_cnt) as account_count,
                to_char(latest_settlement_date, 'MM/DD/YYYY') as latest_run_date
               from
                <tables>
               where
                prdt_nm in (:product_names)
                and eff_d <= nvl(cast(:balance_date as date), (select max(eff_d) from t_frdba_daily_bal_f))
                and eff_d >= nvl(cast(:balance_date as date), (select max(eff_d) from t_frdba_daily_bal_f)) - :trailing_days       
                group by eff_d, prdt_nm, latest_settlement_date
                order by eff_d, prdt_nm
                   ]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="SETTLE_INFO" source="settlementlvl">
                   <element name="SETTLE_DATE" value="settlement_date"/>
                   <element name="PRODUCT_NAME" value="product_name"/>
                   <element name="BAL" value="balance"/>
                   <element name="ACCNTS" value="account_count"/>
                   <element name="LATEST_SETTLEMENT_DATE" value="latest_run_date"/>
              </group>
         </dataStructure>
    </dataTemplate>
    The parameter definition in the xdo document is as follows:
    <parameters>
    <parameter id="balance_date" dataType="xsd:date">
    <date label="Latest Settlement Date" format="dd-MMM-yy"/>
    </parameter>
    <parameter id="trailing_days" defaultValue="90" dataType="xsd:integer">
    <input label="Trailing Days" size="4"/>
    </parameter>
    <parameter id="product_names" defaultValue="*">
    <select label="Products" valueSet="product_list" multiple="true" all="true" allValue="lov"/>
    </parameter>
    </parameters>
    My problem pertains to the parameter product_names. When I select either All or multiple product_names (that is when I select product X,Y and Z from the front end), the product names are passed in as a single string into the query. As a result of this the query prdt_nm in (:product_names) fails as it trys to find all the product_names with value "'X','Y','Z'" instead of selecting on values 'X', 'Y', 'Z' separately. Thus the query is failing for multiple select. Can anyone suggest as how to handle this condition?
    Please let me know if you need more information on this....
    Thanks,
    Ashwin

    Tim,
    The output from my OC4J terminal with debugger turned on is
    The sql query at run time looked as: prdt_nm in (:product_names)
    Parameter value substituted as:
    [101609_022156559][][STATEMENT] 1: product_names:'X','Y','Z'.
    So I assume that the data template recvd this parameter as an string " 'X','Y','Z' ".
    Just out of curiosity, I tried the same without using data template , just using plain SQL query, the output from the OC4J terminal is as follows:
    In the query the parameter product_names is replace as prdt_nm in (:product_names2905,:product_names2906,:product_names2907) and the values are substituted as
    [101609_022637635][][STATEMENT] 1:X
    [101609_022637635][][STATEMENT] 2:Y
    [101609_022637635][][STATEMENT] 3:Z
    So from this you can see that BI publisher is some how handling the data template's parameter parsing differently from plain sql query.
    Tim, I am not familiar with pre-fetch triggers as I am new to PL/Sql. Is there someway to handle this at the query level instead of writing a PL/SQL function.
    Appreciate your help.
    Ashwin

  • Passing parameters to data trigger

    I've seen many posts regarding this, but the parameters seems to be coming from user-supplied values. Is there a way to pass an element from the data template as the parameter. I want the the data trigger to be fired for each unique value of a certain data element retrieved from the query.

    Thanks, Ike, I have used bind variables in the past, but have never tried to pass one into the data trigger. Using your advice I attempted this, but it only passed in the value of the last row to the function.
    <dataQuery>
              <sqlStatement name="Q1">
                   <![CDATA[ select HEADERS.LOG_ID as LOG_ID,
          HEADERS.OPENED_BY_NAME as OPENED_BY_NAME,
          HEADERS.ISSUE_OPEN_DATE as ISSUE_OPEN_DATE,
          HEADERS.ISSUE_DESCRIPTION as ISSUE_DESCRIPTION,
          HEADERS.CREATED_BY as CREATED_BY,
         from      HEADERS      ]]>
              </sqlStatement>
              <sqlStatement name="Q2">
                   <![CDATA[select       LINES.STATUS as STATUS,
          LINES.ASSIGNED_TO as ASSIGNED_TO,
          LINES.COMMENTS as COMMENTS
          from     LINES
         where      (LINES.LOG_ID = :LOG_ID)
         and     UPPER(JCIFND_ISSUES_LINES.status) = 'OPEN']]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="HEADER" source="Q1" groupFilter="">
                   <element name="LOG_ID" value="LOG_ID" function=""/>
                   <element name="OPENED_BY_NAME" value="OPENED_BY_NAME" function=""/>
                   <group name="LINE" source="Q2" groupFilter="">ction=""/>
                        <element name="RESOLUTION_VALUE" value="RESOLUTION_VALUE" function=""/>
                        <element name="RESOLUTION_DESCR" value="RESOLUTION_DESCR" function=""/>
                        <element name="COMMENTS" value="COMMENTS" function=""/>
                   </group>
              </group>
         </dataStructure>
         <dataTrigger name="afterReport" source="MY_PKG.MY_ISSSUES(:LOG_ID)"/>
    Valid log id values in my test data are 1001 and 1002, but the function only is called with value 1002.
    Any ideas on how to call this function for each value?
    Thanks and Happy New Year

  • [Interface] - Passing variety parameters/input to PL/SQL report

    Hi,
    I've the PL/SQL report which can allow passing in the parameter, i use '&'.
    the report is given to the end user who do not have the IDE for PL/SQL. the machanism of the report is generated into the spool file and import into excel format.
    now i am wondering how to create a tool using SQL or PL/SQL to allow the end user to choose the parameter(s) dynamically and passing into the PL/SQL to generate the report based on the input selected.
    the parameters like below:
    package code :
    week no :
    year :
    department :
    all the above parameters, the data would be selected from the existing lookup table. the user is allow to select more than 1 input for specified parameter for instance i want to spool report for week 1 until week 5.
    pls advise any solution on this topic. thanks

    hi scoot,
    thank for reply.
    yep, i'm using sql*plus and also sql navigator 4.0 .
    the user don't have the software to interact. i'm thinking of build an simple interface using VB and passing in the parameter then initiate the sql*plus to run the program in background mode.
    but if you have any other solution which not need to use other software to wirte such program , pls let me know immediately. thank

  • Passing custom parameters to activities at runtime (PFE in OBW904)

    Hello,
    does anybody know, how to pass custom parameters (from the start activity) to external activities. Specially I need a reference to the current task instance (e.g. the unique item key) within a shell script.
    At the time now, I've to wrap the external call in a custom pl-tranformation. There I can get the start parameter with parameter binding. Is that the right way?
    Is there a OWB runtime API? It w'd be nice, to have it for the dynamic change of custom actitvity attributes (for instance the filename of the "file_exist"-activity).
    Ralf

    Hello Igor,
    1st: thanks for your fast reply.
    The customer uses the OWB904821 with Solaris 28 at the server side and a NT-Client. I test some cases with a W2k-Laptop and a local DB-Installation. We use both the RDBMS V.9203. The installation was successful.
    We want to call shell scripts (as external activities) from a process flow (to isolate a couple of OS related steps and because of the limitations of the email and file_exists-activity).
    In the Data Warehouse we have different schedules of the process flow. With every run of a shell script we've to identify the current incarnation (or instance) of the process flow. Internally there is the auditing task id, but I don't know how to reference it and I think, we should not use it in the application.
    In the standalone Workflow-Version we can use the item key parameter in the API-functions for this purpose. I look for a way to pass such a unique start value to an ext. activity.
    Ralf

  • Issues passing drillthrough parameters from a multi-level tablix in SSRS 2008 R2

    Hello,
    I am really struggling with trying creating a drillthrough report that starts with a matrix (tablix)  and passing those  parameters. I am using SSRS 2008 R2.
    Here's my scenario:
    I have a matrix that has mulitple levels where you can drill down. Here an example with all the levels open:  
    Active
    Term
    Leave
    Total
    128
    88
    121
    United States
    110
    80
    85
    New York
    65
    30
    57
    Manhattan
    10
    6
    9
    Buffalo
    20
    23
    4
    Albany
    35
    1
    44
    Texas
    45
    50
    28
    Dallas
    40
    30
    22
    Houston
    5
    20
    6
    France
    18
    8
    36
    Centre
    18
    8
    36
    Blois
    7
    2
    8
    Druex
    6
    1
    15
    Tours
    5
    5
    13
    I want to drillthrough to another report - Detail Report. As I understand it, I would click the 65 for New York and I would see the detail for the 65 Active people. If I click the 2 under Blois, I would see the 2 terminated people in Blois. My understanding
    for this to work, the Detail Report would need a a parameter for each of the level possibilities in the matrix that I could click: Country, State, City as well as the Status (Active, Term, Leave).
    While I understand about passing parameters, what I don't understand is how to pass the parameters if they are blank. Let's say I clicked 65 for New York, I would need to pass State = New York  Status = Active. But the remaining parameters (Country
    and City  would be null). I know Country doesn't need to be Null in this case.
    My Detail Report has the parameters defaulted to Null, but whether I put the parameters in a Filter for the dataset or in the query itself, I cannot get it to ignore the Nulls.
    As a crazy work-around (I think) I can put in the Where of the query  something along the lines of: this:
            and (a.Country in (@paramCountryCode) or NULL  in (@paramCountryCode) )
    and I would need to do that for each parameter. Usually I have to use 'ALL' instead of NULL, I'm note sure why.
    Additionally, in the Report Action of the Main Report, I need to pass those parameters for each level and their Status. I am also not clear whether or not I need to put in all the parameters on each of the levels (Country, State, City) of the matrix. And if
    I do, do I need to make the expressions an IIF statement stating whether or not they are In Scope?
    All the examples I was able to find, only showed one or maybe two parameters being passed. Doing the way I am trying, seems convoluted, error-prone and tedious. I really hope that I am wrong.
    Is there a better way to approach drilltrough reports from a matrix when there are multiple levels?
    Thank you for the help.
    ~J

    Hi Jenna_Fire,
    According to your description, you have a matrix contains total for each group on each level. Now your requirement is, when you click on any number (data field or total), it will go to the detail report which returns all the detail information of the people
    within the group scope. For example, if you click on the total of Active users in United States, it will return the detail information of Active users in New York and Texas. Right?
    In this scenario, we should set the parameter (@Country, @State, @City) allow multiple values in both main and detail report. And in Default Value (@Country, @State, @City), query out all distinct values. In the textbox which contains
    those total values, when set use these parameters to run the report, we only need to pass the parameters of parent groups. For example, if we click on the total of Active users in New York, we only need to pass Country, State, Status to detail report, and
    in the detail report, the City parameter will use all distinct values (Default Values) because we don't pass the City parameter. We have tested this case with sample data in our local environment. Here are steps and screenshots for your reference:
    1. Create parameter Country, State, City and Status in both main report and detail report. Set both Available Value and Default Value get values from query (Create a dataset for each parameter, use "select distinct [column] from [table]" as query). Set allow
    multiple values for parameter Country, State and City in both reports.
    2. In corresponding textbox, pass appropriate parameters in go to report Action.
    4. Filter data in detail report (in where clause or using filters).
    5. Save and preview. It looks like below:
    Reference:
    Using Parameters to Connect to Other Reports
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • What is the better way to pass input parameters between components?

    Hi all,
    I had a dispute with a colleague about passing data between different WDP Development Components. The situation is like this:
    Colleague has a SearchWDP (parent) und I have a BrowseWDP (child). After searching for some objects and clicking a hit in the SearchWDP, the corresponding details should be shown in BrowseWDP, via passing a bunch of parameters such as selected item's id, etc.
    Now which of the following is the better practice:
    - Defining a node in BrowseWDP (child) with isInputParameter set to TRUE, creating a similar node from the same type (simply via ModelBinding, both WDPs are using the same model) in SearchWDP, and defining a mapping between them so that SearchWDP fills the input nodes. From BrowserWDPs perspective, I'd call this Pull method.
    or...
    - Defining a node in BrowseWDP (child) with isInputParameter set to FALSE, creating a setter method in BrowseWDP Interface Controller for the collection (to be passed as parameters) and calling a wdContext.nodeBlaBla().bind(pInputParameterFromModelType). From BrowserWDPs perspective, I'd call this Push method.
    The colleague's argumentation in favor of Push has not convinced me at all and I'd like to ask your opinions. Is there a best practice or recommendation for this scenario? TIA
    ps: Any answer will be rewarded.

    Hi Cuneyt,
    Refer the links below, they are very informative!
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/15a441cd47a209e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/67/cc744176cb127de10000000a155106/content.htm
    These links are a part of the WebDynpro ABAP documentation, but the concepts are same for WDA and WDJ.
    Considering your scenario, I would recommend the first alternative you have mentioned (if you refer the second link its called External Context Mapping), where component controller context node of component A (SearchWDP) is the source for Interface controller context (same name) of component B (BrowseWDP).
    Thanks.
    Chitrali

  • How does one pass import parameters to a report within a method?

    Hello all,
    Well how does one  pass import parameters to a report which is within a method ...end method.
    for example :
    method 123
    SUBMIT reportname using selection '1000'
    endmethod .
    Here we need to pass values into the selection screen and run the report for those values.
    The values are say 'ABC'   (  tablename "DEF" and field name "HIJ" ).
    I hope the question is clear, awaiting your response 
    Thanks and Regards,
    Sandeep.

    Go to SE24
    Parameters: Give the Parameter name, Typing method is "Type" is the domain type that u are selecting, say for e.g :  Parameter is "P_CONT" , its associated type "CHAR32" etc
    For Select Options:  Parameter name say "S_CUST", Type"importing". For this you need to give an associated type which must be created as "TABLE TYPE " in SE11. That table type needs to have a "LINE TYPE" .
    LINE TYPE is a Structure created with components "SIGN, OPTION, LOW & HIGH" for select-Options.
    NOTE: for a Table type related to Customer data fields "say KUNNR", the line type created must have the Component Type and data Type corresponding to the Data Element associated with "KUNNR" ;i.e: "CHAR" etc.
    See if this is clear to you or revert back in case of any Confusion.

  • How to pass a table of data to transaction.

    Hi,
    I need to pass several rows of data to an internal table of a bapi from a page .
    I know how to create a table in xMII transaction within itself.
    But I couldn't figure how to pass several rows from a HTML page to an input parameter of a Xacute query.
    Here is the scenario.
    My HTML page is having a table of 3 rows and 12 columns.
    I need to pass this data to an input parameter of a Xacute query.
    Can some one help me in this regard.
    Thanks,
    Srinivas.

    Rick,
    Thank you very much Rick. Your work around is working fine.
    I am trying to enhace it a little bit this concept as below.
    I created a transaction which takes string input through transaction parameters and impliments your logic of saving to a local text file and loads as XML data through XML loader and finally assigning to OUTPUT parameter of xml type.
    Through this I can call this transaction where ever I need to convert string to XML.
    But the problen I am facing here is whenI test this transaction through Xacute Query with some well formed XML data as input I am getting nothing in the test page.
    Here are the steps I followed in the transaction:
    1. Save the input text to a local file.
    2. Load the same file using XML Loader.
    3. Assign the xmlLoader.xmlContent -> Transaction.OUTPUT ( Assign XML) through assignment block.
    4. Delete the temporary file.
    Can you help in this regard.
    Thanks,
    Srinivas.
    Thanks,

  • How to pass the internal table data to smartforms

    Hi Gurus,
    I have a problem in passing the internal table data to the smartforms. In the print program
    I get the data into one internal table "LT_PRDLBL1". I am passing this internal table to the other in print program by calling the FM_NAME.
    CALL FUNCTION fm_name
      EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         = T_SSFCTRLOP
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        OUTPUT_OPTIONS             = T_SSFCOMPOP
        USER_SETTINGS              = ' '
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        LT_PRDLBL                 = LT_PRDLBL1
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
    In the print program I had defined the internal tables like
    Data: lt_prdlbl  type standard table of zprdlbl.
    Data: Begin of lt_prdlbl1 occurs 0.
            include structure zprdlbl.
    Data: End of lt_prdlbl1.
    How do I define the internal table in the smartform to get the values printed in the smartform?.
    <REMOVED BY MODERATOR>
    Thanks,
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:01 PM

    Nehal,
    Thanks for quick response.
    In the smartform under the Form Interface->Tables tab
    I had defined
    LT_PRDLBL LIKE ZPRDLBL. If I define TYPE instead of LIKE I get the error message saying "FLAT TYPES may only be referenced using LIKE for table parameters".
    In the main window I have created LOOP, in which I have ticked the internal table and
    LT_PRDLBL INTO LT_PRDLBL. In the text node I am passing the values of this internal table
    &LT_PRDLBL-XXXX&.
    I am able to get the print but the data is not printing.
    Please help me with this.
    Thanks,

  • Trouble Passing URL Parameters between Applications

    Hi All,
    I am having trouble Passing URL Parameters between Applications for BW queries as data sources. I know I am getting the data from the sending application correctly, because I an printing to the screen using a Text Component.
    Date From: 1/1/2008
    Date To: 3/14/2014
    Here is the code from the sending application On Select :
    "http://localhost:56572/aad/web.do?APPLICATION=WIMO_SUMMARY_OPEN_DETAIL&designersessionid=37a1cfaa7e734cd9afa35cb4cd627d41" +
    + DS_1.getVariableValueExt("ZPORDAT3") +
    + DS_1.getVariableValueExt("ZPORDAT5"));
    Here is the code from the recieving application Global Script Variable"
    Xv_DateFrom     String     True
    Xv_DateTo         String     True
    Here is the code from the receiving application On Startup"
    DS_2.setFilter("0CALDAY",[Xv_DateFrom, Xv_DateTo]);
    When I click the results of the sending Application the popup window opens for the receiving application but I get all the records for the BW receiving query, it does not restrict to the values in ("ZPORDAT3") 1/1/2008 and ("ZPORDAT5") Date To: 3/14/2014.
    So, I would expect it is my receiving code, but I am not sure.
    Hope you can help?
    Norman

    Hi Norman,
    As Jörg said, please put "&" before each of your variable names at your url. For the second part,I didn't try it for date intervals but keep in mind just in case:
    APPLICATION.openNewWindow("http://localhost:56572/aad/web.do?APPLICATION=WIMO_SUMMARY_OPEN_DETAIL&designersessionid=37a1cfaa7e734cd9afa35cb4cd627d41" +
    "&Xv_DateFrom=" + DS_1.getVariableValueExt("ZPORDAT3") +
    "&Xv_DateTo=" + DS_1.getVariableValueExt("ZPORDAT5"));
    Here is the code from the recieving application Global Script Variable"
    Xv_DateFrom     String     True
    Xv_DateTo         String     True
    Here is the code from the receiving application On Startup"
    DS_2.setFilterExt("0CALDAY", {"low": Xv_DateFrom , "high " : Xv_DateTo});
    Best regards,
    Onur

  • Parameters of Date Datatype for stored Procedure

    I have a stored procedure where i hav two date parameters..initial i had the parameter datatype as varchar and in query i used the format to_date(fromdate ,'dd/mm/yyyy')
    My fromdate is in the format 31-01-2010
    everything worked fine...now i changed the datatype of parameters to date...how shud i give the input ?
    If i give as 01/31/2010 as i get the error
    ORA-06550: line 6, column 15:
    PLS-00382: expression is of wrong type
    ORA-06550: line 6, column 3:
    PL/SQL: Statement ignored
    ORA-06550: line 7, column 13:

    Cathrin wrote:
    I have a stored procedure where i hav two date parameters..initial i had the parameter datatype as varchar .. and this is wrong. Surely!
    Why are you passing date values as varchar2?
    One of the fundamental programming principles is to use the correct data types for variables and parameters. Exactly because of the type of problem you are now experiencing.
    So do not use string variables for numbers and dates and arrays and other types. 99.99% of the time this will be just plain wrong. And at this stage, it is more than safe to ignore the 0.01% exception to this rule.
    Use the correct data types. That simple.

  • Probs sharing a report that uses SETPARAM to pass multiple parameters

    Ok we have master DB account Disco that creates reports. I also have oracle acct Duser for the users to run the reports.
    Per Metalink Note:304192.1, we've got the setparam stuff working to pass in date parameters into our sheet. This works fine when I run the report as Disco. When I try to share the report to Duser, it still prompts for the dates, but then the report returns all 0's for the results. I have no idea why this is happening.
    Any suggestions on how to share reports with other users that pass in parameters would be much appreciated. thanks!!
    Allen

    Hi Allen,
    I would always recommend that you use sys_context to pass parameters. You can search this site for sys_context or take a look at (Re: Passing multiple parameters into Custom Folder... for more details.
    Rod West

  • How to pass runtime parameters to MySQL Query from xMII server

    Please can anybody help in How to pass runtime parameters to Orcle Query from xMII server

    The answer is the same as for your other thread.  The mechanism is the same regardless of the end database.  The SQL  syntax will be different for each database vendor depending upon which functions you are invoking.  The main areas of difference between SQL Server, Oracle, DB2, etc. deal with dates (times also) and strings, but there are others as well.
    Regards,
    Mike

  • Passing dynamic parameters to an IR Report

    Hello,
    We have installed Hyperion BI+ 9.3.1. We are in the process of evaluating the development of IR reports which would
    have a requirement to have parameters passed dynamically. For example, we'd be interested in passing a date as a parameter which then would be used by the query inside IR to filter/bring back data from the database pertinent to the date being passed.
    The need for this is because once developed we want to execute the IR on a weekly basis whereby the date keeps moving forward to be then used to extract relevent data.
    Any thoughts on how this can be done? Also, on a related note are there any backend command line utilities or interfaces that can be used to pass the parameter dynamically to the IR report?
    Thanks in advance
    Rajesh

    Doug,
    Thanks for the response. The delivery of the report output would be via Workspace (iHTML). I mentioned date parameter as an example. The report or reports may need to accept other paramaters as well - like department id or product. While the number of parameters and the nature of the parameters would be known ahead of time the value would need to be derived dynamically (by say reading a database table containing transactional data)
    As for the command line utility, I am thinking more along the lines of say Oracle Reports which enables you to invoke a run-time command (rwcli60 for example) and pass the necessary arguments to the report.
    I have seen the sample java programs that are shipped with the product (and we have used one of them called AddBqy) but haven't seen one that enables passing dynamic parameters.
    I will look into the SmartCut option as recommended by you.
    Any more insights/suggestions will be greatly appreciated.
    Thanks
    Rajesh

Maybe you are looking for

  • Unable to Clear Vendor open items in F.13

    Hi All, We have few vendor codes, where all are having some normal open items as well as Spl GL open items and net balance is 0. When we do clearing with F-44, No issues at all But when we try to clear them through F.13, system is grouping normal ope

  • I cannot copy and paste with my clipboard in IOS 8.1. Answers?

    I I am having trouble copying from any text to my clipboard and then pasting it into another document. The clipboard has a past copy of another line of text and it will not clear it and over right it.

  • Mobile website scaling

    I'm new to the discussion boards and relatively new to Dreamweaver. I'm designing a mobile website and have come across the issue that the pages are not fitting as I had hoped.  The idea is to have the page scaled to fit the width of the users device

  • SAP B1 query for  trial balance by Locations

    Hi team How i can take the trail report by location. or is there any query to take this report. Thanks Anantha Desai

  • MULTIPLE CAMERA

    iam trying live video streaming using FMS3, FME2, and Flash Lite3 how to create live video streaming, if i use multiple camera?