Report Builder Using Cubes

I am trying to create query logic that reflects this:
If (Parameter = "Proportional" and Line Number = "310") Then True OR If Parameter # "Proportional" Then True Else False
My Data:
Parameter = "Proportional", "Premium", "Claims" etc.
Line number = 310,110, 140 etc.
My feeble attempt looks like this:
IF(AND(Statement Type = "Proportional",LineNumber = "310",IF(Statement Type # Proportional),True,False)

sounds like this to me
IIf ((Parameters!ParameterName.value = "Proportional"
And Fields!LineNumber.Value = "310") Or Parameters!ParameterName.value <> "Proportional",True,False)
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Testing reports outside of Reports Builder using Oc4J

    Hello
    Has anone been able to sucessfully test a report ( 10g) with the OC4J that come with it ?Am looking for some high level steps .
    Deepa

    Hi Deepa
    You can create report and place it in OH/reports/samples/demo folder.
    Then go to OH/j2ee and start the bat file startINST.bat
    this will start the j2ee Oc4j ,minimize it.
    Then go to OH/j2ee/devsuite/config and open DEFAULT_WEB_SITE.xml and check the PORT number.
    Now open a browser and try to run this url
    1.http://<machinename>:<port>/j2ee -- this should show help page
    2. http://<machinename>:<port>/reports/rwservlet -- This should show servlet help page.
    3.http://<machinename>:<port>/reports/rwservlet?report=<yourreportname>&destype=cache&desformat=html&userid=<username>/<password>@<SID>
    You need to chenge the entried shoen in <....> tags in url, rest use as it is.
    enjoy running reports.
    Thanks
    Subodh

  • Exception while opening a JSP file created using oracle report builder

    I have created a JSP page which contains embedded Oracle reports build using Oracle Report Builder.
    I have deployed the JSP created above to the Oracle Application Server
    but when i try to open the JSP file it gives the following error:
    500 Internal Server Error
    javax.servlet.jsp.JspException: rwlib-1: REP-1202: ORACLE logon not specified. at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:206) at testing.test1._jspService(_test1.java:75) [SRC:/testing/test1.jsp:0] at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:567) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
    can anybody help regarding this
    this is of high priority to me
    thanks and regards
    Subhajit

    bump

  • How to find the maximum of group sums within a specific column using report builder 3.0

    Hi
    For each part number I am trying to find out in which week of a month did the largest daily shipment occur... so using report builder 3.0
    in SSRS 2012 I can find daily, weekly and monthly totals for the units shipped but I am having a hard time thinking through the logic to find the daily max for each week.
    in my data I can have multiple orders/shipments for the same product on the same day.
    The ultimate goal is to set inventory levels
    So..
    In my matrix report I have
    Row groups:
    Classid => Product class
    InvtID => Item Part Number
    Column Groups:
    FiscYr=> Fiscal Year
    PerPost => Month or period the transaction occurred
    Week_period => the week the transaction occurred
    Day_period => The day that the transaction occurred
    The aggregations are 
    Sum(case_shipped) 
    Max(case_shipped)
    The Sum(case_shipped) is working as desired but the Max(case_shipped) is picking out the max amount shipped on any one order when looking
    at the week, month or fiscal period and that is not what I need.
    I have attached a screenshot since a picture is worth more than my words. I have also included some sample data
    I would very much appreciate any thoughts on this. I am guessing that the solution has something to do with using the inscope function but
    I can't wrap my head around how to use it
    Thank you 
    Tom D
    Here is some sample data for Product A
    Invtid Case_ship Trandate    FiscYr   PerPost   week_period        day_period
    A         10           1/1/2104    2014        1    
              1                           1
    A           3           1/1/2014    2014        1  
                1                           1
    A         50           1/2/2104    2014        1    
              1                           2
    A         30           1/3/2014    2014        1    
              1                           3
    A         20           1/9/2104    2014        1    
              2                           2
    A          5            1/9/2104    2014        1  
                2                           2
    A        20          1/10/2014    2014        1    
              2                           3
    A        60          1/10/2104    2014        1    
              2                           3
    On 1/1/2104 I shipped a total of 13 cases
    On 1/2/2104 I shipped a total of 50 cases
    On 1/3/2104 I shipped a total of 30 cases
    On 1/9/2014 I shipped a total of 30 cases
    On 1/10/2014 I shipped a total of 80 cases
    On 1/9 I shipped a total of 25 cases
    I would like to show that in week 1 the maximum number of cases shipped on any day is 50 (1/2/2014)
    I would like to show that in week 2 the maximum number of cases shipped on any day is 80 (1/10/2104)
    I would also like to show that in perpost (month) 1 the maximum
    number of cases shipped on any day is 80 (1/10/2104)

    Hi
    I was able to find a solution
    I built a new dataset in report builder using the same table as before but tried out the "Group and Aggregate" function and for the case_ship
    field I chose "Sum" as my aggregate.... In essence this gave me a very cool and easy daliy sum of the shipped cases. 
    When I used this new dataset and built my matrix report I was able to easily get the max daily shipment for each product by week, month and
    year.
    Tom

  • How to use Report Builder with permission extension

    Is there any method to let web site which use SSRS and Report Builder use different permission extension module?
    In our web site project we use ReportingService2010 Methods to show and operate folder and report which stored in Report Service, in our project configuration file, we use windows authentication mode for Report Service.
    In requirement 1.User can do any operation in folder “A” and folder “B” (we can create and delete report or folder) in web site. 2.User can’t use “Report Builder” to save reports which created by Report Builder to folder “B”, Reports which created by Report
    Builder only can be saved in folder “A”. [User click “Report Builder” button in our web page to start Report Builder, use  “Report Builder” to create report, if user want to save report, we need to hidden folder “B” in “Report Builder” or we need to remove
    some operate right from folder “B”.]
    We have two solution:
    1. We want to write extension module to process this issue, we want to re-write CheckAccess method which will be called by web site backend  and Report Builder, but how can we know who called CheckAccess method[Web site backend called CheckAccess method
    or Report Builder?]
    2. We want to let Web site back-end use permission extension module named WebSitePer.dll, and Report Builder use PBPer.dll, how to modify the configuration file?

    Hi Fang,
    As far as I know, SQL Server Reporting Services (SSRS), have no permission extension. In Reporting Services, it is use role-based security to grant user access to a report server. There are two types of roles: Item-level roles and System-level roles.
    Based on my test, if we assign user with System User System-level role, the user will have permission to user Report Builder to create report. However, if we only assigned Browser or Report Builder Item-level role to the user, he/she will have no permission
    to publish the report to the report server. In this situation, although user have permission user Report Builder to edit the report, it will have no effect of the report in report server. User who has assigned Browser or Report Builder Item-level role will
    have no permission to delete report in the report server.
    There is an article about Setting Permissions in Reporting Services, you can refer to it.
    http://technet.microsoft.com/en-us/library/aa337491(v=sql.105).aspx
    Hope this helps.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Unable to Start Report Builder

    Hi,
    I am new to report server. After installing it I am able to start Report Manager, however when I click on Report Builder button in Report manager, I get the following dialog:
    Cannot download the aplication. The application is missing required files. Contact application vendor for assistance.
    When I press the 'Details' button, I get this (pasting here):
    PLATFORM VERSION INFO
     Windows    : 6.1.7601.65536 (Win32NT)
     Common Language Runtime  : 4.0.30319.18052
     System.Deployment.dll   : 4.0.30319.17929 built by: FX45RTMREL
     clr.dll    : 4.0.30319.18052 built by: FX45RTMGDR
     dfdll.dll    : 4.0.30319.17929 built by: FX45RTMREL
     dfshim.dll    : 4.0.41209.0 (Main.041209-0000)
    SOURCES
     Deployment url   :
    file:///C:/Users/Peter%20Battelino/Downloads/ReportBuilder_3_0_0_0%20(4).application
    IDENTITIES
     Deployment Identity  : ReportBuilder_3_0_0_0.application, Version=11.0.2100.60, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=x86
    APPLICATION SUMMARY
     * Online only application.
     * Trust url parameter is set.
    ERROR SUMMARY
     Below is a summary of the errors, details of these errors are listed later in the log.
     * Activation of C:\Users\Peter Battelino\Downloads\ReportBuilder_3_0_0_0 (4).application resulted in exception. Following failure messages were detected:
      + Downloading file:///C:/Users/Peter Battelino/Downloads/RptBuilder_3/MSReportBuilder.exe.manifest did not succeed.
      + Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.
      + Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.
      + Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.
    COMPONENT STORE TRANSACTION FAILURE SUMMARY
     No transaction error was detected.
    WARNINGS
     There were no warnings during this operation.
    OPERATION PROGRESS STATUS
     * [7/25/2013 9:31:36 AM] : Activation of C:\Users\Peter Battelino\Downloads\ReportBuilder_3_0_0_0 (4).application has started.
     * [7/25/2013 9:31:36 AM] : Processing of deployment manifest has successfully completed.
     * [7/25/2013 9:31:36 AM] : Installation of the application has started.
    ERROR DETAILS
     Following errors were detected during this operation.
     * [7/25/2013 9:31:36 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
      - Downloading file:///C:/Users/Peter Battelino/Downloads/RptBuilder_3/MSReportBuilder.exe.manifest did not succeed.
      - Source: System.Deployment
      - Stack trace:
       at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
       at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
       at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
       at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
       at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String&
    appManifestPath)
       at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath)
       at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
       at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
       at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
       at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
      --- Inner Exception ---
      System.Net.WebException
      - Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.
      - Source: System
      - Stack trace:
       at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at System.Net.FileWebRequest.GetResponse()
       at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
      --- Inner Exception ---
      System.Net.WebException
      - Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.
      - Source: System
      - Stack trace:
       at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
       at System.Net.FileWebRequest.GetResponseCallback(Object state)
      --- Inner Exception ---
      System.IO.DirectoryNotFoundException
      - Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.
      - Source: mscorlib
      - Stack trace:
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean
    useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
       at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
       at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
    COMPONENT STORE TRANSACTION DETAILS
     No transaction information is available.
    Does anybody know what the rpoble is?
    Thank you in advance.
    Peter Battelino
    BTE Corporation 
    PMBT

    Hi Pmbt,
    From your description, you cannot start Report Builder using Google Chrome, right? In Reporting Services, you use a Web browser to view reports and run Report Manager. Not all report functionality is supported by all browsers. Google Chrome is not a supported
    browser for SSRS. So we recommend you to start Report Builder using IE. For the detail information about it, please see:
    http://msdn.microsoft.com/en-us/library/ms156511(v=sql.105).aspx
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/f50eb196-3f15-408d-acb7-7f90e3348e3e/why-does-the-ssrs-calendar-control-not-work-in-google-chrome-but-plenty-of-other-websites-with
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Report Service And Report Builder Issue

    SQL SERVE 2012
    In our web site project we use ReportingService2010 Methods to show and operate folder and report which stored in Report Service, in our project configuration file, we use windows authentication mode for Report Service.
    In requirement
    User can show and operate folder “A” and folder “B” (we can create and delete report or folder) in web site.
    User can’t use “Report Builder” to save reports which created by Report Builder to folder “B”, Reports which created by Report Builder only can be saved in folder “A”.
    [User click “Report Builder” button in our web page to start Report Builder, use
     “Report Builder” to create report, if user want to save report, we need to hidden folder “B” in “Report Builder” or we need to remove some operate right from folder “B”.]
    We have no solution for this requirement, could you help us?

    Thank you for your replay, but I don't understand it very clearly.
    Please check the first requirement:
    User can show and operate folder “A” and folder “B” (we can create and delete report or folder) in web site.
    For example, I login my PC with account "lfang", in report server, we grand "Browse" permission on both folder and grand only "Publish" permissions for folder "A", report builder can't save report into folder "B",
    it's correct.
    But our web site has create report function, that means in our web site we want to create report for both folder "A" and "B", that is the issue, if we don't give "Publish" permissions to folder
    "B", we can't create report in our web site.
    Is there any method to run "report builder" use specified account? then we can only give folder "A" "Publish" permissions with specified account.

  • Report Builder is not exist in fusion middleware forms&reports installation

    Dear All,
    i have installed oracle fusion middleware forms & report services ofm_frmrpts_win_11.1.2.1.0_64_disk1_1of1.
    form builder is there, but the report builder is not there? why? where is report builder?
    Regards.

    Hi Maahjoor,
    Try Starting Report Builder using the rwbuilder.bat found in the %ORACLE_INSTANCE%\config\reports\bin\ directory.
    If you still getting issues
    a)Backup the %ORACLE_INSTANCE%\config\reports\bin\ rwbuilder.bat file
    b)Now modify rwbuilder.bat file from the %ORACLE_HOME%\bin\rwbuilder.bat file,by manually hard-coding the correct paths for:
    $$Instance.directory$$\config\reports\bin\reports.bat
    $$Instance.oracle_home$$\bin\rwbuilder.exeThat is, if your instance home is C:\Oracle\Middleware\as_inst1, then change the rwbuilder.bat to reflect:
    C:\Oracle\Middleware\as_inst1\config\reports\bin\reports.bat
    C:\Oracle\Middleware\as_inst1\bin\rwbuilder.exe
    c)Then, re-execute the modified rwbuilder.bat file from the %ORACLE_INSTANCE%\config\reports\bin\ .
    If it still doesnt work...
    Follow these 2 metalink ID's ,They will be helpful
    *REP-50125 "rwbuilder.conf:java.lang.NullPointerException" Trying To Open Reports Builder[Article ID 1532120.1]*
    *Report Builder 11g on MS Windows Errors with: REP-50125[Article ID 1059638.1]*
    Regards
    Fabian

  • Report builder bitmap output

    hi everyone.
    I RUN A REPORT FROM REPORT BUILDER USING DESTINATION PRINTER AND MODE BITMAP TO A HP PRINTER(DESCJET D3940) AND THE REPORT CREATE A SMALL EPS FILE AND PRINT IN 10 SECONDS.
    WHEN I PRINT THE SAME REPORT TO A DIFFERENT PRINTER (HP DESCJET D2660) THE OUTPUT IS TOO LARGE AND PRINT IN 5 MINUTES.I AM USING WINDOWS XP AND REPORT BUILDER 10.1.2.0.2.

    Excel will remove leading zeros in a numeric field because it is treating the column as numeric. Putting a ' in front of the number forces Excel to treat the column as text.

  • Integrating Reports Builder with JDEV

    Hello,
    I am studying how integrating a Report builded using Reports Builder with JDEV, because when I run from JDEV my JSP file which contains Reports, I am not manage get success. However, if my JSP has not Reports, then I get success in the execution. When I am running the JSP with has Reports, in the execution, the following error messages are displayed:
    org.omg.CORBA.OBJ_ADAPTER: org.omg.CORBA.UNKNOWN: Unexpected User Exception: IDL:visigenic.com/Activation/NotRegistered:1.0 minor code: 0 completed: No minor code: 0 completed: No
         at com.inprise.vbroker.poa.BOAImpl.obj_is_ready(BOAImpl.java:374)
         at oracle.reports.server.RWServer.startServer(RWServer.java:558)
         at oracle.reports.server.RWServer.run(RWServer.java:198)
         at java.lang.Thread.run(Thread.java:484)
    Someone, could help me?
    Thanks.
    Carla

    Hello Carla,
    The link indicated by Philipp just move to this URL
    http://otn.oracle.com/products/reports/htdocs/getstart/GettingStarted/index/index.html. (Sorry for that)
    Watch the Reports/JDev integration viewlets in the demonstration section.
    To be able to execute a Reports JSP from JDev you should be in the JDeveloper of the 9iDS. (9i Developer Suite). You can also check you Jdev 'Run' property to check if the Embeded OC4J server starts with all IIOP parameter. (FYI:a Reports JSP communicate with the Reports Server using Corba)
    1. Right click on you project in the system navigator
    2. Choose 'Project Setting'
    3. In the Runner Entry you should have a Java option like :
    -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB
    (This option is automaticaly added if you select New, Reports JSP from JDeveloper)
    Regards
    Tugdual Grall

  • Using Non BI database as source to Build SSAS cubes and SSRS reports .

    hi,
    I have a requirement where I have to use existing database(OLTP) as my source to the SSAS cubes and then to build the reports.
    Where for Cubes and Reports I uses SQL Server BI edition. But my existing source data will be in non BI database.
    My questions are
    1) Can I create Fact and Dimension Model in Non BI Db and connect the same to SSAS and SSRS? What you suggest?
    2) Can I use cubes and reports without modifying the existing OLTP DB structure to fact and Dimension? 
    Thanks
    Naveen

    hi,
    I have a requirement where I have to use existing database(OLTP) as my source to the SSAS cubes and then to build the reports.
    Where for Cubes and Reports I uses SQL Server BI edition. But my existing source data will be in non BI database.
    My questions are
    1) Can I create Fact and Dimension Model in Non BI Db and connect the same to SSAS and SSRS? What you suggest?
    2) Can I use cubes and reports without modifying the existing OLTP DB structure to fact and Dimension? 
    Thanks
    Naveen
    1. Yes. you can
    It doesnt necessary need to set up a OLAP system. However making design inline with OLAP would be easier to implement in SSAS
    2. Again yes
    But using OLTP designed tables in SSAS/SSRS would require some additional overheads at querying level like referenced lookups in SSAS vs lots of joins in backend queries in SSRS.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Error while creating a cube using Cube Builder

    we have installed the Cube builder for SSM 7.0
    while creating the cube I am facing a error and the .TRC file contents are as follows :-
    LSS>
    LSS> set control LINKID SSM_CB_EA
    LSS>
    LSS> .... capture cube id in a control var to simplify queries on other tables
    LSS> access lslink
    LSLink> connect SSM_CB_EA
    LSLink>
    LSLink> SELECT ID FROM CPMS_CB_CUBES WHERE NAME = 'CUBEBUILDER1'
    [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'CPMS_CB_CUBES'.
    SQLSTATE: S0002
    SQL System code: 208
    LSLink> lss create code = 'set control CUBEID ' + ID
    LSLink> output proc setcubeid;PIPADMINDEFAULT over
    LSLink> peek create nohead nonumb
    No Fields currently Selected
    ACC004:
    No Record Has Been Accessed From the Database.
    ACC004:
    No Record Has Been Accessed From the Database.
    CHE FRE
    CHE UPD
    Kindly help me out........

    Hi Martin,
    I believe that the issue you are encountering now is that you're using the wrong set of procedures for accessing MS SQL Server.
    In section 5.4.1 (Setting up SAP NetWeaver System database software) in the Strategy Management configuration guide, there is a section which discusses steps that are required depending on whether or not you are using MaxDB or MS SQL Server as your system database behind NetWeaver CE.  My guess is that you have not followed the steps described for SQL Server here.  This is simple to do thoughm, because all you need to do is copy the files in the "<install-dir>\SAP\SSM\InternetPub\procs\sqlsrvr_procs" into the <install-dir>\SAP\SSM\InternetPub\procs" directory.
    This is required because, when using Cube Builder or Entry and Appropval, the PAS component communicates directly with the system database in order to load data from there into PAS.  Because MaxDB and SQL Server have different SQL syntax, specifically regarding field concatenation, slightly different SQL is required.  So if you copy the SQL Server specific procedures across, you should be able to successfully build your model from Cube Builder.
    Of course, having read through your question again I'm not 100% sure that this is what you are hitting.  The problem you're seeing seems to be that, when we internally concatenate some selected fields together, we aren't finding a field called ID.  However, the SQL select being issued doesn't seem to have returned any error messages, so I'm not sure why there is a problem referencing the field.
    The only thing that comes to mind is a problem that I ran into at one point with the type of driver I was using to connect to SQL Server.  The PAS component of Strategy Management, even though it runs on Windows 2003 Server 64bit, is still only a 32bit component.  This means that, when configuring the System Data Sources within the ODBC applet in Control Panel, it is critical that the 32bit version of that ODBC applet be used - as documented in the note at the end of section 5.4.3 in the configuration guide.  The reason this is important is because, if you use an OLEDB connection to SQL Server, for some reason the field names are not returned correctly.  It is only when using the ODBC driver that the field names are returned correctly.
    So please ensure that you are using the ODBC driver for your Link ID which connects to SQL Server, and not an OLEDB connection.
    Hope this helps,
    Robert
    Edited by: Robert Holland on Dec 19, 2008 3:23 PM

  • How to create new Custom XML Report without using Form Builder

    Hi,
    What are the steps to create new Custom XML Report without using Report Builder ?
    Thanks and Regards,
    Abhi

    Hi,
    Steps we now follow
    1)Create Data Model in Reports Builder
    2)Create xml
    3)Insert xml in Publisher to build Fomat
    4)FTp rdf
    5)Create Data Definition and Template
    6)Create executable and Concurrent Program
    Is there any way we can build reports without use of Report Builder ? By writing PL SQL Package for Before Report and After Report etc ...
    Thanks and Regards,
    Abhijit Rode

  • SQL Server 2008 R2 - Report Builder 3.0 - timeout using shared data source and stored procedure

    I select the shared datasource from the data source propeties dialog, test the connection and everything is good.
    I add a dataset by selecting "use a dataset embedded in my report" option within the Dataset properties dialog.
    I select the newly added data source, click the "Stored procedure" query type and drop down the list box and select my intended stored procedure.
    the timeout for the dataset is "0" seconds.
    I click the "OK" button and I'm presented with the parameters to the stored procedure.
    I enter valid data for the parameters and click the "OK" button.
    I then get the following error message after 30 seconds:
    The problem is, all of the timeouts, that I'm aware of, have values of zero (no timeout) or high enough values that 30 seconds isn't even close to the timeout.
    I think the smallest timeout we have is 120 seconds.
    I have searched this site and many others and the solutions all involve altering the stored procedure to get the fields into report builder and then revert the stored procedure back to its original form.
    To me, this is NOT a solution.  
    I have too many stored procedures that need to be brought into Report Builder.
    I need a real solution.
    Thank you for you time, Tim Caldwell.
    Timothy E Caldwell

    I don't mean to be rude, but really, check to see if the stored procedure can return data rows???
    Maybe I'm not being clear enough.
    The stored procedure runs perfectly fine.
    it runs perfectly fine in the production environment and the test environment.
    I can access the stored procedure in several ways and have it return correct data.
    I can even trick report builder into creating a dataset with parameters and run the stored procedure that way.
    What I cannot do, is to get report builder to not timeout after 30 seconds on the initial creation of a dataset with a Query type of stored procedure.
    I have seen this issues posted again and again and again on may different sites and the "solution" is to simplifiy the stored procedure by creating a stored procedure that has a create table and a select in the stored procedure and that's it.  After
    report builder creates the dataset the developer then has to replace the simplified stored procedure with the actual stored procedure and everything works fine after that.
    HOWEVER, having to go through this process for 70 or more stored procedures is ridiculous.
    It would appear that there is something within report builder itself that is causing this issue.
    The SQL Script included is an example of a stored procedure that will not create fields create a dataset with fields and parameters in Report Builder 3.0:
    USE [CRUM_IT]
    GO
    /****** Object: StoredProcedure [dbo].[COGNOS_Level5ScriptSP] Script Date: 11/17/2014 08:02:26 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER procedure [dbo].[COGNOS_Level5ScriptSP]
    @CompanyCode varchar(8) = null,
    @GetSiblings varchar(1) = 'N'
    as
    Begin
    -- get emergency contact info
    select *
    into #tmp_Contacts
    from
    (select
    ConEEID,
    con.connamelast as [Emer Contact Last Name],
    con.connamefirst as [Emer Contact First Name],
    con.connamemiddle as [Emer Contact Middle Initial/Name]--,
    ,ROW_NUMBER() over (Partition by ConEEID order by ConNameLast)as rn
    ,ISNULL(
    case when con.conphonepreferred = 'H'
    then '(' + substring(con.conphonehomenumber, 1, 3) + ')' + substring(con.conphonehomenumber, 4, 3) + '-' + substring(con.conphonehomenumber, 7, 4)
    else '(' + substring(con.conphoneothernumber , 1, 3) + ')' + substring(con.conphoneothernumber , 4, 3) + '-' + substring(con.conphoneothernumber , 7, 4)
    end,
    ) as [Emergency Phone]
    from [ultiprosqlprod1].[ultipro_crum].dbo.Contacts con
    where con.ConIsEmergencyContact='y'
    and con.ConIsActive='y'
    ) A
    where A.rn = 1
    CREATE TABLE #tmp_CompanyCodes (CompanyCode varchar(8))
    If @GetSiblings = 'Y'
    Begin
    INSERT INTO #tmp_CompanyCodes (CompanyCode)
    EXEC [z_GetClientNumbers_For_ParentOrg_By_ClientNumber] @CompanyCode
    End
    INSERT INTO #tmp_CompanyCodes
    values (@CompanyCode)
    select *
    into #tmp_Company
    from [ultiprosqlprod1].[ultipro_crum].dbo.Company
    where cmpcompanycode in (select CompanyCode from #tmp_CompanyCodes)
    select distinct
    cmpcompanycode as [Client ID],
    CmpCompanyDBAName as [Client Name],
    eec.eecEmplStatus AS [Employment Status],
    eec.eecEmpNo AS [Employee Num],
    rtrim(eep.eepNameLast) AS [Last Name],
    rtrim(eep.eepNameFirst) AS [First Name],
    isnull(rtrim(ltrim(eep.eepNameMiddle)), '') AS [Middle Initial/Name],
    rtrim(eep.eepAddressLine1) AS [Address Line 1],
    isnull(rtrim(eep.eepAddressLine2), '') AS [Address Line 2],
    eep.eepAddressCity AS [City],
    eep.eepAddressState AS [State],
    CASE
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
    THEN substring(eep.eepAddressZipCode, 1, 5)
    ELSE rtrim(eep.eepAddressZipCode)
    END AS [Zip code],
    CASE
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
    THEN substring(eep.eepAddressZipCode, 6, 4)
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) > 0
    THEN substring(eep.eepAddressZipCode, charindex(eep.eepAddressZipCode, '-', 1) + 1, 4)
    WHEN len(eep.eepAddressZipCode) <= 5
    THEN ''
    END AS [ZIP + 4],
    substring(eep.eepSSN, 1, 3) + '-' + substring(eep.eepSSN, 4, 2) + '-' + substring(eep.eepSSN, 6, 4) AS [SSN],
    isnull(convert(VARCHAR(10), eep.eepDateOfBirth, 101), '') AS [Date Of Birth],
    eetFED.TAXCODE AS [FED Tax Code],
    eetFED.FILINGSTATUS AS [Fed Filing Status],
    eetFED.EXEMPTIONS AS [Fed Exemption Allowance],
    eetFED.ADDITIONAL AS [Additional Fed Withholding],
    eetSIT.TAXCODE AS [SIT Tax Code],
    eetSIT.FILINGSTATUS AS [State Filing Status],
    eetSIT.EXEMPTIONS AS [State Exemption Allowance],
    eetSIT.ADDITIONAL AS [Additional State Withholding],
    isnull('(' + substring(eep.eepPhoneHomeNumber, 1, 3) + ')' + substring(eep.eepPhoneHomeNumber, 4, 3) + '-' + substring(eep.eepPhoneHomeNumber, 7, 4), '') AS [Home Phone],
    isnull((SELECT cod.codDesc
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.Codes cod WITH (NOLOCK)
    WHERE cod.codCode = eep.eepEthnicID
    AND cod.codDosTable = 'ETHNICCODE'), '') AS [Race-Origin], --eep.eepEthnicID AS [Race-Origin],
    eep.eepGender AS [Gender],
    isnull(convert(VARCHAR(10), eec.eecDateOfOriginalHire, 101), '') AS [Original Hire Date],
    isnull(convert(VARCHAR(10), eec.eecDateOfSeniority, 101), '') AS [Seniority Date],
    isnull(convert(VARCHAR(10), eec.eecDateOfTermination, 101), '') AS [Termination Date],
    isnull(eecTermType,'') as [Termination Type],
    isnull(TchDesc, '') as [Termination Reason],
    rtrim(eec.eecJobCode) AS [WC Code],
    isnull(eec.eecJobTitle, '') AS [Job Title],
    pgr.pgrPayFrequency AS [Pay Frequency],
    eec.eecFullTimeOrPartTime AS [Full/Part Time],
    eec.eecSalaryOrHourly AS [Pay Type],
    isnull(convert(MONEY, eec.eecHourlyPayRate), 0.00) AS [Hourly Rate],
    isnull(eec.eecAnnSalary, 0.00) AS [Annual Salary],
    [YTD Hours],
    isnull(eep.eepNameFormer, '') AS [Maiden Name],
    eec.eecLocation AS [Location ID],
    rtrim(eec.eecOrgLvl1) AS [Department ID],
    eec.eecorglvl2 AS [Cost Item],
    eec.eecorglvl3 as [Client Project],
    eec.eecPayGroup as [Pay Group],
    isnull(eepAddressEMail,' ') as [Email Address],
    isNull(BankName1,' ') as PrimaryBank,
    isNull(BankRoute1,' ') as PrimaryRouteNum,
    isNull(Account1,' ') as PrimaryAccount,
    isNull(AcctType1,' ') as PrimaryAcctType,
    isNull(DepositRule1,' ') as PrimaryDepositRule,
    isNull(BankName2,' ') as SecondaryBank,
    isNull(BankRoute2,' ') as SecondaryRouteNum,
    isNull(Account2,' ') as SecondaryAccount,
    isNull(AcctType2,' ') as SecondaryAcctType,
    isNull(DepositRule2,' ') as SecondaryDepositRule,
    isNull(
    CASE
    WHEN DepositRule2 = 'D'
    THEN '$' + convert(varchar, cast(EddAmtOrPct2 AS decimal(10,2)))
    WHEN DepositRule2 = 'P'
    THEN convert(varchar, cast((EddAmtOrPct2*100) AS decimal(10,0))) + '%'
    ELSE null
    END,' ') as SecondaryDepositAmount,
    isNull(BankName3,' ') as ThirdBank,
    isNull(BankRoute3,' ') as ThirdRouteNum,
    isNull(Account3,' ') as ThirdAccount,
    isNull(AcctType3,' ') as ThirdAcctType,
    isNull(DepositRule3,' ') as ThirdDepositRule,
    isNull(
    CASE
    WHEN DepositRule3 = 'D'
    THEN '$' + convert(varchar, cast(EddAmtOrPct3 AS decimal(10,2)))
    WHEN DepositRule3 = 'P'
    THEN convert(varchar, cast((EddAmtOrPct3*100) AS decimal(10,0))) + '%'
    ELSE null
    END,' ') as ThirdDepositAmount,
    Supervisor,
    eec.eecEEID AS [Employee EEID],
    eec.EecJobCode As [Job Code],
    isnull(eec.EecTimeclockID,' ') As [Time Clock ID],
    con.[Emer Contact Last Name],
    con.[Emer Contact First Name],
    con.[Emer Contact Middle Initial/Name],
    con.[Emergency Phone]
    from [ultiprosqlprod1].[ultipro_crum].dbo.empPers eep WITH (NOLOCK)
    inner join [ultiprosqlprod1].[ultipro_crum].dbo.empComp eec WITH (NOLOCK)
    ON eep.eepEEID = eec.eecEEID
    inner join #tmp_Company cmp WITH (NOLOCK)
    ON eec.eecCOID = cmp.cmpCOID
    inner join [ultiprosqlprod1].[ultipro_crum].dbo.PayGroup pgr WITH (NOLOCK)
    ON eec.eecPayGroup = pgr.pgrPayGroup
    left outer join [ultiprosqlprod1].[ultipro_crum].dbo.TrmReasn
    on tchCode = eecTermReason
    left join (select CAST(sum(isnull(eee.eeeYTDHrs,0.00))AS DECIMAL(18,2)) as [YTD Hours],
    eeeEEID,
    eeeCOID
    from [ultiprosqlprod1].[ultipro_crum].dbo.EmpEarn eee with (NOLOCK)
    group by eeeCOID,eeeEEID)eee
    on eec.eecEEID = eee.eeeEEID
    and eec.eecCOID = eee.eeeCOID
    left join (SELECT eetCOID AS COID,
    eetEEID AS EEID,
    eetTaxCode AS TAXCODE,
    eetFilingStatus AS FILINGSTATUS,
    eetExemptions AS EXEMPTIONS,
    eetExtraTaxDollars AS ADDITIONAL
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
    WHERE eetTaxCode = 'USFIT'
    )eetFED
    ON eec.eecCOID = eetFED.COID
    and eec.eecEEID = eetFED.EEID
    left join (SELECT eetCOID AS COID,
    eetEEID AS EEID,
    eetTaxCode AS TAXCODE,
    eetFilingStatus AS FILINGSTATUS,
    eetExemptions AS EXEMPTIONS,
    eetExtraTaxDollars AS ADDITIONAL
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
    WHERE eetTaxCode like '%SIT'
    AND eetIsWorkInTaxCode = 'Y'
    )eetSIT
    ON eec.eecCOID = eetSIT.COID
    and eec.eecEEID = eetSIT.EEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName1,
    eddEEBankRoute BankRoute1,
    eddAcct Account1,
    EddAcctType AcctType1,
    EddDepositRule DepositRule1,
    EddAmtOrPct EddAmtOrPct1
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '99')edd
    ON eec.eecCOID = edd.eddCOID
    and eec.eecEEID = edd.eddEEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName2,
    eddEEBankRoute BankRoute2,
    eddAcct Account2,
    EddAcctType AcctType2,
    EddDepositRule DepositRule2,
    EddAmtOrPct EddAmtOrPct2
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '01')edd2
    ON eec.eecCOID = edd2.eddCOID
    and eec.eecEEID = edd2.eddEEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName3,
    eddEEBankRoute BankRoute3,
    eddAcct Account3,
    EddAcctType AcctType3,
    EddDepositRule DepositRule3,
    EddAmtOrPct EddAmtOrPct3
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '02')edd3
    ON eec.eecCOID = edd3.eddCOID
    and eec.eecEEID = edd3.eddEEID
    left outer join (SELECT eecCOID,
    eecEEID,
    rtrim(eepNameLast) + ', ' +
    rtrim(eepNameFirst) + ' ' +
    isnull(rtrim(ltrim(eepNameMiddle)), '') AS [Supervisor]
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpComp WITH (NOLOCK)
    join [ultiprosqlprod1].[ultipro_crum].dbo.EmpPers with (NoLock)
    on eeceeid = eepeeid)eec2
    ON eec.eecSupervisorID = eec2.eecEEID
    left outer join #tmp_Contacts con
    on eep.eepEEID = con.ConEEID
    order by [Client ID],
    [Last Name],
    [First Name]
    drop table #tmp_Contacts
    END
    Timothy E Caldwell

  • Adding new column in an existing report which was build using Union

    While working in OBIEE 11g I encounter an issue.
    My existing report was build using UNION at Criteria Tab in Analysis. Now I have a requirement to add a new column into the same report. For each criteria I have added the new column but when I go back to the "Result Columns". I see a new field added but it is not allowing me to open or edit column properties for that new column & at the same time it is not allowing me to navigate to other tabs like Results, Promts, and Advanced.
    I don’t want to build this report from scratch. Is there any workaround to get it resolved?

    Hi,
    Just check it once the new added column data types are mismatched or not?
    and the new added column should be navigated into excluded section, so u should edit the report and dragged into the table column section.
    Thanks..

Maybe you are looking for