Retaining Variable Value for Scenario Restart

I have a slave-package where i use many variables for JDBC connection/url/login/passwd and Target File Path - all have been defined as type HISTORIZE
My packages are as follows
(1) There are many odiSqlUnload steps in the slave-package which uses the connection information & file path from the variables which have been declared in it.
(2) I just have declare variable steps in the slave-package, and have created a master-package which calls this slave-package's scenario using the command[i] "odiStartScen -GLOBAL.var_name=<var_value>"
so that all variables get their values from the master-package's call with variable values sent thru it
(3) Now, the problem occurs when I have to re-start my slave-package's scenario. Say for eg, the first step in my slave-package works fine, but errors out on the next step;
But when I re-start it for the next step, ODI doesn't seem to pick up values from the variables even though they are of type HISTORIZE, and I get an error with empty values for JDBC, URL & file path which I had specified as variables.
Why is it that the variables are not able to retain their values.
Any help would be greatly appreciated!

finally I get it. I have to use #varname instead of :varname, otherwise it won't get error but just cannot get value. and I find out this #varname cannot be defined anywhere, otherwise the value will get lost also.

Similar Messages

  • How to retain the presentation variable values for Dashboard Prompt

    I've a dashboard prompt with date and two other drop down field, with default value as yesterday's date set for date and All Values set for other two drop down list. Presentation Variables are D1, P1 and P2 respectivilly
    I'm using GO URL from "Report A" and passing presentation variable to navigate to other report (Report B) that works fine. eg:
    '<a href = saw.dll?GO&path=/shared/Reports/ABC/ReportB&Action=Navigate&p0=1&p1=eq&p2="-%20Time"."Next%20Day"&p3=@{d1}>Test</a>'
    From Report B I'm using Dashoard URL to go back to Previous Report like:
    <div class="XUIPromptEntry minibuttonOn">
    Return to Previous Screen</div>
    This also works fine.
    My problem is that, when users selects different values in the Main dashboard prompt for date and other other two drop down and navigates to other report (Report B), and from Report B, when user returns to previous screen (Main Dashboard), Prompts values gets refreshed to original default values.
    Is there any way to retain the values of presentation variable in dashboard Prompt when I return to main dashboard from Report B?
    I'd appreciate your help.
    Thanks

    Change your dashboard url include the column and column value for the date column sample shown below,
    [a href=saw.dll?Dashboard&PortalPath=/shared/sample/_portal&page=pagename&Action=Navigate&col1=Dim.Date&val1=@1>Return to Previous Screen[/a>
    In my second report Date is the first column so I referenced it's value as @1 in the dashboard URL
    note: replace [ with <
    Thanks,
    Vino                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to use the same variable value for data entry and the planning sequence

    Hi,
    the scenario is the following:
    Using the WAD template a user enters cost center plan data. The cost center is selected by the chosen value for the variable "V1".
    Afterwards he shall push a button which starts a planning sequence (including saving the data and further functions). This planning sequence uses a filter that also contains the variable "V1".
    What or where has it to be defined that the planning sequence uses automatically the same value for the variable "V1" as selected for the data entry?

    You have to define in the planning function. The planning sequence is only a sequence and it read the planning functions underneath it.
    Ravi Thothadri

  • How to save  particular variable values for all users

    Hi Experts,
    I have variables posting period with user entry default value  and fiscal year(with entry vulaue mandataory)in 30 queries.Now user wants to set this values i.e.posting period to 0 -16 (interval) and fiscal year to 2008.
    whoever opnes the workbook he should  get the the defualt values as posting period 0-16 and fiscal
    2008 in variable selection screen.unless user enters the values it should remain same Please suggest me how to do that.Is this changes should be saved as vaintat in variable selection screen and transported or shall I do this change for all thse quesries or shall I change the variable value to default setting in variable propeties so that changes should be visible to all 30 queries .Please suggest....!!!!
    Regards
    Prasad

    Hi Prasad,
    Just go to that variables in query designer, and give the default values for the variables as 0-16 and for Fiscal year 2008.
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/ae/1e9b3c334d8c15e10000000a114084/content.htm
    Now while generating the query in the variables screen select the personalization, so that these values will be fixed and personalized for the query.
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/30ae3d47afd652e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/3f/30ae3d47afd652e10000000a114084/frameset.htm
    Rgs,
    I.R.K

  • Variable value for IP Revaluation

    Hi Experts,
    I would like to run a revaluation function (with a button in workbook - IP). Variable is on the key-figure.
    The situation is strange:
    - click on the button with planning function call  - nothing happened
    - then when I click on change variable screen button (standard BEX function), system ask for variable value and execute the revaluation with entered %!
    What I'm doing wrong?
    How this could be marge together?
    What is the procedure to enter variable value in some cell in the WB?
    Thanks, Tom

    Hi,
    Just check the link below: how to pass variables to planning functions executed from BeX Analyzer.
    It also specifies how to enter variable value in some cell in the WB.
    I suggest you to use seperate variables for filter and seperate variable for Planning functions so as to avoid confusion.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be
    Best Rgds
    Shyam

  • BEx Analyzer: Use Of Variable Values For Planning Sequence

    Hi experts,
    I want to start a planning sequence using a button item in a BEx Analyzer workbook. The planning sequence itself is defined with several variables, that are input ready. The same variables are used in BEx Queries that are bound to DataProviders in the workbook. Therefore the variables are filled by the user, if the workbook has been started. If the user wants to start the planning sequence, that is defined on the button item, the same variable values (which the user has already set in the beginning) should be used. But I didn't find a way to fill planning sequence variable from variables (like it is possible in the web interface using the DataBinding function). It seems, that it is only possible to set the variable with static values, that are defined in the button item. Am I erring in this point?
    Anyone here who can help me regarding this issue?

    Eitan Ohayon wrote:
    Why did you raise this question?,did you face any problem?
    Hi Eitan,
    The problem was, that the planning sequence worked fine in web but not in analyzer. The system told me in web, that several records had been read, created, changed and deleted. System messages in BEx Analyzer always indicated zero reads, creations, reads and deletions.
    Using your idea to set breakpoint in the INIT_EXECUTION method gave me the information, that all variables are not set or set with initial values (like '0000' for fiscal year). This seems to be the reason for my problem. Now I've reduced the planning sequence definition on the button only to that variables, that are really needed. Furthermore I defined the Command Range to get dynamic values for the variables from the excel sheet grid. So it seems to work.
    Thank you for your help!

  • Retain variable values across web templates during a web session

    Hi all,
    How can we let web template get variable values from another template's variable values so as to keep the same entry values as previous report run?
    For example 0vendor has a variable (for single, mandory) used in all  vendor related web templates. "vendor1" was entered for the second template.
    I tried to use "SET/GET PARAMETER" in variable user exit. It works in BI with RSRT,  but it doesn't work with Bex or Web template. Looks like web session is not sync with the ABAP stack.
    How about using cookie? How to create/reset cookie in variable user exit? Can we get variable values from web server memory or user session data?
    Please share your thought !
    Thanks for helping!
    David

    Hi Arun,
    All the web templates are randomly run by user, there are no set of templates run after one template. Any templates can run after any other web template.
    Basically we link  web templates with portal menu items. any report can be run by any sequence. The thing the new report need to take the previous selection values from common variables.

  • Variable value to scenario is lost,why

    I am using a procedure to loop in a table to get the record and use this record value to call a scenario.
    in command on source: select c1 from table1
    in command on target: OdiStartScen -SCEN_NAME=TESTEXTRACT -LOG_LEVEL=5 "-project.v1=:c1"
    variable #project.v1 is a project variable I used in scenario testextract. I tried to set it as latest and historize, set the refresh tab as: select #v1
    but when I loop around the table, the project variable #v1's value should be set as the value of binding variable c1, but it is not. it doesn't get the value.
    what's the possible reason for this?
    I did declare the project variable #v1 before I call the loop procedure.
    Thx

    finally I get it. I have to use #varname instead of :varname, otherwise it won't get error but just cannot get value. and I find out this #varname cannot be defined anywhere, otherwise the value will get lost also.

  • How to retain variable values across a BPEL Process?

    Hi All,
    I've created a BPEL process using number of variables. Out of these I've a common variable with name processorBO that is required for calling every service. But after calling a service, I lose values inside processorBO and it gets filled with the new values.
    Can anyone tell me how to retain the processorBO values across complete process so that, I can use the required values at appropriate places ?
    Thanks in Advance
    Regards

    well...you could always use the transformations to do the assign, or if you want to use just the assign activity to set the response values from the service to the 'global variable' you could use something like
      <copy>
          <from variable="inputVariable" part="payload"
                query="/client:testProcessProcessRequest"/>
          <to variable="globalVariable" part="payload"
              query="/client:testList[1]"/>
      </copy>the [1] will assign your values to the array-part of the variable.
    This does the same as a for-each in your xsl transformation.

  • How to use bind variable value for table name in select statement.

    Hi everyone,
    I am having tough time to use value of bind variable for table name in select statement. I tried &p37_table_name. ,
    :p37_table_name or v('p37_table_name) but none worked.
    Following is the sql for interactive report:
    select * from v('p37_table_name') where key_loc = :P37_KEY_LOC and
    to_char(inspection_dte,'mm/dd/yyyy') = :P37_INSP_DT AND :p37_column_name is not null ;
    I am setting value of p37_table_name in previous page which is atm_state_day_insp.
    Following is error msg:
    "Query cannot be parsed, please check the syntax of your query. (ORA-00933: SQL command not properly ended) "
    Any help would be higly appreciated.
    Raj

    Interestingly enough I always had the same impression that you had to use a function to do this but found out from someone else that all you need to do is change the radio button from Use Query-Specific Column Names and Validate Query to Use Generic Column Names (parse query at runtime only). Apex will substitute your bind variable for you at run-time (something you can't normally do in pl/sql without using dynamic sql)

  • How to change the variable value for the SCript in debugging

    I have a variable &KNA1-NAME4&
    i want to change the value of this variable in debugging mode
    can any one please tell me how to do in step by steb mode.

    Hi Ravi,
    In script u can't change the value in debigging. Open ur print program(If u don't know check TNAPR table).
    Search for the element name where u r printing this variable. U can see some thing like
    CALL FUNCTIOn 'WRITE_FORM'
    element = ur element name.
    Keep break point here and when u issue output control stops here. Now change the value as we does in normal reports.
    Thanks,
    Vinod.

  • Different variable values for same query inserted 6 times in One workbook.

    Hi,
    We have one workbook with the same query inserted on 6 different tabs (sheets in excel), a variable on Business Unit that is different for each tab.
    How can we control the variable input in BW2004s such that the different BU values are processed for each tab.
    At present the BU value input in the "variable pop-up screen" over rides all the fixed variables on the different tabs.
    Generous points will be awarded for useful solution.
    Thanks,
    Jasmine

    Hi,
    I am  trying to use filters for executing 2 queries in a Web App. I have 2 dataproviders (one for each query), and I am trying to use filters for say Version.
    The URL is
    /sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=ZTW_XXX&DATA_PROVIDER_1= DP1&FILTER_IOBJNM_1=0VERSION&FILTER_VALUE_1=F01&DATA_PROVIDER_2= DP2&FILTER_IOBJNM_2=0VERSION&FILTER_VALUE_2=F02.
    This doesnot work. Both queries get filtered on both 'F01' and 'F02'.
    I am trying to filter DP1 by F01 and DP2 by F02.
    Any help is appreciated.
    Thanks,
    NS

  • Variable Value for BADI

    Hello Forum
    We have an issue with BADI implementation.
    We have a key figures in query are restricted to a user exit variable for calendar month (as current month and previous month) and fetches results.
    Now due to some requirement we need to check if the "Cal Month" determined is current month or the previous month and return a value.
    We have implemented a BADI for the same reason to determine this however can anyone please let us know how can we use the value of a user exit variable in the query can be used in BADI ?
    Thanks & Regards
    Ashish

    Hello Shani Bashkin 
    You don't need EXIT_SAPLRSBBS_001, you need EXIT_SAPLRSBBS_002
    Here goes:
    You go to se18 select SMOD_RSR00004 then you go to Implementation->Create
               then you create a BADI implementation with the name Z*something_something. The system then brings you to the SE19 definition of BADI implementaition you there see both of the RSBBS exit, in methode form EXIT_SAPLRSBBS_001
    EXIT_SAPLRSBBS_002
    You select the second one EXIT_SAPLRSBBS_002 double click on it, it brings u to abap code Method .....End method U then insert this code and adapt it to your usage. Activate everything, go to smod find the exit RSR00004 activate everything there with the magic WAND, got o rsrt generate and debug, u then should pass in that code and then use some imagination, thats all folks!!!!
    DATA: I_THX_MAPPING_WA TYPE LINE OF RSBBS_THX_MAPPING,
          E_THX_MAPPING_WA TYPE LINE OF RSBBS_THX_MAP_BY_EXIT,
          I_RANGE TYPE RRRANGESID,
          I_DATE LIKE SY-DATUM,
          E_TT(2).
    DATA: l_s_thx_mapping type rsbbs_sx_map_by_exit,
          l_s_range       type RRRANGESID.
    FIELD-SYMBOLS:
          <l_sx_mapping>  TYPE rsbbs_sx_mapping.
    IF I_S_RECEIVER-RONAM = 'IW29'.
    read table i_thx_mapping ....
    PS: You need to Have ITS installed and configured and your web server maintained for BW to R/3 connect

  • How to authorize users to change only Variable Values for Planning Folders

    My users want to be able to change the values of the Planning Area variables for the Planning Folders in SEM BPS. However I wouldn't like them to have access to change anything else except the variables.
    What is the best way to do this.
    Please let me know
    Thanks

    Hi Arvind,
    If they are variables to be set by the users, change the type to user specific variables and check the values can be changed by user check box.
    M.

  • Multiple select list not retaining the value for the first time

    Hi,
    I have a 3 select list depends on each other. select_list1 -- > select_list2 --> multiselect3. I have use denes example to create them.
    For the first time when I select values from 1,2,3 and runs a report based on it, it works fine but *does not retain the selected value in multiselect3.
    for the second time submit the process, it retails value in multiselect3. Please tell me if you came across this issue before
    Here is the code.
    function get_select_list_xml_VL(pThis,pSelect,pSelect1,pSelect2){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var l_Select1 = html_GetElement(pSelect1);
    var l_Select2 = html_GetElement(pSelect2);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Cascading_Select_List_VL',0);
    get.add('F660_CASCADING_TEST',l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
    alert(l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
    // alert(document.getElementById("F660_CASCADING_TEST").value);
    gReturn = get.get('XML');
    if(gReturn && l_Select ){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);

    Please ask any question if you dont understand about the problem.
    Thanks

Maybe you are looking for

  • Second Hard drive for tx2 1275dx?

    Is there any Bay options to install a second hard drive instead of the dvd-rom?

  • How can I change the font and font color in Preview?

    I am trying to use Preview to fill in a PDF form, but I cannot change the font size or color.  What am I missing?

  • Error while tranfer photos by Adobe Send

    Hi  While Adobe Send worked without any problems until last week, now every transfer aborts with message "One or more files could not be transferred - retry" I thought first some of my files were corrupted and wasted a lot of time - without success..

  • T.code CN43N (Adding the PRPS-AEDAT) on selectoin screen

    Hi Experts, I need to add a field (PRPS-AEDAT [The person who last changed the object]) on the selection screen and after adding it need to validate in the program. I broke my head but even couldn't able to find the place; where excatly that selectio

  • Hyperlink in adobe form

    Hi, I want to create hyperlink on the form. I am using ALD 8.1.6. So I dont see the insert hyperlink option on the menu bar. I think we have to do it through Javascript. If anyone know, please let me know the procedure. Thanks GJ