PLMD_AUDIT - Produce different smartforms for Audit dependant on Audit Type

HI,
This is a new module for us so we are looking for help!
We have created our own smartform, ZPLM_AUDIT, to be produced for an audit. This all works well.
However, we would now like to produce a different form for a different Audit type.
How do we determine which form to use? There seems to only be space in config for one form name. We have found SAP Note 432642 and followed the instructions but the note does not tell us how to use the class we create.
If anyone has any experience in this area, we would be very grateful for your help.
Thanks,
Jan
Edited by: Jan on Dec 21, 2010 11:48 AM

Hey Jan
I am facing the same issue. Can you help how did you identified the audit type in this method . Also let me know what code u wrote in your enahcement .
Thanks

Similar Messages

  • To assign smartform for bid invetation to transaction type of BidInvitation

    Hi friends!
    Could you tell me if it is possible assign output format(BBP_BID_INVITATION) for bid invetation to transaction type of Bid Invitation?
    Thanks.

    Hi,
    You need to implement the BADI  BBP_OUTPUT_CHANGE_SF
    There you can implement the logic that you need for your business process, for example:
    You have different transaction types for BID INVITATION (ZXX1, ZYY1, ZWW1) and you want to use different smartforms for each one, then you need
    1. Create the different smartforms with the transaction SMARTFORMS (for the bid invitation you can make a copy from the standar smartform BBP_BID_INVITATION which includes the structures and tables for the bid invitation then you don´t need to create a complete smartform)
    2. Implement the BADI BBP_OUTPUT_CHANGE_SF with the transaction se18 or se19 or SPRO --> Supplier Relationship Management --> Cross aplication Basic Data --> Business Ad Ins (BadIs) --> Document Output --> Change Forms for document Output.
    there you need to implement your own Ligic, use the method and parameters as i mention below.
    Method: CHANGE_FORMS
    Parameter: CV_SMARTFORM
    Parameter: CV_SMARTFORM_MAIL
    Parameter:CV_SUBJECT_MAIL
    Code Example:
    DATA: wa_header_bid     TYPE          bbp_pds_header.
    For getting the document
      CALL FUNCTION 'BBP_PROCDOC_GETDETAIL'
        EXPORTING
          i_guid         = iv_guid
        i_object_id    =
          i_object_type  = iv_object_type
        IMPORTING
          e_header       = wa_header_bid.
      IF iv_object_type = 'BUS2200'   Bus for the Bid Invitation
      IF wa_header_bid-process_type = 'ZXX1'.
           cv_smartform = 'smartform name 1'.
           cv_smartform_mail = 'text body for the email 1'.
           cv_subject_mail = 'text subject for the mail 1'.
       ELSEIF wa_header_bid-process_type = 'ZYY1'.
                      cv_smartform = 'smartform name 2'.
                      cv_smartform_mail = 'text body for the email 2'.
                      cv_subject_mail = 'text subject for the mail 2'.
                ELSEIF wa_header_bid-process_type = 'ZWW1'.
                         cv_smartform = 'smartform name 3'.
                         cv_smartform_mail = 'text body for the email 3'.
                         cv_subject_mail = 'text subject for the mail 3'.
        ENDIF.
    ENDIF.
    That's all

  • Process emthod in RT.jar producing different result for the same input

    Hi All
    I'm using the process method to manage my prcoess and Runtime to run a command, on onc pc it works fine but on the other it dosen't even though the input are the same, both pc are windows xp. Also there is a debug options which uses log4j, when that is set to true it adds more logging to the code and the code works fine if that is turned on (but there is not a different course of action if debug mode is on, just more logging i.e. if debug.enabled logInfo("more loggin").
    ============Code in question=========
    Process proc;
    proc = Runtime.getRuntime().exec(cmd,envParameters,this.execDir);
    =============Variables=============
    this     ExecCommand (id=6673)     
         async     false     
         cmd     String[7] (id=6674)     
              [0]     "cleartool"     
              [1]     "deliver"     
              [2]     "-str"     
              [3]     "stream:Experiments_Dev@\experiment"     
              [4]     "-pre"     
              [5]     "-target"     
              [6]     "stream:Experiment_Int@\experiment"     
         completed     0     
         envParameters     null     
         execDir     File (id=6672)     
              path     "M:\Experiments_Dev"     
              prefixLength     3     
         executer     DeliverHandler (id=6675)     
         inputHandler     null     
         proc     null     
         sendStream     null

    the rest of the code
    ==========================Code===========================
                   if (log.isDebugEnabled())
                   StringBuffer cmdLine = new StringBuffer("Executing : ");
                        for (int i = 0; i < cmd.length; i++) {
                             cmdLine.append(cmd);
                             cmdLine.append(" ");
                        log.debug(cmdLine);
                   proc = Runtime.getRuntime().exec(cmd,envParameters,this.execDir);
                   StreamGobbler procOutput = new StreamGobbler(proc.getInputStream(),false);
                   StreamGobbler procError = new StreamGobbler(proc.getErrorStream(),true);
                   sendStream = proc.getOutputStream();
                   procOutput.start();
                   procError.start();
    ================code======================

  • SQL Query produces different results when inserting into a table

    I have an SQL query which produces different results when run as a simple query to when it is run as an INSERT INTO table SELECT ...
    The query is:
    SELECT   mhldr.account_number
    ,        NVL(MAX(DECODE(ap.party_sysid, mhldr.party_sysid,ap.empcat_code,NULL)),'UNKNWN') main_borrower_status
    ,        COUNT(1) num_apps
    FROM     app_parties ap
    SELECT   accsta.account_number
    ,        actply.party_sysid
    ,        RANK() OVER (PARTITION BY actply.table_sysid, actply.loanac_latype_code ORDER BY start_date, SYSID) ranking
    FROM     activity_players actply
    ,        account_status accsta
    WHERE    1 = 1
    AND      actply.table_id (+) = 'ACCGRP'
    AND      actply.acttyp_code (+) = 'MHLDRM'
    AND      NVL(actply.loanac_latype_code (+),TO_NUMBER(SUBSTR(accsta.account_number,9,2))) = TO_NUMBER(SUBSTR(accsta.account_number,9,2))
    AND      actply.table_sysid (+) = TO_NUMBER(SUBSTR(accsta.account_number,1,8))
    ) mhldr
    WHERE    1 = 1
    AND      ap.lenapp_account_number (+) = TO_NUMBER(SUBSTR(mhldr.account_number,1,8))
    GROUP BY mhldr.account_number;      The INSERT INTO code:
    TRUNCATE TABLE applicant_summary;
    INSERT /*+ APPEND */
    INTO     applicant_summary
    (  account_number
    ,  main_borrower_status
    ,  num_apps
    SELECT   mhldr.account_number
    ,        NVL(MAX(DECODE(ap.party_sysid, mhldr.party_sysid,ap.empcat_code,NULL)),'UNKNWN') main_borrower_status
    ,        COUNT(1) num_apps
    FROM     app_parties ap
    SELECT   accsta.account_number
    ,        actply.party_sysid
    ,        RANK() OVER (PARTITION BY actply.table_sysid, actply.loanac_latype_code ORDER BY start_date, SYSID) ranking
    FROM     activity_players actply
    ,        account_status accsta
    WHERE    1 = 1
    AND      actply.table_id (+) = 'ACCGRP'
    AND      actply.acttyp_code (+) = 'MHLDRM'
    AND      NVL(actply.loanac_latype_code (+),TO_NUMBER(SUBSTR(accsta.account_number,9,2))) = TO_NUMBER(SUBSTR(accsta.account_number,9,2))
    AND      actply.table_sysid (+) = TO_NUMBER(SUBSTR(accsta.account_number,1,8))
    ) mhldr
    WHERE    1 = 1
    AND      ap.lenapp_account_number (+) = TO_NUMBER(SUBSTR(mhldr.account_number,1,8))
    GROUP BY mhldr.account_number;      When run as a query, this code consistently returns 2 for the num_apps field (for a certain group of accounts), but when run as an INSERT INTO command, the num_apps field is logged as 1. I have secured the tables used within the query to ensure that nothing is changing the data in the underlying tables.
    If I run the query as a cursor for loop with an insert into the applicant_summary table within the loop, I get the same results in the table as I get when I run as a stand alone query.
    I would appreciate any suggestions for what could be causing this odd behaviour.
    Cheers,
    Steve
    Oracle database details:
    Oracle Database 10g Release 10.2.0.2.0 - Production
    PL/SQL Release 10.2.0.2.0 - Production
    CORE 10.2.0.2.0 Production
    TNS for 32-bit Windows: Version 10.2.0.2.0 - Production
    NLSRTL Version 10.2.0.2.0 - Production
    Edited by: stevensutcliffe on Oct 10, 2008 5:26 AM
    Edited by: stevensutcliffe on Oct 10, 2008 5:27 AM

    stevensutcliffe wrote:
    Yes, using COUNT(*) gives the same result as COUNT(1).
    I have found another example of this kind of behaviour:
    Running the following INSERT statements produce different values for the total_amount_invested and num_records fields. It appears that adding the additional aggregation (MAX(amount_invested)) is causing problems with the other aggregated values.
    Again, I have ensured that the source data and destination tables are not being accessed / changed by any other processes or users. Is this potentially a bug in Oracle?Just as a side note, these are not INSERT statements but CTAS statements.
    The only non-bug explanation for this behaviour would be a potential query rewrite happening only under particular circumstances (but not always) in the lower integrity modes "trusted" or "stale_tolerated". So if you're not aware of any corresponding materialized views, your QUERY_REWRITE_INTEGRITY parameter is set to the default of "enforced" and your explain plan doesn't show any "MAT_VIEW REWRITE ACCESS" lines, I would consider this as a bug.
    Since you're running on 10.2.0.2 it's not unlikely that you hit one of the various "wrong result" bugs that exist(ed) in Oracle. I'm aware of a particular one I've hit in 10.2.0.2 when performing a parallel NESTED LOOP ANTI operation which returned wrong results, but only in parallel execution. Serial execution was showing the correct results.
    If you're performing parallel ddl/dml/query operations, try to do the same in serial execution to check if it is related to the parallel feature.
    You could also test if omitting the "APPEND" hint changes anything but still these are just workarounds for a buggy behaviour.
    I suggest to consider installing the latest patch set 10.2.0.4 but this requires thorough testing because there were (more or less) subtle changes/bugs introduced with [10.2.0.3|http://oracle-randolf.blogspot.com/2008/02/nasty-bug-introduced-with-patch-set.html] and [10.2.0.4|http://oracle-randolf.blogspot.com/2008/04/overview-of-new-and-changed-features-in.html].
    You could also open a SR with Oracle and clarify if there is already a one-off patch available for your 10.2.0.2 platform release. If not it's quite unlikely that you are going to get a backport for 10.2.0.2.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Analytic function should produce different results

    Hi All
    My question is derived by a usage of the analytic functions with "sliding window". Let's say you have a table as
    GROUP_ID SEQ VALUE
    1 1 1
    1 1 2
    2 2 3
    2 3 4
    Then the query
    select sum( value ) over ( partition by group_id order by group_id, seq ) from a_table
    should produce different values for different runs because rows 1,2 have the same value of SEQ. One run may produce 2 then 1 another one may produce 1 then 2.
    I need to prove it if the statement above is true. Oracle caches data so if run it several times you will see the same result.
    Thanks.

    Why are you using group_id twice, in partition and order by? And why would several "runs" on the same data provide different results?
    C.

  • Monthly purchase value,depending on condition type used.

    Can we search for PO,depending on condition type used in the PO.eg. we are using a condition ZENT for entry tax and
    the requirement is to search the po containing that ZENT condition.In dynamic selection mode there is condition group in
    purchase order detail,but it is not selecting the required PO.please guide.

    Hi,
    This requirement is not possible in std SAP Report.
    You need to develop a Z report with the help of ABAPers.
    Give proper logic for them for creating this req.
    Regards,
    Rahul

  • How to enhance screen for audit management (TC:PLMD_AUDIT)?

    I try to use BADI PLM_AUDIT_APPEARANCE & PLM_AUDIT_ATTRIBUTES to enhance screen for audit management(TC:PLMD_AUDIT) ,but it looks don't work

    Hi,
    It is not possible in SAP ERP 6.0, it could only be by a repair development. The appereance BADI does not add extra fields but it is used to influence the display of existing structure. It was said that new BADIs for this fuunctions will be introduced in enhancement packages. We did not implement any enhancement packages at the moment, so I am not really sure.
    Regards.

  • Producing a Smartform under a different User ID

    If User A executes a program to produce a smartform, we have a requirement to produce the output in the spooler of User B, rather than that of User A.
    I thought this would be easy to do....but hey, nothing is easy to do in SAP these days !
    I've been running in debug and modifying some of the values that look relevant but for some reason the output always comes out under User A.
    Any ideas please ?
    thanks,
    Malcolm.

    Hi Nick,
    thanks for the reply. I guess you mean in the 'TO SAP-SPOOL' addition ?
    I was a little simplistic in my description though. The smartform is actually called in a method that's triggered from a CRM action.
    I was wondering if I could do something after the spool is created to move it from one user to another but haven't found a way to do that either !
    Malcolm.

  • Different dates for 2 Time Dependent Attributes

    I've got 1 time dependent attribute (TD1) within a query.  When executed, the query asks for a key date to be applied on this time dependent attribute.
    We've been asked to enhance our model adding a new time dependent attribute (TD2).
    Everything is OK so far.
    The problem arises when our user needs to enter a date for TD1 and a different date for TD2, as in the same query only one key date can be used.
    We're thinking about adding a Key Virtual Figure, but we know it makes the performance down. The cube is huge.
    Any other suggestions to sort this out?
    Thank you!

    Hi,
    The provided standard datasources for these don't have the valid date fields, so wouldn't you have to  enhance them after the config from R3?
    What an alternative way of doing the time dependent if ther R3 analysts won't change their config?
    Is this common practice and done often?

  • Mulitple Smartforms for single output type

    Hi Experts,
    I have 4 programs and 4 smartforms and One output type Z999.
    Depends on Company code i need to generate appropriate smartform using VF02.
    ( 4 programs & 4 smartforms means,
      US invoice, US Creditmemo, Canada Invoice and Canada creditmemo).
    Is it possible to assign 4 smartforms & 4 programs in NACE transaction in single output type?
    If it is not possible what is the way? Please adivise me.

    Hi,
    I don't think so that you can not do it directly. But there is a workaround for your problem. You can define your output type as SAP script and enter program name and entry routine. You can ignore a SAP script name because you are going to use Smartforms. In this entry routine you will call different Smartforms based on company code of your document.
    But why don't you use different output types for different documents? That would be the best solution.
    Cheers

  • Formula Node Floor(x) Produces Different Result

    Hi, A search didn't find anything about the Floor(x) function, so... I'm using LabVIEW 6.0.2, and the Floor(x)function in a Formula Node seems to be producing different results depending on previous calculations. I've got the following 2 lines in a Formula Node:
    MSS = Ref / RefDiv;
    MDN = floor(RF / MSS);
    Ref is always 20.0M, RefDiv always 500.0, and for this calcualtion RF is always 1539.4, all numbers Double with 6 digits of precision. I generate an array of frequencies given a start, step, and frequency count. These frequencies then go to a subVI with a Formula Node that calculates the byte values to send to a couple PLLs.
    If Start = 70.1, Step = .025, and Count = 20, at frequency 70.2 the Floor function gives 38.485.
    If Start = 70.0, Step = .025, and Count = 20, at frequency 70.2 the Floor function gives 38.484.
    I've omitted some calc steps here, but I've verified the starting values in the subVI are the same in both cases. Why the result changes I'm hoping someone can tell me...
    Thanks,
    Steve

    I want to thank those involved again for their help. With ideas and hints from others I found a solution without scaling.
    In recap, what had bothered me was it *appeared* like the same subVI was giving correct results one time and incorrect results only randomly. While I understand binary fractional imprecision, I wasn't doing any looped calculations 100+ times or anything.
    I did some more checking though. The problem was indeed introduced by cumulative fractional addition. In this case 10 additions were enought to cause the error. Apparently, floor(71.199_94) produces 72.0. However, using a shift register and constant fraction to add an offset to produce an array introduces enough error in under 10 iterations to be a problem. By the time the loop got to what was supposed to be 72.0, it was actually 71.199_84 or something, enough to throw the floor function. Now I understand why the error occurred, and why it wasn't a problem before.
    I fixed this problem by changing the real frequency number to a I32 before introduction to the formula node. This corrected the error introduced by the fractional addition by forcing 71.199_84 to 72, instead of letting it propagate through the rest of the calculations. And it was a whole lot easier than changing all the VIs to allow scaling! Also, I prefer to know where and why the problem happened, instead of just scaling all my calcualtions. Maybe I can recoginse potential problems in the future.
    My boss wants to go back and look at his program to see if HPVee somehow bypassed the problem or if he did the calculations differently.
    Thanks again for the insight and help,
    Steve

  • LAB Swatches produce different colors in ID, PS & Illy

    Hello. I have CS4 and have sychronized the color management settings. I have a set of swatches in .ase format that were defined as LAB process colors. When I load them into InDesign, Photoshop and Illustrator they all three produce different CMYK values - differences large enough that they can't be the result of rounding errors. This surprises me given that I've sychronized the color management settings. Do each of these three programs use a different formula/set of instructions for LAB>CMYK conversion?

    Make a Spot swatch in Lab Mode in an RGB or CMYK doc in Illustrator
    (not as Process swatch, not in RGB, not in CMYK)
    Save as PDF
    Oben doc in Photoshop in  Lab mode
    Measure Lab values - they are the same as in Illustrator.
    Place doc in InDesign
    InDesign doesn't change Lab numbers in placed graphic.
    So far it´s guaranteed that Lab values are preserved across the three programs.
    The appearance depends on local color settings and gamut clipping issues.
    Even if the color settings should be globally the same - there are local settings,
    like the document color mode in Illustrator. Which settings RGB or CMYK are
    correct for Lab docs? No idea, I'm not bothering about appearance in this case,
    because there is another ugly problem already luring: gamut clipping.
    A Lab or Spot can be in-gamut or out-of-gamut for a specified RGB space and
    specified CMYK-space.
    Spots by Lab values which are definitely in-gamut or out-of-gamut for sRGB
    resp. ISOCoatede-v2(eci) are found here:
    http://www.fho-emden.de/~hoffmann/munsell15052009.pdf
    If we choose Spots with values in-gamut for sRGB, then we have good chance
    that they will appear identical in all three programs. 
    The whole workflow shouldn't be confused by early conversions into a CMYK
    space. A ready PDF, still with Lab colors like the mentionend one (except for
    text and line black/gray, which is in CMYK K-only) can be converted (as already
    mentioned in my first post), into CMYK by Acrobat Pro, which should concern
    only the Lab colors, not CMYK K-only parts.
    A preview by Softproof in Photoshop (document Lab, Preview ISOCoated-v2(eci)
    for instance, can be used to detect ugly effects of gamut clipping early.
    Where is Color Management involved?
    a) in the monitor appearance of Lab values. This should be identical for in-gamut
    swatches.
    b) in the final conversion of Lab to CMYK. Precisely at only one stage - in Acrobat.
    Even if the appearance should not be identical - the Lab values are nowhere changed
    in the workflow. Lab values are never out-of-gamut in Lab space.
    Another example: Lab data of the mentioned doc were imported in Photoshop,
    exported in groups as files (probably as *.ase  / Adobe Swatch Exchange, but here
    I'm not sure about) and used in Illustrator for experimental Tracing graphics:
    http://www.fho-emden.de/~hoffmann/casamunsell24062012.pdf
    Best regards --Gernot Hoffmann
    Edited: *.ase

  • Bring back Redbook CD burning for Audition CS5.5

    Like I'm interested in opening a new application like iTunes to burn my CDs.  I have my own studio and use both Audition and Pro Tools, and Audition is my tool of choice for burning Redbook CDs.  I think Adobe has dropped the ball on this one.

    As so many have already stated here, after years of using Audition, it was also a shock for me to discover that CD track markers and the CD burning capability altogether was removed from the new version! And on the FAQ page someone had the arrogance to say, "Other features, like CD burning, are not included because the majority of newly created content is distributed digitally, and inexpensive or free third-party CD burning tools, such as iTunes, are readily available." Wow.
    First of all, it may be true that more content is being produced digitally and other CD burners are available, but many of us still produce commercial CDs for various markets (yes there is still a market for physical CDs) and have long depended on the ability to add track markers and burn CDs for clients directly from Audition. To remove this feature so casually and with such disregard for the needs of its long-term customers has really made me wonder about Adobe. For now, I'll need to stay with Audition 3 and just hope that this functionality is retored with version 6.
    If not, I'll need to change to another program that allows this functionality as I can't imagine using iTunes or other such programs to burn professional quality CDs for mastering. Does anyone know if Adobe is listening to it's customers about this? I haven't heard anyone from Adobe actually say that the CD burning capability, with track markers, will be restored in version 6. So, if someone from Adobe development is reading this, I'm sure you have thousands of Audition customers who would like to know about this.

  • STOCK REPORT FOR AUDIT

    Hi GUYS
    I am working for a Garment Industry and the audit is in next month end.
    I need your advice in how to catch up with the things related to Stock for Audit.
    We have 3-4 locations in System
    Like
    FABRIC STORE
    CUTTING STORE
    STICHING STORE
    FINISHING STORE
    FINISHED GOOD STORE(from there the material gets dispached EXPORT/LOCAL)
    I need to maintain the STOCK from Cutting to Finishing , Stock at Sub Contractor, How much dispached and how much left, rejected etc
    Please Advice how to do the things.
    I know its all related to MB51 MB52, MBLB, ME2L, MC.9, MB5B ETC
    But i am Confused from where to start and how to proceed.
    I dont even know from which report the auditor will get the details and ask us
    SHD i take the Physical report ie Work in progress report in my hand first or shd i take the SAP Reports first
    I am looking after the following things
    SUB COntracting PO
    STO
    GRN(Fabric, CUT PART , ACCESSORIES ETC)
    Out Bound Dillivery
    PI
    CI
    EI
    Work Related to PP Making production orders etc
    Need a procedure to maintain the stuff in SAP
    Thanks & REGards
    Abhishek

    Dear Abhishek,
    It all depends on how efficiently your company Uses SAP, If company has properly entered all the transactions that take place on a day to day basis in SAP, then there is nothing which can't be answered to the Auditor, its all Integrated and you can see all the stock movements that have happend, If required you can go for a Physical Inventory Count Also so that these is no discrepancy in the system stock and Physical Stock.
    Rest for any material if any question comes up then you can readily use MB5B which will give the material movements in a specified period along with Opening and Closing Stock. The basic questions which Auditors Put up is on the movement of Stock and sometimes the reason for the movement, so if everything is maintained properly in SAP you will have no issues in getting any data.

  • Filter expression producing different results after upgrade to 11.1.1.7

    Hello,
    We recently did an upgrade and noticed that on a number of reports where we're using the FILTER expression that the numbers are very inflated. Where we are not using the FILTER expression the numbers are as expected. In the example below we ran the 'Bookings' report in 10g and came up with one number and ran the same report in 11g (11.1.1.7.0) after the upgrade and got two different results. The data source is the same database for each envrionment. Also, in running the physical SQL generated by the 10g and 11g version of the report we get different the inflated numbers from the 11g SQL. Any ideas on what might be happening or causing the issue?
    10g report: 2016-Q3......Bookings..........72,017
    11g report: 2016-Q3......Bookings..........239,659
    This is the simple FILTER expression that is being used in the column formula on the report itself for this particular scenario which produces different results in 10g and 11g.
    FILTER("Fact - Opportunities"."Won Opportunity Amount" USING ("Opportunity Attributes"."Business Type" = 'New Business'))
    -------------- Physical SQL created by 10g report -------- results as expected --------------------------------------------
    WITH
    SAWITH0 AS (select sum(case when T33142.OPPORTUNITY_STATUS = 'Won-closed' then T33231.USD_LINE_AMOUNT else 0 end ) as c1,
    T28761.QUARTER_YEAR_NAME as c2,
    T28761.QUARTER_RANK as c3
    from
    XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ ,
    XXFI.XXFI_OSM_OPPTY_HEADER_ACCUM T33142 /* Fact_Opportunity_Headers(CloseDate) */ ,
    XXFI.XXFI_OSM_OPPTY_LINE_ACCUM T33231 /* Fact_Opportunity_Lines(CloseDate) */
    where ( T28761.PERIOD_NAME = T33142.CLOSE_PERIOD_NAME and T28761.QUARTER_YEAR_NAME = '2012-Q3' and T33142.LEAD_ID = T33231.LEAD_ID and T33231.LINES_BUSINESS_TYPE = 'New Business' and T33142.OPPORTUNITY_STATUS <> 'Duplicate' )
    group by T28761.QUARTER_YEAR_NAME, T28761.QUARTER_RANK)
    select distinct SAWITH0.c2 as c1,
    'Bookings10g' as c2,
    SAWITH0.c1 as c3,
    SAWITH0.c3 as c5,
    SAWITH0.c1 as c7
    from
    SAWITH0
    order by c1, c5
    -------------- Physical SQL created by the same report as above but in 11g (11.1.1.7.0) -------- results much higher --------------------------------------------
    WITH
    SAWITH0 AS (select sum(case when T33142.OPPORTUNITY_STATUS = 'Won-closed' then T33142.TOTAL_OPPORTUNITY_AMOUNT_USD else 0 end ) as c1,
    T28761.QUARTER_YEAR_NAME as c2,
    T28761.QUARTER_RANK as c3
    from
    XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ ,
    XXFI.XXFI_OSM_OPPTY_HEADER_ACCUM T33142 /* Fact_Opportunity_Headers(CloseDate) */ ,
    XXFI.XXFI_OSM_OPPTY_LINE_ACCUM T33231 /* Fact_Opportunity_Lines(CloseDate) */
    where ( T28761.PERIOD_NAME = T33142.CLOSE_PERIOD_NAME and T28761.QUARTER_YEAR_NAME = '2012-Q3' and T33142.LEAD_ID = T33231.LEAD_ID and T33231.LINES_BUSINESS_TYPE = 'New Business' and T33142.OPPORTUNITY_STATUS <> 'Duplicate' )
    group by T28761.QUARTER_YEAR_NAME, T28761.QUARTER_RANK),
    SAWITH1 AS (select distinct 0 as c1,
    D1.c2 as c2,
    'Bookings2' as c3,
    D1.c3 as c4,
    D1.c1 as c5
    from
    SAWITH0 D1),
    SAWITH2 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    sum(D1.c5) as c6
    from
    SAWITH1 D1
    group by D1.c1, D1.c2, D1.c3, D1.c4, D1.c5)
    select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6 from ( select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    sum(D1.c6) over () as c6
    from
    SAWITH2 D1
    order by c1, c4, c3 ) D1 where rownum <= 2000001
    Thank you,
    Mike
    Edited by: Mike Jelen on Jun 7, 2013 2:05 PM

    Thank you for the info. They are definitely different values since ones on the header and the other is on the lines. As the "Won Opportunity" logical column is mapped to multiple LTS it appears the OBI 11 uses a different alogorthim to determine the most efficient table to use in the query generation vs 10g. I'll need to spend some time researching the impact to adding a 'sort' to the LTS. I'm hoping that there's a way to get OBI to use similar logic relative to 10g in how it generated the table priority.
    Thx again,
    Mike

Maybe you are looking for

  • Problems with Vista 64 bit edition

    When will this be fixed for 64 bit OS, I want to upgrade to version 8, but there is no point at this time. No version works on Vista. Error "Warning 20225..." or no Adobe PDF printer appears (Acrobat 8.0 on Windows) Issue When you install Adobe Acrob

  • Loop-aes/mount with gpg-agent

    Hey, this is not really an Arch related problem, but as this is the only forum I'm using, I'll try it here. The system I'm testing on is Debian etch. loop-aes and gpg-agent alone work fine, when I decrypt data with gpg, pinentry is called and gpg-age

  • Bought Compaq Presario CQ20-205TU No Drivers? XP not supported?

    Hello everybody, I just bought used HP Compaq Presario CQ20-205TU, and I wish to re-install it with my XP Professional So I Download some drivers and softwares (from HP)...., to my "stupidity" I forgot to double check the drivers. I thought everythin

  • Form personalization requirement

    Hi All, I have a requirement where we need to throw error (or disable delete option) message if a user tries to delete a particular element (loan) which has been processed once either in regular payroll run or quick pay. (in element entries screen: A

  • A question using the setString to pass parameter

    Hello, there: part of my SQL statement is like this: p_table.user_id in (?) In my JDBC code, I wrote String str = "usr1"; ps.setString(1, str) to pass the parameter to the SQL statement - it works fine; However, if I wrote (in order to select from mu