How to reference variable values in a BW Web Template

Hi All,
I'm having a problem which I hope someone can help me with.
OVERVIEW
I've developed a BW Web template with (among other things) a TEXTELEMENTS Web Item and a TABLE Web Item. I've enhanced the context menu so that when a user selects a row within the TABLE, they can start a SEM-BPS Web interface (which displays a manual planning layout). I've used the 'How to call a BPS Web Interface with Predefined Selections' document to get the basic mechanism working. The JavaScript function I've written successfully passes the variable (DFCOST_PL) value to the planning layout.
THE PROBLEM
The problem is twofold....
1. I need to pass the value for a variable (FEPCVERS) to the layout. However I do not know how to make reference to the variable in JavaScript. The variable is available within the TEXTELEMENTS_1 object but how do I address it?
2. On a similar vein, I need to pass the value for a field within the table row to the planning layout. The TABLE_2 object contains the fields (DFCOST_PL and DFGROUPS). When the user selects a line the value for DFCOST_PL is available to the JavaScript function (ZAJT_JS_Maintain_Rules) in the 'parameter1' field. However, how do I make the DFGROUPS field available?
Below is the HTML code for my Web Template. Any help would be greatly appreciated.....
<!-- BW data source object tags -->
<object>
         <param name="OWNER" value="SAP_BW">
         <param name="CMD" value="SET_DATA_PROVIDER">
         <param name="NAME" value="DATAPROVIDER_2">
         <param name="QUERY" value="ZAJT3_COST_BASE_BY_COST_POOL">
         <param name="INFOCUBE" value="Z_FEPC_CB">
         DATA_PROVIDER:             DATAPROVIDER_2
</object>
<!--BW HTML data source object tags: -->
<object>
         <param name="OWNER" value="SAP_BW">
         <param name="CMD" value="SET_PROPERTIES">
         <param name="TEMPLATE_ID" value="ZAJT_RULES_ENTRY">
         <param name="VARIABLE_SCREEN" value="X">
         <param name="CMENU_LABEL_1" value="ZAJT Maintain Rules">
         <param name="CMENU_FUNCTION_1" value="ZAJT_JS_Maintain_Rules">
         <param name="CMENU_PARAMETER_1" value="1">
         <param name="CMENU_CELL_TYPE_1" value="CHARACTERISTIC_VALUE">
         <param name="CMENU_FILTER_1" value="DFCOST_PL">
         <param name="CMENU_VISIBILITY_1" value="X">
         <param name="CMENU_POSITION_1" value="TOP">
         TEMPLATE PROPERTIES
</object>
<object>
         <param name="OWNER" value="SAP_BW">
         <param name="CMD" value="SET_DATA_PROVIDER">
         <param name="NAME" value="DATAPROVIDER_1">
         <param name="QUERY" value="ZAJT3_COST_BASE_BY_PC_NODE">
         <param name="INFOCUBE" value="Z_FEPC_CB">
         DATA_PROVIDER:             DATAPROVIDER_1
</object>
<html>
  <head>
    <title>BW Web Application</title>
    <link href= "/sap/bw/mime/BEx/StyleSheets/BWReports.css" type=text/css rel=stylesheet>
  </head>
<!--ZAJT Test code start -->
<SCRIPT language="JavaScript">
function ZAJT_JS_Maintain_Rules(parameter,cell_type,filter,parameter1,parameter2,item,dataprovider,x,y)
  var url;
  var cpool=parameter1;
  switch (parameter)
    case "1":
      url="http://dknborisdev.dcb.defence.gov.au:3280/sap/bc/bsp/sap/zbps_var_set/zbps_var_set.htm?area=ZFERULES&bps-appl=ZAJT_RULES3&var1=ZWEBCP&value1_1=" + cpool;
     SAPBWOpenWindow(url ,"MaintainRules" ,600,400);
     break;
</SCRIPT>
<!--ZAJT Test code end -->
  <body>
<object>
         <param name="OWNER" value="SAP_BW">
         <param name="CMD" value="GET_ITEM">
         <param name="NAME" value="TEXTELEMENTS_1">
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS">
         <param name="DATA_PROVIDER" value="DATAPROVIDER_1">
         <param name="CLOSED" value="X">
         <param name="SHOW_COMMON_ELEMENTS" value="">
         <param name="SHOW_FILTERS" value="">
         <param name="ELEMENT_TYPE_1" value="VARIABLE_K">
         <param name="ELEMENT_NAME_1" value="FEPCVERS">
         <param name="ELEMENT_TYPE_2" value="VARIABLE_K">
         <param name="ELEMENT_NAME_2" value="DF_GRP">
         <param name="ELEMENT_TYPE_3" value="VARIABLE_K">
         <param name="ELEMENT_NAME_3" value="ZCSTCNTR">
         ITEM:            TEXTELEMENTS_1
</object>
<object>
         <param name="OWNER" value="SAP_BW">
         <param name="CMD" value="GET_ITEM">
         <param name="NAME" value="NAVIGATIONBLOCK_2">
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK">
         <param name="DATA_PROVIDER" value="DATAPROVIDER_2">
         <param name="CLOSED" value="X">
         <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_1">
         <param name="TARGET_DATA_PROVIDER_2" value="DATAPROVIDER_2">
         ITEM:            NAVIGATIONBLOCK_2
</object>
<object>
         <param name="OWNER" value="SAP_BW">
         <param name="CMD" value="GET_ITEM">
         <param name="NAME" value="PC_HIERARCHY">
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_HIERDD">
         <param name="DATA_PROVIDER" value="DATAPROVIDER_1">
         <param name="CLOSED" value="X">
         <param name="CAPTION" value="Profit Centre Hierarchy">
         <param name="BORDER_STYLE" value="BORDER">
         <param name="IOBJNM" value="0PROFIT_CTR">
         <param name="HIERARCHY_NAME" value="PROFIT_CTR_ZFEPCBP05">
         <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_2">
         <param name="TARGET_DATA_PROVIDER_2" value="DATAPROVIDER_1">
         ITEM:            PC_HIERARCHY
</object>
<object>
         <param name="OWNER" value="SAP_BW">
         <param name="CMD" value="GET_ITEM">
         <param name="NAME" value="TABLE_1">
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID">
         <param name="DATA_PROVIDER" value="DATAPROVIDER_1">
         <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_1">
         <param name="TARGET_DATA_PROVIDER_2" value="DATAPROVIDER_2">
         ITEM:            TABLE_1
</object>
<object>
         <param name="OWNER" value="SAP_BW">
         <param name="CMD" value="GET_ITEM">
         <param name="NAME" value="TABLE_2">
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID">
         <param name="DATA_PROVIDER" value="DATAPROVIDER_2">
         ITEM:            TABLE_2
</object>
  </body>
</html>

Hi Heike,
Thanks for your response. The example you gave me works nicely. I've tried to use the same concept on a FILTER object, but it does not seem to work. I declared the object as below:
</span>
<span style="display:none;visibility:hidden" id="0PROFIT_CTR_value">
<object>
         <param name="OWNER" value="SAP_BW">
         <param name="CMD" value="GET_ITEM">
         <param name="NAME" value="FILTER_1">
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER">
         <param name="DATA_PROVIDER" value="DATAPROVIDER_1">
         <param name="HIDDEN" value="X">
         <param name="GENERATE_CAPTION" value="">
         <param name="PRESENTATION" value="KEY">
         <param name="ITEM_FILTER_IOBJNM_1" value="0PROFIT_CTR">
         <param name="PRESENTATION_1" value="KEY">
         <param name="ONLY_VALUES" value="X">
         ITEM:            FILTER_1
</object>
</span>
and then use
document.getElementById('0PROFIT_CTR_value').innerHTML.
However, the value returned is blank. Is there a different method required for filters?
Also, you mentioned that to access the second variable I will need to use the table interface. Is this difficult to do? I'm booked on the NET050 (Developing Web Applications) course, but it's not until late November. Do you think that this course would cover this kind of processing?

Similar Messages

  • How to Read Variable Values in WAD 7.0 Using JavaScript

    I found a how to: How to Read Variable Values in WAD 7.0 Using JavaScript on SDN.
    I get a Javascript error:
    bics.getElementsByTagName is not a function
    vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
    Thats my script:
    function currency()
    var varnm = "SFS_CP_CURR"; // Name of the variable to be read
    root = document.childNodes[0]; // <HTML>
    body = root.getElementsByTagName("BODY")[0]; // <BODY>
    xml = body.getElementsByTagName("XML")[0]; // <XML>
    bics = xml.childNodes[0]; // <BICS_VIEW>
    vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
    varl = vars.getElementsByTagName("VARIABLE"); // gives no. of variable in DP
    for ( i = 0; i <= varl.length; i++ ) // Loop one by one
    vari = vars.getElementsByTagName("VARIABLE")<i>;
    varnam = vari.attributes[0].text; // get variable name
    mem = vari.getElementsByTagName("MEMBER")[0];
    varval = mem.attributes.getNamedItem("name").value; // read variable value
    if (varnam == varnm) //check varname in loop needs to be read
    if (varval == "ZMON") // check for value1 and fire command1
    SFS_CP_M();
    if (varval == "ZKON") // check for value2 and fire command2
    SFS_CP_K();
    break;
    Where's the mistake?

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • How to set variables values via VBA.

    Anybody please help.
    How to set variables values via VBA in workbook. SAP Netweaver 2004s.

    Pass variable values with VBA and BI 7.0 funtions to Query
    At first a remark u2013 Iu2019ve read a lot of threads saying that passing values to a query can be done by using VBA code only. Iu2019ve tested it but Iu2019m not sufficient with the new BEX 7.0 API and therefore I use a mixture of BEX 7.0 funtionality and VBA. I create a BEX 7.0 design item button passing the values to a query u2013 I hide this button somewhere on the sheet or on a hidden sheet and I then raise the event to click the button from VBA code. Works fine and the maintenance is easier if something changes in the API in the future again.
    How to start:
    Switch to design mode in BEX Analyzer:
    Implement a BEX 7.0 design item u201Cbuttonu201D
    Click on the button to implement the properties
    Make the input for the commands
    data_provider = dataprovider_1
    cmd = process_variables
    subcmd = var_submit
    No comes the part with the variables u2013 Letu2019s assume a query has 4 variables but you only want to change 1 with the button u2013 an organizational unit for instance.
    Make a range somewhere in the excel with the following structure:
    Name    Index   Value
    VAR_NAME_1      1       Variablename
    VAR_VALUE_EXT_1 1       variablevalue
    Value should contain the name of your variable of course and u201Cvalueu201D the value of your variable
    Set a name for this range with EXCEL functionality but without the header:
    Back to the properties of the button: Insert the name of the range with the variables in the field Command Range:
    If you have more variables to process you can of course enhance your Filterrange!
    In the left upper Corner you have a name for your button:
    Now you can raise the button-click in vba like this:
    Application.Run "'" & ThisWorkbook.Name & "'!Sheet2.BUTTON_35_Click"
    regards, Lars

  • How to reference the value of a af:inputText at View level in a java clas

    How to reference the value of a <af:inputText> at View level in a java class at Model level? Thanks!

    Create AppModuleImpl class and create ther for example setMyParam procedure.
    (You can use AppModule. There simple interface to do this classes
    In JDev 11:
    1. Go to AppModule and in Java bookmark generate application module class.(AppModuleImpl.java)
    2. Put "private String myParam;" and method to access myParam "public void setMyParam(String myParam)".
    3. Again in the AppModule in the Java bookmark add method to client interface.
    AppModuleImpl.java
    public class AppModuleImpl extends ApplicationModuleImpl implements AppModule {
    * This is the default constructor (do not remove).
    private String myParam;
    public AppModuleImpl() {
    //this.
    public void prepareSession(Session session)
    super.prepareSession(session);
    myParam = myParam + myParam;
    public void setMyParam(String myParam) {
    this.myParam = myParam;
    prepareSession(getSession());
    AppModule.java
    public interface AppModule extends ApplicationModule {
    void setMyParam(String myParam);
    AppModuleClient.java
    public class AppModuleClient extends ApplicationModuleImpl implements AppModule {
    * This is the default constructor (do not remove).
    public AppModuleClient() {
    public void setMyParam(String myParam) {
    Object _ret =
    this.riInvokeExportedMethod(this,"setMyParam",new String [] {"java.lang.String"},new Object[] {myParam});
    return;
    And you can use method setMyParam as you wish :))) You can find it in AppModuleDataControl..
    Edited by: Victor_V_S on Jun 5, 2009 1:31 AM
    Edited by: Victor_V_S on Jun 5, 2009 1:33 AM
    Edited by: Victor_V_S on Jun 5, 2009 7:30 AM

  • How to change variable values ?

    Dear friends,
    How to change variable values when we are broadcasting the Queires ?
    Do we need to change them everytime ?
    Thanks,
    N

    Hi,
    Please go through it.
    /people/ramkumar.ghattamaneni/blog/2008/02/25/using-variables-while-broadcasting-queries-to-the-portal-in-bi-7
    Regards,
    Ramkumar.

  • Using a hierarchy node variable in a BI 7 web template

    Hi all,
    I am searching for a way how to use a hierarchy node variable in a BI 7 web template. I have seen that there is a hierarchy web item, but I can only link that to a characteristic. I need to link the navigation item to a hierarchy node variable as I want to use the chosen variable value in a customer exit as well. Therefore the hierarchy web item is not working for me.
    Is there any web item that can be used to offer hierarchy node variables as navigation options in a web template?
    If you have any idea, every hint is highly appreciated!
    Cheers
    Tatjana

    The Filter panel will only display you the characteristics and key figures available in the query.
    If you want to add a combo box to make "on the fly" currency conversion, you'll have to do that by another way.

  • Diff between Precalculated Value set and Precalculated web template

    Hi Friends
    Can any one tell the Diff between Precalculated Value set and Precalculated web template
    Where we will use these
    Thanks

    Hi,
    The Reporting Agent is a tool used to schedule reporting functions in the background.
    The following functions are available:
    &#9679;      Evaluating exceptions
    &#9679;      Printing queries
    &#9679;      Pre-calculating Web templates
    &#9679;      Pre-calculating characteristic variables of type pre-calculated value sets
    &#9679;      Pre-calculation of queries for Crystal reports
    go through,
    pre-calculated value sets
    [http://help.sap.com/saphelp_nw04s/helpdata/en/28/734d3caa70ea6fe10000000a114084/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/84/00783b3af21f5ee10000000a11402f/content.htm]
    Pre calculating Web template:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9e/9f653ade969f4de10000000a114084/frameset.htm
    Basically when you have a Precalculated Template, the system first run a report (which has been scheduled) and read the data from there when you run your template. This can imrpove the performance respect to online read data.
    [http://help.sap.com/saphelp_nw04s/helpdata/en/6e/b5663a5fb46752e10000000a11402f/frameset.htm]
    [Pre calculated web template;
    Hope this helps...

  • How to reference the value of items in a generic report

    Hello
    I have created a generic report. The source is a PL/SQL-Function returning a query stored in a package of the parsing schema, using the apex_item package. I set the p_item_id values depending on p_idx and rownum. In the browser I can see the unique (id="...") of the items. The report works well.
    One column is an analytical funtion and shows for every row the same value. The column is hidden. Depending on that value I want to show or hide buttons.
    How can I get the value of this column. Apex_application.g_fxx don't work. Apex_application.g_fxx.COUNT =0 for all possible columns.
    So how can I reference the value in the report.
    Any suggestions?
    Thanks

    Hallo varad
    Should I do really?
    The SQL is a function in a package returning a sql-string. It's a join over five tables (one outer join) refrences some other package variables. For testing purposes I put in into the region, but nothing changed. SQL is ok.
    So here is the region source:
    declare
    v_mdt_id pkg_typ_lagerplatzbelegungen.mdt_id_coltype;
    v_laplstat_frei pkg_typ_lagerplatzbelegungen.laplstat_id_coltype;
    v_laplstat_leermeldung pkg_typ_lagerplatzbelegungen.laplstat_id_coltype:=1;
    v_sql VARCHAR2(10000);
    BEGIN
    v_mdt_id :=:g_mdt_id;
    v_laplstat_frei:=pkg_konst_lagerplatzstati.fkt_laplstat_frei;
    v_sql:= ' WITH lapl_lagepos
    AS
    (SELECT (rownum ) zeile
    ,laplbe1.mdt_id
    ,laplbe1.lapl_koor1
    ,laplbe1.lapl_koor2
    ,laplbe1.lapl_koor3
    ,laplbe1.lapl_koor4
    ,laplbe1.lapl_koor5
    ,lagepos.lage_id
    ,lagepos.lagepos_id
    ,pkg_sel_lagerplaetze.fkt_get_lapl_kurzbez_display( laplbe1.lapl_koor1
    ,laplbe1.lapl_koor2
    ,laplbe1.lapl_koor3
    ,laplbe1.lapl_koor4
    ,laplbe1.lapl_koor5
    , laplbe1.mdt_id) lapl_kurzbez
    ,laplbe1.lavo_id
    ,mat.mat_id
    ,mat.mat_id mat_id_neu
    ,mat.matart_id
    ,mat.matart_id matart_id_neu
    ,mat.mdt_id_mat
    ,mat.mdt_id_mat mdt_id_mat_neu
    ,mat.mat_name1
    ,mat.mat_name2
    ,lagepos.lagepos_menge
    ,lagepos.meschl_id
    ,NULL zumenge
    ,NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0)
    ,CASE
    WHEN NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0) = 0
    AND (laplbe1.laplstat_id < '||v_laplstat_frei||' OR NVL(laplbe1.lage_id,0) > 0) THEN 0
    ELSE
    NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0)+1
    END leerkennung
    FROM (SELECT laplbe.mdt_id
    ,laplbe.lapl_koor1
    ,laplbe.lapl_koor2
    ,laplbe.lapl_koor3
    ,laplbe.lapl_koor4
    ,laplbe.lapl_koor5
    ,laplbe.lage_id
    ,laplbe.laplstat_id
    ,lapl.lapl_kurzbez
    ,lapl.lavo_id
    FROM lagerplaetze lapl
    ,lagerplatzbelegungen laplbe
    WHERE lapl.lapl_kurzbez ='||'''77B04B1'''||'
    AND lapl.mdt_id ='||v_mdt_id||'
    AND laplbe.mdt_id ='||v_mdt_id||'
    AND laplbe.lapl_koor1 = lapl.lapl_koor1
    AND laplbe.lapl_koor2 = lapl.lapl_koor2
    AND laplbe.lapl_koor3 = lapl.lapl_koor3
    AND laplbe.lapl_koor4 = lapl.lapl_koor4
    AND laplbe.lapl_koor5 = lapl.lapl_koor5
    AND laplbe.mdt_id = lapl.mdt_id) laplbe1
    , (SELECT lage_id
    ,lagepos_id
    ,mdt_id
    ,mat_id
    ,matart_id
    ,mdt_id_mat
    ,meschl_id
    ,lagepos_mengeneinheit
    ,lagepos_menge
    FROM lagergebindepositionen
    WHERE NVL(lagepos_archiviert,0) =0
    AND mdt_id = '||v_mdt_id||') lagepos
    ,(SELECT mat_id
    ,matart_id
    ,mdt_id_mat
    ,mat_name1
    ,mat_name2
    FROM materialien
    WHERE mat_archiviert= 0
    AND NVL(mdt_id_mat,'||v_mdt_id||')='||v_mdt_id||') mat
    WHERE laplbe1.lage_id = lagepos.lage_id(+)
    AND lagepos.mat_id =mat.mat_id(+)
    AND lagepos.matart_id = mat.matart_id(+)
    AND lagepos.mdt_id_mat=mat.mdt_id_mat(+))
    SELECT APEX_ITEM.hidden (31, zeile,'''',''P95801_f31_''||zeile ) zeile
    ,APEX_ITEM.text (32, leerkennung,10,10,''P95801_f32_''||zeile ) "Leerkennung "
    ,APEX_ITEM.hidden (33,mdt_id ,'''' ,''P95801_f33_''||zeile ) mdt_id
    ,APEX_ITEM.hidden (34,lapl_koor1 ,'''' ,''P95801_f34_''||zeile) lapl_koor1
    ,APEX_ITEM.hidden (35,lapl_koor2 ,'''' ,''P95801_f35_''||zeile ) lapl_koor2
    ,APEX_ITEM.hidden (36,lapl_koor3 ,'''' ,''P95801_f36_''||zeile) lapl_koor3
    ,APEX_ITEM.hidden (37,lapl_koor4 ,'''' ,''P95801_f37_''||zeile) lapl_koor4
    ,APEX_ITEM.hidden (38,lapl_koor5 ,'''' ,''P95801_f38_''||zeile ) lapl_koor5
    ,APEX_ITEM.hidden (39,lage_id ,'''',''P95801_f39_''||zeile ) lage_id
    ,APEX_ITEM.hidden (40,lagepos_id ,'''' ,''P95801_f40_''||zeile) lagepos_id
    ,APEX_ITEM.display_and_save(41,lapl_kurzbez,''P95801_f41_''||zeile) "Lagerplatz"
    ,APEX_ITEM.display_and_save(42,lavo_id ,''P95801_f42_''||zeile) "Fachtyp"
    ,DECODE(mat_id ,NULL, APEX_ITEM.popup_from_lov (43,'''',''MATLAVO'','''','''',0,'''',''''
    ,''onFocus="fkt_set_bordercolor(this)" onBlur="fkt_reset_bordercolor(this)" onkeydown="fkt_submit_tab(event,this)" ''
    ,''YES'',''P95801_f43_''||zeile)
    ,APEX_ITEM.display_and_save(43,mat_id,''P95801_f43_''||zeile)) "Material-Id"
    ,DECODE(matart_id,NULL, APEX_ITEM.hidden(44,matart_id ,'''' ,''P95801_f44_''||zeile)
    , APEX_ITEM.hidden(44,matart_id ,'''' ,''P95801_f44_''||zeile)) matart_id
    ,DECODE( mdt_id_mat,NULL, APEX_ITEM.hidden (45,mdt_id_mat ,'''' ,''P95801_f45_''||zeile )
    ,APEX_ITEM.hidden (45,mdt_id_mat ,'''' ,''P95801_f45_''||zeile )) mdt_id_mat
    ,APEX_ITEM.display_and_save(46,mat_name1 ,''P95801_f46_''||zeile) "Materialname"
    ,APEX_ITEM.display_and_save(47,mat_name2 ,''P95801_f47_''||zeile) "Materialbezeichnung"
    ,APEX_ITEM.display_and_save(48,lagepos_menge ,''P95801_f48_''||zeile) "Lagernde Menge"
    ,APEX_ITEM.display_and_save(49,meschl_id ,''P95801_f49_''||zeile) "Mengenschlüssel"
    ,APEX_ITEM.text(50,zumenge,10,10,'' style="width:120px" onFocus="fkt_set_bordercolor(this)" onBlur="fkt_reset_bordercolor(this)" onkeydown="fkt_submit_tab(event,this)" '',''P95801_f50_''||zeile ) "Einzulagernde Menge"
    FROM lapl_lagepos';
    RETURN v_sql;
    end;
    Thank you for help

  • How to get variable value in BI 7.0 Workbook (Excel 2007)

    Dear experts,
      We are creating workbooks with BI 7.0 BEx Analyzer Addon 7.10 (Excel 2007).
    And we'd like to get the variable value (that are passed to the backend using the variable screen) so that we can reuse it as an input value for planning function execution later.
      Any idea on how we can achieve this is high appreciated.
    Thanks in advance,
    Shady

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • How to set variable value in an XML array

    Hi,
    Please let me know how to set the value for a xml array element using assign activity inside a for-each block in BPEL 11g
    I tried to set the variable value for result element using the below condition but i encountered selection failure message
    $outputVariable.payload/ns1:Student['i']/ns1:result or
    $outputVariable.payload/ns1:Student[$i]/ns1:result
    And the xsd used is as below
    <xsd:complexType name="StudentCollection">
    <xsd:sequence>
    <xsd:element name="Student" type="Student" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Student">
    <xsd:sequence>
    <xsd:element name="Name" type="xsd:string"/>
    <xsd:element name="location" type="xsd:string"/>
    <xsd:element name="mark" type="xsd:string"/>
    <xsd:element name="result" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    Thanks,
    Dhana

    Hi,
    At the back of button specify the following parameter:-
    CMD    1        Execute_planning_function
    Planning_function_name  1   xyz
    Var_name     1    variable_name
    var_value      1    blank
    Can also refer to link below:-
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0a89464-f697-2910-2ba6-9877e3088954?quicklink=index&overridelayout=true(can refer to page 20)
    http://www.sdn.sap.com/ddc5564a-337d-4cf9-a34e-2dab64df09be/finaldownload/downloadid-a61a6724ba8e7b7fbd9c5df9590ab50d/ddc5564a-337d-4cf9-a34e-2dab64df09be/irj/scn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be?quicklink=index&overridelayout=true
    Hope it may help

  • How to put Variable value into Labeltext of a subcomponent WIB

    Hello
    In our Web Based Planning tool we uses Tabstrib_control component and the Label-Text is filled like 'Plan 2008'. (Our BPS = 3.5 and Web interface builder)
    I am looking for a way,how to put a variable into the Label field of the component.  I am not sure if there is a possibility to enhance the labelfield with variable values.
    Thanks a lof for any good idea.
    Best regards
    Christian
    Our BPS = 3.5 and Web interface builder

    Hello Christian,
    Maybe I have a solution for your problem.
    1. Create subcomponent "Selector variable" with your variable.
    2. Hide this new subcomponent
    3. Write in the Label-Text: <%=descr("Name of new subcomponent"/value)%>
    If the variable will be selected by the user in the web interface, put the name of this selector in the field "Update upon Change of" in the properties of the new created subcomponent.
    Hope this helps.
    Friedrich

  • How to change variable values dynamicly  in broadcasting

    Dear Friends i am scheduling workbooks using broadcasting feature.
    i want to know how can i change the variable values of report in broadcasting dynamically.
    becuase i dont want to schedule report again and again after changing the variable values.
    Regards
    Malik

    i did the same but its not working.
    i create one variant for the query ABC  using RSRT now if i look into table RSRVARIANT we can see that variant
    entry in this table. Now i create variant by bex on this query with the same name.
    now i schedule it using broadcasting but its not takeing the values of RSRVARIANT table.
    Its taking the value of variant which i save in bex.
    By default variant which is save in bex not appear in RSRVARIANT table.
    But i f you make a variant in RSRT you can see those entries in Table RSRVARIANT.
    But RSRT variant is not showing in Broadcast scheduling. Only Bex variant are showing.
    Where should create the variant in Workbook, in Bex web analyzer, or in RSRT.
    Regards
    Malik
    Edited by: Malik Naeem on Jun 9, 2010 2:05 PM

  • How to pass Variable value to SWF file in Eclipse development

    We are creating Widget file in Eclipse by using SAP Widget Foundation .
    We included one SWF file in Widget & it is working fine.
    But we are not able to pass the values to SWF file variables.?
    How to pass variables to SWF file let us know.
    Thanks & regards

    We are creating Widget file in Eclipse by using SAP Widget Foundation .
    We included one SWF file in Widget & it is working fine.
    But we are not able to pass the values to SWF file variables.?
    How to pass variables to SWF file let us know.
    Thanks & regards

  • How to reference a value in an input field?

    I know there is an htmldb_application utility which will let you reference input values via an array. However if I have a simple HTML form with input variables named A and B, is there some utility which will let me reference that value using the name? Is there a function which will let me reference these same values by ID?

    Hi,
    First of all u have to declare one variable in the prog. with the name of the i/o box u have given in the screen.
    Now in the PBO of the screen call one module.
    and in that module write the code like,
    if your i/p field name is INPUT_F then
    MODULE assign OUTPUT.
      INPUT_F = 'XYZ'.
    ENDMODULE. 
    Here u can assign the value by fatching through the DB also.
    I think this will help u.
    thanks

  • How to pass variable value to field of standard sap transaction.

    Hi Experts,
       i want to pass the value of variable to field of standard sap transaction. but that field is not having the parameter ID. so please tell me how i pass the value to field.
    thanks in advance.

    You might like to provide a few more details of which field and transaction you are trying to interact with... typical solutions involve user exits / BAdIs / Enhancements, or transaction variants, or building a BDC to part fill the screens of the Tcode you are calling.
    Jonathan

Maybe you are looking for

  • HT5654 message after update app. failed to start because MSVCR80.dll wasn't found

    I had a message to upgrade my version of Itunes so I clicked on the button to do this. During the download it stopped, coming up with an error message stating "This app failed to start because MSVCR80.dll was not found reinstall may fix problem" then

  • Trial Balance or GL Balances

    Hi Dear Gurus, Is there any way to see the trial balance for more than 12 months.  For ex. We want to see the trial balance from 01.01.2007 to 31.03.2008 (for 15 months)  Our Fiscal Year is 2007 (April '07 to March '08) Thanks in advance. BSR

  • Could not resolve ejbLink

    When I deploy my ejb in weblogic, I am getting the following exception. Can anybody tell me what may be the reason for this. The stace trace is Unable to deploy EJB: TheShoppingClientController from petstoreEjb.jar: weblogic.deployment.EnvironmentExc

  • File Reference in Firefox

    I have a Adobe Flash 7 screen which references a file in the same directory. The Flash Action Script code is: xxxx_menu.onPress = function() { getURL("xxxx.htm", "_blank"); This works fine in Internet Explorer and Safari, but not in Firefox. Anybody

  • Make a button with an icon

    Hi all. I have a new problem. I want to make a button as an icon e.g. when I push a button to open a file I want to display the button with the icon. I'm on devsuite 10g. Can someone tell me which are the steps to follow to do this??? Thank, Fabrizio