Avoid boilerplate in reports

Hi,
Unfortunately I have to work with Oracle Reports 2.5 and I am having trouble with controlling the report layout.
Here are the two queries in my report
1.
SELECT
     D.DEPT D_DEPT,
     D.DEPT_NAME D_DEPT_NAME,
     C.CLASS C_CLASS,
     S.SUBCLASS S_SUBCLASS
FROM
     CLASS C,
     SUBCLASS S,
     DEPS D
WHERE     
     D.DEPT = 3
AND     C.CLASS = 19
AND     D.DEPT = C.DEPT
AND      C.DEPT = S.DEPT
AND      C.CLASS = S.CLASS
AND      S.SUBCLASS < 20
GROUP BY
     D.DEPT,
     D.DEPT_NAME,     
     C.CLASS,
     S.SUBCLASS
2.
SELECT
     DL.DEPT DL_DEPT,
     DL.CLASS DL_CLASS,
     DL.SUBCLASS DL_SUBCLASS,
     DL.SKU,
     DL.DESC_UP,
     SUPS.SUP_NAME,
     SUM(ISH.UNITS) ISH_UNITS,
     SUM(ISH.SALES) ISH_SALES_RET,
     SUM(ISH.UNITS*ISH.UNIT_COST) ISH_SALES_COST,
     SUM(ISH.SALES -                (ISH.UNIT_COST*ISH.UNITS)) ISH_GM
FROM      
     ITEM_SALES_HIST ISH,
     DESC_LOOK DL,
     SUPS SUPS,
     ITEM_SUPPLIER ISU,
     V_ORG_HIER VOH
WHERE      
     DL.SKU = ISH.ITEM
AND      ISH.YEAR_454 = 2003
AND      ISH.MONTH_454 = 9
AND      VOH.DIST_COMPANY IN (1,4)
AND      VOH.STORE = ISH.STORE
AND      SUPS.SUPPLIER = ISU.SUPPLIER
AND      ISU.ITEM = DL.SKU
AND      SUPS.VENDOR_GROUP ='UCS'
AND ISH.ITEM IN (40407344,40956266,41782356,41883867)
AND DL.SKU IS NOT NULL
GROUP BY
     DL.DEPT,
     DL.CLASS,
     DL.SUBCLASS,
     DL.SKU,
     DL.DESC_UP,
     SUPS.SUP_NAME
HAVING SUM(ISH.SALES) <> 0
ORDER BY 8 DESC
When I run this report I am getting a page with Dept and Class even if there are no subclasses (detail) found. I only want to show pages with details. Can anyone help me to solve this problem?
Thank you!
Mohan (Developer)

Hi Mohan,
I couldn't get rid of the Dept and Class headers with an empty pageYou can try this:
1. Create a summary column in the data model inside the dept group. Choose function > Count and source > subclass, and reset at > dept_group
2. Go to the Dept repeating frame, and in the property inspector > format trigger, write the code in my previous post. Instead of <subclass> write the <summary_column>. Or, you could also use the conditional formatting UI (select hide object if the summary_column value is 0). You can reach the conditional formatting UI through the property inspector of the Dept and Class headers.
Note that this will only hide the dept repeating frame, so your headings should be in this repeating frame. This may be fine in your case, as you have only one record per page.
The max no of records that you have set should have no effect on the above suggestion.
Navneet.

Similar Messages

  • Is it poosible to avoid REP-0099 report is aborted upon user request

    Hi friends,
    is there any possibility to get rid of the above said message box, when user decides to not to run the report after actuallyhe called the report using RUN_PRODUCT built-in. some time the users do like this, and when they close the report this message box comes up. any possibility to give up this.
    Thanks in advance

    You could start the reports server with batch=yes command line option. No interactive messages will be displayed in that case.
    Regards,
    AKS.

  • How to avoid # in the report output in BEx for null characteristic values?

    Hi All,
    In a query output, # values are shown for the charactersitics which are null. I would appreciate if someone would help showing null instead of # in the reports for the null values.
    Regards
    Subba

    Hi,
    There are various options.
    1. Exclude the # in filters for that chararcteristics, it will remove all # values.
    2. Display the text for that Characteristcs which will be displayed as "Not assigned".
    3. If you want to display as "Null", Change the entry in text table of the charaterictics for value # as "Null".
    4. While updating this filed in cube/DSO write routine to replace #/blank with "Null".
    I hope it will help.
    Thanks,
    S

  • Want to avoid a sub report

    Hello,
    My report is grouped by Account, all fields are placed in the Group Footer section. The detail section id suppressed. I am showing narratives for accounts, and each account can have multiple narratives. Because I put narratives in the group footer section, onle one is shown. Whant can I do, besides a sub report, to show all narratives for accounts in the Account Group footer?
    Please help.
    Thank you,
    Tanya.

    hello,
    you can use what is called a string running total.
    steps:
    1) create a new formula called Reset which reads
    whileprintingrecords;
    stringvar srt:= ""
    2) put this reset formula in your group header
    3) create a new formula called SRT which reads something like
    whileprintingrecords;
    stringvar srt:= srt + + ", "
    4) put this srt formula in your details section
    5) create a new formula called Display which reads
    whileprintingrecords;
    stringvar srt
    6) put this display formula in your group footer
    in step (3) you can substitute the + ", " piece for + chr(10) if you want each entry to start on a new line instead of being comma separated.
    cheers,
    jamie

  • How avoid multi reports background engine (D2K6I + patch7  C/S)

    after Developer tools migrate from D2K60 to D2k6i (with patch7), if call multi reports with ASYNCHRONOUS comm mode from forms, these will have multi reports background engine will startup, so need more session will connect to database, this is my need.
    So I need have method to avoid startup multi reports background engine.
    Not suggest me with SYNCHRONOUS comm mode or automatic close report background engine. the above two methods are difficulty to carry through for me.
    Thanks & test regards!

    Before developer tools migration, When run a set of reports with ASYNCHRONOUS comm mode, only one reports background engine startup, and all report as queue requests in the reports background engine, this is my need. I don't want any change because developer tools migration
    Please give me your idea, Thanks again.

  • How to disable report's execution requests from the browser

    Hello gurus,
    We are implementing several security measures in our application, some of them are related to reports execution/visualization, we need to avoid users accessing reports that they don't have privilege to see. The reports were execute by Forms via RUN_REPORT_OBJECT, destination type CACHE and destination format PDF, then we displayed the output using the jobId provided to Forms by the Reports Server. Because these jobIds are sequential numbers any person was able to change the jobId in the URL and get the output of another report. This violated the Confidentiality of information.
    Now we generate all reports output to file, the file name is a random value, to avoid guessing. The problem is that even though the official way to execute a report is via the application, the report servlet is accepting request as URLs, and this violates the access controls we have implemented in the application.
    Is there a way to stop the reports servlet without affecting the valid requests (from RUN_REPORT_OBJET in Forms) or is there another possible way to disable URL requests?
    TIA
    Victor.

    If you are using Portal and SSO, you can assign privileges on Reports and Reports Servers to groups and/or users. For more info, see Chapter 10 of the "Publishing Reports to the Web" documentation: http://download.oracle.com/docs/cd/B14099_19/bi.1012/b14048/pbr_sec_arch.htm#i1006221

  • Regarding Aging Report

    Hi,
    In one of My report is using for calculating the age for material.In that report first i am selecting the all quantites from MARD table then for each material i am calculating the quantity from MCHB table fnally i am calculating the age and calculating the quantity for other columns like MARD(qty) - MCHB(Qty) and it will display in other columns.
    But My problem is when we executed the report at the same time if i ran the T.Code for MM1B for transfer the goods by using Movement type 311 that time i got negative values in other columns.
    In debugg mode i have observed following points.
    1.After fetching the MARD qty for XXXXX material(Ex :100) and put into one internal table,if you transfer the goods by using Movement type 311 then if you fetch the data from MCHB table and do the calculation it will get the negative value .
    Could you please tell me how to avoid the these negattive values.

    Vipin,
    As Dzed mentioned you can avoid running the report when MB1B is running.
    Just check if you can put a validation in the zprogram which checks if MB1B transaction is running,if running give an error message "Report can't be executed as MB1B is under execution currently" else as usually carry on executing the report.
    May be there will be a field which lets us know whether a transaction is under execution or not which can be used in the above said validation.
    K.Kiran.

  • Show/Hide tabs in a report using profiles

    Hi,
       There is a need to show hide/show tabs based on User Profile or any other method.
       There are 1. Summary  2. Detailed Tab in report.
       For data analysts client want to show Detailed tab so that Analysts can work on Analysis.  Managers shoud be able to see only Summary tab.
      This is required to reduce no of modificatiosn required for reprots. This helsp to avoid prolifiration of reports as well.
      Pleas help on techniques/ tools to get this requirement at the earliest.
    Regards,
    Nanda Kishore B

    Hi Nanda,
    I do not think this functionality is currently available in WebI.
    However you could break these report tabs into two different reports and using access privilges make these two reports available to the concerned team.
    You can log a request at https://ideas.sap.com to directly work with the product group to check if this exact functinality could be included or not.
    Hope this helps.
    Regards,
    Manpreet

  • Filter condition for Webi report scheduling

    Hello,
    I have a Webi report with a query that has one filter (it states the starting and ending date of data to be displayed in the report). This report has to be scheduled but it has to contain different filter values each time the report is run.
    I'd like to know if there is a way to schedule this report taking into account that each iteration of the scheduling process has to use different values for the filter.
    On the same way, the Webi report has a XY diagram with a text title made up of a fixed literal label. Is there any way to inject the text title from the scheduling process (in order to avoid editing the report before each scheduling iteration occurs)?
    Thanks a lot!

    Victor,
    one filter (it states the starting and ending date of data to be displayed in the report). This report has to be scheduled but it has to contain different filter values each time
    There are a couple of ways to handle this requirement, depending upon other environmental factors.  Here is one method, but it requires the ability to update/change data at the database using an external tool (anything that permits processing transactional information).
    You can set up an additional table with two columns:  starting_date and ending_date
    Someone updates the additional table as appropriate before the next run will kick off in the schedule.
    The tricky part is in getting your current report to incorporate the other table, and for this you may need to either create a view in your database or a derived table in your universe.  Here is the rudimentary SQL structure that might work for you:
    create table start_end_dates (beginning_date datetime,end_date datetime)
    go
    insert into start_end_dates values ('9/1/2009','9/30/2009')
    go
    create table my_data (col_a char(1),month_id datetime)
    go
    insert into my_data values ('a','9/1/2009')
    insert into my_data values ('a','10/1/2009')
    go
    select *
    from my_data
    where month_id >= (select beginning_date from start_end_dates) and
          month_id <= (select end_date from start_end_dates)
    The start_end_dates table is the one that receives a single input, populated with the starting and ending date of data.  The "my_data" table is an example of how the source table can call in the "parameters" of the "start_end_dates" table to fulfill its quest for filtering (additional filtering on other things within your scenario can also be applied).
    Once you can get the mechanics of the SQL to work for you (either in the universe or a view), then you can set the report up to work hand-in-glove with the above structure.  In the report, you can either have a second data provider that selects on the "start_end_dates" table, storing that data in the report and displaying it somewhere, or you could use the min(month_id) and max(month_id) concepts and display that somewhere too.
    Thanks,
    John

  • How do I publish the latest instance of a report object ?

    I have 2 report objects which are scheduled/refreshed daily around 8:00am ish.
    History shows a new report instance is successfully created each day.
    I have a recurring daily publication which emails them out to dynamic recipients as PDF attachements at approx 8:15am.
    Trouble is the attached reports are always the same ie. the 1st/oldest saved instance.
    How do I pick up the latest available instance of a report within the publication ?
    Note - I am trying to avoid refreshing the reports at publication time because of locking issues.
              I am also trying to avoid maintaining 2 separate publications.
    Any ideas ?
    Thanks
    Malcolm.

    See if using the id3 property of the Sound class helps you out.  There's no guarantee that your sound carries the id3 info you want.

  • How to disable showing page number on oracle report

    Hi,
    when i am using ttitle and btitle options in oracle report, page number & date gets automatically added top of my report. Is there any option if i don't want these two to appear on my report. how can i disable them.

    Hi,
    user8531525 wrote:
    Hi,
    when i am using ttitle and btitle options in oracle report, page number & date gets automatically added top of my report. Is there any option if i don't want these two to appear on my report. how can i disable them.When you use the word "report", people (like Tubby) are likely to think you are using Oracle Reports, rather than SQL*Plus. Avoid the word "report", or else make it clear what you're doing.
    By default, TTITLE puts the date on the left, and the page number on the right.
    If you don't want them, put something else there. Explicitly put an empty string there, if you don't want anything else:
    TTITLE  LEFT ""   CENTER "Monthly Firbolig Summary"   RIGHT ""

  • Running report and get the report result with coding

    Hi all,
    In our R/3 system, there is a custom sales report.
    My question is: is there possibility to get data by running this report and grab it the result with code and store it in internal table?
    Sorry if my question too basic because I am not abaper
    I am just wondering to find new solution for my project.
    Regards,
    Steph

    My requirement is: I want to get the result from this report
    (rather than try to get the data from SAP original table, because this report is very complicated with a lot of selection data) and use it this result into my new program.
    The mechanism that I want is pull the result from the current report, not to add some code in current report to push into new program, to avoid changed the report.
    Btw, the output of this report not only the excel file, we can also run this report on foreground mode and see the result.
    The report is not ALV report.
    Regards,
    Steph

  • After restart Oracle Report Server some reports start automatically to run.

    When our report server is restarted always a number of reports are started automatically.
    I don't know why these are started automatically?
    Is there a avoid starting these reports?

    Hello,
    If you are storing the jobs on the database then please check:
    Using the Reports Server Queue PL/SQL Table and API - RW_SERVER_JOB_QUEUE (Doc ID 72531.1)
    otherwise just rename the report server .dat files
    1- Go to $ORACLE_HOME/reports/server directory
    2- Rename Reports Server dat file.
    Unix example :
    mv reports_server_name.dat reports_server_name.dat.old
    3- Try again to start Reports Server
    Possible causes of the issue are:
    1.scheduled jobs
    or
    2.restart of report server while some jobs were waiting in the queue
    Regards,
    Alex
    If someone's answer is correct or helpful please mark it accordingly.
    Edited by: AlexDiniasi on 02.08.2012 18:49

  • Design Database for Reports

    I am using sql 2008 R2 SE. Currently I have separated out our reports databases that are being used for internal purpose. However these report databases are logshipped secondary databases being hosted on secondary server. The reason I separated reports databases
    from the transactional databases is I didnt wanted the queries being used for reports causing blocking and deadlocks with queries being used by our apps.
    However due to growth in data the queries that I used in the rdl files are taking longer time to run. So some reports are taking very long time to load and output the results. And since I am querying against the standby secondary database I cannot add indexes.
    But the query execution plan suggests that adding some indexes would improve the performance by almost 90%. If I add these indexes to the primary database then its degrading performance as its causing slowness in the applications. And the applications and
    the reports built are using different queries.
    I want to take experts opinions on how to implement a better strategy for reports in this scenario. Experts please share your valuable thoughts.

    For the similar scenario, i have implemented SQL Server Transactional replication.
    My Scenario:
    Server A, and the DB_name - XYZ. On XYZ DB needs run reports to avoid blocking and reports performance decided to configure replication on another server and install reports on different server
    Server B, Replicated DB_name Rep_XYZ, Installed SSRS on server B.
    Coming to the Index part - I didn't created any extra indexes on subscribed database. For your case some indexes will cause insert/deletions would be cause delay and overall performance will be degraded. You need to decide the which index are required.
    Thanks,
    Satish Kumar.
    Thanks, Satish Kumar. Please mark as this post as answered if my anser helps you to resolves your issue :)

  • Archiving Hierarchy's for legacy reporting?

    Experts -
    Is there a method (or best practice) to clone a snapshot of a hierarchy at year end, and allow for reporting off of it should the users need to go back in time and see how things look? (due to audits - changes to previous fiscal year can occur 3 or 4 months into the next fiscal year).  We also want to avoid having duplicate reports pointing to separate hierarchys.
    End users are requesting that we archive a reporting hierarchy at the end of each fiscal year.  Our hierarchy changes frequently due to acquisitions and reorg and it's difficult to see "how things were".
    From a maintenance perspective - we only want one hierarchy that evolves with the business, but it seems we might need more to satisfy this requirement...
    Has anyone encountered a similar issue?
    (Our financial hierarchy is maintained in ECC, then synced up in BI)
    Thanks,
    Matt
    Edited by: Matthew Brown on Jul 26, 2011 7:59 PM

    We've spoken with SAP SME and this effort is too custom.

Maybe you are looking for

  • I-tunes wont open please help

    It isnt in any files and when I try to re-download it the file says Cant install because quicktime player isnt present. But on my desktop the icon says Quiktime player. When I open the quicktime player it works and im able to play songs on it. Please

  • How to insert a single quote ........

    hi, How do i insert a sngle quote in a table from sql prompt suppose if i want to insert Luna's car. how i do it... i get error...on sql prompt

  • Multiple routers and subnets - can't access across subnets

    Hey all, I'm having an issue with multiple routers and subnets on my FIOS connection. Here's how everything is setup: Primary router: ActionTec MI424WR Rev D (from Verizon) WAN IP: From ISP WAN NETMASK: From ISP LAN IP: 192.168.1.1LAN NETMASK: 255.25

  • Proforma Invoice and Advance Invoice

    QUESTION ======== In Purchasing and Payables - when purchasing organization receives Proforma Invoice from supplier it can not make advance payment before receiving advance invoice. The work flow is as follows: Real Business Process: Purchase Order f

  • Embedded QT in IE

    I have embedded QT movies in web pages for years, using both EMBED and OBJECT. Now there is a problem with IE. The EMBED tag doesn't work in it, it requires use of the ActiveX Control (Object). But now in IE7, ActiveX Objects will not play by default