Code Break for WEBI report

Could someone help me in the following code which is in Custom SQL. In the code in the From Clause there is a code which acts as Table. How can I achieve this in WEBI as a single code.
SELECT DISTINCT
  PENDETAIL.TRADE,
  PENDETAIL.PRODUCT,
  PENTRANSACT.ACCTDATE,
  PENDETAIL.PENTRANSACT,
  PENTRANSACT.SAP_DOCUMENT_NO,
  PENDETAIL.ACCOUNT,
  Iowa.SAPAccountCode(PENDETAIL.ACCOUNT) sapact,
  PENDETAIL.COUNTERPARTY,
  PENDETAIL.QUANTITY,   
  PENDETAIL.CREDIT,
  PENDETAIL.DEBIT,
  SHIPMENTPENDTL.VESSEL,
  PENDETAIL.DESCRIPTION,
  (( PENDETAIL.CREDIT ) - ( PENDETAIL.DEBIT )) amt,
  COUNTERPARTY_PENCP.SIC,
  Iowa.SAPProfitCenter(PENDETAIL.ACCOUNT) a,
  PENTRANSACT.COMPANY,
  PENDETAIL.SHIPMENT,
  PENDETAIL.SUBLEDGER,
  NVL(PENDETAIL.CONTRACT,DEV_GROSS_LENGTH_DETAIL.CONTRACT),
  PENDETAIL.PENDETAIL,
  PENDETAIL.QUANTITYSTATUS,
  PENDETAIL.QUALITY
FROM
  PENDETAIL,
  PENTRANSACT,
  SHIPMENT  SHIPMENTPENDTL,
  COUNTERPARTY  COUNTERPARTY_PENCP,
  (Select distinct shipment, contract from PENdetail where contract is not null) DEV_GROSS_LENGTH_DETAIL
WHERE
  ( PENTRANSACT.PENTRANSACT=PENDETAIL.PENTRANSACT  )
  AND  ( SHIPMENTPENDTL.SHIPMENT(+)=PENDETAIL.SHIPMENT  )
  AND  ( PENDETAIL.SHIPMENT = DEV_GROSS_LENGTH_DETAIL.SHIPMENT)
  AND  ( COUNTERPARTY_PENCP.COUNTERPARTY=PENTRANSACT.COMPANY  )
  AND  (
  PENTRANSACT.ACCTDATE  BETWEEN  @variable('Enter the Beginning Date (MM/DD/YYYY)') AND @variable('Enter the Ending Date (MM/DD/YYYY)')
  AND  Iowa.SAPAccountCode(PENDETAIL.ACCOUNT)  IN  ('30110075', '30115075', '40110075', '40115075')
  AND  PENTRANSACT.COMPANY  IN  @variable('Enter Company Name')
In the code the difference is in the FROM Clause which acts a table:
(Select distinct shipment, contract from PENdetail where contract is not null) DEV_GROSS_LENGTH_DETAIL
In Where clause:
AND  ( PENDETAIL.SHIPMENT = DEV_GROSS_LENGTH_DETAIL.SHIPMENT)
Select Clause:
NVL(PENDETAIL.CONTRACT,DEV_GROSS_LENGTH_DETAIL.CONTRACT),
For the little code which acts as table ,I think there is no need of derived table I guess.

Hi ,
Two options in my opinion.
1.Remove the derived table and bring in an alias table to same SQL.Refer Query1
2.Remove the derive table and perform everything with One instance of the PENDETAIL.I am not clear why you need to query the table again for the below field as query is displaying the same CONTRACT field irrespective of the fact it is has null or non null value .Did i miss anything here?
NVL(PENDETAIL.CONTRACT,DEV_GROSS_LENGTH_DETAIL.CONTRACT),
Second option is better as my opinion .
Query 1
SELECT DISTINCT PENDETAIL.TRADE,
  PENDETAIL.PRODUCT,
  PENTRANSACT.ACCTDATE,
  PENDETAIL.PENTRANSACT,
  PENTRANSACT.SAP_DOCUMENT_NO,
  PENDETAIL.ACCOUNT,
  Iowa.SAPAccountCode(PENDETAIL.ACCOUNT) sapact,
  PENDETAIL.COUNTERPARTY,
  PENDETAIL.QUANTITY,
  PENDETAIL.CREDIT,
  PENDETAIL.DEBIT,
  SHIPMENTPENDTL.VESSEL,
  PENDETAIL.DESCRIPTION,
  (( PENDETAIL.CREDIT ) - ( PENDETAIL.DEBIT )) amt,
  COUNTERPARTY_PENCP.SIC,
  Iowa.SAPProfitCenter(PENDETAIL.ACCOUNT) a,
  PENTRANSACT.COMPANY,
  PENDETAIL.SHIPMENT,
  PENDETAIL.SUBLEDGER,
  NVL(PENDETAIL.CONTRACT,PENDETAIL_NOTNULL.CONTRACT),
  PENDETAIL.PENDETAIL,
  PENDETAIL.QUANTITYSTATUS,
  PENDETAIL.QUALITY
FROM PENDETAIL,
  PENTRANSACT,
  SHIPMENT SHIPMENTPENDTL,
  COUNTERPARTY COUNTERPARTY_PENCP,
  PENDETAIL PENDETAIL_NOTNULL
WHERE ( PENTRANSACT.PENTRANSACT      =PENDETAIL.PENTRANSACT )
AND ( SHIPMENTPENDTL.SHIPMENT(+)     =PENDETAIL.SHIPMENT )
AND ( PENDETAIL.SHIPMENT             = PENDETAIL_NOTNULL.SHIPMENT)
AND ( COUNTERPARTY_PENCP.COUNTERPARTY=PENTRANSACT.COMPANY )
AND ( PENTRANSACT.ACCTDATE BETWEEN @variable('Enter the Beginning Date (MM/DD/YYYY)') AND @variable('Enter the Ending Date (MM/DD/YYYY)')
AND Iowa.SAPAccountCode(PENDETAIL.ACCOUNT) IN ('30110075', '30115075', '40110075', '40115075')
AND PENTRANSACT.COMPANY                    IN @variable('Enter Company Name') )
AND PENDETAIL_NOTNULL.contract             IS NOT NULL
Regards,
Bilahari

Similar Messages

  • How to make Management of row level restrictions easy for webi reports?

    Hi all
    Our BO Product version is 12.3.0.601 (BO 3.1)
    We are applying row level security for webi reports at universe level...
    Since  Universes are more in Number we have to create same restrictions and apply it to the users lets take a restrictions on region....which is common across all universes.
    So the problem lies with the management of restrictions created at universe level.
    Can we have a setup in where we can centralized the restirctions at a place so that management would be easy ......???
    Shall we have to import the roles(restrictions) from R/3 or BW or Database level...?
    Then how we will restrict our report (webi) to a region?????
    So basically webi reports should run with the restrictions lets say region....How we will achieve this?/
    Thanks and Regards
    Ritu Raj

    Hi,
    what is your Datasource?
    If its SAP BW i would highly recommend you use the SAP Authentication in your  BOE XI 3.1 So the users log into BOE with their SAP Username and Password and than the Data restriction of your BW takes place when the users run their Reports.
    Informations on how to confiure the SAP Authentication you will find in the installation Guide of the SAP ITK.
    Regards
    -Seb.

  • Change File Name In The "File Download" Dialog Box For Web Reports

    Hi All ,
    I followed the below note to change the "File Download" name.
    How To Change The File Name In The "File Download" Dialog Box For Web Reports? Doc ID: Note:418366.1
    However its not working. Has anyone tried this and works fine ?
    Basically I wanted to change the name "rwservlet" when a report is run in an
    excel format.
    Rajesh Alex
    Rajesh Alex

    Hello,
    Have you checked if a HTTP header "Content-disposition" is returned ?
    You can use ieHTTPHEaders for IE
    http://www.blunck.se/iehttpheaders/iehttpheaders.html
    and
    Live HTTP Headers for FireFox
    https://addons.mozilla.org/en-US/firefox/addon/3829
    Regards

  • Which folder i have to put my .jsp file for web report?

    for web report(not the paper report) i put my .jsp files in the
    \reports\j2ee\reports_ids\web
    folder
    this is for the DS(Developer Suite)
    i'm trying to move this file to different machine where AS(Application Server)
    is installed.
    but couldn't find above path. where do i have to put .jsp file for
    web report?
    or do i have to modify in the registry? if so, where?
    Thanks

    Hello,
    Take a look to the thread :
    where to add new jsp reports directory location in path
    "...You have to keep jsp files under document root that is OH/j2ee/OC4J_BI_Forms/applications/reports/web directory. You can create sufbolders under this directory and keep jsp files. ..."
    Regards

  • Execution time for web reports

    Hello every one,
    How to calculate execution time for web reports, for query execution we will go through RSRT, by giving query name and press execute + Debug button then select statistical data & Do not Cache buttons then press enter, after getting output press on back button, we will get duration of the query.....
    But my question is , can we calculate execution time for webreport, if so can you please guide me.
    and can you also tell me , if there is any RRI for one report, how to calculate execution time for these queries.
    Ex : Query ABC have XYZ as its drilldown report , i need to calculate execution time for XYZ report via ABC report.
    Thanks in advance,
    Best Regards.
    NP.

    Hi,
    For reports executed in java web you can add the parameter &PROFILING=X
    to the URL in order to record the execution time. Please have a look at SAP note 1048691 for further information.
    Best regards,
    Janine

  • Transaction code creation for a report group

    Hi all,
    I created a transaction code ZF17 for a report group FI02 with the following parametrs.
    Transaction: START_REPORT
    checked the skip initial screen check box.    
    D_SREPOVARI-REPORTTYPE = RW
    D_SREPOVARI-REPORT = FI02
    When i tried to run the T-code ZF17, it gives me
    a message : PROGRAM FI02 doesn't exist
    Any ideas why this message comes up?
    Thanks,
    Sobhan.

    I would think that its looking for a program name in the D_SREPOVARI-REPORT  field,   FI02 is not a program name.
    Regards,
    Rich Heilman

  • Authorizations for WEBI report based on BPC data model

    Hi All,
    We are strugelling with setting up authorisations for the reporting on BPC data model.
    We created Bex query on top of Multiprovider that consists of BPC cube. The Bex query is source for WEBI output. The authorisations has been set up on BPC data model (cube) in BPC application but they are not passed nor to Bex query nor to Webi. Example: The query is build on top of OPEX BPC data model, this data model is restricted based on Oranizational Unit. My test user is allowed to see only Org Unit = 'Australia' in the OPEX BPC data model, however when I'm running the report I can see absolutely everything.
    We are not connecting/using any BI cubes itself for this reporting. We are intrested only in the WEBI report based on BPC data models.
    We were trying to use BPC data model (without any extra settings) as the source for BEx report, we were also trying to use virtual BPC data model as the source for Bex transient query - but non of these have helped.
    Can you please advise how the authorisations should be set up for WEBI reporting on BPC data models?
    Kasia

    Anybody can help with this issue please?

  • Prerequisites for webi reports 4.0 to view in Mobile

    Hi,
    Please can anyone provide me the details regarding Prerequisites for webi reports  4.0  and design studio 1.2 (like Server requirements,Bo Mobile requirements,supported components ) to view in Mobile .
    Thanks in advance,
    Regards
    Sushma

    Did you check the admin guides (available here: Business Intelligence – SAP Help Portal Page) ?
    For example,
    Design studio: http://service.sap.com/~sapidb/011000358700000146402014E/ds12SP01_admin_bip_en.pdf -Chapter 5.4

  • The action cannot be performed error for Webi Report

    HI,
    I am getting the error The action cannot be performed error for Webi Report. I am getting this error after i save the report and open it again.

    This is happening for only 1 particular report. In the end  i  removed some of the objects from the query and added some new ones.
    Strangely it worked!

  • RRMX for web report?

    Hi,
    Just busy defining authorizations for web reports based on BEx queries. In the role is the S_TCODE=RRMX REALLY needed? And if so does that entail that the users can use BEx query designer as well?
    Thnx for thinking.

    Thnx.
    Do you refer to the "change local/global definition" in "excel" via the BEx query designer? Because that is the functionality that I would like to restrict, web access only.
    By different "auth objects" you refer to the S_RS_COMP etc?
    Thnx in advance.

  • Documentation for Web Reporting

    Hi All,
      Is there any documentation available for web Reporting...if so please let me know...
    Regards
    srinivas

    Hi..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/828d9590-0201-0010-95a7-ea8cf8814b94
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d8eee909-0701-0010-9b88-c8431b5f1ce5
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49dfeb90-0201-0010-a1a2-9d7a7ca1a238
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cdfbb990-0201-0010-d78b-81e475fc1010
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8f742499-0701-0010-ca98-a15ee9eec03e
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a751d990-0201-0010-55b3-8b83d9afbd9b
    <b>https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9a444d6e-0901-0010-93b6-a3b2415f8188
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ad0a4b07-0301-0010-5095-ef7615676fc0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bda556e9-0c01-0010-83b0-d519d6deb9e9</b>
    Message was edited by:
            search

  • Breakout of data for Webi Report

    I am not sure if this question should go here or in the Universe forum but I will post it here first.  I am using BOBJ Edge XI3.1 with SQL Server 2005 holding my data.
    I have a universe that has 4 tables in it.  The first table is "CSS_Facts" which is a Fact table consisting of aggregate data.  Table two is "TJG_Organization_CSS"  that holds six levels of hierarchy for all clients.  Corporation, System, Facility, Division, Service Line and Department.  Department is the lowest level so there is an "Organization_Key" for every department for every client.  Table three is "TJG_Survey_CSS" which holds all of the survey data for every client.  Every answer for every survey has its own "Survey_Key".  Lastly I have "TJG_Time" which has a "Time_Key" for every day of the year.
    Table "CSS_Facts" has a foreign key for each of the three tables above with the same field name as the key field in each of those tables.  The cardinality for all three of these joins is many to 1 from the "CSS_Facts" table (ex:  many "Survey_Keys" from the Facts table to one key in "TJG_Survey_CSS").  The facts table also has 4 other fields which hold the counts and or computed fields.
    All of this works perfectly for most of what we do.  I can build a WEBI document that has all of the fields that I need.  As an example, I can get a report of all the statements for a given timeframe for a specific survey number for a specific client.  If the survey has 50 statements in it I can get back all of the statements with the counts for all of the possible answers for each statement.  This is expected and what we want.
    Our problem is being able to break this down based upon the answer(s) to one question in the survey.  Let's say statement number 2 in the survey is an age statement that has 5 possible answers.  Answer 1 might be "Less than 18.".  Answer 2 might be "19 to 29.", and so on.  When I filter my query in my Webi to just bring back results for anyone who chose Answer 1 (Less than 18) for this statement I get back pretty much what I expect, that question only with all of the possible answers but a computed total for just answer 1 (less than 18) with all of the other answers getting zeroes.  Again, this is what I expect to get back based on the WHERE clause that is generated but not really what we want.  We want to get back the complete survey in the report, all 50 statements with new count totals per statement based on the answer (Less than 18) from that 1 question.
    Is this possible to do within Webi reports?  If not, can this be done outside of a webi report, but then brought back into the Universe to be consumbed by a Webi report?
    Thanks for any help in advance.

    You can use the following work-around without the need for an SDK solution.
    Display this info in the report in stead of in the pop-up...
    Just create a cell with the info want to show and hide it if there is data,
    (use and alerter to empty it when you have data and hide on empty)
    show it when there is no data fetched.
    Hope this helps,
    Marianne

  • Roles & Authorizations for Web Reports...

    Hello Experts,
    We are newly implementing Web Reports in our organization. I need your great thoughts regarding implementing Authorizations for users to access the reports.
    We are using a report menu page that contain links to all the reports. The page opens by clicking on a link on the portal. The individual reports are basically accessed from this page by clicking on the corresponding button (links a URL ).
    I wonder if there is any way to look into the menu page (XHTML code of that web page/application) when ever the users click on the reports link and disable those buttons that the users are not allowed to access depending on the roles users are assigned to. Otherwise is there any better way to do it.
    And also how to call a function from web applications.
    This is a kind of urgent issue any quick ideas would be greatly appreciated.

    I apologize for the difficulty in reading this  I will repost.
    We have had no training or received any documenation on WAD.  The below was created from internet research.  Hence there may be WAD functionality that would allow easier maintenance, however; this is what we use.
    With our dashboard, I have a web template that contains hyperlinks for our reports.  I will call this HeaderTemplate1.  For each web page I have report templates.  These report templates have the HeaderTemplate1 mentioned above as well as the report tables, charts, text elements, tabs, etc.
    The JavaScript logic for accessing the urls of the specific report templates is contained within our HeaderTemplate1.
    Below is how our setup was tested.  Keep in mind, this was only for testing basic functionality.  If this is something we use I will most likely create a master data table that houses the user ID and an attribute for the header type.  Thus, any report menu changes can be altered quickly without changing the javascript of each report template.  Also this will accomodate the few thousand users we have.
    To add the functionality of different 'menus', I created another header template with the same hyperlinks of HeadertTemplate1 with the exception of one or two hyperlinks.  This, HeaderTemplate2, was added to each report template just below HeaderTemplate1.  Note that both HeaderTemplate1 and HeaderTemplate2 were set as visible on each report template.
    Also, on each report template I added a text element.  The 'List of Text Elements'property was set as such; Element Type = General Text Sympol,  Element ID = SYUSER.  This Text Element was linked to a query  or view from BEx via the dataprovider.  On the HTML side, I surrounded this Text Element with
    <Font ID="UserID",,,textelement....</Font>
    Each Report template has this javascript function, fnRepOnLoad, which is triggered at the OnLoad event.
    [<SCRIPT language = "JAVASCRIPT">                       
      function fnRepOnLoad()
        var user_ID=document.getElementById("UserID").innerHTML;
        if (user_ID=='USER123')
          document.all["HEADTMPLT1"].style.visibility = 'hidden';
          document.all["HEADTMPLT1"].style.position = 'absolute';
        else         
          document.all["HEADTMPLT2"].style.visibility = 'hidden';
          document.all["HEADTMPLT2"].style.position = 'absolute';
    </script>
    The function results as this.  If the user is USER123, HeaderTemplate1 is hidden, leaving only HeaderTemplate2 visible.  Otherwise HeaderTemplate2 is invisible leaving on HeaderTemplate1 visible.
    We do not use buttons as our global leaders prefer hyperlinks but buttons can be enabled or disabled similarly.
    As mentioned before, if this method is implemented, I will create a reportable master data table.  Create a customer exit variable to retrieve the header template required for the user.  This header template variable value will then be pulled by a text element on each report template.  The script function will act as follows.  If many report headers are necessary I may use a case statement.
    Var User_template=document.getElementById("UserTmplt").innerHTML;
    If UserTmplt = HeaderTemplate1
    -->  make all header templates other than HeaderTemplate1 invisible
    else
    -->  make all header templates other than HeaderTemplate2 invisible
    etc...
    I hope this helps.  Please keep me posted with your solution.  I am very interested to learn what others are doing.
    Best Regards,
    Larry

  • Customizing Print Options for Webi Report

    Scenario:
    Environment: BO Xi R3.1
    Webi report having around 10 tabs in a Single report and all report tabs are built on 1 query.
    Requirement
    1)Need to have print pop up box which will give the same functionality as Office tools to the end users.
    i.e., need a way to bring the Java Report Panel (Edit mode) print dialog box to the DHTML (View Mode) so that End Users have more options for printing.
    2)Need to have an option to print report tab selectively.
    3)Need to have an option to print reports for multiple filter selections.
    Any pointers, suggestions to the above requirement are of great help.
    Appreciate, if the Specific SDK class details are also mentioned with any possible options.
    Thanks in advance
    Vijay B

    Lawrence,
    The form is where I concatenate the SQL that is the record source of both the report and the subsequent record updates. So the form is always open before the report is opened (that is where the code to open the report resides and is run), and it must remain
    open while the report is open to maintain the value of the variables, including the WHERE clause of the SQL statement that will be used for the posting process when the user closes the report. That is, the SQL used to open the report MUST match the
    SQL used when posting the records, or the user could change some selection parameter and post records not on the report.
    And I open both the form and report modally to prevent a user from inadvertently running the report's Close event outside the context of the form, with its variables all set for the posting process.
    I know I could pass all of this to public variables, but I am trying to keep it as clean and as close to the Form -> Report -> back to Form as I can.

  • How to remove the page break for CSV report

    Hi,
    I'm working on a rdf report and have an issue with page break.
    As usual there exits a page break in the report output. how do I remove it.
    work around: set Page break before/after : NO
    worked on margin re-size, how ever could not resolve the issue.
    Can any one help me on this.
    Thanks in advance.
    Thanks,
    Santhosh

    There are two ways to do this:
    1) If you want to remove and individual dimension from a presentation, you can hide the dimension. This can be performed directly from within QueryBuilder. Within the first section of Query Builder that shows the selected measures selected and associated dimensions, simply remove the required dimensions from the right dialog panel.
    2) To hide all page items within a presentation, simply add the following the property, pagingControlVisible="False", to the presentation tag in your JSP. For example:
    <orabi:Presentation location="Local Computer Sales/Products/KPI Sales Prior Period and Prior Year" id="BIProductKPIs_pres2" pagingControlVisible="False"/>
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

Maybe you are looking for

  • Error while clearing a document.

    Dear All, When I try clear from account 2370500 items, which will generate exchange rate differences, I get the following message: Ex.rate diff.accts are incomplete for account 0002370500 currency EUR. The other items can be cleared. Please complete

  • Edit in Adobe Photoshop CC 2014

    When in Lightroom 5 and I select "edit in Adobe Photoshop CC 2014" it doesn't create a copy in tif or psd format (or jpg format) like it did in previous versions.  A box use to pop up allowing me to set the file type, color space etc then in Lightroo

  • How to animate a reloaddata call for UITableView

    I have a nested set of choices a user can select, and I'm using a single UITableView to present these choices. The user can tap an item and if it has the UITableViewCellAccessoryDisclosureIndicator that means there are related items to be selected. I

  • Art work randomly displaying or not syncing.

    Touch 1.1.3 (with software update) ITunes 7.6 on Vista Home Premium. The vast majority of my albums have synced fine but for some the Touch doesn't display the artwork regardless of orientation being landscape or portrait. For the one's it doesn't wa

  • HT1451 What does the error message 13005 really mean?!?

    It is now the second time that I got the 13005 error code. After I got it the first time nearly the whole content was out the library and I had to reimport it. Does anybody know how I  can prevent this in the future and what error code 13005 really m