Passing parameter/variable values to containers

What options are available to pass a value assiged as a prompted variable/parameter in a plan to a container to resolve a value for a variable/parameter defined in a container which is called by the plan?
Supposed the plan is defined as:
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated by N1 SPS -->
<executionPlan xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' name='setdb' version='5.1' xsi:schemaLocation='http://www.sun.com/schema/SPS plan.xsd' xmlns='http://www.sun.com/schema/SPS' path='/utilities'>
     <paramList>
          <param name='dbName'></param>
<param displayMode='BOOLEAN' prompt='install container xyz?' default='TRUE' name='do_container_param'></param>
     </paramList>
     <simpleSteps>
          <execNative userToRunAs='root'>
               <inputText><![CDATA[
:[dbName];
]]></inputText>
               <exec cmd='sh'></exec>
          </execNative>
     </simpleSteps>
<inlineSubplan planName='install_container_xyz'>
<simpleSteps>
<if>
<condition>
<istrue value=':[do_container_param]'></istrue>
</condition>
<then>
<install blockName='default'>
<component name='xyz.cont' path='/someN1FolderPath'></component>
</install>
</then>
</if>
</simpleSteps>
</inlineSubplan>
</executionPlan>
How can I pass the value assigned to dbName to the container xyz.cont to be used to resolve a value for a variable/parameter in the xyz.cont?

The new, soon-to-be-released 6.0 version of SPS handles this problem with Component Variables. With this feature, you can specify in the plan what variables to pass to the component blocks.
However, that doesn't help you in the meantime. The sample XML you list isn't quite accurate, but I think I understand what you're after. I cleaned it up a little to make it valid and took out the execNative step (not sure what the intent of that was).
Anyway, here's what I get for the plan:
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated by N1 SPS -->
<executionPlan xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' name='setdb' version='5.1' xsi:schemaLocation='http://www.sun.com/schema/SPS plan.xsd' xmlns='http://www.sun.com/schema/SPS' path='/utilities'>
<paramList>
<param name='dbName' prompt="database name"></param>
<param displayMode='BOOLEAN' prompt='install container xyz?' default='TRUE' name='do_container_param'></param>
</paramList>
<simpleSteps>
<if>
<condition>
<istrue value=':[do_container_param]'></istrue>
</condition>
<then>
<install blockName='newBlock'>
<argList dbName=":[dbName]"/>
<component name='xyz.cont' path='/someN1FolderPath'/>
</install>
</then>
</if>
</simpleSteps>
</executionPlan>
The component would look something like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated by N1 SPS -->
<component xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' name='xyz.cont' version='5.1' xsi:schemaLocation='http://www.sun.com/schema/SPS component.xsd' xmlns='http://www.sun.com/schema/SPS'>
     <extends>
          <type name='system#container'></type>
     </extends>
     <installList>
          <installSteps returns='false' name='newBlock' requireLocking='true'>
               <paramList>
                    <param name='dbName'></param>
               </paramList>
<!-- some steps here -->
          </installSteps>
     </installList>
</component>
Note that you have to rename the block. You can't change the signature of an inherited component block (container component defines block "default". Either create a new block or use an untyped component). I think this is what you're trying to do. Please let me know if I missed.

Similar Messages

  • BODI: Is it possible to pass parameter/variable value out of a data flow?

    Hi All,
    Is it possible to pass parameter value out of a data flow?
    I've created a custom function in my query transform to get row count, this value would be used outside the data flow to perform another logic. It looks like I'm unable to modify the output schema at the function in the query transform to explicitly map it to a particular global/local variable.
    Any ideas?
    Thanks.

    Any ideas?

  • How to pass session variable value with GO URL to override session value

    Hi Gurus,
    We have below requirement.Please help us at the earliest.
    How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version  Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
    Please provide step by step solution.No vague answers.
    I followed below steps mentioned.
    RPD:
    ****-> Created a session variable called STATUS
    -> Create Session Init block called Init_Status with SQL
        select 'ACTIVE' from dual;
    -> Assigned the session variable STATUS to Init block Init_Status
    authenticationschemas.xml:
    Added
    <RequestVariable source="url" type="informational"
    nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
    Report
    Edit column "Contract Status" and added session variable as
    VALUEOF(NQ_SESSION.STATUS)
    URL:
    http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
    Issue:
    When  I run the URL above with parameter EXPIRED, the report still shows for  ACTIVE only. The URL is not making any difference with report.
    Report is picking the default value from RPD session variable init query.
    could you please let me know if I am missing something.

    Hi,
    Check those links might help you.
    Integrating Oracle OBIEE Content using GO URL
    How to set session variables using url variables | OBIEE Blog
    OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
    Thanks,
    Satya

  • Passing CPM variable value to BW report/query

    Is it possible to pass CPM variable values from SEM scorecard to BW supporting reports.

    Not sure if this is what you are looking for, but it's my first thought of what I would try:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/3.0b report-report interface.pdf

  • Can we Pass two variable values in to one Varaible which is Cust Exit?

    Hi all,
    Can we pass two Variable values to a Variable which is Custexit?(For Example posting Period and the fiscalyear in to the FicalPeriod )
    Regards
    Kiran

    Hello,
    For that example you had to "convert" both post period and fiscalyear into fiscalperiod, and yes it is possible, but not throwing up the two values, you had to do it yourself in the user exit code.
    Diogo.

  • How to pass Temp variable value instead of Table name in From clause.

    Hi,
    I have an requirement to pass the Temperorary variable value instead of Table name in FROM Clause in SQL.
    But I am strugglint to pass this variable value.
    E.g., a Varchar2(5) := 'aa';
    Select * from a;
    Here I come to mention a - 'aa'. But the SQL looks for 'a' as Table. But its should look into 'aa' as Table name.
    Kindly guide me.
    Thanks.

    SQL> declare
      a     varchar2 (5) := 'emp';
      v     varchar2 (100);
      cur   sys_refcursor;
    begin
      open cur for 'Select ename from ' || a;
      fetch cur into v;
      while cur%found
      loop
        dbms_output.put_line (v);
        fetch cur into v;
      end loop;
      close cur;
    end;
    JAMES
    SCOTT
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    KING
    TURNER
    ADAMS
    FORD
    MILLER
    PL/SQL procedure successfully completed.

  • How to  pass a variable value into a custom planning function via a web

    Can some one tell me
    How to  pass a variable value into a custom planning function via a web template?
    What are the different types of Planning function parameters available and what is the difference between them?
    Thanks
    babu

    Hi Sutrtha,
    Yeah I got the pop up asking to select the variables used, I have selected ENTITY_ID that was used by the interfaces, but on execution of the package the Scenario did not work as the passeed variable #ENTITY_ID is set to 0 instead of the value I am passing.
    Am I missing something?
    Regards
    B

  • Virtual KF(as Date) in Cube and pass the variable value to this VKF runtime

    Hi ,
    User would enter 1 date using date variable untime.
    My cube also has 1 Completed Date (KF).
    And i wann do comparisan based on input variable and exisitng variable.
    Can i add 1 Virtual KF(as Date) in Cube and pass the variable value to this VKF runtime and do the calculation in cube ???
    I know the same thing i can do in formula , but i have some different req.which i am unable to explain u here .
    So please let me know can i use VKF if yes how ???
    Points would be thrown for all .
    Bapu

    it's the exact posting from your last post. Please don't duplicate the postings, so that we can help you in one thread and not so many different threads

  • Passing global variable values from databse to forms

    I am using forms 6i and database is oracle 9i.
    I am trying to run a form stand alone ( by pressing CTRL-R) without putting it in the application.
    since when this form is placed in the application menu it works fine as it has been passed global variables values from the database .
    now i am trying to run the form without menu and thus i want to pass the values of global variables .please let me know where should i pass these values in form .is it be WHEN-NEW-FORM-Instance trigger or in Pre-form trigger.
    i know what are the global variable values passing into the form from database.
    i can hard code any values to check if the form runs well or not.

    If you intend to do this sort of testing regularly you might want to consider creating a seperate form with a control block which allows entry of the name of the form you want to run, the names of the globals and their values, and do a CALL_FORM.

  • How to pass the  variable value to reports as a parameter

    hi
    i have facing a problem that i want to pass the value of a variable that i had calculate in a procedure like
    SELECT nvl(BASIC_PAY,0) INTO v_basic FROM EMP WHERE EMP_ID=P_EMP_ID;
    so i want to send the variable value v_basic as a parameter through form to report...and simlarly other variables values which i have calculate in procedure....
    need ur help to solve this problem
    thanks in advance

    it's the exact posting from your last post. Please don't duplicate the postings, so that we can help you in one thread and not so many different threads

  • Open a crystal report from WAD with passing  the variables values

    Hi,
    I need to know is there any way to link SAP WAD to crystal reports (open a crystal report from WAD)and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Maybe we need to pass parameter by WAD URL but this is just my assumption and have no idea how to do this with passing variable values.
    right now I know the method of how Bex queries which are used as data source for crystal reports but in my current scenario we have the structure like this that bex queries link with WAD and then WAD is linked with crystal reports.
    No doubt that Crystal report is target option in RRI but there the source is Bex Query only but in current scenario we are looking  WAD (web template) as a source to crystal report or crystal report called in WAD.
    Please suggest something on same.
    Thanks
    Take care
    Vishal sharma

    Hello Vishal.
    Did you find a solution for this problem?
    I'm facing right now the same problem, I need a way to link SAP WAD to crystal reports (open a crystal report from WAD) and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Have found an answer to this issue? If yes, please kindly inform how have you solved this.
    Best Regars
    Armando Santos

  • RRI - Jump query, unable to pass the variable value from source to target

    Hi,
        I've a source query which has a variable on 0vendor, from this query i jump to another query for which i want to pass the this variable value, in the target query i've vendor in free characteristics (no filter or variable in there), and in RSBBS i tried the assignment details options keeping vendor as generic, tried variable and the variable name but nothing seem to work.
    But when query is run i can jump into target query but the vendor variable value doesnt get passed thru the values i get in target query is for all rather than for the variable entered vendor value in the source.
    btw we're in NW2004s.
    any help appreciated with points.
    thanks
    Mayil

    Anyways, I read somewhere that a variable with replacement path in target query would work, tried it seem to work.
    let me know if there other way to do it without creating a variable in target query.
    thanks
    mayil

  • How to pass Presentation Variable Value from Main Report to Detail Report

    Hello,
    I've 2 reports that is attached to each other. In my main report i've several report prompts and i am using i"s prompted" on my detail report to attach them.
    But 2 of my report prompts are presentation variables(Names : FIRST, SECOND). Both are in date format. I've a filter in my main report like;
    "ASSIGNMENTS_F"."EFFECTIVE_START_DATE" BETWEEN @{FIRST} AND {SECOND}
    It works fine when i run the main report. But when i click on the numbers, i see that i can not filter my detail report with the chosen values for 2 presentation variables. It just shows all the dates.
    I've tried adding both presentation variables in both reports as columns and adding 'is prompted' filter to them. But did not work either.
    I just cant pass the written values for presentation variable prompts to detail report..
    Please help :)

    Hi,
    What you can try is refer the filte condition in the main report to the detailed report with the option--> Filter based on another request.
    Or you try creating another intermediate report which will refer the main report filters and pass the filters to the detailed report.
    Hope this helps.
    Regards
    MuRam

  • Passing a variable value from one query to another within a web template

    Hi All,
    I have a web template with two queries.  Both queries have the same select option variable called ZSELCUST on the characteristic ZCUSTOMER but because they are different info providors (both infocubes) the customer has to be entered once for each query, even with the 'Display same variable only once' flag checked.
    I want the user to select the customer once and then that value be passed to the other query within the resulting web template output.
    Am I right in that the same variable is used more than oncee because of the different info providors?
    I'm struggling, can anyone help out there....???
    Best Regards,
    Stuart Humphrey

    Hi
    A way of doing this is by "linking" the queries: in transaction RSBBS you define the sender and receiver queries. In query navigation you can jump to the dependent query (blue arrow icon in the BEx tool bar). This transfers the navigational state to the called query: filters over characteristics and variable values.
    Hope this help
    German

  • Re: Passing Bex variable values to javascript in WAD 7.0

    Hi,
    Is there any possibility to pass a Bex variable value to the java script in WAD 7.0 so that i can create a pop up and display the value.
    I found a post explaining its possibility in WAD 3.5. but i am not able to find how it can be done in WAD 7.0
    Any inputs will help.
    Regards.
    Shafi

    Hi Shafi...
    Yes it can be done. Insert a Dataprovier Information Item and a Script Item with a code for querying the xml island that provide the infomation you need. I hope this helps. If you need help with the code let me know.
    Edited by: Alvaro Wilfrido Lozada Borrero on Dec 28, 2009 8:44 PM

Maybe you are looking for

  • How to configure the web interface of service desk

    Hi All, We are currently doing a configuration on solman service desk. I am on a stage where in i need to use the web interface of service desk via tcode notif_create_bsp. However, every time i call the transaction code (call the url) i cant view the

  • Control_file_record_keep_time vs retention policy

    Its not thread nor question just read from documents and tried to imply the fact of documents and i think its written correct what i tried to do proof it practically ,neither i am trying to be smart just share with you guys is my observation correct

  • Decreasing 27" iMac resolution 2560x1440 into 1280x720

    Hi, I was about to change my native 27" resolution (2560x1440px) to just a half (1280x720px). I expected sharp result - just double size pixels without any smoothing. but I got only a terribly blured picture of all graphics on the screen - windows, b

  • Steps needed to import the transport request

    Hello SAP gurus I am trying to import a transport request consisting of a packacge into a server. I was able to create this transport request on first server and trying to import it into second server. I read many postings on this site and played wit

  • Embedding a flash mp3 player?

    Hi, I'm trying to embed a flash mp3 player in my iweb site. I don't want people to be able to download the files, just listen to them, so Flash seems to be the way to go. Can anyone recommend a resource for learning how to do this? I've found the Fla