Dynamic query getting incorrect values due to version restriction

Hi,
I'm using query designer version 6.40, Support Package 16, we currently can't update this due to other problems.
In one of my queries I have a dynamic row structure. The static column structure has three columns and is restricted on actual, forecast and budget version variables. In the default values I have 0CS_VERSION restricted to a generic version variable, say v0.
However, when I run the query, v0 overwrites all the other version variables. If I remove v0 I get the error message shown below. I have tried to combine removing v0 and the consolidation group default values but that doesn't work either. I've moved v0 into the free characteristics and I have attempted to set it to all of the other versions, this also results in the error below. I've checked through SAP notes and the forum and haven't found anything, any help would be appreciated.
"Version not specified or not unique"
Diagnosis
You need to specify the version in the report to enable the system to determine the consolidation units each consolidation group consists of. The version must be specified per cell and must be unique per cell. This is not the case in this report.
One of the following conditions exist:
No version was specified.
The specified version no longer exists.
The version is not unique.
System Response
Processing terminated
Procedure
Enter the version for each cell in a unique way.
Procedure for System Administration

One of our in-house guys has found the solution. The problem was that there were values in the default values which were superfluous. For example: in the default values we had fiscal year = fiscal year variable, in the column structure we set the fiscal year variable to an offset of -1. Once we'd removed all of the extra default values the version was no longer a problem and the query ran correctly taking in all the different versions required.
Regards.

Similar Messages

  • Getting incorrect values for linkQueryResult (ILinkManager) while debugging our plugin in Adobe InDesign CC debug

    Hi,
    We have added some functionalities in PanelTreeView sample source. In that, we are getting incorrect values for linkQueryResult (ILinkManager) while using InDesign CC debug. But in release version we are getting the correct values for linkQueryResult (ILinkManager). So when debugging our plugin InDesign CC debugger has stopped working. Please find the below source,
    IDocument* document = Utils<ILayoutUIUtils>()->GetFrontDocument();
      if(document == nil)
      //CAlert::InformationAlert("Doc Interface Not Created");
      break;
      IDataBase *db = ::GetDataBase(document);
      InterfacePtr<ILinkManager> linkmanager(document, UseDefaultIID());
      if(linkmanager == nil)
      //CAlert::InformationAlert("linkmanager Interface Not Created");
      break;
      LinkQuery Query;
      ILinkManager::QueryResult linkQueryResult;
      linkmanager -> QueryLinks(Query, linkQueryResult);
      for (ILinkManager::QueryResult::const_iterator iter(linkQueryResult.begin()), end(linkQueryResult.end()); iter != end; ++iter)
      InterfacePtr<ILink> iLink(db, *iter, UseDefaultIID());
      if ( iLink )
      InterfacePtr<ILinkResource> resource(linkmanager->QueryResourceByUID(iLink -> GetResource()));
      ILinkResource::ResourceState rs = resource->GetState();
      PMString fileName = resource -> GetLongName(kTrue); //gets full path
      CharCounter lc=fileName.LastIndexOfCharacter('.');
      PMString *exten = fileName.Substring(lc+1,3);
      if((*exten).Compare(kFalse,"xml")==0)
      xmlDataLinkName = fileName;
    Kindly help us if anyone has idea regarding this issue.
    Thanks,
    VIMALA L

    Hi Vimala L,
    try to replace
    ILinkManager::QueryResult linkQueryResult;
    by
    UIDList linkQueryResult(db);
    Markus

  • Query resulting Incorrect values

    Hello ALL.
    I need your suggestions on this issue.
    I have a Query on top of multiprovider which is on top of 6 cubes. In the query one RKF is resulting wrong values for Unassigned WBS Element Hierarchy.
    <u><b>RF: Forecast amount</b></u>
    0amount, Version:01, Vtype:20,Company Code:100,Fiscyear=2008 and Posting Period=1-12.
    Query resulting: 68,000 and Where as Multi prvider has only 2 rows satisfying the above Restrictions and giving 13,000.
    These wrong values are only for Unassgined Nodes of WBS Element.(Rows) Other node values are correct.
    I am not sure where it is getting these values?
    Kindly suggest.
    Thanks,
    Geetha
    <u></u>

    Can you chk if you have the values in the multiprovider?

  • Getting incorrect values while using getLineMetrics()

    following e.g. finding x position of word "Adobe flex".
    if container of TextArea is not scaled then its giving
    correct value
    but after doing zoomin/zoomout its giving incorrect value
    Plz help me to figure out this.
    Thanks
    Kaushal
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    private function onClick():void{
    cnvs.scaleX = cnvs.scaleY = 1;
    cnvs.validateNow();
    var obj:TextLineMetrics = ta.getLineMetrics(0);
    lbl.text = "X: " + String(obj.x);
    private function onZoom(val:Number):void{
    cnvs.scaleX = cnvs.scaleY += (0.25 * val);
    ]]>
    </mx:Script>
    <mx:Button x="75" y="285" label="Find X"
    click="onClick()"/>
    <mx:Canvas x="75" y="10" width="382" height="201"
    id="cnvs">
    <mx:TextArea x="4" y="46" color="#000000" id="ta"
    borderStyle="none" textDecoration="underline" text="adobe
    flex"
    fontSize="28" width="361" height="54" textAlign="center"/>
    </mx:Canvas>
    <mx:Button x="75" y="219" label="-"
    click="onZoom(-1)"/>
    <mx:Button x="123" y="219" label="+"
    click="onZoom(1)"/>
    <mx:Label x="159" y="287" text="" fontSize="13"
    fontWeight="bold"
    id="lbl"/>
    </mx:Application>

    Yes number of pages are correct even though the values are different
    If I drilldown these reports for week 04.2008 – 09.2008 by Sales office only – and add the totals in Excel to double check then they are more or less the same.  Then I drilldown by Sales Office, ASM, Week & Sub Trade Channel.  Then export this into excel and add the totals to double check but then I get totally different amounts as to what they are supposed to be.
    Please waiting for help
    Thanks
    S
    Edited by: Shiva on Mar 6, 2008 12:52 PM

  • BP search query gets Valid Value error

    I am using the tutorial example to add all business partners to a combo box. The only change is to the query used:
    RS.DoQuery("SELECT DISTINCT CardCode, CardName FROM OINV T0 join INV1 T1 on T0.DocEntry = T1.DocEntry WHERE U_Active = 'Y' ORDER BY CardName")
    In this case, U_Active is a udf on the invoice detail level. When run, SAP returns an error Valid Value Already Exists. The combo box only displays the first two lines of data.
    This query works perfectly as a query in SAP's Query Manager, returning exactly the expected data. there are no duplicates in the results.
    The standard unedited tutorial example works also.
    Any help or suggestions are much appreciated.

    Code used:
       Private Sub AddBPCodeCombo(ByVal oCombo As SAPbouiCOM.ComboBox)
            Dim RS As SAPbobsCOM.Recordset
            Dim Bob As SAPbobsCOM.SBObob
            'Dim sSQL As String
            Try
                RS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                RS.DoQuery("SELECT DISTINCT CardCode, CardName FROM OINV T0 join INV1 T1 on T0.DocEntry = T1.DocEntry WHERE U_Active = 'Y' ORDER BY CardName")
                RS.MoveFirst()
                While RS.EoF = False
                    oCombo.ValidValues.Add(RS.Fields.Item("CardCode").Value, RS.Fields.Item("CardName").Value)
                    RS.MoveNext()
                End While
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
        End Sub

  • Build Dynamic Query based on values of multiselect list

    I am trying to implement the same functionality as shown in this app.
    http://htmldb.oracle.com/pls/otn/f?p=9741:6:13406902443304236283:::::
    I have hit a brick wall when I try to set the value of my text area/select statement, even after viewing the detail section in above app.
    Does anybody know exactly how I can set the value of a text area from multiselect list values??

    Hi Sam,
    check out How to use multi select in a query report
    See also Denes sample application which has and example where you can still do an index access if a index is defined for the column. http://htmldb.oracle.com/pls/otn/f?p=31517:138
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Getting incorrect value in CCMS: Load Distribution

    Dear Experts,
    I am Using Ecc 6.0 with db2 udb(DB6) on Aix Os.
    I have configured load balancing on my sap system.
    But when i am going to see average time of load distribution it appears like this
    Instance            Resp.time(ms)
    PRD_02             1,480
    PRD_01                  1-
    PRD_00               2,978
    You can see that value for PRD_01 is (1-).
    how to correct this value...
    <removed_by_moderator>
    Do NOT offer rewards*
    Thanks in advance,
    Dhiraj
    Edited by: Juan Reyes on Jun 1, 2010 12:03 PM

    > PRD_02             1,480
    > PRD_01                  1-
    > PRD_00               2,978
    - Is that instance included in the load balancing (SMLG)?
    - Is that instance configured to have dialog processes?
    Markus

  • BI Query with Hierarchy in VC does not get correct values

    Hello Gurus,
    I am building a model in VC for Performance Score card using Query as data service.
    I have  the following problem.
    When I execute query in BEx with Hierachy_node variable , it is getting correct values, but the same is getting incorrect values in VC.
    The Hierarcynode variable I am using is a TOP node, then the values including child nodes are also should be displayed, which is working fine with BEx query but not in VC.
    When I execute the query with hierarchy node value as child node I am getting correct values both in VC and in BEx.
    The correct values are not shown only when I use top nodes.
    Please help me in this regard.
    Thanks in advance
    Ganesh

    Hi
    We are facing the same issue. Is this issue resolved? Pls let us know the solution
    Regards
    Aruna

  • How to get item field values for old versions?

    I need to be able to query old field values from previous versions of items in a SharePoint list. I can't execute code on the server (it needs to work with SharePoint Online/O365 for a start).
    So far the ONLY API I've that lets me do this is the lists.asmx GetVersionCollection SOAP call.
    This lets me specify a single field name and returns an XML structure with the values for the various versions, along with the modification time and who made the change - but NO reliable way of actually identifying *which* version (i.e. an ID or label). That
    is, if I know I need to fetch the Title value from version 512 ("1.0") of item 1 in list "Documents", I don't see how to reliably parse the results to determine which entry is version 512. While they may be returned in order, in many cases
    the entries are actually missing when there was no field value present (or perhaps when the field hadn't been created yet). I've tried comparing the Modified date to the Created date of the corresponding FileVersion item (which I can get via CSOM or REST),
    and while it works some of the time, it's not reliable. I've also looked at the output from the lists.asmx GetVersion API but I don't see how that's useful either, as the Created property for all versions always seems to be just the date the file was originally
    created.
    It does seem odd to me that there's not a neat way of doing this - if I need to return information for several fields but just for a single version, I have to make a whole lot of requests that return far more info than I need, and then I need to figure out
    how to parse the returned text in the case of, say, multiple-value taxonomy fields etc.
    Anyone tried doing anything similar here?
    Thanks
    Dylan

    try these links:
    https://support.office.microsoft.com/en-us/article/Track-and-view-version-information-for-SharePoint-list-items-2d69d936-fb0b-4c84-830e-11708e6ec317?CorrelationId=f87cf6ea-8cbf-446a-a4a0-e2c3a86b3425&ui=en-US&rs=en-US&ad=US
    https://social.technet.microsoft.com/Forums/en-US/e48ff216-7ed1-4b20-9f21-d496b1583eea/how-to-get-item-field-values-for-old-versions?forum=sharepointdevelopment
    http://sharepoint.stackexchange.com/questions/20019/get-meta-data-from-a-previous-version-of-a-document-through-webservice-in-moss-2
    http://sharepoint.stackexchange.com/questions/121594/getting-information-from-previous-versions-of-a-sp-list-using-csom
    Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

  • Incorrect values in available budget in report S_KI4_38000050

    Dear Experts,
    We are getting incorrect values in available budget column against Fun/Fund center -commitment item in report S_KI4_38000050.
    Actually we have posted entries against fund center/commitment item without releasing budget and it allowed post entries due to deactivated availability control.
    Before Posting FI entry:
    Release Budget=0
    Assigned=0
    Available=0
    Commitment=0
    After Posting entry of Rs. 5000
    Release=0
    Assigned= -5000
    Available=5000
    Commitment= -5000
    Ques-1 Why available is 5000?
    Now if I released some amount say 10000 then,
    Release=10000
    Assigned= -5000
    Available=15000
    Commitment= -5000
    Ques-2 How to correct values mentioned above?
    As I think, the correct values should be:
    Release=10000
    Assigned= 5000
    Available=5000
    Commitment= 5000
    Regards
    Shishir

    Experts...Waiting for your suggestions..

  • How to dynamically get default value from a table column

    Hi all,
    Here's my problem: Our front end application sends insert and update queries to a pl/sql package. I've got a procedure that gets a PL/SQL table with all the column names an values, a table-name and a primary key name and value. That procedure creates an insert or update statement. So far, so good.
    Now the problem: our front end doesn't know what the default value for a column is. So when a number field doesn't get a value in the front-end, it's inserted with a value '0' though is should ben NULL. My sollution for this is to know the default value of a column: when there's a default of '0', then the value that will be inserted is '0'. When there's no default value and the column can ben NULL, it'll be inserted as NULL. if the column has a not null constraint, a '0' will be inserted.
    Ofcourse I can get the default value from the system-views all_tab_columns or user_tab_columns, but our application is installed at some 100 clients, and has various database installations. Most of the times, the tables are in the same schema as our procedure that performs the insert or update, but sometimes some of the tables are in another schema (in the same database) and also sometimes some tables are stored in another database. In all these situations, a synonym for that table exists in the schema.
    Is there a api function or procedure that I can call to get the default value of a column? I looked at dbms_sql and dbms_metadata, but those packages don't give me that perticular information. if not, I'll stuck with the 'does table exists in schema' yes->use table, no query user_synonyms to look for the owner of the table (and database link) and query all_tab_columns to get the default value. Only this seems a bit overkill to me.
    I hope I'm clear enough? And please don't reply with "don't do inserts this way"! I know, this is not the most optimal sollution, but it does gives us a couple of advantages in our application...

    there is no way that I can think of, apart from what you have already discovered (i.e. views), where you can determine if a column has a defuault value defined against it.
    The other option is triggers, but I guess doing that across 600 tables would not be an option, and besides I stay clear of triggers.
    A different approach therefore, if you cannot pre-determine the data, is to consider a post problem handler, hence I suggested the use of an exception handler.
    The exception handler works regardless of whether the statement is dynamic or not.
    SQL> truncate table abc;
    Table truncated.
    SQL>
    SQL> declare
      2    NULLVAL exception;
      3    pragma exception_init(NULLVAL, -01400);
      4 
      5  begin
      6 
      7    begin
      8 
      9      execute immediate 'insert into abc (y) values (1)';
    10 
    11      exception
    12        when NULLVAL then
    13          -- handle the error
    14          execute immediate 'insert into abc (x,y) values (0,1)';
    15 
    16    end;
    17 
    18    commit;
    19   
    20  end;
    21  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select * from abc;
             X          Y
             0          1

  • Get domain value range dynamically

    Hi all,
    I need to create a dynamic method that retrieves the value range (key-value) of a domain.
    It is pretty simple to get fixed values using FM DD_DOMVALUES_GET, but how do I manage a value table?
    For example:
    Field XFELD has fixed values so use DD_DOMVALUES_GET
    Fields BUKRS and SPRAS have value tables.
    I can get the value table name using FM DDIF_FIELDINFO_GET and retrieve the data from that table. Unfortunately, I can be sure to get the right key field, but I can't be sure to get the right value field, it depends on the value table definition.
    BUKRS has T001 that stores the text in field BUTXT of the same instead SPRAS has T002 that stores the text in text table T002T in field SPTXT.
    Is there any standard function module that does the trick?
    In this thread Gregor Wolf managed it manually using a case statement, but I would avoid it, too many case statements...
    Thanks
    Ivan

    What I am doing is not quite the same but similar - I am dynamically getting the text description when I have a data element and the value of the variable that references that data element.
    I was pointed to CL_TEXT_IDENTIFIER which when you pass in the domain and the value magicaly brings back the text description, despite the fact that, as far as I can see, SAP has set up almost every text table slightly differently - sometimes in the main table like T001W or lFA1, sometimes which just the language and the value as a key, sometimes with extra key fields (e.g. MAKT) and sometimes with added organisational key fields e.g. the same GL account have different text descriptions in different chart of accounts.
    I think at some stage CASE statements or subclasses are going to have to come into the equation, due to the utter lack of consistency in SAP table defintions.
    Cheersy Cheers
    Paul

  • Dynamic Query and default run-time values

    I am trying to build a dynamic query within dreamweaver and
    retain access from the bindings panel.
    here is a simple pseudo-query I want to expand on.
    "SELECT object FROM objects_table WHERE widget_number =
    widgets"
    widgets is set up as a variable with a run-time value that
    relates to $_GET['widgets']
    this works fine but now i want to expand on this so the query
    returns all results if $_GET['widgets'] is undefined. I was hoping
    I could set the default value for widgets to equal widget_number so
    I would get....
    "SELECT object FROM objects_table WHERE widget_number =
    widget_number" but the runtime query is actually
    "SELECT object FROM objects_table WHERE widget_number =
    'widget_number' " which obviously doesn't work.
    I can alter the query manually from the code view but then I
    lose access to the bindings panel as dreamweaver doesn't parse the
    query properly.
    Any pointers?
    Thanks in advance
    - Andrew

    Andy Millne wrote:
    > That will work fine server-side yeah but dreamweaver
    cannot parse the code at
    > design time so by altering the code in this way you lose
    access to the bindings
    > panel and all the server behaviours that depend on the
    recordset have
    > exclamation marks alongside.
    This is simply a question of organizing your workflow. As you
    have
    discovered, Dreamweaver no longer recognizes a recordset if
    you make
    changes to the basic structure of the code. The answer is to
    use
    Dreamweaver to construct your page using an unaltered
    recordset. Once
    the design stage is complete, make the changes required by
    inserting
    your conditional statement. Yes, the fieldnames disappear
    from the
    Bindings panel, and you get exclamation marks in the Server
    Behaviors
    panel, but that's not important. If you need to restore them
    for any
    reason, just wrap the changes in /* */ comments. Remove the
    comments
    when you have finished.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to Get the values from Dynamic jasp page

    Hi,
    I have a jsp form page wherein i input the data form the user and get these values on the action servlet.
    But now i have added a feature to Add and Delete the Elements using javascript and this creates a dynamic form on the jsp page. I want to Get the values of these all elements at the Action servet.
    Please suggest the solution.
    Thanks,
    JavaQueue

    getParameterMap() returns a Map[1] with all parameters; the parameter name is the key and the value is the value of the parameter in the form of String arrays.
    You have to iterate over the Map and get values as you see fit. Search for a tutorial/ example/ sample for using Maps. I'm sure you'll find loads that will do a better job at explaining.
    [1] http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • How to  get formated value from query

    i get value from query use the follow method
    Object obj1 = dataAccess.getValue(i,j,DataMap.DATA_UNFORMATTED);
    Object obj1 = dataAccess.getValue(i,j,DataMap.DATA_FORMATTED);
    the first method retrun a value '1666.0',
    the second method return a value null
    but i want to get the value '1,666'.
    who can tell me how can get the formated value?

    Ahu,
    An implementation of DataAccess is not required to support all DataMap constants. For example, the OLAP-based Query object does not support DataMap.DATA_FORMATTED. To find out which DataMaps are supported for a particular implementation, you can call the DataDirector's getSupportedDataMap method.
    If you have an Crosstab instance, there is a way to get the formatted cell value, based upon the formatting rules associated with the Crosstab. Get the GridViewFormatManager reference from the Crosstab, and call its formatDataValue method to return a String representation of the formatted data value.
    Hope this helps,
    djb

Maybe you are looking for

  • [SOLVED] HDMI output not working

    I just bought myself a home theater system but can't get my laptop to connect to the reciever. My laptop is an Asus UX31E with integrated HD 3000 graphics. When I connect a HDMI cable to the reciever (Pioneer VSX-527) it doesn't even detect my laptop

  • Xorg or some other system overriding xinitrc

    I have the following .xinitrc configuration. The important parts are the xmodmap and the xset lines. xset r rate 195 35 xrdb -merge $HOME/.Xresources xrdb -merge $HOME/.Xdefaults pkill urxvtd ; urxvtd & $HOME/bin/gpg-agent.sh xsetroot -cursor_name le

  • Cost of creating org.w3c.dom.Node

    I am trying to create an xml of cached data at run time. I need to know if this would increase the response time considerably ..? Is there any documents which talk about the cost of creating nodes(e.g.within loops) ..? public Node createnode(Document

  • Firefox keeps randomly changing Clear History settings to also clear Saved Passwords.

    I have "Clear history when Firefox closes" selected but the "Saved Passwords" option is unchecked. After a couple of days the "Saved Passwords" option becomes automatically selected. I am certain that nobody is manually changing these settings but th

  • HELP Can't call or receive calls

    Recently, whenever I get a call on my iPhone 4 it makes a loud beeping noise. I can barely hear what the other person is saying. It also makes the beeping noise for the person at the other end of the call, which I thought was odd. This is keeping me