Query to compare two different periods

hello, I want to compare two different periods and put together following query and wondering if this is the right way to do it:
WITH  MEMBER  [TotalForThePeriod] AS
 SUM( {[Date].[Calendar].[Date].&[20070101]:[Date].[Calendar].[Date].&[20070228]}
      , [Measures].[Internet Sales Amount]
MEMBER  [ThisMonth] AS
 SUM( {[Date].[Calendar].[Date].&[20070101]:[Date].[Calendar].[Date].&[20070131]}
      , [Measures].[Internet Sales Amount]
MEMBER  [NextMonth] AS
 SUM( {[Date].[Calendar].[Date].&[20070201]:[Date].[Calendar].[Date].&[20070228]}
      , [Measures].[Internet Sales Amount]
MEMBER [TotalForTherPeriod2] AS
   [ThisMonth] + [NextMonth]
SELECT 
 [Product].[Category].[Category],
//  [Measures].[Internet Sales Amount],
//  [Measures].[Internet Order Quantity]
  [TotalForThePeriod],
  [ThisMonth],
  [NextMonth],
  [TotalForTherPeriod2]
) ON COLUMNS
  [Sales Territory].[Sales Territory Country].Members
}  ON ROWS
FROM [Adventure Works] 
mark it as answer if it answered your question :)

Hi Parry2k,
According to your description, you want to compare the sales of two different periods. Right?
Based on your query, both the Period1 and Period2 are from 20070101 to 20070228. They are same period, so it supposed to return same sales value on that two columns. Your query is right to me.
If you have any question, please feel free to ask.
Simon Hou
TechNet Community Support

Similar Messages

  • Execute the same query twice, get two different results

    I have a query that returns two different results:
    Oracle Version : 10.2.0.1.0
    I am running the following query on the Oracle server in SQL*Plus Worksheet.
    SELECT COUNT(*)
    FROM AEJOURNAL_S1
    WHERE CHAR_TIME BETWEEN TO_DATE('12-AUG-10 01:17:39 PM','DD-MON-YY HH:MI:SS AM') AND
    TO_DATE('13-AUG-10 14:17:34','DD-MON-YY HH24:MI:SS')
    AND DESC2 LIKE '%'
    AND DESC1 LIKE '%'
    AND DESC2 LIKE '%'
    AND ETYPE LIKE '%'
    AND MODULE LIKE '%'
    AND LEVELL = '11-WARNING'
    ORDER BY ORDD DESC;
    The very first time the query is run, it will return a count of 259. The next time the query is run, lets say, 10 seconds later, it will return a count of 260. The above query is exemplary of the kind of thing I'm trying to do. It seems like the more fields filtered against '%', the more random the count return becomes. Sometime you have to execute the query three or four times before it levels out to a consistent number.
    I'm using '%' as the default for various fields, because this was the easiest thing to do to support a data-driven Web interface. Maybe I have to 'dynamically' build the entire where clause, instead of just parameterizing the elements and having default '%'. Anyway, to eliminate the web interface for the purpose of troubleshooting the above query was run directly on the Oracle server.
    This query runs against a view. The view does a transpose of data from a table.
    Below is the view AEJOURNAL_S1
    SELECT
    CHAR_TIME,
    CHAR_INST,
    BATCH_ID,
    MIN(DECODE(CHAR_ID,6543,CHAR_VALUE)) AS ORDD,
    MIN(DECODE(CHAR_ID,6528,CHAR_VALUE)) AS AREAA,
    MIN(DECODE(CHAR_ID,6529,CHAR_VALUE)) AS ATT,
    COALESCE(MIN(DECODE(CHAR_ID,6534,CHAR_VALUE)),'N/A') AS CATAGORY,
    MIN(DECODE(CHAR_ID,6535,CHAR_VALUE)) AS DESC1,
    MIN(DECODE(CHAR_ID,6536,CHAR_VALUE)) AS DESC2,
    MIN(DECODE(CHAR_ID,6537,CHAR_VALUE)) AS ETYPE,
    MIN(DECODE(CHAR_ID,6538,CHAR_VALUE)) AS LEVELL,
    MIN(DECODE(CHAR_ID,6539,CHAR_VALUE)) AS MODULE,
    MIN(DECODE(CHAR_ID,6540,CHAR_VALUE)) AS MODULE_DESCRIPTION,
    MIN(DECODE(CHAR_ID,6541,CHAR_VALUE)) AS NODE,
    MIN(DECODE(CHAR_ID,6542,CHAR_VALUE)) AS STATE,
    MIN(DECODE(CHAR_ID,6533,CHAR_VALUE)) AS UNIT
    FROM CHAR_BATCH_DATA
    WHERE subbatch_id = 1774
    GROUP BY CHAR_TIME, CHAR_INST, BATCH_ID
    So... why does the query omit rows on the first execution? Is this some sort of optimizer issue. Do I need to rebuild indexes? I looked at the indexes, they are all valid.
    Thanks for looking,
    Dan

    user2188367 wrote:
    I have a query that returns two different results:
    Oracle Version : 10.2.0.1.0
    I am running the following query on the Oracle server in SQL*Plus Worksheet.
    SELECT COUNT(*)
    FROM AEJOURNAL_S1
    WHERE CHAR_TIME BETWEEN TO_DATE('12-AUG-10 01:17:39 PM','DD-MON-YY HH:MI:SS AM') AND
    TO_DATE('13-AUG-10 14:17:34','DD-MON-YY HH24:MI:SS')
    AND DESC2 LIKE '%'
    AND DESC1 LIKE '%'
    AND DESC2 LIKE '%'
    AND ETYPE LIKE '%'
    AND MODULE LIKE '%'
    AND LEVELL = '11-WARNING'
    ORDER BY ORDD DESC;
    The very first time the query is run, it will return a count of 259. The next time the query is run, lets say, 10 seconds later, it will return a count of 260. The above query is exemplary of the kind of thing I'm trying to do. It seems like the more fields filtered against '%', the more random the count return becomes. Sometime you have to execute the query three or four times before it levels out to a consistent number.
    I'm using '%' as the default for various fields, because this was the easiest thing to do to support a data-driven Web interface. Maybe I have to 'dynamically' build the entire where clause, instead of just parameterizing the elements and having default '%'. Anyway, to eliminate the web interface for the purpose of troubleshooting the above query was run directly on the Oracle server.
    This query runs against a view. The view does a transpose of data from a table.
    Below is the view AEJOURNAL_S1
    SELECT
    CHAR_TIME,
    CHAR_INST,
    BATCH_ID,
    MIN(DECODE(CHAR_ID,6543,CHAR_VALUE)) AS ORDD,
    MIN(DECODE(CHAR_ID,6528,CHAR_VALUE)) AS AREAA,
    MIN(DECODE(CHAR_ID,6529,CHAR_VALUE)) AS ATT,
    COALESCE(MIN(DECODE(CHAR_ID,6534,CHAR_VALUE)),'N/A') AS CATAGORY,
    MIN(DECODE(CHAR_ID,6535,CHAR_VALUE)) AS DESC1,
    MIN(DECODE(CHAR_ID,6536,CHAR_VALUE)) AS DESC2,
    MIN(DECODE(CHAR_ID,6537,CHAR_VALUE)) AS ETYPE,
    MIN(DECODE(CHAR_ID,6538,CHAR_VALUE)) AS LEVELL,
    MIN(DECODE(CHAR_ID,6539,CHAR_VALUE)) AS MODULE,
    MIN(DECODE(CHAR_ID,6540,CHAR_VALUE)) AS MODULE_DESCRIPTION,
    MIN(DECODE(CHAR_ID,6541,CHAR_VALUE)) AS NODE,
    MIN(DECODE(CHAR_ID,6542,CHAR_VALUE)) AS STATE,
    MIN(DECODE(CHAR_ID,6533,CHAR_VALUE)) AS UNIT
    FROM CHAR_BATCH_DATA
    WHERE subbatch_id = 1774
    GROUP BY CHAR_TIME, CHAR_INST, BATCH_ID
    So... why does the query omit rows on the first execution? Is this some sort of optimizer issue. Do I need to rebuild indexes? I looked at the indexes, they are all valid.
    Thanks for looking,
    DanIn fact you the first time you ran the query the data has been retrived from disk to memory , in the second time the data is already in memory so the respnse time should be faster ,but if you chagne any condition or column or letter case the optimizer will do the first step (data will be retrived from disk to memory )

  • How tp compare two different programs

    Hi ,
    I have created a copy of a standard report , but both are giving outputs in different ways , the layout of the newly created report is distorted .
    Can someone advice of there is any way to compare two different reports in the same environment
    Regards
    Ashish

    Hi
    As I m new to this transcation ,
    Can you please advice what parameters do i need to enter to compare the std report & Z report in tcode SCu0.

  • Query to compare 2 different tables from 2 different database

    Is it possible to write a SQL query to compare 2 Tables from 2 different Oracle Database. Also I need a query to do the same when the database is same.
    Thanks in advance

    OK, well "compare" can mean one of two things: Compare structure or compare contents. Here is a quick script to compare column structures of two tables on one database:
    (select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:OWNR1
    and table_name = :tablename
    minus
    select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:ownr2
    and table_name = :tablename)
    union all
    (select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:ownr2
    and table_name = :tablename
    minus
    select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:ownr1
    and table_name = :tablename)
    If this query returns any rows, then these indicate that there are structural differences between the tables. We do a minus in both directions to ensure that an additional column in either schema will be returned in the query.
    If you are going across dblinks to remote tables then you have to amend the "dba_tab_columns" to "sys.dba_tab_columns@yourdblink"
    If you also want to compare indexes, triggers, etc then do the same sort of thing for the associated dba_ views for those objects.
    And if you want to compare table contents, then often the fastest way is also to check minuses in both directions, if the tables are not too big:
    e.g.
    (select * from schema1.table@dblink1
    minus
    select * from schema2.table@dblink2)
    union all
    (select * from schema2.table@dblink2
    minus
    select * from schema1.table@dblink1)
    local tables, of course, simply omit the "@dblink" issues.
    There are tools to help in such things. TOAD, for example, has a pretty good schema comparison tool, and there are plenty of other options out there. But if you need to script this yourself then the logic I've shown is a good starting point.
    Cheers,
    Mike

  • SCCM Query to merge two different collections to one

    Hi Team,
    I wanted to merge two different collections e.g. NY and LA collection in one single all US Collection. I wanted to see all PCs under US collection. NY and LA computers are manually updated in collection i cannt use there query. 
    Waiting for your response.

    If you already have to two collections you can do something like this
    select
    SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client
    from SMS_R_System where SMS_R_System.ResourceId in (select ResourceId from
    SMS_CM_RES_COLL_XXXXXXX) or SMS_R_System.ResourceId in (select ResourceId from
    SMS_CM_RES_COLL_XXXXXXX)
    John Marcum | http://myitforum.com/myitforumwp/author/johnmarcum/

  • How to compare two different environments

    Can any please tell me how to compare two environments like DEVL to TEST?
    I know how to compare a project(like DEVL to TEST) but i want to see all the changes in all the objects between two different environments.
    Please help me.
    Thank you.

    That is really a good piece of information.
    Does it really matter where we are comparing from?
    i will explain,let us say we have DEV and TST environment.
    let us say both has same project name and the same number of objects but inside the object they may be different(like number of fields in the same record in both environments).
    Now we want to have a compare report between those environments.
    We can do in two different ways, right?
    (1. source DEV, Target TST)
    (2. source TST, Target DEV)
    will the result get changed in both the cases?
    (except like following)
    (first case souce target)
    ( absent *changed)
    (second case would be like following)
    ( souce target)
    ( *changed  absent)
    (but i gess the number of rows in both the cases does not get changed)
    let me know if you can not understand the question. sorry about the confusing explanation

  • To compare two different reports

    Hi!
    Iu2019ve just started in a new work and I have an important task to do. So, I need to know if there is
    some method to compare two reports. Let me explain:
    We receive reports from Oracle and from SQL Server: two different reports with the same information. I need to compare them in order to know if the information exactly is the same or not.
    Does someone know any tool to do that or do I have to revise each one by hand?

    May beu2026 Business Object u2013 Crystal Reports can explain us how is a report built and how we can find the u201Cdata sourcesu201D. If it can beu2026 I will be able to make a program to compare the u201Cdata fieldsu201D in two, three, four,u2026 reports.
    It will be very useful to compare if two reports have the same u201Cdata fieldsu201D or, two directories have the same number of reports and everyone in the first folder have the consequent in the second folder.
    Of course, when I talking about folders, Iu2019m want to say two folders who contains reports but each folder have reports linked to different DBMS (Oracle, SQL Server,u2026).
    Edited by: Carles Hernández on Jan 13, 2009 5:03 PM
    Edited by: Carles Hernández on Jan 13, 2009 5:05 PM

  • How to compare two different characteristics at the same time in polestar

    Hi Gurus,
    I would like to analyse the e fashion universe in polestar with comparison of previous year product line with current year product line at the same time.
    is there any way to do that we can compare two years of the product line sales revenue at the same time with comparison chart like 2003 T shirts vs 2002 T shirts 
    in polestar we can compare the two measures at the same time but i want to compare the sales revenue of product lines of two years in a comparison chart at the same time.
    Regards and thanks
    Abid Paul

    Hi Stratos,
    I am actually able to compare the Measures  but i want the comparison between the two different characteristics like this year  productline  vs last year productline at the same time with say one measure like sales revenue or any other.
    Is it possible to compare the both and it should represent in the chart as well at the same time.
    In the polestar i can compare three measures at the same time but i want to compare characteristics like year  2009 productline VS 2008 productline with one measure say sales revenue.
    I would really appreciate if you could help me out.
    Regards and thanks
    Abid

  • Compare two different iPhoto Libraries

    Is there any program that could compare two iPhoto Libraries and let me know the difference between them? I've got two libraries, they should have the same pictures, but for some reason one is 80GB bigger than the other one.
    I know there are duplicates, but 80GB seems a lot for only duplicates, so I want to compare both of them and see what pictures are missing.

    How many photos does iPhoto indicate in each of the libraries? Open the Photo mode, do a select all and see how many are indicated at the bottom of the window. See if that corresponds to the number beside the Photos icon under the Events library. Be sure to turn on Item Counts in iPhoto's General preference pane.
    Which is the larger: the old or the new?
    OT

  • Query for comparing two columns in two tables

    Hai, all,
    I have following two tables and columns, I need to get the rows (all columns) from scott.cp_ip which are not ( the same value present in t1 and also in t2).
    Table scott.cp_ip column cp_ip.vrno = Table scott.cb1 column cb1.cb_vnno
    I used the following query and did not get the correct result:
    select * from scott.cp_ip where cp_ip.vrno in (select cb1.cb_vnno from scott.cb1);
    Can you please tell how it can be solved?
    Thanks in advance.
    Rcs
    SQL> desc scott.cb1;
    Name Null? Type
    ID NUMBER
    SUPCODE NUMBER
    SUPLNAME VARCHAR2(100)
    NAME VARCHAR2(100)
    ITEMCODE VARCHAR2(10)
    RECDOC NUMBER
    RECDATE VARCHAR2(10)
    TOTVALUE NUMBER
    QTY NUMBER
    CB_IPNO NUMBER
    CB_VNNO NUMBER
    CB_VDT VARCHAR2(10)
    CB_AMT NUMBER
    SQL> desc scott.cp_ip;
    Name Null? Type
    ID NUMBER
    VRNO NUMBER
    CODE VARCHAR2(50)
    HEAD VARCHAR2(255)
    PARTI VARCHAR2(255)
    CR NUMBER
    SQL> select * from scott.cp_ip
    2 intersect
    3 select * from scott.cb1;
    select * from scott.cp_ip
    ERROR at line 1:
    ORA-01789: query block has incorrect number of result columns
    SQL> (select * from scott.cp_ip
    2 minus
    3 select * from scott.cb1)
    4 union all
    5 (select * from scott.cb1
    6 minus
    7 select * from scott.cp_ip);
    (select * from scott.cb1
    ERROR at line 5:
    ORA-01789: query block has incorrect number of result columns
    SQL> select * from scott.cp_ip where cp_ip.vrno in (select cb1.cb_vnno from scott.cb1);
    result=instead of 1408 rows, 1481 rows (excess 73 rows) getting!
    ----------

    Instead of SELECT * write only the column that you want to compare. I guess that would be cb1.cb_vnno and cp_ip.vrno.

  • Compare two different WA.

    Hi Team, I need a help on a topic in ABAP where I need to compare all fields of 2 different Work Areas and for any discrepancy in a particular field.
    I need to highlight in a different color.
    It would not be advisable to compare each field of both Work Areas as numbers of fields are more than 40. Please suggest. 
    I have attached a sample over here. Thanks in advance.

    I just made this report for you.....
    REPORT ztest_gb1.
    DATA: wa_1 TYPE t001,
           wa_2 TYPE t001.
    DATA: rf_descr_ref TYPE REF TO cl_abap_typedescr.
    FIELD-SYMBOLS: <fs1> TYPE any,
                    <fs2> TYPE any.
    START-OF-SELECTION.
       SELECT * FROM t001 INTO wa_1
       UP TO 1 ROWS.
       ENDSELECT.
       wa_2 = wa_1.
    *forcefully changing variable to test
       wa_2-stceg = '1'.
       DO.
    * Assign every field of this structure subsequently to the untyped
    *fieldsymbol.
    *    BREAK-POINT.
         ASSIGN COMPONENT sy-index OF STRUCTURE wa_1 TO <fs1>.
         IF sy-subrc NE 0.
           EXIT.
         ENDIF.
         ASSIGN COMPONENT sy-index OF STRUCTURE wa_2 TO <fs2>.
         IF sy-subrc NE 0.
           EXIT.
         ENDIF.
         IF <fs1> NE <fs2>.
    *      mismatch found.
           CALL METHOD cl_abap_typedescr=>describe_by_data
             EXPORTING
               p_data      = <fs1>
             RECEIVING
               p_descr_ref = rf_descr_ref.
           WRITE: / sy-index, rf_descr_ref->type_kind,
           rf_descr_ref->absolute_name.
         ENDIF.
       ENDDO.
    It should give an output like
            14  C
    \TYPE=STCEG

  • SCCM 2007 Query to compare two machines and their collections

    I need a query/report in sccm to run against two machines.  One has the base image and standard applications, the other will have the base image plus additional applications installed from the RAP menu.  I'd like to query the two and find the difference
    between their add/remove programs, and also add the Package ID.  
    I found this query below, but it doesnt display the Package ID, which I'd like to have as well.
    Ultimately, I'd love the result to filter out the common aplications and only show what's missing from the base machine Vs the full-blown machine.
    ************* SQL STATEMENT BELOW HERE ************
    SELECT     one.Computer1Name AS [Computer 1 Name], one.Computer1Display AS [Display Name], one.Version0, two.Computer2Name AS [Computer 2 Name], 
                          two.Computer2Display AS [Display Name], two.Version0
    FROM         (SELECT     v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 AS Computer1Display, v_R_System.Netbios_Name0 AS Computer1Name, 
                                                  v_GS_ADD_REMOVE_PROGRAMS.Version0, v_GS_ADD_REMOVE_PROGRAMS.InstallDate0
                           FROM          v_GS_ADD_REMOVE_PROGRAMS INNER JOIN
                                                  v_R_System ON v_GS_ADD_REMOVE_PROGRAMS.ResourceID = v_R_System.ResourceID
                           WHERE      (v_R_System.Netbios_Name0 = @Computer1) AND (v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 IS NOT NULL)) 
                          AS one FULL OUTER JOIN
                              (SELECT     v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 AS Computer2Display, v_R_System_1.Netbios_Name0 AS Computer2Name, 
                                                       v_GS_ADD_REMOVE_PROGRAMS_1.Version0, v_GS_ADD_REMOVE_PROGRAMS_1.InstallDate0
                                FROM          v_GS_ADD_REMOVE_PROGRAMS AS v_GS_ADD_REMOVE_PROGRAMS_1 INNER JOIN
                                                       v_R_System AS v_R_System_1 ON v_GS_ADD_REMOVE_PROGRAMS_1.ResourceID = v_R_System_1.ResourceID
                                WHERE      (v_R_System_1.Netbios_Name0 = @Computer2) AND (v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 IS NOT NULL)) AS two ON 
                          one.Computer1Display = two.Computer2Display
    ORDER BY [Computer 1 Name], [Computer 2 Name]

    This is as close that I managed to get.....
    SELECT     one.Computer1Name AS [Computer 1 Name], one.Computer1Display AS [Display Name], two.Computer2Name AS [Computer 2 Name], 
                          two.Computer2Display AS [Display Name]
    FROM         (SELECT     v_Advertisement.PackageID, v_ClientAdvertisementStatus.AdvertisementID, v_R_System.Netbios_Name0 AS Computer1Name, 
                                                  v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 AS Computer1Display
                           FROM          v_R_System INNER JOIN
                                                  v_GS_ADD_REMOVE_PROGRAMS ON v_R_System.ResourceID = v_GS_ADD_REMOVE_PROGRAMS.ResourceID INNER JOIN
                                                  v_ClientAdvertisementStatus ON v_GS_ADD_REMOVE_PROGRAMS.ResourceID = v_ClientAdvertisementStatus.ResourceID
    INNER JOIN
                                                  v_Advertisement ON v_ClientAdvertisementStatus.AdvertisementID = v_Advertisement.AdvertisementID
                           WHERE      (v_R_System.Netbios_Name0 = @Computer1) AND (v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 IS NOT NULL)) AS one FULL OUTER JOIN
                              (SELECT     v_Advertisement_1.PackageID, v_ClientAdvertisementStatus_1.AdvertisementID, v_R_System_1.Netbios_Name0 AS Computer2Name, 
                                                       v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 AS Computer2Display
                                FROM          v_R_System AS v_R_System_1 INNER JOIN
                                                       v_GS_ADD_REMOVE_PROGRAMS AS v_GS_ADD_REMOVE_PROGRAMS_1 ON 
                                                       v_R_System_1.ResourceID = v_GS_ADD_REMOVE_PROGRAMS_1.ResourceID INNER JOIN
                                                       v_ClientAdvertisementStatus AS v_ClientAdvertisementStatus_1 ON 
                                                       v_GS_ADD_REMOVE_PROGRAMS_1.ResourceID = v_ClientAdvertisementStatus_1.ResourceID
    INNER JOIN
                                                       v_Advertisement AS v_Advertisement_1 ON v_ClientAdvertisementStatus_1.AdvertisementID
    = v_Advertisement_1.AdvertisementID
                                WHERE      (v_R_System_1.Netbios_Name0 = @Computer2) AND (v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 IS NOT NULL)) AS two ON 
                          one.Computer1Display = two.Computer2Display
    ORDER BY [Computer 1 Name], [Computer 2 Name]

  • XML file being written to and queried are in two different language dir

    I have a script that writes out an XML file and will read it back for checking purposes. I then have a different  script that will read the XML file and act upon it (in this case for Open, Closed for Severe wWeather, Closed for Holiday, etc). What happens is that when I write to the XML file the file is put into the Documant Management/en_US folder. When I try to red from the file it reads from the Document Management/en folder (which is proabably a hold over from our previous versions).
    So, I look into the System/Language area and see that the IVR language configuration is en_US and the Default IVR Configuration Language is set to en. So, I changed the second one to be en_US.
    Now, when I try to read the file it reads from the en_US folder so everything looks great. But, now when I try to write the file it writes to the en folder.
    If I switch the Default IVR Configuration Language back to en, everything goes back to how it worked at the beginning of the note.
    So, I have been fighting with this for a few days now and cannot figure out why the system will not read and write from/to the same folder. Can anyone come up with a reason? I see nothing in the scripts that specify a different folder so I am utterly confused. With it jumping between folders I feel like I am in some Abbott and Costello film....
    Thanks for any help
    Dave

    The good news is we can be lazy but first to check one more thing: Is your Trigger set to use the System Default language, en_US, or en?  If it's set to en that might explain the inconsistancy.
    Now the lazy part: when the engine cannot find a document in en_US it is supposed to auto-search the en and then default folders as well. So, you should be able to let it write to en and read from en_US because when it doesn't find it in en_US it should go look in en and then default anyways.
    If none of that is working either then I declare shenanigans, I mean defect! Time to open a TAC SR.
    Please remember to rate helpful responses and identify helpful or correct answers.

  • BAPI or FM to compare two different invoices

    Hi,
    Is there any BAPI or FM to compare latest invoice with previous month's invoice. When a customer calls for high bill inquires (via IVR) we want a program to compare previous bills (by line item or document type) and populate the reason like. due to dunning charges or Interest charges etc. etc.
    Appreciate your responses!
    Thanks,
    Aravind

    Hi Aravind,
    Select all the values from table ERDK based on Business Partner or Contract account level using FM ISU_S_ERDK_SELECT_ALL
    Pass the previous invoice to FM ISU_IMPORT_PRINTDOC_FROM_MEM to get the data from memory.
    If not available, get detail from the database using FM ISU_DB_BUF_PRINT_DOC_SINGLE  in parameter Y_PRINT_DOC.
    Regards,
    Sudeep Singh

  • Inventory of two different periods

    I am looking for a clarification.
    In the last month, we released the costing run and the standard price of the FG was updated.  Aftr that production was carried out and the goods were received in the store.  That inventory was valued as per the price released last month.
    Now this month agagin, costing was run and the price of the same FG was released.  After that production was done and the goods were received in the store.  Obviously this month the inventory is valued as per the current price released this month.
    Now, in the store, Finished goods pertaining to last month and this month are lying.  Now sale order is processed for 200 quantity of the FG (100 from last month production +100 from this month production). 
    Now, in the sale order, how the system will differentiate the inventory value separately for the 100 of last month and 100 of this month ?

    From Valution Prespective
    If your price control is "S" Standard .. then whenver you can the standard price .. the existing stock will be valued at new standard price and the revalution value will be adjusted in the P&L.
    For Example = In Sept ": stock 100 , Rate : 1 . Value is Rs100
    In Oct = Rate = 1.1 , Stock = 100 .. Value = Rs110/- . Difference 10 will be adjusted in P & L.
    If your price control is "V" Moving average .. then Moving Avg price will be considered..
    From Batch Determination Prespective.
    Whatever batch determination rule is set in SD module.. system will pick that . If FIFO methord is used , stock of last month will be picked first.
    Regards
    Sarada

Maybe you are looking for

  • Unable to initialize database

    I am installing a clean install of LiveCycle ES using: Windows 2008 WebSphere v7 DB2 9.5 Everything appears to run properly until I get to the Database initialization part when I get an error and can no longer move forward.  I have looked at the coup

  • Photoshop window does not display unless connected to external monitor

    I use a MBP connected it to an Apple Cinema Display used as an external monitor (not a dual display) when in my studio. When I use Adobe Photoshop CS 5 without the monitor the image window does not display on the MBP. If I plug the external monitor i

  • Hos do I get rid of bullets on the printed page of laserjerjet 1020?

    Regardless of the print job, my Laserjet 1020 always prints unwanted bullets down the left margin.

  • Out of memory Exception - Citrix

    In our organization we have about 200 Primavera users, we deliver the application via a farm of 3 load balanced Citrix servers. The database sits on Oracle 10g. We recently upgraded to P6.2.1. The upgrade was successful except that users sometimes re

  • Coherence *Extend-TCP configuration not working

    Hi,      I was trying to setup the Coherence *Extend-TCP configuration on my solaris box.      To start with, i'm trying to start a Cache server instance by using the cluster-side configuration XML (given at URL below)      http://wiki.tangosol.com/d