Comparing different date characteristics

Hi All,
I have a report where I want the date running down the left and comparing different keyfigures across the top.
For Example:
I want to see days running down and value for Order Qty, Expect Delivery Qty and Actual Delivery Qty on each line for the relevant date.
The data for Order, Expected Delivery and Actual Delivery are all in different InfoCubes and joined by Mulitprovider.
The issue is that the dates in each cube are in a different characteristic field, so how do I align them within the report?
Order Cube
-OrderDate
-OrderQty
Expected Cube
-AvailableDate
-ExpectDelQty
Actual Cube
-CalDate
-ActualQty
Please let me know how to show these different keyfigures all relative to a single date.
Thanks,
Terrence

when you provide the assignments for characteristics in multiprovider ,assign all the three together in one characterisctic.
Go to change mode of the multiprovider :
select Order Date click on identify/assign
In that tick on OrderDate from Order Cube .
Available Date from Expected Cube
and CalDate from Actual cube
in the same assignment.
Use Order Date in the report .
Check whether this suffices your requirement

Similar Messages

  • How to compare delivery date in schedule lines and PGI in outbound delivery

    Hi,
    I want to create a report to monitor and compare different dates in sales and delivery process.
    One of my key figure is the comparison between date confirmed to the customer, that I can find in the schedule line of the sales order, and the actual goods issue date from the outbound delivery.
    But I can't succeed in making the link between delivery and schedule lines, means between LIKP and VBEP.
    Would you have any idea?
    Thank you.

    It seems there's no exact (table) connection / link between delivery item and schedule line item.
    Those who were searching for this thing (link / connection between delivery item and schedule line) were recommended to use FM "RV_SCHEDULE_CHECK_DELIVERIES".
    This FM calculates the delivered quantity for each schedule line, so it makes link between the delivery item and schedule lines - however if you check the code it's quite sophisticated...
    (if you put a breakpoint in the FM and display a SO in VA03, you can check how the parameters have to be populated with data).
    Schedule Line and Delivery Link
    Edited by: Csaba Szommer on Aug 5, 2011 12:03 AM

  • How to compare two rows from two table with different data

    how to compare two rows from two table with different data
    e.g.
    Table 1
    ID   DESC
    1     aaa
    2     bbb
    3     ccc
    Table 2
    ID   DESC
    1     aaa
    2     xxx
    3     ccc
    Result
    2

    Create
    table tab1(ID
    int ,DE char(10))
    Create
    table tab2(ID
    int ,DE char(10))
    Insert
    into tab1 Values
    (1,'aaa')
    Insert
    into tab1  Values
    (2,'bbb')
    Insert
    into tab1 Values(3,'ccc')
    Insert
    into tab1 Values(4,'dfe')
    Insert
    into tab2 Values
    (1,'aaa')
    Insert
    into tab2  Values
    (2,'xx')
    Insert
    into tab2 Values(3,'ccc')
    Insert
    into tab2 Values(6,'wdr')
    SELECT 
    tab1.ID,tab2.ID
    As T2 from tab1
    FULL
    join tab2 on tab1.ID
    = tab2.ID  
    WHERE
    BINARY_CHECKSUM(tab1.ID,tab1.DE)
    <> BINARY_CHECKSUM(tab2.ID,tab2.DE)
    OR tab1.ID
    IS NULL
    OR 
    tab2.ID IS
    NULL
    ID column considered as a primary Key
    Apart from different record,Above query populate missing record in both tables.
    Result Set
    ID ID 
    2  2
    4 NULL
    NULL 6
    ganeshk

  • Compare two dates in different format.

    Hi
    I want to compare two dates....one of which is in the timeStamp format ("yyyy-MM-dd HH:mm:ss")
    and the other is in java.util.Date i.e Tue Oct 11 10:22:47 GMT+05:30 2005
    Do I have to tokenise and then compare them.Is there any better approach?
    I want to find out which is greater/smaller one.
    Pls help.
    Regards,
    Sandip.

    I would convert both to Date and compare them. To convert String to Date check java.text.SimpleDateFormat and its parse(...) method.
    HTH
    Mike

  • Use a single variable value to compare with 2 characteristics

    Hi guys
        I need some advice on how to use a single variable value to compare with 2 characteristics in a Infocube.
    eg : I hv 2 characteristics in Infocube
           Launch date  &  Closing Date
       Now I want to display report where the variable date (inputted by user) is equal to Launch Date and Closing Date.
        with regards

    Bobby,
    if I right understood your situation, you have an input variable ZINPUT (related to a date 'A') and 2 others dates (yours Launch and Closing dates, 'B' and 'C').
    You want to display only the rows where A(user input)=B=C.
    Now you have to create 2 new variables (called ZB and ZC, related to B and C dates) NOT marked as 'ready for input' and set to 'mandatory variable entry'.
    Call Transaction CMOD for the definition of the customer exit (if not already existing!).
    Create a new project, maintain the short text, and assign a development class.
    Goto Enhancements Assignments and assign RSR00001. Press the button components to continue.
    Double-click on EXIT_SAPLRRS0_001. For documentation place the cursor on RSR00001 and use the menu Goto -> Display documentation. 
    Then double-click on ZXRSRU01. If the include doesn’t exist you have to create it; assign a development class and a transport request.
    Enter the coding:
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    CASE I_VNAM.
    WHEN 'ZB'.
    (and you have to repeate the same code also for the variable 'ZC' !)
    IF I_STEP = 2.
    READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WITH KEY vnam = 'ZINPUT'.
    if sy-subrc = 0.
    L_S_RANGE-LOW  = LOC_VAR_RANGE-LOW.
    endif.
    L_S_RANGE-sign = 'I'.
    L_S_RANGE-opt = 'EQ'.
    append L_S_RANGE to e_t_range.
    ENDIF.
    ENDCASE.
    Save and activate the coding and the project.
    Now go to your query and use these two new variables to restrict B and C....et voilà !!!
    Let me know if you need more help (and please assign points !!! be generous !!!)
    Bye,
    Roberto

  • Comparing Entry Date

    Hi Gurus,
    I have an ODS that stores the price of products based on validity dates. For Eg:
    Material                 ValidFromDate           ValidToDate           Price
    ABC                      01/01/2008                10/01/2008              200
    ABC                      11/01/2008                30/01/2008              300
    ABC                      01/02/2008                28/02/2008              500
    Now, My requirement is while executing the query, user inputs a date, from that date appropriate material price needs to be picked.
    For Eg:
    User Enters Input Parameter as 25/01/2008, then material ABC price is 300. Report should show price as 300.
    How can i achieve this?
    Thanks in advance.
    Regards,
    Vaishnavi.

    U may create it on any of these....from or to.....
    U have to create the variable and after that u have to use the enhancement RSR00001... u have to write the code in that... But i dont have much ABAP skills... Please search in SDN... u will get some info about the code...
    Please go through the following threads
    Customer Exit Code for variable
    use a single variable value to compare with 2 characteristics
    Comparing dates (Start date should not be later than End date etc ...)
    Comparing a range with rang of values
    code help
    Khaja
    Edited by: khaja on Jan 22, 2008 12:29 PM

  • How to report on 2 different dates in one report?

    Hello,
    I need to have Date in a sales report represent both Actual Goods Issue Date and Planned Goods Issue Date depending on the  sales order status (i.e. shipped or still in process).
    The report format is like:
    Date--Sales--
    Orders
    Jan 1                                    $0                         $100
    Jan 2                                    $50                       $150
    Jan 3                                    $100                     $300
    Sales is defined as shipped items. Orders are just all incoming sales orders.
    I need Date for Sales to be Actual GI date, and for Orders to be Planned GI date.
    In a customized DSO we have both these dates available, and currently, Calendar Day, Calendar Week are pointing to Planned GI date.
    Thanks.

    For those who might come across this note, the design issue was solved by incorporating Rule Groups.
    Problem:
    Need to have 2 different Date references for 0calday, based on the key figures. For example for Sales key figure date it would reference to Actual GI Date. But, for Intake key figure I needed the date reference to be Planned GI date.
    Solution-- applied to the transfer rules of the desired cube:
    1. In the starndard rule group delete the transfer rule for the appropriate key figures. in this case (sales key figure)
    2. In the same rule group map all time characteristics from the cube to Planned GI date from DSO
    3. Create a new rule group in the transfer rule between the DSO and the Info Cube
    4. In the new rule group, create a new rule for the appropriate key figure i.e. sales
    5. In the new rule group, Map the date/week/month/fiscal period to Actual GI date
    6. save/activate
    This solution eliminates the need for changing the data model, which makes everything almost transparent to the report users.
    Hope this helps someone.
    Edited by: Babak Shafiei on Dec 12, 2008 5:23 PM
    Edited by: Babak Shafiei on Dec 12, 2008 5:24 PM

  • Best approach for combinng cubes of different data

    Hi Guys,
    I have two different cubes with much different data in them and only a couple of shared characteristics.
    Im looking to merge most of the data of cube 2 with the data of cube number 1.
    Multiprovider wont work( not many shared characteristics)
    I cant do a routine to pull the data as I cant build a simple routine as it is difficult to extract from Dimensions.
    I have tried Infoset but this does not appear to work.
    Scenario is I have two fields in cube 1 that exist in cube 2, I want to look up these values in cube 2 and return some of their key figures that exist
    Is the easiest way around this to create transformation from Cube to ODS and extract data via a lookup routine?

    Hello,
    Is the data being loaded directly to the Cube, is there no underlying DSO.
    I think if you want to look up on cube based on 2 char it should be not a difficult look up routine to code in the transformation.
    If the above you feel is not feasible, load data to DSO first and then to the cube and use this DSO for your look up. BUt note here you would be consuming DB space again
    Regards,
    SHashank

  • Best Approach to Compare Current Data to New Data in a Record.

    Which is the best approach in comparing current data to new data for every single record before making updates?
    What I have is a table with 5,000 records that need to be updated every week with data from a data feed, but I dont want to update every single record week after week. I want to update only records with different data.
    I can think of these options:
    1) two cursors (one for current data and one for new)
    2) one cursor for new data and one varray for current data
    3) one cursor for new data and a select into for current data.
    Thanks for your help.

    I don't recommend it over merge, but in theory you could use a checksum (OWA_OPT_LOCK.checksum()) on the rows and if they differ then copy the new row into the destination table. Or you might be able to use rowscn to see if things have changed.
    Like I said, I don't know that I 'd take either approach over merge, but they are options.
    Gaff
    Edited by: Gaff on Feb 11, 2009 3:25 PM
    Actually, rowscn between 2 tables may not be an option. I know you can turn a rowscn into a time value so if that rowscn is derived from anything but the column values for the row that would foil that approach.

  • How to compare table data and table field

    Hi buddy,
        I have some question about how to compare table data and table field.
       1. I know there is one method:   CL_ABAP_UNIT_ASSERT=>ASSERT_TABLE_CONTAINS  , it use in unit test to compare the table data(A and B) , you can loop table A into structure A1, then use this mehtod it can compare whether table B contain structure A1.  but when I try to use this in main program it will dump.
              CL_ABAP_UNIT_ASSERT=>ASSERT_TABLE_CONTAINS(
                                                                                                        LINE    = A1
                                                                                                        TABLE = B ).
           Is there any method or FM can be used to compare the table data ?
        2. I also want to compare two table field , try to find out the different. How to realize this.
    Thank you for your sincerely answer.

    Hi Zongjie,
    What`s the difference, if you using loop A into wa_A, read table B into wa_B with all field, then compare with wa_A and wa_B.
    The question 2, seems no standard FM available here.
    Loop A into wa_A.
       Loop B into wa_B.
           if wa_A-field1 eq wa_B-field1.
           endif.
            if wa_A-field2 eq wa_B-field2. 
           endif.
       endloop.
    endloop.
    regards,
    Archer

  • How compare 2 dates

    hello
    i need compare 2 dates and fird difference between them
    for example 30 september and 1 october
    difference = 1 day
    how i can make it ?
    compareTo(Date) make it something else
    here is code
    import java.util.*;
    import java.text.*;
    public class DateWork2 {
    public static void main(String[] args){
    int i;
    GregorianCalendar today=new GregorianCalendar();
    GregorianCalendar oldday=new GregorianCalendar (2001,Calendar.AUGUST,16);
    Date d1 = today.getTime();
    Date d2 = oldday.getTime();
    DateFormat df_today=DateFormat.getDateInstance(DateFormat.SHORT);
    DateFormat df_oldday=DateFormat.getDateInstance(DateFormat.SHORT);
    String s1=df_today.format(d1);
    String s2=df_oldday.format(d2);
    System.out.println(s1);
    System.out.println(s2);
    i=d1.compareTo(d2);
    System.out.println(i);
    thanks at advance

    If you call getTime on a Date object (yes, this is totally different from Calendar's getTime), you'll get the number of milliseconds since 1970-01-01 00:00:00 UTC. Therefore,
    d1.getTime() - d2.getTime()is the time difference in milliseconds. To convert it to days, simply divide by 86 400 000.

  • Comparing AWR data with baselines.

    Hello,
    I am studying AWR, which will be used in our project for performance analysis.
    My requirement is to create a baseline of load between 2 snapshots during normal system load. We perform load/stress testing before final deployment. We are planning to take snapshots before and after load/stress tests. I want to compare the performance of instance during load/stress test with that of baseline performance.
    Oracle provides package DBMS_WORKLOAD_REPOSITORY for different functions of AWR. It provides function CREATE_BASELINE function for creating baseline. But in report generation function AWR_REPORT_HTML or AWR_REPORT_TXT no parameter is specified for comparing it with the baseline.
    Is it possible to compare AWR data with baseline, during report generation? Or currently Oracle supports only baseline creation and dropping that baseline. It can not be used for performance comparison.
    Thanks,
    Shailesh

    Hi,
    Take a look on the note: 543188
    With rgds,
    Anil Kumar Sharma .P
    Kindly Assign the points to the helpful answers.
    Message was edited by: Anil Kumar Sharma

  • Comparing two dates and adding days to date

    Hi,
    I want to compare two dates(like 2006/10/21 and 2006/11/2),how can i compare these two dates,like which is greater.And if to the second date,i want to add some number of days like 10 days,how can i add so that the date becomes 2006/11/12).
    Please reply soon.Thanks

    No,all other queries are different,as they have the
    date in this format
    '2006-03-06 " but i have the date in this format
    "2006-03-06 10:26:46.0",
    i.e the time is also assciated with it.
    If I have only the date(in string format or date
    date format 2000/12/1),then I can easily do it,but
    I have the time also.If I have the date only,then I
    can split the date into three strings,and after
    converting into integer I can pass it to the
    constructor,but what about the time?SimpleDateFormat can parse "2006-03-06 10:26:46.0" date too:
               SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SS");
               Date date = dateFormat.parse("2006-03-06 10:26:46.0");
               System.out.println("date = "  +date);

  • Compare different project versions for material components?

    hi all,
    is it possible to display and compare different project versions for material components in different COLUMNS? i want to be able to view the data for each version in a different column.. currently i can view the different data per version but it is arranged  by ROW but i want to know if its possible to have different layout/report showing the different versions in separate columns
    Thanks in advance..
    Edited by: Ramesh on Sep 15, 2008 5:58 AM

    hi,
    thanks but this is not the report im looking for.. i wonder if its possible to show a report similar to CNMM or CN53N wherein the different project version data can be displayed side by side as columns?
    again, thanks in advance and regards..

  • "You can't compare a date with a number" in a formula that worked in Excel

    I opened in Numbers an invoice file which was created in Excel. Formula returns hours worked. It has an "if" condition for the date field. I am assuming that that is the reason I get this "You can’t compare a date with a number because their data types are different." What do I do?
    Formula reads =IF(SUM(A11)>0,(D11−C11),"") where A11 is a date and D11- C11 are times, ie 4PM and 5PM
    Message was edited by: iamzoran

    Jerrold Green1,
    I agree with your words about using Sum with a single cell [have no idea why the "creator" of the file did that]; same for the parentheses enclosing subtraction. Yet cleaning it up as you showed me [=IF(A11>0,D11−C11,"") ] I got the same comment
    "You can’t compare a date with a number because their data types are different."
    Makes me think that t quinn is on to something with his "think the issue is with the expression ">0". Could it be that >0 is the number referred to and <>"" and ISBLANK are not numbers?!
    z
    PS: I am so happy that I am able to use Spelling and Grammar Checker with Safari on these posts. I was born and raise in old Yugoslavia and I use the Checker with all my emails etc and its a life saver. hahaha

Maybe you are looking for

  • SharePoint 2013 and SQL Server 2014

    Does SharePoint 2013 supports SQL Server 2014 for Reporting Services, PowerPivot

  • Badi and user exit active at the same time ?

    Hi All, Please let me know whether 1> I can have a BADI and a user exit both active at the same time for the same enhancement? 2> I can have a BADI and a user exit both active at the same time but they are for different purpose.     eg: BADI       --

  • How to load svg (vector) image dinamicaly.

    Hallo! I tryed to load dinamicaly an image svg (.ai) into flash but I can't. At my level: 1) I know that flash can't import .svg file but it is possible convert svg in Adobe ilustrator .ai file; 2) I can import .ai file in flash with no problem; 3) I

  • How do I stop motion opening every project as untitled?

    Every project I create is seemingly saved as if it is a template.  I'm not publishing a template, just using "save as".  So when I open that project it is always opened as "untitled".  Then of course I have to save as and replace the original file et

  • Objects required when publishing inbound interface

    Hi We are publishing an inbound interface in SAP PI SR, and implementing proxy in ECC. What all objects do we need to create in PI. In ESR we will just need one inbound service interface, with request/response messages. - Do we need to have any other