New object in the query

Hi All,
I need additional info object-Aging in the query which is not present in the query at the moment. This has to be feeded from the calculation below.
Current date minus requested delivery date.So today is 28th November and lets say that the requested delivery day was 21st November, then the Aging in calendar days is 7 days.
we have the infoobject requested delivery date as characteristic in the query.Coluld any one of you suggest how to get the above result.
Thanking you in anticipation.
regards,
chandra.

You need to create formula variable of type replacement path on dates.
Create a formula to subract the two dates.
This is discussed many times.
Trying searching the forum as difference between dates.
Hope this helps.

Similar Messages

  • How can I write new objects to the existing file with already written objec

    Hi,
    I've got a problem in my app.
    Namely, my app stores data as objects written to the files. Everything is OK, when I write some data (objects of a class defined by me) to the file (by using writeObject method from ObjectOutputStream) and then I'm reading it sequencially by the corresponding readObject method (from ObjectInputStream).
    Problems start when I add new objects to the already existing file (to the end of this file). Then, when I'm trying to read newly written data, I get an exception:
    java.io.StreamCorruptedException
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    Is there any method to avoid corrupting the stream? Maybe it is a silly problem, but I really can't cope with it! How can I write new objects to the existing file with already written objects?
    If anyone of you know something about this issue, please help!
    Jai

    Here is a piece of sample codes. You can save the bytes read from the object by invoking save(byte[] b), and load the last inserted object by invoking load.
    * Created on 2004-12-23
    package com.cpic.msgbus.monitor.util.cachequeue;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.RandomAccessFile;
    * @author elgs This is a very high performance implemention of Cache.
    public class StackCache implements Cache
        protected long             seed    = 0;
        protected RandomAccessFile raf;
        protected int              count;
        protected String           cacheDeviceName;
        protected Adapter          adapter;
        protected long             pointer = 0;
        protected File             f;
        public StackCache(String name) throws IOException
            cacheDeviceName = name;
            f = new File(Const.cacheHome + name);
            raf = new RandomAccessFile(f, "rw");
            if (raf.length() == 0)
                raf.writeLong(0L);
         * Whne the cache file is getting large in size and may there be fragments,
         * we should do a shrink.
        public synchronized void shrink() throws IOException
            int BUF = 8192;
            long pointer = getPointer();
            long size = pointer + 4;
            File temp = new File(Const.cacheHome + getCacheDeviceName() + ".shrink");
            FileInputStream in = new FileInputStream(f);
            FileOutputStream out = new FileOutputStream(temp);
            byte[] buf = new byte[BUF];
            long runs = size / BUF;
            int mode = (int) size % BUF;
            for (long l = 0; l < runs; ++l)
                in.read(buf);
                out.write(buf);
            in.read(buf, 0, mode);
            out.write(buf, 0, mode);
            out.flush();
            out.close();
            in.close();
            raf.close();
            f.delete();
            temp.renameTo(f);
            raf = new RandomAccessFile(f, "rw");
        private synchronized long getPointer() throws IOException
            long l = raf.getFilePointer();
            raf.seek(0);
            long pointer = raf.readLong();
            raf.seek(l);
            return pointer < 8 ? 4 : pointer;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#load()
        public synchronized byte[] load() throws IOException
            pointer = getPointer();
            if (pointer < 8)
                return null;
            raf.seek(pointer);
            int length = raf.readInt();
            pointer = pointer - length - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            byte[] b = new byte[length];
            raf.seek(pointer + 4);
            raf.read(b);
            --count;
            return b;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#save(byte[])
        public synchronized void save(byte[] b) throws IOException
            pointer = getPointer();
            int length = b.length;
            pointer += 4;
            raf.seek(pointer);
            raf.write(b);
            raf.writeInt(length);
            pointer = raf.getFilePointer() - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            ++count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCachedObjectsCount()
        public synchronized int getCachedObjectsCount()
            return count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCacheDeviceName()
        public String getCacheDeviceName()
            return cacheDeviceName;
    }

  • It will not parse! Creating a new object in the universe

    Hi, we have a universe and BO reports. They work fine for our clients. We are on BO XI r3.1. Now, one client captures an additional piece of info. They would like to report against this and add it high up on our drilling heirarchy. "Sure, no problem". For the following I was logged in as administrator.
    The additional data field is a 3 character code.
    1) We added an additional column to the actual database table.
    2) In Universe Designer, I refreshed universe structure and could see the additional column
    3) Created an object 'Acode' that refers to db.new_field
    4) Exported universe
    Maybe worth mentioning that I can see this object and use it in reports fine in Infoview.
    Now, I need to create a new object that will be one of 2 strings based on the 3 character code (Acode) i.e. the 'Atype' can be X or Y.
    Here's my code and it just will not parse:
    CASE
    WHEN @Select(AFolder\Acode) = 'CEL'
    THEN 'X'
    ELSE u2018Yu2019
    END
    Error I get is:
    Parse failed:Eception:DBD ODBC SQL Server driverStatement could not be prepared.State 42000
    I'd appreciate any help, believe me I have searched the forums!
    Thanks, Eddie

    Look at following SAP NOtes.
    1373739
    1184304
    Regards,
    Bashir Awan

  • Makin a new object from the file in activeX

    hi
    How can i make a new object from a file in ActiveX.
    i am Making an object of the following 
    C:\Program Files\Microsoft Office\OFFICE11\WINWORD in order to use Word in LabVIEW but when i use the property nodes, then no properties are being displayed.
    so further i cannot use Microsoft word. I dont want to use the Microsoft word in the CREATE DOCUMENT option of the ActiveX. This is because , from there, i cannot access the SPEECH function of the word.
    Help me out of this
    Somil Gautam
    Think Weird

    Duplicate² post: http://forums.ni.com/ni/board/message?board.id=170​&thread.id=437939&jump=true
    Somil: if you want to add something to an existing post then reopen that post, scroll down to the last entry and press "reply". Insert your new entry and then press "Post". Create a NEW post only if you want to start a NEW topic.
    By doing so there's a possibility to start a discussion rather than a one-way one-shot conversation. This increases the chance for you to get an answer to your questions and solutions to your problems.  
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Create new objects on the repository

    Hi
    I would like to know how to create or modify objects in the repository and whether by doing that they would be created or modified in the database or I have to do it on the database first.
    thanks

    Hi,
    then you need to look into the code you are doing. thats a custom application which we have no knowledge about.
    ingo

  • 'New Structure' in the Query Designer

    Hi,
          I know these questions might be very silly but i want to get the best picture about reporting in BW. Is there a restriction that we could create only 2 new structures in both rows and colums or isn't there any rule.Any kind of explanation would be of great help.
    Thanks,
    Anjali.

    Hi Anjali,
    I am not sure if I undertand, what you are looking for.. you can (in 3.0B) only create one structure per row or column. However you can create 2 types of structure elements. "New Selection" and "New formula". Is that what you are reffering to?
    If yes, one is a selection that can consist of key figures and characteristics.
    The other is a calulation based on available structure elements or formula variables.
    Both enable you to create complex "drilldowns"
    regards,
    Michael

  • How to get sum in new row (not in a new column) in the query output ?

    There are values in a table like this:
    A B C D
    DEsc1 ID1 15 45
    DEsc2 ID1 10 67
    DEsc3 ID2 12 34
    Desc4 ID2 19 32
    How to achieve this output :
    A B C D
    DEsc1 ID1 15 45
    DEsc2 ID1 10 67
    --- ID1 25 112 <--- Sum of two rows corresponding to C and D whose B column is same
    DEsc3 ID2 12 34
    Desc4 ID2 19 32
    Desc5 ID2 10 12
    ----- ID2 41 78 <---- Sum of three rows corresponding to C and D whose B column is same

    SQL>WITH t AS
      2       (SELECT 'DEsc1' AS a, 'ID1' AS b, 15 AS c, 45 AS d FROM DUAL
      3        UNION ALL
      4        SELECT 'DEsc2', 'ID1', 10, 67 FROM DUAL
      5        UNION ALL
      6        SELECT 'DEsc3', 'ID2', 12, 34 FROM DUAL
      7        UNION ALL
      8        SELECT 'Desc4', 'ID2', 19, 32 FROM DUAL)
      9  SELECT   DECODE(GROUPING(a || ' ' || c || ' ' || d), 0, TO_CHAR(MAX(a)), '-----') AS a,
    10           MAX(b) AS b, SUM(c) AS c, SUM(d) AS d
    11      FROM t
    12  GROUP BY b, ROLLUP(a || ' ' || c || ' ' || d);
    A     B            C          D
    DEsc1 ID1         15         45
    DEsc2 ID1         10         67
    ----- ID1         25        112
    DEsc3 ID2         12         34
    Desc4 ID2         19         32
    ----- ID2         31         66Urs

  • Going to the last page of a table when adding a new object

    I added a Table(com.sun.rave.web.ui.component.Table) on my page and a button outside of that table to add new object rows. My problem is that I want the table to move to the last page when I add a new object. Instead the default bahaviour is showing the first page. Even if the newly added row is on a page > page 1.
    e.g If I have a table with 5 pages and I am on page 1 and I add an object I want to see the last page of the table where I added the new object. In other words I want it to go to page 5 or page 6 in case the number of the new object is > the number of displayable rows of a page.
    I did it with Javascript but I just dont like it. I wanna do it programmatically.
    Any help?
    Thanks in advance guys!!!

    Hi!
    Try to look here:
    http://forum.java.sun.com/thread.jspa?threadID=5142038&tstart=45
    Thanks,
    Roman.

  • NOOB Q: Does the New-Object -ComObject cmdlet not respect -ErrorAction SilentlyContinue?

    I'm trying to test to see if a set of COM interfaces have been registered on the system or not.  In my script I'm running the New-Object command to attempt to instantiate a COM object using the ProgID of each of the COM interfaces but I don't want errors
    displayed to the screen when one of the ProgIDs isn't registered on the system.  The New-Object help says it supports the <CommonParameters> but when I attempt to use "-ErrorAction SilentlyContinue" I still get the errors displayed
    in the PoSh session.
    I'm running the cmdlet below and getting the error output below that.  Is this the correct way to test a set of COM interfaces or is there another option?  If this is the correct way, is there a way to run the command such that it doesn't display
    an error for the COM interfaces that aren't registered?
    Command:
    New-Object -ComObject "myProgID" -ErrorAction SilentlyContinue
    Error:
    New-Object : Retrieving the COM class factory for component with CLSID {00000000-0000-0000-0000-000000000000} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 REGDB_E_CLASSNOTREG)).
    At line:1 char:11
    + $comObj = New-Object -ComObject "Fake_ProgID" -ErrorAction SilentlyContinue
    +           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ResourceUnavailable: (:) [New-Object], COMException
        + FullyQualifiedErrorId : NoCOMClassIdentified,Microsoft.PowerShell.Commands.NewObjectCommand

    yep, use try / catch:
    try { New-Object -ComObject "myProgID" -ErrorAction Stop } catch { "not found" }
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • Adding new field to the page when the field source not available

    Hi,
    I have a requirement to add vendor_serial_number (manufacturer's serial number) to the page /oracle/apps/csi/instance/general/webui/InstanceDetailsPG. This column is available in mtl_serial_numbers_all_v table. I don't see any VO in that page has access to this. What is the best approach to add this field in the page.
    Create a new VO with the query to get the vendor_serail_number based on the item_number, serial_number.
    Attach the VO to the AM InstanceDetailsAM or create a new custom AM as we can't attach the new VO to the seeded AM.
    Add a item to the page that gets the column value from this new VO.
    Please suggest.
    Thanks,
    HC

    1. Create the textfield item using personalization.
    2. Create a View Object to get the field
    3. Extend the InstanceDetailsCO and attach the VO to AM programatically in the extended CO.
    Any suggestions.
    Thanks,
    HC

  • Enhancin the query BT1O SEARCH

    Hi,
    I am in CRM 7.0.I am trying to add new fields in the query object CRMST_QUERY_1ORDER_BTIL in order to enhance the 1 order search .
    So what steps do i need to follow henecforth in order to ensre the serach is working ?
    I currently get a dump when i click on the search button in the UI.
    The dump is from the method make_instance_valid of cl_crm_report_accrule.
    Please let me know how to proceed.
    Suvidha

    Hi,
    you will find your anser in the following note:
    Note 1527039 - Enhancements in CRM Reporting Framework
    read this and the attached documents.
    br
    Jürgen

  • Problem in executing the Query

    Hi Experts,
    I hava query on FIAR_C03, while i am executing that query it is showing one error message and immediately it is disconnecting BW server. that error message is
    Abort Characterstic 0clr_doc_no is not available in the infoprovider
    in details it is showing  0clr_doc_no has deleted from the infocube, but 
    i didn't delete anything from that infocube.
    I have executed that qury in RSRT, I got the Output.
    What happend how can i get the output and wt is the problem.
    Please help me to do this.
    Helpful answer will be appreciated with full points.
    Thanks in advance,
    Venkat

    Hi Venkat,
    If that object is not present in InfoCube, how can you add that in query based on same InfoCube?
    For that, either you have to add that object in InfoCube or delete the same object from the query definition. It seems all the queries based on the InfoCube are using the same object. Thatu2019s the reason why they are giving error.
    The syntax check (Check Query) option is available in the BEx Query Designer. It is 13th icon from the left on icon bar.
    Regards,
    Yogesh

  • Bica: change the query cause error in the pas model

    Dear  friends,
    We have very simple scenario: one query 'SSM_SQL_KPI_MAY'' for feeding  the pas model- 2 demensions and 2 measures. With this query I load the schema and data to the pas model.Everithing was fine. After that we added new  dimension to the query.Ichanged the  existing query and load the data with bica.But when I try to open the model I get the next  error every time
    DAT316:
    No internal Dimenson unique name to position cache exists for 'EZOR_KEY' on Linkid 'BI' Cube 'SSMKPI/SSM_SQL_KPI_MAY'
    We try to resolve the issue by deleting data and schema but every time I get the same error.
    How is it possible to resolve this issue?
    What is a best practice in the case of changing queries working with bica?
    Thanks.
    Best regards,Orit.

    Dear Orit,
    Keep in mind that dimensions provided by a BICA query connection must have a HIERARCHY associated to the base characteristic in BW. PAS uses this hierarchy to define the "Result" (rollup) levels of the dimension. Check your BW query and verifiy that all the included dimensions have associated hierarchies in use. I'm guessing this is the issue with your new dimension.
    You can also check the dimensions in PAS by selecting your model, then "Dimensions" and right-clicking on the affected dimension name and then the "View" option (or "List" or something related to displaying the dimension definition). You should see a PAS script that describes the dimension, including the dimension member IDs, descriptions and rollup levels. This should be consistent with your query results and hierarchies).
    Also, from the same menú you may also choose to "Delete" a dimension.
    Good luck!
    Regards

  • 'Display as hierarchy' in the Query Designer

    Hi,
          Can anyone highlight some points or importance of 'display as hierarchy' in either rows or columns in the query designer. Also could someone put some thoughts on the 'new structure' in the query designer, is it just that we can create some new selection and new formula from the structure or is there any other explanation for its existence. Any kind of explanation would be greatly appreciated.
    Thanks,
    Anjali.

    Hi Anjali,
    display as Hierarchies:
    simply enables you to select and use hierarchies for that InfoObject if available.
    Structures:
    you can create structures with or without keyfigures. Structures give you a great deal of flexibility and consistancy in your reports. Eg. you can create a structure that gives you a drilldown on char selections that are different for each line or column. We use that to "simulate" divisions in a drilldown that we don't have backed up by masterdata.
    Also structures enable you to keep reports consistant by using the same global structure eg. for all Contribution margin reports
    Hope that helped,
    regards,
    michael

  • Some users can't see attributes in the Query Builder

    Hi.
    I have problem. Some users can't see some of attributes of info-object in the Query Designer. Where is the problem?

    I think you would need to give more details on the problem,
    as <b>some</b> users are not able to see <b>some</b> attributes.
    Do they all share the same profile, what is the distinguishing thing among the some users who can see the attributes and the ones who cannot see the attributes.
    Need to drill down further I guess.
    Cheers
    Anurag

Maybe you are looking for

  • Some bugs in Zen MX

    I bought the Zen Mx in January of this year. My player contains the last firmware version published: .02.04. The Zen Mx don?t play? music folders correctly. I maked some music? folder in the Music Imported folder. The playing mode is normal. I power/

  • ITunes didn't completely download my songs and now it says itunes has not been correctly localized for this language. Please use english version. What is this?

    iTunes didn't completely download all my songs. I updated iTunes and now this message appears "iTunes has not been correctly localized for this language. Please use the english version." The only option I have at this point is to close it down becaus

  • Calling a procedure that returns a cursor inside a procedure

    Hi, I have two stored procedures. They both return a cursor as output variables. On the other hand I have another stored procedure that calls these procedures and return their results again an output variable. I know that this seems quite odd to be w

  • [SOLVED] File backup strategy

    Hi, I have a cronjob running backup script every 8hrs to make timestamped tar archive of important stuff. Basically, i just wanted to know if there's some more elegant way of achieving the same/better effect as, for some reason, i don't feel this is

  • EMac restart message

    My eMac continuously asks me to restart the computer at random times. The screen becomes shaded and a message appears I'm several languages only telling me to hold down the power button to restart my computer.  I cannot move my mouse or use my keyboa