Variable values being reset to # / 00.0000

Hi
I have a problem with our web template, although the same thing happens on the SAP default template.
Run a template, and you are shown the variable selection screen. For this particular query, there are 2 variables, namely SITE and FISCAL PERIOD/YEAR.
I leave the values blank, and run the report.
The report comes back with data. There is only data for site B01 and period 005.2008, but as I left the selection screen values empty, it tried to return all data.
If I look at the report information, I see that there are no dynamic filters applied, as expected based on the values I used on the selection screen.
If I now try to broadcast the report via email, the report refreshes, and shows No Data Available. If I now look at the report information, I see that there are 2 dynamic filters applied. Site has been set to #, and period has been set to 00.0000. There is no data for those values, hence No Data Available is shown.
If I run the report and enter B01 / 005.2008 in my variable selection screen, I get the same report data coming back, and I am able to broadcast via email.
The problem seems to be that if the values are left blank, when I choose to broadcast they are then reset to # (or 00.0000 for period), and I don't know why this is.
Please let me know if there is a decent solution out there?
We are on NW2004s SP16.
Cheers,
Andrew

Thanks for the prompt reply, but your answer has little to do with my question.
I am running a report, and trying to email it. There is nothing about setting up a schedule. The error comes in as soon as I try to email the report.
The error is that if I leave the variables empty in the variable selection screen, they are overwritten with what SAP seems to think are default values, and in this case those default values are horribly wrong.
Cheers,
Andrew

Similar Messages

  • Bind Variable Not Being Reset

    I am using JDeveloper 11.1.1.2 and ADF with BC. I have the following situation:
    I have a view object whose where clause has multiple bind variables. On one of my pages, I dragged this view object as a form onto the page. I also dragged the ExecuteWithParams method for this view object onto my page as a command button. I dynamically set the bind variables for this action via EL-based NamedData elements. When I click the button, the query is run with the bind variables I specify. Everything looks great.
    On another page, I am programmatically setting one of the bind variables (let's call it bv1) for the same view object and then navigating to the page described above. The data displays fine. However, when I try to use the command button (ExecuteWithParams) with a different value for bv1, the query continues to use the value that I set programmatically.
    It seems like the bind variable value set programmatically (using vo.setNamedWhereClauseParam) always trumps the one that gets set using the NamedData element in ExecuteWithParams. Why doesn't this value get reset with the value from the NamedData element?
    Thanks,
    Brad

    hi Brad
    ... It seems as if once the bind variable gets set on the view object programatically, the corresponding parameter in ExecuteWithParams does not overwrite it. ...Looks similar to the behaviour I describe in forum thread forum thread "10g versus 11g : bind variable issue"
    at 10g versus 11g : bind variable issue
    regards
    Jan Vervecken

  • BUG: Binding Variables, Position being reset to 0

    IDE:
    Studio Edition Version 10.1.3.0.4 (SU4)
    Build JDEVADF_10.1.3_NT_060125.0900.3673
    DB:
    10g R2
    (We have to be able to run our queries against MS SQL and Oracle. Using Oracle Binding is not an option)
    SQL Flavor: SQL92
    Data Type: Java
    Scenario:
    Working with View Object Editor. Opening a View Object for edit.
    Symptom:
    1. While working with bind variables the selected variable and the Bind Positions field does not stay in sync. When moving from one variable to the next the Bind Positions field remains on the last entered value for all variables.
    2. Opening the editor resets all Bind Position fields to 0. This happens even if the Bind Variables node is not selected during the edit.
    Our work-around:
    We enter all bind varialbes, leaving all Bind Position at 0. Add all where clause (query builder does not support '?' by the way) manually in the same order (order not critical) and save view object. We then open the xml file outside of JDeveloper and add the correct Bind Positions.
    Now, with all that said we could have missed something small that would correct this issue, but using the editor does present issues with the Bind Positions. For the mean time we will continue to edit the XML files outside of JDeveloper.
    Thanks, Peter

    This error didn't really have to do with the SQL Statement, rather using the editor to create bind variables. We have to use SQL92 with Java data typing. When using the editor the bind variables positioning does not stay in sync with listbox above resetting or setting the positions to 0.

  • The type of the value being assigned to variable ... differs from the current variable type

    I am trying to load a variable on SSIS Execute SQL Task with a string value. I keep on getting an error message :-
    “The type of the value being assigned to variable “User::LegacyColumns” differs from the current variable type”.
    Below are the settings on my package:
    Execute SQL Task Result Set –
    Single Row
    Variable Data Type –
    String
    The data to be loaded on the variable is a single row shown below:
    FirstName,LastName,MiddleName,PatientType,Title
    Can someone kindly help me to solve this as I’m lost for ideas.
    Thanks,
    Mpumelelo

    Thank you Sorna. I think I have managed to solve it. After a long search I have found a solution which advises that I should use a Foreach Loop Container. The help is on this link:
    https://social.msdn.microsoft.com/Forums/en-US/f46dea91-c26b-4ffe-ab1c-ebeef57c90b6/error-0xc001f009-at-mypackage-the-type-of-the-value-being-assigned-to-variable?forum=sqlintegrationservices
    Mpumelelo

  • Web Variables are being displayed and they shouldn't be

    Hi, Our web template is configured to not present the variable screen when the variables are populated. For some reason after I added the dynamic tab functionality using the SAP_BW_URL command our variables screens are appearing after selecting a tab.  When the screen appears all of the variables are populated and some of the variables are not melted.  The only thing our SAP_BW_URL command does is reset a dataprovider.
    <i><A href="<SAP_BW_URL DATA_PROVIDER='DP1' CMD='RESET_DATA_PROVIDER' INFOCUBE='ZMPASDPL' QUERY='ZGZMPASDPL_SR21_AREA_DASH_01' CMD_1='ITEM=NAV_BRAND&HIDDEN=X' CMD_2='ITEM=CON_BRAND&HIDDEN=X'>">Sales Area</A></i>
    We have set our template to "Reset Variables to Default" and "display same variable only once".
    Anyone know why I am seeing the variable screens after I select a tab even though I have the correct settings and the variables values are all prepopulated?
    I will give full points from now until eternity for this to any kind soul helping me solve this one.
    Thanks!
    Message was edited by: Kenneth Murray

    Hi Kenneth,
    this is a tricky situation:
    just assume the following scenario (this is what I have seen when I had a glimpse  on your original post)
    - In your template you have 2 DataProvider DP1 and DP2
    - DP1 is assigned to a table item and points initially to some query (A)
    - DP2 is not assigned to a web item and points initially to some query (B)
    - Query B has some mandatory variable
    - Now when you call your web template the variable screen will be displayed (Variable for DP2 (query B))
    - You enter a value and submit the variable screen
    - Now you reset DP1 to another query (ok it's query B (which you already used as DP, but the system won't check this while resetting the variable screen). Now the (new) query has a unfilled variable. The system needs to bring up the variable screen.
    - As we have now 2 variables (one already filled (during start of your template) and one still initiall. They have different default values and won't be melted.
    - You get a variable screen with 2 variables
    - And they just have the same value, because the system remembers the last entered value and already writes it in the input field.
    The parameter reset variables to default is only relevant for views (mainly during first initialization of template). With your command you didn't change DP2.
    =================================================
    Solution: In BW 3.5 there's a possbility to pass filters and variables to another Query with the command RESET_DATA_PROVIDER (parameter rri=X)
    in BW < 3.5 I would recommend to not use RESET_DATA_PROVIDER, but creating different table items, which are initially hidden and just hide/unhide the correct tables ...
    Heike

  • Web report - Variable values while switching between views.

    Hi Gurus,
    We have a query which has a few variables that are getting populated with default values during query execution[customer exits].
    We have added this query to the web.Now there is a date variable  which gets populated with the current date value by default.Suppose the users don't vant to run the report for the current date, they are able to change the date in the variable window and execute. But once the report is run, and we try to choose a different vieew for the report, the report automatically gets refreshed with the selected view, but for the default current date value (because of the customer exit).Shouldn't the selected view be getting refreshed with the date values that the user had entered while executing the report?
    Also when navigating between the different views, shouldn't a variable window pop up? Is there any setting to have the variable window pop up when navigating between the different views of a web report?
    Would appreciate a quick response.
    Thanks a Lot
    Arvind

    hello,
    we need to go to Query properties -> interaction tab-> remove reuse variables to populate the variable screen everytime or "Save and reuse variable values" to supress variable window
    or
    Problem could be due to any personalisation.try this:
    One the query is executed, click on the button which says change variable values.
    In the variable pop-up screen which comes up click on the personalization button
    In the new screen which comes up click on reset personalization button
    Enter new variable values and execute the query.
    Reg,
    Dhanya

  • How to replace variable value of a sql query dynamically

    Hi all,
    Trying to execute sql queries present in Oracle table and the query it self contains the ODI variable #EMP_NO.
    At the run time we thought of passing the variable values.
    table contains query like
    update table <table name> set <column name>= 5000 where emp_no = #EMP_NO
    We need to execute the sql query using a ODI procedure, to pick the sql query from table we use another variable #varSQLID and in the command on source tab wrote like
    select sql_query varSQL from emp_sql where query_id=#varSQLID
    Command on target
    #varSQL
    when ever I tried to execute I am getting error please let me know what changes are required .
    The question is whether it's possible to replace the variable value present in the above sql ?
    regards,
    Palash Chatterjee

    Thanks Siddhartha,
    Actually we have been doing the same, means half of the query has been kept in the table and rest is being added in the " command on source " tab of the procedure .
    But the problem is , the "where" condition is not same for all SQL queries,
    to provide 27 different sqls queries for 27 packages we have to create 27 procedures (as "where" condition may take other column values along with "EMPNO" for the JOIN condition ) .
    Any suggestion of keeing SQL along with the variable and storing it in the table may resolve our problem and work of 27 procedures can be performed by a single procedure .
    regards,
    Palash Chatterjee

  • Package Variable Values in For Each Contaner

    I have a For Each File Container that loops through Excel files, executing a child package for each file found. I am using the RowCount transform to log the number of rows at various points in a DataFlow. When one file is processed the numbers are correct
    but when multiple files (e.g. 5) are processed some counts are zero when they shouldn't be. I have tried a 1 second sleep in the loop but that didn't fix the problem.
    R Campbell

    Please share more technical details
    numbers of what where, what Data Flaw how a package reports on the counts?
    Arthur
    MyBlog
    Twitter
    Actually, the title IS misleading.
    I have a parent package with a For Each File container
    and within that a child package is called, passing the file path and name. The child package has a
    DataFlow with quite a few branches in the flow. On some of those branches I have
    RowCount "transforms" each linked to its own
    package variable.
    At the CotrolFlow level a script is executed immediately after the DataFlow which writes the package variable values to the dts log.
    If I place one file at a time into the folder that the For Each Container is looking at and wait for it to be processed, the numbers are correct. If I place a number of files (say 5) in the folder at one time, some of the numbers logged are correct
    and some are zero.
    I did try a 1 second sleep at the start of the logging  script but, when I think about it, the package variables probably being read before the script starts to execute. If this is a timing issue (which I don't think that it should be) it might need
    to be a separate script between the DataFlow and the existing script, with a sleep in it.
    Because each loop of the parent package executes a new instance of the child package I am puzzled as to how there can be a timing issue. No matter how tight the loop might be, a new instance of the child package is executed each time.
    R Campbell

  • Variable values in the Webgui Service of an ITS

    Hello,
    I can define fixed values in the webgui service parameters (GUI configuration in the ITS webgui service in SICF transaction), does someone know if I can define variable values? Instead of a literal...
    I know I could do it passing this value when calling the R/3 transaction from the iview, but I can not do this now.
    Is there any possibility? Does someone have any idea? I need to get the value in the portal, and check it in R/3, but I do not know how can I get it in R/3...
    Thank you very much! Regards,
    Araitz.

    In the future, please start a new thread with a new question/issue. Thanks.
    Each root AM has its own connection and your VPD context would need to be set independently for each one. You could write generic code in a framework extension class for application modules that each of your root AM's extends in order to better refactor that common/reusable code, but each root AM would have its own separate connection at runtime.
    Despite it's not being possible, the easiest answer to your second question would be to call getDBTransaction().rollback() to rollback the transaction. By default this would clear the caches and the next time your VO instance gets used it would requery.

  • Display variable values selected as header in WAD

    Hi All Gurus,
    I need to display the variable values entered for running the report as a header to the report being displayed.
    I'm using NW2004s BI and standard template 0analysis_pattern. Is there a way I can display the variable values as header info.
    Thanks in Advance
    Sid

    Hi Sid,
    You may need to make a copy of this template, or create your own and use the Information Field web item:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/96784226d1d242e10000000a1550b0/content.htm
    You can set this to display the Variables  (VARIABLES_VISIBLE)
    Hope this helps...

  • 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!

  • Prepopulated variable values

    One of our User is having an issue with variable values for characteristic User ID being prepopulated
    from the history. Report is executed from portal and in the selection screen for User ID they always
    see prepopulated values every time . Even though they can change them manually and run the report
    they don't want to see these prepopulated values evertime.Variable does not have any default value
    setup .
    Please suggest how to resolve this issue.
    Thanks
    Prakash

    Hi Mansi,
            This variable picks up the values uploaded using text file . When the user runs the report from portal they have an option to upload the list of user ID using a text file which is written to a Z database table in BI and are retrived using the CMOD user exit .
    Now the issue is eventhough user uploads different set of values using the text file previous values get populated in variable screen . I checked the Z table containing these variable values and it does not have them. 
    I feel the values are being read from buffer/cache as this problem seems to be happening only for one user and not for others.
    Thanks,
    Prakash

  • How to stop just one item being reset when sumbit is pressed?

    How can i keep the value of just one item when the submit button is pressed. This field will always be the user id of the user logged on so i dont want it to be reset. I have tired doing a simple query to select the id everytime the page loads but the value then appears null when i do an insert statement to create a particular record for the user in a table.
    Anyone any ideas?

    Right I could see how the APP_USER would work but it wouldn’t work in this situation.
    To be more specific I want the id of the user which is called student id to stay the same all the way through the application as there id refers to them. What I have is that when a user logs on it takes them to their details and a menu part. One of the options is to enter some documents relevant to them. So when they click this option a new page opens showing a report of all the current documents as well as a form where you can update, insert new and delete documents.
    When you load the page the report and form work fine with the correct student id being passed form the pervious page. If however you create a document all the fields in the form get reset. I therefore want a way of stopping the student id from being reset when you create or delete a document. Basically if the page refreshes.
    I can run an sql query that gets the correct student id if the field is null and displays it correctly in the form but for some reasons (im guessing cos its a result of a query) when it tries to process this when I submit the field is null.
    Any ideas as this one has got me

  • Customer Exit (i_step = 1) - Retrieve Variable Value

    Hello,
    I have BW web report and created customer exit (i_step = 1). The BW Web Report is being called from BSP application and I'm passing variable value on URL.
    For example:
    /sap/bw/BEx?cmd=ldoc&template_id=Z_JEFF_CLAIM_TEST&VAR_NAME_1=ZAGGET&VAR_VALUE_EXT_1=10310
    What I need to do now is retrieve the variable value passed on URL in the custom exit i_step = 1. 
    Does anyone know how to do this?
    Thanks,
    Gary

    hi Gary,
    can try in variable user exit ZXRSRU01 ?
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
      IF I_STEP = 1.
        LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'ZAGGET'.
        .... = LOC_VAR_RANGE-LOW.
        ENDLOOP. 
      ENDIF.
    hope this helps.

  • Keeping variable values when using an LMS

    I have a program that uses variables for a branching, allowing me to mark what branch the student has completed.  It works when you preview the course.  When I publish to the LMS and take the course it works if I go straight through.  But if I leave the course and then pick it up were I left off the variables that were set showing completion of the course no longer show the completion information.  How can I maintain the variable values when the student exits the course?

    Hi dmv@Morgan and welcome to the forums!
    Here's what I've found to be true for my LMS:
    If you set a default value for the variable in the variables panel, then the variable will be reset to that default value when the course resumes. 
    If you don't set a default value, then the LMS suspend data (aka resume data) will populate the variable with the previous value from the previous attempt.
    Let us know how it goes,
    Jim Leichliter

Maybe you are looking for

  • Cannot connect to mobile bluetooth device in my car

    I have an iPhone 4 and cannot connect zu the mobile bluetooth device in my car. My iPhone doesn't find it. Can anybody help?

  • SQL Update statement not executing in Filter

    Hi, I am trying to update Documents table using the query resource in a custom component. The document table is requred to upate for vault file(1 row) and for weblayout file(1 row). The java code is executing in PostConversionFilter, the sql is defin

  • Mac Mini RAM Problem

    Hi to all!! That's my (new) problem: after an incredible reanimation of my "dead" Mac Mini (it wasn't turn on at all except the white LED at the front), now the system can't read the total amount of installed RAM Memory. This Mini has installed 512MB

  • Purchase group restrict with doc type

    scenario is this like i want to restrict purchase grp with doc type wise, suppose i want purchase group <b>"abc"</b> should not be used in doc type "<b>FO"</b> then what setting should i do?

  • Mail cannot see Contacts

    Hi all. I have an odd problem where Mail in 10.8 cannot see my Contacts.  I've looked at the Privacy Settings in System Preferences and the Contacts section shows a number of other applications but not Mail.  I can find no way of adding Mail to the p