Issue in BI Publisher when migrating oracle report RDF to BI Publisher

Hi, I am migrating Oracle RDF report to BI Publisher while migrating this report I am facing problem in viewing data as per my report requirement
I want my department Name should be my HEADER and all projects of department should display under it.
for that according to me I should get XML data like this
<dept1>
<project1></project1>
<project2></project2>
<project3></project3>
</dept1>
for some nodes I am getting this expected result but for many node it is giving me result like
<dept2>
<project1></project1>
</dept2>
<dept2>
<project2></project2>
</dept2>
because of this i could not able to see data in required format for some department.
may be Order by is not working in Q_Expenditure
Here is my data template
<dataTemplate dataSourceRef="PTTrng" name="XXPA4049093f" defaultPackage="XXPA4049093f">
<properties>
<property name="xml_tag_case" value="upper"/>
</properties>
<parameters>
<parameter name="P_PROJECT" dataType="character" defaultValue="%"/>
<parameter name="P_PROJECT_ROLLUP" dataType="character"/>
<parameter name="P_PROJECT_ROLLUP_YEAR" dataType="character"/>
<parameter name="P_ORDER_BY" dataType="character" defaultValue="1"/>
<parameter name="P_REMAIN_BALANCE" dataType="number" defaultValue="-9999999999"/>
<parameter name="P_FUND" dataType="character" defaultValue="%"/>
</parameters>
<lexicals>
</lexicals>
<dataQuery>
<sqlStatement name="Q_Expenditure">
select TRIM(a.NAME)NAME ,upper(a.id2) ID2,a."Project",a.start_date,a.completion_date,a.organization_id,a.origbud, a.budget,a.commitment,a.visa,a.labor,a.remaining_funds,a.board_rollup,a.description,a.class_code,
a.class_category,a.fund,
nvl(b.po_oblig_prior_yr,0) po_oblig_prior_yr2,
nvl(c.ap_prior_yr_oblig,0) ap_prior_yr_oblig2,
( nvl(a.remaining_funds,0) + nvl(b.po_oblig_prior_yr,0) + nvl(c.ap_prior_yr_oblig,0) ) Remaining_funds_Order,
XXPA4049093f.cf_dept_pct_obligformula(:CS_dept_total_costs, :CS_dept_bud) CF_dept_pct_oblig,
XXPA4049093f.cf_dept_pct_unobligformula(:CS_dept_remain_funds, :CS_dept_bud) CF_dept_pct_unoblig,
XXPA4049093f.cf_remain_laborformula(:CS_labor_budget, apps.a.LABOR) CF_remain_labor,
XXPA4049093f.cf_nonlabor_budgetformula(apps.a.BUDGET, :CS_labor_budget) CF_nonlabor_budget,
XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) CF_nonlabor_costs,
XXPA4049093f.cf_remain_nonlaborformula(XXPA4049093f.cf_nonlabor_budgetformula(apps.a.BUDGET, :CS_labor_budget) ,XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) ) CF_remain_nonlabor,
XXPA4049093f.cf_total_costsformula(apps.a.LABOR,XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) ) CF_total_costs,
XXPA4049093f.cf_remain_fundsformula(apps.a.BUDGET,XXPA4049093f.cf_total_costsformula(apps.a.LABOR,XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) ) ) CF_remain_funds,
XXPA4049093f.cf_proj_pct_obligformula(XXPA4049093f.cf_total_costsformula(apps.a.LABOR,XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) ) , apps.a.BUDGET) CF_proj_pct_oblig,
XXPA4049093f.cf_proj_pct_unobligformula(XXPA4049093f.cf_remain_fundsformula(apps.a.BUDGET,XXPA4049093f.cf_total_costsformula(apps.a.LABOR,XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) ) ) , apps.a.BUDGET) CF_proj_pct_unoblig
from apps.xxpa_project_status_fund_cy_2 a, xxpa_prior_yr_oblig2_cy b, xxpa_ap_prior_yr_oblig2_cy c
where
a.class_category = :P_Project_Rollup
and a.class_code = :P_Project_Rollup_Year
and a.id2 like upper(:P_Project)
and a.remaining_funds >= :P_remain_balance
and a.id2 = b.id2
and a.id2 = c.id2
and a.class_code = b.class_code
and a.class_code = c.class_code
and a.fund like :P_Fund
order by 1
</sqlStatement><sqlStatement name="Q_1">
select upper(f.class_code) ID2, sum(d.labor_budget) Labor_budget
from apps.xxpa_labor_budget_v2006 d,
pa.pa_project_classes e,
pa.pa_class_codes f,
( select *
from pa_project_classes
where class_category = 'Fiscal Year'
and substr(class_code,-4,4) =
(select ( segment5 )
from FINANCIALS_SYSTEM_PARAMS_ALL a, gl_code_combinations b
where set_of_books_id = 2
and a.accts_pay_code_combination_id = b.code_combination_id)
) ppc
where d.project_id = e.project_id
and e.class_category = f.class_category
and e.class_code = f.class_code
and e.class_category = 'Project Rollups'
and d.project_id = ppc.project_id
and d.project_id in (select project_id
from pa.pa_project_classes a, xxpa_project_rollups_org b
where a.class_category = 'Project Rollups'
and a.class_code = b.class_code
and b.org_count <= 1)
and upper ( id2 )like upper(:P_Project)
group by upper(f.class_code)
</sqlStatement>
<link name="Q_LINK" parentQuery="Q_Expenditure" parentColumn="ID2" childQuery="Q_1" childColumn="ID2" condition="="/>
</dataQuery>
<dataTrigger name="afterParameterFormTrigger" source="XXPA4049093f.afterpform"/>
<dataTrigger name="beforeReportTrigger" source="XXPA4049093f.beforereport"/>
<dataStructure>
<group name="G_NAME1" dataType="varchar2" source="Q_Expenditure">
<element name="NAME" dataType="varchar2" value="NAME"/>
<element name="CS_dept_orig_bud" function="sum" dataType="number" value="G_segment1.ORIGBUD"/>
<element name="CS_dept_bud" function="sum" dataType="number" value="G_segment1.BUDGET"/>
<element name="CS_dept_labor_bud" function="sum" dataType="number" value="G_segment1.CS_labor_budget"/>
<element name="CS_dept_labor" function="sum" dataType="number" value="G_segment1.LABOR"/>
<element name="CS_dept_labor_remain" function="sum" dataType="number" value="G_segment1.CF_remain_labor"/>
<element name="CS_dept_nonlabor_bud" function="sum" dataType="number" value="G_segment1.CF_nonlabor_budget"/>
<element name="CS_dept_nonlabor_costs" function="sum" dataType="number" value="G_segment1.CF_nonlabor_costs"/>
<element name="CS_dept_nonlabor_remain" function="sum" dataType="number" value="G_segment1.CF_remain_nonlabor"/>
<element name="CS_dept_total_costs" function="sum" dataType="number" value="G_segment1.CF_total_costs"/>
<element name="CS_dept_remain_funds" function="sum" dataType="number" value="G_segment1.CF_remain_funds"/>
<element name="CF_dept_pct_oblig" dataType="number" value="CF_dept_pct_oblig"/>
<element name="CF_dept_pct_unoblig" dataType="number" value="CF_dept_pct_unoblig"/>
<group name="G_segment1" dataType="varchar2" source="Q_Expenditure">
<element name="FUND" dataType="varchar2" value="FUND"/>
<element name="po_oblig_prior_yr2" dataType="number" value="PO_OBLIG_PRIOR_YR2"/>
<element name="ap_prior_yr_oblig2" dataType="number" value="AP_PRIOR_YR_OBLIG2"/>
<element name="Remaining_funds_Order" dataType="number" value="REMAINING_FUNDS_ORDER"/>
<element name="Project" dataType="varchar2" value="Project"/>
<element name="ORIGBUD" dataType="number" value="ORIGBUD"/>
<element name="BUDGET" dataType="number" value="BUDGET"/>
<element name="COMMITMENT" dataType="number" value="COMMITMENT"/>
<element name="LABOR" dataType="number" value="LABOR"/>
<element name="CLASS_CODE" dataType="varchar2" value="CLASS_CODE"/>
<element name="CLASS_CATEGORY" dataType="varchar2" value="CLASS_CATEGORY"/>
<element name="REMAINING_FUNDS" dataType="number" value="REMAINING_FUNDS"/>
<element name="ID2" dataType="varchar2" value="ID2"/>
<element name="START_DATE" dataType="date" value="START_DATE"/>
<element name="COMPLETION_DATE" dataType="date" value="COMPLETION_DATE"/>
<element name="ORGANIZATION_ID" dataType="number" value="ORGANIZATION_ID"/>
<element name="VISA" dataType="number" value="VISA"/>
<element name="BOARD_ROLLUP" dataType="varchar2" value="BOARD_ROLLUP"/>
<element name="DESCRIPTION" dataType="varchar2" value="DESCRIPTION"/>
<element name="CS_labor_budget" function="sum" dataType="number" value="G_1.LABOR_BUDGET"/>
<element name="CF_remain_labor" dataType="number" value="CF_remain_labor"/>
<element name="CF_nonlabor_budget" dataType="number" value="CF_nonlabor_budget"/>
<element name="CF_nonlabor_costs" dataType="number" value="CF_nonlabor_costs"/>
<element name="CF_remain_nonlabor" dataType="number" value="CF_remain_nonlabor"/>
<element name="CF_total_costs" dataType="number" value="CF_total_costs"/>
<element name="CF_remain_funds" dataType="number" value="CF_remain_funds"/>
<element name="CF_proj_pct_oblig" dataType="number" value="CF_proj_pct_oblig"/>
<element name="CF_proj_pct_unoblig" dataType="number" value="CF_proj_pct_unoblig"/>
<group name="G_1" dataType="varchar2" source="Q_1">
<element name="LABOR_BUDGET" dataType="number" value="LABOR_BUDGET"/>
<element name="ID2" dataType="varchar2" value="ID2"/>
</group>
</group>
</group>
<element name="CS_ORIG_BUDGET" function="sum" dataType="number" value="G_segment1.ORIGBUD"/>
<element name="CS_APPROVED_BUDGET" function="sum" dataType="number" value="G_segment1.BUDGET"/>
<element name="CS_LABOR_BUDGET_TOTAL" function="sum" dataType="number" value="G_segment1.CS_labor_budget"/>
<element name="CS_LABOR_COSTS" function="sum" dataType="number" value="G_segment1.LABOR"/>
<element name="CS_REMAIN_LABOR" function="sum" dataType="number" value="G_segment1.CF_remain_labor"/>
<element name="CS_NONLABOR_BUDGET" function="sum" dataType="number" value="G_segment1.CF_nonlabor_budget"/>
<element name="CS_NONLABOR_COSTS" function="sum" dataType="number" value="G_segment1.CF_nonlabor_costs"/>
<element name="CS_REMAINING_NONLABOR" function="sum" dataType="number" value="G_segment1.CF_remain_nonlabor"/>
<element name="CF_pct_oblig" dataType="number" value="XXPA4049093f.cf_pct_obligformula(:CS_TOTAL_COSTS, :CS_APPROVED_BUDGET)"/>
<element name="CS_TOTAL_COSTS" function="sum" dataType="number" value="G_segment1.CF_total_costs"/>
<element name="CS_REMAIN_FUNDS" function="sum" dataType="number" value="G_segment1.CF_remain_funds"/>
<element name="CF_PCT_UNOBLIG" dataType="number" value="XXPA4049093f.cf_pct_unobligformula(:CS_REMAIN_FUNDS, :CS_APPROVED_BUDGET)"/>
<element name="rp_order_by" dataType="varchar2" value="XXPA4049093f.rp_order_by_p"/>
</dataStructure>
</dataTemplate>

I had to go to my data template and move my groups around.
Copy Data Template into something like Wordpad, so you can see the hierarchy and cut and paste your groups. Watch your indentions.

Similar Messages

  • Layout issue while trying Migrate Oracle Report to XML publisher Reports

    Hi
    I am trying to Convert Seeded Oracle Reports (rdf) to BI Publisher reports, in doing so encounter layout issues. The layout of the RTF , PDF or HTML generated by BI Publisher is different form the text, PDF or HTML outputs generated by the concurrent report. The problem with the BI Publisher template and out put
    Is, the lay out is getting distorted .
    Steps to archive the migration :
    -     download the rdf from the server to local m/c.
    -     execute Forms 9i Util rwconverter to generate a xml
    -     use the oracle.apps.xdo.rdfparser.RTFTemplateGenerator API to generate a RTF template of the report layout
    -     Then use this template to generate a XSL via oracle.apps.xdo.template.RTFProcessor API
    -     The Apply the XSL on the XML data output of the report using oracle.apps.xdo.template.FOProcessor to generate RTF , PDF & HTML files.
    Name of the Report used for migration “FSG - Report Detail Listing” , responsibility GL super User. This was just a random report we picked-up for trial.
    The layout of these files seems to distorted than the layout of the original report output as generated by the rdf report.
    Pls suggest some means to resolve this or any pointers towards what causing this could be of help.
    -     Shudipto

    The process of "converting" an old Oracle Reports rdf into a BIP report is more akin to writing a brand new report in BIP than to what most people would consider a true conversion.
    The conversion routine outlined by Oracle just gives you a starting point for converting RDF layouts into BIP, and nothing more. In regards to the data define it does somewhat better generating your queries and XML layout (but honestly, that is the easy part), but even for the data define it will lose your formula columns as well as report triggers.
    I have used the converter on several dozen rdf files and I have yet to see one that is better than 10-20% ready for use after the conversion process.
    I would strongly suggest that you only convert the reports that you have to convert (for enhancements, modifications, etc). If it ain't broke in old Oracle Reports, dont' try to fix it in BIP.
    Scott

  • Migrating Oracle Reports to Publisher in 11g

    Greetings!
    We are developing a project with the purpose of migrating some Oracle Reports files to Oracle BI Publisher 11g. We know that there is a tool called BIPBatchConversion available in Bi Publisher 10.1.3.4.1 but I couldn't find this utility in Bi Publisher 11g.
    Should I use this utility from Bi Publisher 10.1.3.4.1 and then migrate to Bi Publisher 11g or there is other option available?
    Thanks!
    Ramiro Ortíz.

    Hi Ramiro
    You got it right
    Oracle REports --> 10g BIP --> 11BP
    There is a migration tool to take your 10g BIP reports to 11g BIP - I believe its covered in the user docs
    Tim

  • Migration: Oracle reports 6i to 10g issue - Diiference in the data

    Gudmorning everybody,
    We are doing a Oracle reports migration from oracle reports 6i to oracle reports 10g.
    I am facing a problem in the output generated ny the reports.
    I have to generate a CSV file in 6i and similarly in 10g. Both the reports are hitting the same database but still it is
    showing some difference in the count generated in the report.
    Its a report where it compares the data from the web and data from the application and gives a count for the each row.
    In the CSV creation procedure TABLE TYPe is used. I am not very good in Oracle procedures.
    Do u guys have faced similar situation? Not every data is different,some of the count is diff even though both the reports are hitting the same database.
    Anybody suggest me a solution. It will b really helpful. This happens when I am a giving 6 mnths date range. When it is 15 days range it shows proper output.
    Any help will be much appreciated.
    Thanks,
    Raneesh.

    Hello,
    On the web this is expected behavior.
    For an workaround please check this metalink note:
    How to Implement an Alternate Solution to Unrestricted List Of Values (LOV) in Parameter Form on the Web (Doc ID 465886.1)
    Kind regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • BI Publisher V/S Oracle Reports

    Hi,
    Need some information on BI Publisher.
    1. Which is easier with respect to designing the report BI/XML Publisher or reports 10g?
    2. Any feature which is available in Reports 10g is not available in BI Publisher?
    3. Is it possible to create drill down reports using BI Publisher?
    Thanks in advance,
    Shree

    >
    2. Any feature which is available in Reports 10g is not available in BI Publisher?Yeah: an usable design tool! I'm evaluating BI Pub and I must admit, it's a nightmare! First it looks easy when you see these little simple one page table demos. But when you try to build your own reports from scratch it's a horror! You have put tiny little xsl fragments into your Word-RTF-document and this leads to a trial and errorr game. For me, an Oracle Reports professional, this product is a joke! I don't want to know, what happens, when you generate reports over 1000 pages, for Oracle Reports no problem, but for Bipub?
    My last problem: You have a Table Wizard in your Bipub-Plugin. This Wizard should generate a table with grouping columns. Works fine, when you put your grouping column on top of the table (the reason why you can see this in all these nice demos). But when you want to have your grouping column left to the others, the wizard generates a table in the table and the heading of the other cols on the level of the grouping col. Absolutely unusable. And it's not easy to bring this in a good looking form.
    MS Word is not a report design tool, never! It's good for mail-merging, but not for more. Ok, you can code your whole report with xsl! Do you really want this?
    In my opinion there is no reason to go from Oracle Reports to BI Publisher, unless you want to do mail merging.
    And I'm not alone with my opinion: http://forums.sun.com/thread.jspa?threadID=5194787
    Bye,
    Rumburak

  • How to migrate Oracle Report from one environment to other environment

    Hi all,
    I registered a report and deployed in devr environment, now i want to migrate the report from devr to other environment.
    I dont want to undergo with same registering and deploying the report in other environment.
    Please let me know how should i go ahead and i come up with using of FNDLOAD, please can any one explain the process.
    Thanks,
    Vishal

    Sandeep,
    Yes, I think your command format is not correct.
    Try the one that Rod posted.
    About the note on metalink. It seems that it is under review.
    Here is the basics of the note:
    1. Determine the owner of the workbook. Say UserA.
    2. Open an sqlplus session to the database.
    3. Run the following sql:
    SQL> set heading off
    SQL> set feedback off
    SQL> set echo off
    4. Now spool the result of the following sql to a file.
    SQL> spool c:\exp.bat
    5. Run the sql statement
    NOTE: CHANGE DISCOE_HOME
    SQL>select '<Disco_Home>\discvr4\dis4adm /connect
    EUL_owner_name/passwd@connect_string /export c:\'||rownum||'.eex /workbook "'||
    doc_created_by||'.'||doc_name||'"' from
    SELECT EUL4_DOCUMENTS.DOC_NAME, doc_created_by, NVL(EUL4_EUL_USERS.EU_USERNAME,
    'Document Not Shared') shared_with
    FROM EUL4_ACCESS_PRIVS EUL4_ACCESS_PRIVS, EUL4_DOCUMENTS EUL4_DOCUMENTS,
    EUL4_EUL_USERS EUL4_EUL_USERS
    WHERE ( EUL4_DOCUMENTS.DOC_ID = EUL4_ACCESS_PRIVS.GD_DOC_ID(+) ) AND (
    EUL4_EUL_USERS.EU_ID(+) = EUL4_ACCESS_PRIVS.AP_EU_ID )
    where doc_created_by='UserA'
    where,
    Disco_Home is the Location or Discoverer 4 Home.
    4. SQL> spool off
    5. SQL> set feedback on
    6. Now run the batch command file (exp.bat)
    Regards
    Roelie Viviers

  • Porting Forms/Reports when migrating Oracle 9i DB from AIX 5.2 to AIX 5.3

    Hi,
    Looking for advice on how to port Oracle Forms/Reports modules when moving our Oracle 9i database from AIX 5.2 to AIX 5.3 platform. Details are as below:
    Oracle Forms and Reports v6i (There is no version upgrade in Forms & Reports)
    Database is Oracle 9i (No upgrade in database)
    There is upgrade in hardware only : from AIX 5.2 to AIX 5.3
    The application is having some 8000 forms/reports modules
    Do we need to recompile the forms/reports after porting the 9i database to AIX 5.3 ?
    Any direction would be appreciated .. Thanks !!
    Regards,
    Himansu

    Hi,
    Thanks for the response, we are going to recompile the Forms/Reports in the new environemnt.
    Just wondering how much time it may take to recompile all the 8000 odd forms/reports modules.. ? Will 10 seconds per form/report module be safe enough for the compilation ? Because in a batch file every time it is going to connect to the database while compiling a module, I am assumming it may take some 5 seconds to 10 seconds for the compilation. Thanks for the help again.
    Rgds,
    Himansu

  • Error when migrating 6i Reports with Graphics

    The client that I am working for is finally trying to migrate their 6i Forms and Reports over to 10g. I have managed to get the Forms to display correctly and correctly call the Reports so long as those reports don't contain graphs.
    I have Oracle Graphics 61 installed in a separate oracle_home. I have updated the default.env file in forms90/server/ to point GRAPHICS6I_HOME to that other directory. Yet, when I try to run the report, I invariably receive an "unable to run report" error. Tracking this back into the Queue Manager, I see that the error is "REP-0074 Failure to run another product using SSL". I can find no documentation on the Oracle site regarding this error code or message.
    I have seen several people on the forums here who have reported similar error messages, but none of them have ever had a solution posted to it. So, I figured I would try again. What is this error, what is causing it, and what can I do to make it go away and run my report correctly?
    Thanks,
    Roger

    hello,
    these issues usually take more investigation than we can do via the forum. pls contact oracle support about this.
    thanks,
    ph.

  • Error when open Oracle Report Builder 10g (Windows 7 Ultimate 32-bit)

    Hi all,
    I installed Oracle Developer 10g on windows 7 ultimate 32bit.
    Form builder running well, but the report got problem when i opened.
    This is the error message:
    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: rwbuilder.exe
    Application Version: 10.1.2.0
    Application Timestamp: 42ea43b7
    Fault Module Name: ROS.dll
    Fault Module Version: 10.1.2.0
    Fault Module Timestamp: 42c3b2b7
    Exception Code: c0000005
    Exception Offset: 0000afaa
    OS Version: 6.1.7601.2.1.0.256.1
    Locale ID: 1033
    Additional Information 1: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
    Can anyone help?
    Regards,
    eRie

    Hello,
    For installing Developer suite 10gR2 on windows 7 there are some special installation steps.
    Please make sure that i hava followed them as described in the metalink note:
    Certification of Oracle Developer Suite 10g (10.1.2) on Windows 7 (32-bit) (Doc ID 1292919.1)
    Also be aware of the following issue:
    Cannot Open Forms/Reports Within Forms/Reports Builder 10gR2(10.1.2.3) on Windows 7 (Doc ID 1306651.1)
    Regards,
    Alex

  • Issue with date formula when running a report on the 1st day of the month

    We have a formula that compares last month data against last year last month, the report runs on the 1st of every month although the report errors when it tries to run in January being the first month of the new year it tries to look for a month begining with Zero instead of looking back at decemeber which would be 12.
    Does anyone any solutions for this issue?
    Thanks,
    Chris
    Example of some formula's we have tried but none seem to work.
    if {@MonthName} = "December" then year({CDCCHD.CDOPDT}) in year(currentdate)-1 to year(currentdate)-2 else year({CDCCHD.CDOPDT}) in year(currentdate)
    OR
    (if {@Last Full Month Name}= "December" then year({CDCCHD.CDOPDT})= year(currentdate)-2 or
    {CDCCHD.CDOPDT} in lastyearytd else {CDCCHD.CDOPDT} in lastyearytd or
    {CDCCHD.CDOPDT} in yeartodate)
    OR
    ({CDCCHD.CDOPDT} in dateserial(year(currentdate)-1,month(currentdate),01)-1 to dateserial(year(currentdate)-1,month(currentdate)-1,01) or
    {CDCCHD.CDOPDT} in lastfullmonth)
    OR
    if {@monthname} = "December" then {CDCCHD.CDOPDT} in dateadd("m", -28, (currentdate)) to (currentdate)-14 else {CDCCHD.CDOPDT} in dateadd("m", -14, (currentdate)) to (currentdate)

    Chris,
    Give these formulas a try...
    Beg of Last Month
    DateAdd("m", DateDiff("m",#1/1/1900#, CurrentDate) - 1, #1/1/1900#)
    End of Last Month
    DateAdd("m", DateDiff("m",#1/1/1900#, CurrentDate), #1/1/1900#)
    Beg December of Last Year
    IF DatePart("m",CurrentDate) = 1
    THEN DateSerial(DatePart("yyyy",CurrentDate) -2, 12,1)
    ELSE DateSerial(DatePart("yyyy",CurrentDate) -1, 12,1)
    End December of Last Year
    IF DatePart("m",CurrentDate) = 1
    THEN DateSerial(DatePart("yyyy",CurrentDate) -1, 1,1)
    ELSE DateSerial(DatePart("yyyy",CurrentDate), 1,1)
    Note that the "End" formulas produce a value that shows midnight of the following day that you would normally expect to see... For example, if you are expecting to see 12/31/2009, it will show 1-1-2010.
    The reason is that the formulas come out to be midnight of the day shown... So a range of 12/1/2009 - 1/1/2010 will include 12/31/2009's data but none of 1/1/2010... (12/1/2009 - 12/31/2009 would actually cut off 12/31/2009).
    If for some reason your data is stored w/o time values then an adjustment would need to be mande.
    HTH,
    Jason

  • Data filter when migrating Oracle to SQL

    How can I use a data filter (via t-sql or ??) when using SSMA to migrate data from Oracle to SQL Server ?

    Hi sqlworker,
    SQL Server Migration Assistant for Oracle are designed to migrate data from Oracle to SQL Server, we can convert and synchronize the schema of database, the particular category of the schema, and the attributes of objects. However, we can only use data filter
    to help you retrieve from a database table by using the WHERE clause to specify search conditions in SQL. According to your description, we need to verify if you just want to migrate some specific data from Oracle to SQL Server, or just use data filter in
    SQL Server after migration. You can post more information for analysis.
    For more information, you can review the following article.
    migrating
    data form Oracle to SQL Serve via SSMA.
    Filtering Data Retrieved from Database Table in SQL
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Error when running oracle report - Cannot locate the font file 'arial.ttf'

    Hello
    I am running a report and I am getting the following error. Terminated with error: <br>REP-3316: Cannot locate the font file 'arial.ttf' REP-1924:
    Any help appreciated.
    David

    Hello,
    REP-1924: Cannot locate the font file '<filename>'Cause:
    The font file specified in UIFONT.ALI is not found.
    Action:
    Make sure that the font file exists in REPORTS_PATH.
    So, it seems that you are using DESFORMAT=PDF and that subsetting has been configured in the file uifont.ali
    In this case, a file arial.ttf must exist in a directory of REPORTS_PATH
    regards

  • Issue in migration of Oracle Reports

    Hi
    We are migrating from oracle 11.5.10.2 to R12 from Windows to Linux
    Issue
    Moved the oracle reports RDF from 11.5.10.2 to R12, when we submit the conc program getting the error
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    REP-1219: 'F_TRX_NO' has no size -- length or width is zero.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1219: 'F_TRX_NO' has no size -- length or width is zero.
    Report Builder: Release 10.1.2.3.0 - Production on Mon Feb 21 14:14:09 2011
    the report is working fine in 11.5.10.2,
    R12
    Without modifying the RDF in R12, the conc program is completed with above error
    Upon converting the bitmapped report to character mode also the conc program is completed with above error
    Can you please provide your suggestions to resolve this.
    Regards
    Yram

    We are migrating from oracle 11.5.10.2 to R12 from Windows to LinuxIs this a custom report..?
    Did manifest patch completed successfully and then completed compiling reports successfully..?
    Moved the oracle reports RDF from 11.5.10.2 to R12Did you compile reports in 10g report builder..?

  • How to avoid IE pop-ups when running BIP reports(w/ SSO) from Oracle Forms?

    Hi all,
    We have an OID/SSO integrated Oracle Forms and BI Publisher environment in place. We/users expect the same behavior when running Oracle Reports or BIP reports from Oracle Forms... which means receiving no intermediate pop-ups and simply getting the report output to appear in the relevant target application(PDF, EXCEL, etc). Currently we get multiple security warnings when running BIP reports from Oracle Forms.
    Here's a list of Pop-ups contents:
    1. "File Download - Security Warning" Do you want to open or save this file? -> OPEN
    2. "File Download" Do you want to save this file? Name = ma01r500.pdf -> YES
    3. "Save AS" -> pick desktop and save.
    4. "Download Complete" -> OPEN
    We have experimented with setting various IE security settings to LOW/enabled and still get these pop-ups.
    Any suggestions is much appreciated.
    Thanks,
    Yahya

    FYI... Metalink Note 282996.1 has resolved the bigger issue with the extra pop-ups with SSO enabled environment.
    Cause:
    Internet Explorer (IE) has to cache PDF files in a temporary directory prior to opening the file. Without this IE cannot process PDF files. With SSO protected pages, the header cache settings are set to no-cache which prevents IE from downloading PDF files.
    Solution:
    In mod_osso.conf use the entry "OssoSendCacheHeaders off" which tells mod_osso to turn off all no-cache related headers, which the enables Internet Explorer to be cache the file in a temporary directory.
    Now I am not sure if anybody has any thoughts/suggestions as how we might be able to resolve this issue where Oracle Reports WEB.SHOW_DOCUMENT calls have no pop-ups so ideally BIP reports WEB.SHOW_DOCUMENT calls should behave the same as both are calls from Oracle Forms.
    But at least now our SSO enabled environment and un-secure DEV/UAT behave the same with a single pop-up. Ideally the users shouldn't have to come across this intermediate pop-up to open(save/cancel being the other options) the document(just like Oracle Reports calls).
    Yahya

  • Converting Oracle Reports to XML Publisher

    Hello,
    I've been trying to convert my Oracle Reports to use XML Publisher templates and make the canned reports more visually appealing. I've been following the steps described in note 295409.1 on metalink to change OR output to XML and calling the XMLP Engine to apply the template.
    However I'm encountering errors when XMLP is calling the template. In order to jump start my template development, I've used the utility in Release 12 to change the RDF file into the PL/SQL packages and RTF template. Then I am attempting to reengineer these templates back into 11.5.10 and uploading them via XML Publisher Administrator. I am experiencing the errors described in the following forum thread:
    XML Publisher error..urgent
    I've located the problem within the template itself, but is this because of the conversion utility in release 12 (XML Version 5.6.3) is not compatible with our current XMLP version of 5.6.2 in 11i?
    Any assistance would be helpful.
    Thanks!
    Ellen

    This could have something to do with the fact that your printer is not set up correctly. Can you run a plain text (OReports) file output to the same printer? If not, then the printer is not set up in FND correctly. If you can ...
    Remeber that unless you have a more modern printer that can handle PDF documents natively then XMLPs PDF is going to need to be converted to PS or PCL. I would suggest you investigate the PASTA printer driver and get that set up. It provides the ability to call a program pdf2ps for instance, to convert the PDF to PS. There is a bunch of info on metalink
    Tim

Maybe you are looking for