Is it possible keep reports independent of schema name using procedures

Hi everyone,
I have created reports using stored procedures.These stored procedures are inside a package in a particular schema.
Now if the schema name differs at the client side,it is not possible to view reports.
Is there any solution for the same.
Regards,
Misra P.

Hello,
Lots of samples available from the link above. Using .NET this can all be done, nothing exactly for what you want to do in a batch operation but you can usually build an array of report objects and then using the .Location or others and save the updated reports is in the sample on setting/updating database location/log on info.
Post you SDK questions to SAP Crystal Reports, version for Visual Studio and search also, lots of sample code on how to.
You'll also find a lot of sample here:
Root Page
http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsHome
Enterprise Samples (including managed and unmanaged ras)
http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
Non-Enterprise Samples
http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
Exporting Samples (RAS)
http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
I suggest you use RAS ( report application server ) to do this, more features available.
Thank you
Don

Similar Messages

  • How to call a schema name using substitution name?

    Hi All,
    How to call a schema name using substitution menthod in odi?
    I was trying but I got the following error..
    ODI-1227: Task XXX(Procedure) fails on the source ORACLE connection YYY.
    Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    Here xxx procedurename.
    yyy-schemaname
    Please do the needful..
    Thanking you in Advance.
    Regards,
    PP

      1  declare
      2  sql_string varchar2(2000);
      3  begin
      4  sql_string := 'select ' || func_name || ' into a from dual ';
      5  execute immediate sql_string;
      6* end;
    SQL> /
    sql_string := 'select ' || func_name || ' into a from dual ';
    ERROR at line 4:
    ORA-06550: line 4, column 28:
    PLS-00201: identifier 'FUNC_NAME' must be declared
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignored
      1  declare
      2  sql_string varchar2(2000);
      3  func_name varchar2(30);
      4  begin
      5  func_name := 'some_func';
      6  sql_string := 'select ' || func_name || ' into a from dual ';
      7  execute immediate sql_string;
      8* end;
    SQL> /
    declare
    ERROR at line 1:
    ORA-00904: "SOME_FUNC": invalid identifier
    ORA-06512: at line 7
    SQL> desc some_func;
    ERROR:
    ORA-04043: object some_func does not exist
      1  create or replace function test_func
      2       return number
      3       is
      4       begin
      5          return 0;
      6*      end;
    SQL> /
    Function created.
      1  declare
      2  sql_string varchar2(2000);
      3  func_name varchar2(30);
      4  begin
      5  func_name := 'test_func';
      6  sql_string := 'select ' || func_name || ' into a from dual ';
      7  execute immediate sql_string;
      8* end;
    SQL> /
    declare
    ERROR at line 1:
    ORA-00905: missing keyword
    ORA-06512: at line 7
    SQL> Set serveroutput on
      1   declare
      2   sql_string varchar2(2000);
      3   func_name varchar2(30);
      4   return_value number;
      5   begin
      6   func_name := 'test_func';
      7   sql_string := 'select ' || func_name || ' from dual ';
      8   execute immediate sql_string into return_value;
      9   dbms_output.put_line(return_value);
    10* end;
    SQL> /
    0
    PL/SQL procedure successfully completed.Hope that helps.
    Regards
    Raj

  • TS1398 I just reset my new router name and password and my iPad keeps picking up the old name using the old password. How do I purge the old info and get it to look for the new name?

    I installed a new wireless router and connected with my iPad. I then changed the ID and password with ethernet but now my iPad keeps picking up the old router name and password and doesn't see the new name. How can I get it to stop looking for the old name and find the new one?

    Hello Stevo39,
    If your iPhone continues to prompt for your old account and password then check out the following article.
    If you're asked for the password to your previous Apple ID when signing out of iCloud - Apple Support
    This article may help too.
    Apple ID: What to do after you change your Apple ID - Apple Support
    Regards,
    Nubz

  • How to exclude schema name from exported files (PL SQL Developer)

    Dear all,
    Just one question: I am using PL SQL Developer. My goal is to export some data (as .sql and .dmp files) from one database and to import them into the another database (both databases have identical structure - test database and production, just different database names and names of schema. In order to make it possible, I need to exclude schema name from generated export file. I believe that it is possible to do it automatically by setting up parameters of PL SQL Developer. How?
    Thank you in advance,
    Kindest regards,
    Dragana

    In the meantime, I have found the answer on my previous question:
    Actually, the initial idea (how to exclude schema name from exported files) was wrong. No need for any intervention.
    Trick is: Schema name can be changed during the import of exported files (PL SQL Developer during import gives possibility: From User (old schema) To User (new schema) .
    Hope that this will be useful info for others.
    Dragana

  • Change schema runtime in procedure

    Hello friends,
    I have one query in procedure. I have same table with same structure and name in more than 10 schema. I want to access these table records dynamically using procedure.
    I want to change schema name in procedure.
    Please check below PL/SQL code i have wrote.
    declare
         cursor c1 IS
         select deptno,dname,loc from &schema..dept;
    begin
         for rec in c1
         loop
              dbms_output.put_line(rec.deptno || ' ' || rec.dname || ' ' || rec.loc);
         end loop;
    end;
    I want same functionality using procedure. Please check procedure code below:
    create or replace procedure diff_schema (schema_name IN varchar2)
    Declare
         cursor c1 IS
         select deptno,dname,loc from schema_name.dept;
    AS
    begin
         for rec in c1
         loop
              dbms_output.put_line(rec.deptno || ' ' || rec.dname || ' ' || rec.loc);
         end loop;
    end;
    but it returns error.
    Please help me to solve this issue.
    Pradip Patel

    BluShadow wrote:
    Venkadesh wrote:
    Agree..
    Hope this work.
    create or replace procedure r_test (p_schema in varchar2)
    is
    v_rc sys_refcursor;
    v_all emp%rowtype;
    begin
    open v_rc for 'select * from '||p_schema||'.emp';
    loop
    fetch v_rc into v_all;
    exit when v_rc%notfound;
    dbms_output.put_line(v_all.ename);
    end loop;
    close v_rc;
    end;
    That still assumes that the emp table exists in the schema in which the procedure is compiled because you have:
    v_all emp%rowtype;Essentially what the OP is asking for indicates that whereve the procedure is defined is going to need to know the structure of the tables it's going to use otherwise everything about it would need to be dynamic.
    We have a process on one of our databases that has a similar setup, where there are several schema's all containing the same table structure, but different data, and we need a central setup of code that can process each of those as required.
    For us we looked at it from a different perspective. Rather than having the central procedure try and access all the other schemas, for which it would need to know which schemas it has to access etc. and because sometimes some of those schemas should be excluded from the process if they have had an issue with their data being populated (it's a regular job to repopulate them and determine changes on them etc. - a bit of an ETL task really), we leave it up to the individual schemas to determine when the processing is necessary (i.e. when they each know their own data is ready to be processed). The advantage of that is that the central procedure's those schemas use all use the AUTHID CURRENT_USER, so the central schema just has a blank copy of the tables so the code can compile, but when the other schemas call the procedure, they are running the code against their own tables because of the AUTHID setting. It avoids any dynamic coding, or any (mis/ab)use of ref cursors, and it gives the flexibility that each schema is in control of it's own destiny, and other schemas can be added or removed as necessary without having to have some central control mechanism to know which schemas need processing.Thank you Blu,i'm learning lot of things from you...you are a champion

  • Generate DB reports for many Schema's automatically.

    Hello,
    I am using ORACLE DB 11g R1 & RHEL 5.
    I have a DB server the MAIN SERVER in which i have many schema's and i have scheduled a crontab job to take a backup of each schema
    on a daily basis. The same backup file (.dmp) is then imported to a BACKUP SERVER machine for the same schema name.
    The bottom line is i am trying to keep a backup server ready with me with the data uptill the last day. So if the
    main server goes down due to some reason the developers can connect to the backup server and continue working.
    Meanwhile i can analyse and bring the main server up again.
    I want an idea buy which i can keep both the server machine ( MAIN & BACKUP ) in the sync of the data and
    i should be able to generate a report automatically every day which schema has been backedup & imported.
    If they have failed then for what reason.
    Please advice me some proper solution. If you have other ideas let me know.
    I want a proper system which will keep the data of MAIN & BACKUP server the same and if the MAIN server goes down
    it should be able to connect to BACKUP server and continue.
    Thanks in advance.

    The same backup file (.dmp) is then imported to a BACKUP SERVER machine for the same schema name.Is it forcibly imported every day ? Why ? Why not import it only when you need to ?
    OTOH, if the export and import processes are automated and self-running you have already resolved your "problem".
    However, is it really a requirement to have an alternate (aka "BACKUP") Development server ? Is it a requirement to have this synchronised with the schema and data of the primary Development server as of the end of the day ? What does your development team lose if it is, say, a few days behind ? Can they not reapply their changes ? How many developers and how many daily changes put together justify the cost of this mechanism ?
    (How about Production ? How is it protected ?)
    Hemant K Chitale

  • CRS Report Definition for Schema

    Hello,
    We have CRS installed and have defined some reports using the CRS client.
    It seems that when you define a report, the Oracle Schema is selected as part of the report itself, which is fine.
    Now we are trying to integrate our application with CRS and we would like to 'Programmatically' define the schema, using OpenDocument URL? Is this possible?
    So in summary :- What we have now is as follows:
    1. From our application we select some data
    2. Using OpenDocument we construct the URL with the report id# and send the context using the 'promptex' variable
    3. The report show ups just fine - the report is already predefined with the correct schema and database parameters.
    Objective now:-
    - be able to dynamically define programatically what the schema is, as we may have an instance with multiple projects/schemas?
    Any ideas?
    thanks
    Henry

    Please re-post if this is still an issue to the Business Objects Forum or if you have a valid support contract create a case on line.

  • Is it possible to change the owning schema when generating datetime dimensions in the datasource?

    When creating a date time dimension using the dimension wizard and generate schema wizard, i would like to be able to change the owning schema from dbo to something else. The field is greyed out and I am unable to change it.
    Is it possible to change the owning schema when generating datetime dimensions in the datasource?

    Hi rkbjr,
    Thank you for your question.  
    I am currently looking into this issue and will give you an update as soon as possible. 
    Thank you for your understanding and support. 
    Thanks,
    Bin Long
    TechNet Subscriber Support
    If you are TechNet Subscription user and have
    any feedback on our support quality, please send your feedback here.
    Bin Long
    TechNet Community Support

  • Can we call a report program or schemas in  Routine [dynamic action] ???

    Dear SAP Crew,
    In dynamic action, we can call routines through indicatiors.
    In that routine, Can we call a report program or schemas???
    Kindly clarify with some scenario.
    Thks & Rgds
    Krish Sathya

    Hi Krish,
    In the routine you should be able to SUBMIT the program/report you need to execute.
    Cheers,
    Aditya

  • Syncing contacts between 2 different computers while keeping both independent of each other?

    Hi,
    I'm wondering if there is a way to have my calendars and contacts from 2 different computers running Mountain Lion sync to my iPad retina while keeping the 2 computers from merging the calendars and contacts? I do have a separate apple ID set up on each computer, and each computer does connect to iCloud.
    The reason is one is my work machine, the other my personal home machine. The home machine keeps my wife and me connected by sharing the contacts and calendars which has been working well. I don't want to clutter up that by mixing in calendars and contacts from my work computer and don't want my wife to have access to them either.
    The only way I can figure to have both reside on my iPad while keeping them independant of each other is to physically connect my iPad to my work machine and not have the contacts in iCloud. That way when I transfer them to the iPad via iTunes, it will be under the category On My Mac rather than iCloud contacts.
    The only problem with that is then I'm always having to connect and sync my iPad to my work machine.
    Is there a better way to do this?

    dcharlot wrote:
    I really just have no idea what machine name/ip address i am supposed to put in. when i put an asterik for any it just goes to localhost so that doesn't help me.
    Sorry, you lost me right there. Where exactly did you try to put an asterix????
    Which example program are you trying to use?
    Typically, you would enter the IP address of the server in the client program.
    LabVIEW Champion . Do more with less code and in less time .

  • Subscriber keeps reporting Work order IN completed.

    We have a Zenworks 6.5sp1a site with 1 distributer and 15 subscribers on
    remote site's.
    One subscriber keeps reporting Work order IN completed / Receiving
    distribution...... / Received magic data length = 8 . This results in a
    very large TED.log, sometimes it grows to almost 2Gb. Normaly, due to
    extended logging, it will be around 200Mb. 200Mb is readable by most
    utilities, 2Gb will not load in an editor or it will take a while to load.
    Has someone an idea what causes the multiple reports of Work order IN
    completed?
    Thanks, Erik

    Well, with loglevel set to 6 you'll get lots of messages. The workorder in
    message indicates that the distributor received a responce from the
    subscriber, quit notmal traffic.
    Off topic: Erik If I'm right you are working for a company that has an
    office in Capelle (NL), is that right? Are you working from the CPL office
    or at another location (I'm cycling along your CPL office almost every day
    Ron
    <[email protected]> wrote in message
    news:[email protected]...
    > Ron.
    >
    > The loglevel on the distributor is 6 for filelog. The loglevel on the
    > subscriber is the same as the other subscribers.
    > The only difference I discovered is the attribute LoginTime on the other-
    > page of the subscriber object. I will take a closer look on that one.
    >
    > Erik
    >
    >> Hmm, what is the loglevel on your distributor?
    >>
    >> Ron
    >>
    >> <[email protected]> wrote in message
    >> news:[email protected]...
    >> > The distributor is scheduled from 19.00 to 19.15 and the channels are
    >> > scheduled from 20.00 to 8.00.
    >> > The "faulty" subscriber keeps sending statusreports to the distributor,
    >> > causing the ted.log on the distributor to grow up to 1 or 2Gb.
    >> >
    >> > The distributions go well, even on the "faulty" subscriber. I like to
    > know
    >> > what the messages mean, I can not find anything in the knowledgebase.
    >> >
    >> > Erik
    >> >
    >> >> I'm wondering how you configured your schedules, if this is causing
    > the
    >> >> TED.LOG to grow to 2Gb, I wonder how often you refresh your
    > distributor
    >> > and
    >> >> open the channel.
    >> >>
    >> >> Do you get the distribution directory on the subscriber? Does the
    >> >> distfile.ted grow over time?
    >> >>
    >> >> Ron
    >> >>
    >> >> <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> > We have a Zenworks 6.5sp1a site with 1 distributer and 15
    > subscribers
    >> > on
    >> >> > remote site's.
    >> >> > One subscriber keeps reporting Work order IN completed / Receiving
    >> >> > distribution...... / Received magic data length = 8 . This results
    > in a
    >> >> > very large TED.log, sometimes it grows to almost 2Gb. Normaly, due
    > to
    >> >> > extended logging, it will be around 200Mb. 200Mb is readable by most
    >> >> > utilities, 2Gb will not load in an editor or it will take a while to
    >> > load.
    >> >> >
    >> >> > Has someone an idea what causes the multiple reports of Work order
    > IN
    >> >> > completed?
    >> >> >
    >> >> > Thanks, Erik
    >> >>
    >> >>
    >> >
    >>
    >>
    >

  • SHA keep reporting client non-compliant

    I checked the NAP logs on client PC (Applications and Services Logs\Microsoft\Windows\Network Access Protection\Operational) found that the client's SHA keep reporting "non-compliant" even it's in production zone. (Using 802.1x Enforcement NAP
    with PEAP-TLS.) 
    Anyone has idea? Is this the correct behavior? THANKS!!!
    ======================================
    Log Name: Microsoft-Windows-NetworkAccessProtection/Operational
    Source: Microsoft-Windows-NetworkAccessProtection
    Date: 3/31/2014 3:46:08 PM
    Event ID: 29
    Task Category: None
    Level: Information
    Keywords:
    User: NETWORK SERVICE
    Computer: xxx.com
    Description:
    A Statement of Health Response with correlation ID {87323ABC-xxxxx-4474-96F7-xxxxxxx} - 2014-03-31 07:46:07.496Z was received from the enforcement client 79623.
    The current client state is Full Access.
    The following SHAs report this client non-compliant:
    The following error categories were encountered: FailureCategory None, FailureCategory None,
     The probation expiration time is: 25184-1009-00T-02:-01:-01.955161500Z
    The help URL is:
    The duration of health check was 1186 ms.
    ======================================

    Hi,
    Thanks for your question.
    Based on my experience, the event ID 29 is a normal condition and no further action is required. For more detailed information, please refer to the link below:
    Event ID 29 — NAP Agent Communication with the Enforcement Client
    Best regards,
    Susie

  • Is i possible to base a report on a pl/sql stored procedure

    Is i possible to base a report on a pl/sql stored procedure?
    If Yes please give directions on how to do it.
    /morten

    Hello Morten,
    In Reports 9i, with new feature JDBCPDS its possiable to create a report against a existing stored procedure.
    Using JDBCPDS, user can access any JDBC-enabled data source. You can access database like Oracle, DB2, Sybase, ODBC Data Sources, etc using supporting
    JDBC Drivers. User can also connect ODBC Data Sources like SQL Server, MS-Access, Excel etc.
    User can create a JDBC Query angainst a SQL Query or Stored Procedure in any of mentioned dataSource.
    Following is the syntax of the Oracle Stored Procedure, which can be used as Data Source with JDBCPDS.
    Steps to create a JDBCPDS Report through Report Builder : http://otn.oracle.com:8877/reports/help/ - > JDBCPDS- > How To
    //----------Package definition for Ref cursor ----------/
    package test_Procedure as
    type empcurProcedure5 is ref cursor;
    end test_tryProcedure5;
    // -----------Procedure definition ---------//
    test_Procedure(p_emp_cv out test_tryProcedure5.empcurProcedure5,
    p1 in NUMBER) is
    begin
    update emp set sal=sal + 50 where deptno > P1
    open p_emp_cv for select * from emp where deptno > P1;
    end test_Procedure;
    Procedure first parameter will be Ref Cursor and will be used to return the resultSet to JDBC Query.
    User should create first this procedure in Database. Then in JDBC Query Dialog, user can call this stored procedure by specifying procedure name.
    test_Procedure(40)
    Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more Connection and
    JDBC-Driver information.
    With Regards
    Reports Team

  • Possible to report between CO1 CO2 CO3 ?

    I have custom objects set up like so:
    CO1 = Event
    CO2 = Project
    CO3 = Programme
    The relationship is like this:
    Programme(CO3) m:m Project(CO2) m:m Event (CO1)
    I just want to display a report that shows a list of programmes in the first column, 2nd column shows a list of all projects related to the programmes, and 3rd column a list of all events related to the project.
    Is this possible at all? I've been trying various designs in reports and I can't get it to work.
    It works fine if I'm just reporting CO3 <> CO2 or CO2 <> CO1, but not if I try to get all 3 together.

    "Combine Similar Analysis" combines the rows, not the columns of the report, so it's not useful in this case.
    I've pretty much come to the conclusion that it can't be done due to the way the reports join objects, e.g. every object MUST be directly AND primarily linked to the active subject area dimension.

  • Microsoft AutoUpdate keeps reporting the need to upgrade

    I am on Office 2011 v14.4.3 (OS10.9.3), and Microsoft AutoUpdate keeps reporting I should upgrade to 14.4.3.  Is there somewhere an invisible file to remove?  Or how do I fix this?
    I posted this on the MS forum without result.  Now hoping somebody here has an idea.

    If the Auto-Update process is failing another approach would be to manually download the (same) update and run it manually. For 14.4.3 go to
    Download Now!
    You could also try running it from a different clean/empty admin account. If all this still fails then I would agree that removing the entire Office2011 and reinstalling would be best. At least you will not need to run each individual update, just the latest.
    Sadly there is no official Office2011 uninstaller. Some people have written scripts to do this.
    http://www.officeformachelp.com/office/install/remove-office/
    http://karlkeppner.wordpress.com/2012/10/11/mac-script-to-completely-remove-ms-o ffice-from-mac-os-x-lion/
    http://mac.softpedia.com/get/Utilities/Office-2011-Uninstall-Tool.shtml
    https://gist.github.com/ssbarnea/1048927
    https://gist.github.com/RobFreiburger/1028686

Maybe you are looking for

  • Multiple users-one computer

    We have 2 people with iPhones trying to sync iTunes on the same computer. How do we set up separate accounts so only my calendar, contacts, songs, etc. will sync to my phone and the same for the other family member

  • 10.1.3 : muti-byte String will not display correctly on standard button

    in Jeveloper 10.1.3, strings on "OK" "CANCEL" "HELP" button have an incorrent display. Have anybody tested in Chinese, Korean or Japanese envirements?

  • "Sequence number already exists in table" maintining Data Sources

    Hi fellows, i am seting up a new connector in GRC 10.0, but when configuring the connector for the User detailed Data sources i get the same error; "Sequence number already exists in table". I have tried with over 200 numbers which I know for sure ar

  • Track bleed while recording

    I'm trying to use garageband mulitracking to record songs.  My usual method is to record guitar as first track, and vocals on the second track and build from there.  I am using headphones to listen to the guitar track and I'm singing along to the gui

  • How to create database in 8i

    Hello, I need to create a database in Oracle8i to a application in ASP with COM+. Anybody to have a documentation for create. Please help me. Best Regards