Generatation of 4 PDF Reports from One Oracle reports 10 G

Hi All,
i am generating 4 PDF reports from one Oracle reports in 10 G.
i used RUN_REPORT_OBJECT built in 4 times with some different parameter list at a single time.
some time it generates but some time it generate 2 or 3 out of 4.
Can you anyone help me on this issue.
Regards,
Abhishek
Code that i used for generation of report:
on key-F0:
DECLARE
     PL_ID PARAMLIST;
     PL_NAME VARCHAR2(10) := 'REP';
     USRNM VARCHAR2(50);
     pl_id2 paramlist;
     pl_name2 varchar2(10):= 'REP';
     usrnm2 varchar2(50);
     pl_id3 paramlist;
     pl_name3 varchar2(10):= 'REP';
     usrnm3 varchar2(50);
     pl_id4 paramlist;
     pl_name4 varchar2(10):= 'REP';
     usrnm4 varchar2(50);
BEGIN
                    USRNM := GET_APPLICATION_PROPERTY(USERNAME);
PL_ID := GET_PARAMETER_LIST(PL_NAME);
                    IF NOT ID_NULL(PL_ID) THEN
                         DESTROY_PARAMETER_LIST(PL_ID);
                    END IF;
                    PL_ID := CREATE_PARAMETER_LIST(PL_NAME);
                    IF ID_NULL(PL_ID) THEN
                              MESSAGE('Error Creating Parameter List ');
                    END IF;
                    ADD_PARAMETER(PL_ID, 'P_PRNT_C_FAM_ID', TEXT_PARAMETER, :PRNT_C_FAM_ID);
                    ADD_PARAMETER(PL_ID, 'P_NOTICE_DATE', TEXT_PARAMETER, TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                    ADD_PARAMETER(PL_ID, 'P_REDET_DATE', TEXT_PARAMETER, TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                    ADD_PARAMETER(PL_ID, 'USR_NM', TEXT_PARAMETER, USRNM);
                         ADD_PARAMETER(PL_ID, 'SCHEDULE', TEXT_PARAMETER, :RUN_TIME);
               ADD_PARAMETER(PL_ID,'P_PRNT_PROV',TEXT_PARAMETER,'PRNT');
               ADD_PARAMETER(PL_ID, 'P_ENG_SP', TEXT_PARAMETER,'N');
               REDET_REPORT('506',PL_ID,'CT506_Parent_FamId_Eng'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
               USRNM2 := GET_APPLICATION_PROPERTY(USERNAME);
PL_ID2 := GET_PARAMETER_LIST(PL_NAME2);
                    IF NOT ID_NULL(PL_ID2) THEN
                         DESTROY_PARAMETER_LIST(PL_ID2);
                    END IF;
                    PL_ID2 := CREATE_PARAMETER_LIST(PL_NAME2);
                    IF ID_NULL(PL_ID2) THEN
                              MESSAGE('Error Creating Parameter List');
                    END IF;
                    ADD_PARAMETER(PL_ID2,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                    ADD_PARAMETER(PL_ID2,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                    ADD_PARAMETER(PL_ID2,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                    ADD_PARAMETER(PL_ID2,'USR_NM',TEXT_PARAMETER,USRNM2);
                    ADD_PARAMETER(PL_ID2,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
               ADD_PARAMETER(PL_ID2,'P_PRNT_PROV',TEXT_PARAMETER,'PRNT');
                    ADD_PARAMETER(PL_ID2,'P_ENG_SP',TEXT_PARAMETER,'Y');
                    REDET_REPORT('506',PL_ID2,'CT506_Parent_FamId_Sp'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
               USRNM3 := GET_APPLICATION_PROPERTY(USERNAME);
PL_ID3 := GET_PARAMETER_LIST(PL_NAME3);
                    IF NOT ID_NULL(PL_ID3) THEN
                         DESTROY_PARAMETER_LIST(PL_ID3);
                    END IF;
                    PL_ID3 := CREATE_PARAMETER_LIST(PL_NAME3);
                    IF ID_NULL(PL_ID3) THEN
                              MESSAGE('Error Creating Parameter List');
                    END IF;
                    ADD_PARAMETER(PL_ID3,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                    ADD_PARAMETER(PL_ID3,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                    ADD_PARAMETER(PL_ID3,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                    ADD_PARAMETER(PL_ID3,'USR_NM',TEXT_PARAMETER,USRNM3);
                    ADD_PARAMETER(PL_ID3,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
                    ADD_PARAMETER(PL_ID3,'P_PRNT_PROV',TEXT_PARAMETER,'PROV');
                    ADD_PARAMETER(PL_ID3,'P_ENG_SP',TEXT_PARAMETER,'N');
                    REDET_REPORT('506',PL_ID3,'CT506_Prov_ProvId_Eng'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                    USRNM4 := GET_APPLICATION_PROPERTY(USERNAME);
PL_ID4 := GET_PARAMETER_LIST(PL_NAME4);
                    IF NOT ID_NULL(PL_ID4) THEN
                         DESTROY_PARAMETER_LIST(PL_ID4);
                    END IF;
                    PL_ID4 := CREATE_PARAMETER_LIST(PL_NAME4);
                    IF ID_NULL(PL_ID4) THEN
                              MESSAGE('Error Creating Parameter List');
                    END IF;
                    ADD_PARAMETER(PL_ID4,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                    ADD_PARAMETER(PL_ID4,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                    ADD_PARAMETER(PL_ID4,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                    ADD_PARAMETER(PL_ID4,'USR_NM',TEXT_PARAMETER,USRNM4);
                    ADD_PARAMETER(PL_ID4,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
                    ADD_PARAMETER(PL_ID4,'P_PRNT_PROV',TEXT_PARAMETER,'PROV');
                    ADD_PARAMETER(PL_ID4,'P_ENG_SP',TEXT_PARAMETER,'Y');
                    REDET_REPORT('506',PL_ID4,'CT506_Prov_ProvId_Sp'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                    Message('Notice Submitted For Printing');
               EXIT_FORM;
END;
Program unit:
PROCEDURE REDET_REPORT(rep_name in Varchar2,plist in ParamList,rep_pdf_name in Varchar2)IS
          filecode varchar(2);
          Repnm varchar(30);
          report_id REPORT_OBJECT;
          report_id_hear REPORT_OBJECT;
          report_prop VARCHAR2(20);
          v_rep VARCHAR2(100);
          rep_status VARCHAR2(200);
          bat_loc varchar2(200);
          time_slot varchar2(100);
          rep_folder_name varchar2(100):='Redet Notice for Packets Sent\';
BEGIN
               Filecode := init.GetFileNmCode;
if filecode <> 'FL' then
if upper(substr(rep_name,1,2)) ='CC' then
RepNm := filecode||substr(rep_name,3);
else
     if rep_name != 'viewerr' then
RepNm := filecode||rep_name;
     else
          RepNm := rep_name;
     end if;
end if;
end if;
          Begin
                    begin
                    report_id := find_report_object(RepNm);
                    if error_code = '41219' then
                    Message('Unable to execute : '|| RepNm);
                         Raise FORM_TRIGGER_FAILURE;
                    end if;
               end;
                    set_report_object_property(report_id, REPORT_FILENAME, RepNm);
                    set_report_object_property(report_id, REPORT_SERVER, init.Appl_Repserver);
                    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
                    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE,SYNCHRONOUS);
                    set_report_object_property(report_id, REPORT_DESFORMAT,'PDF');
          select rprm_param_val||rep_folder_name||rep_pdf_name||'.pdf' into bat_loc from rprm where rprm_param_name = 'BAT_LOC';
          SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,FILE);
          SET_REPORT_OBJECT_PROPERTY(REPORT_ID,REPORT_DESNAME,'"'||bat_loc||'"');
          begin
          v_rep := RUN_REPORT_OBJECT(report_id,plist);
          exception when others then
               Message('Error While executing running reports ::'||error_code);
          end;
     end;
END;

Abhishek,
Please post your question in the Reports forum. This forum is for Forms related questions.
Craig...

Similar Messages

  • How to generate multiple output pdf's from one oracle reports

    how to generate multiple output pdf's from one oracle reports.
    I have a report where I have to generate more than one output files from the same report based on a parameter.
    Each output file is for each parameter.
    Is this possible in oracle reports, is so how ?

    You can better post your question in the reports forum instead of this pl/sql forum.

  • PDF reports generation problem from single oracle reports in 10G

    Hi All,
    i am generating 4 PDF reports from one Oracle reports in 10 G.
    i used RUN_REPORT_OBJECT built in 4 times with some different parameter list at a single time.
    some time it generates but some time it generate 2 or 3 out of 4.
    Can you anyone help me on this issue.
    Regards,
    Abhishek
    Code that i used for generation of report:
    on key-F0:
    DECLARE
    PL_ID PARAMLIST;
    PL_NAME VARCHAR2(10) := 'REP';
    USRNM VARCHAR2(50);
    pl_id2 paramlist;
    pl_name2 varchar2(10):= 'REP';
    usrnm2 varchar2(50);
    pl_id3 paramlist;
    pl_name3 varchar2(10):= 'REP';
    usrnm3 varchar2(50);
    pl_id4 paramlist;
    pl_name4 varchar2(10):= 'REP';
    usrnm4 varchar2(50);
    BEGIN
    USRNM := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID := GET_PARAMETER_LIST(PL_NAME);
    IF NOT ID_NULL(PL_ID) THEN
    DESTROY_PARAMETER_LIST(PL_ID);
    END IF;
    PL_ID := CREATE_PARAMETER_LIST(PL_NAME);
    IF ID_NULL(PL_ID) THEN
    MESSAGE('Error Creating Parameter List ');
    END IF;
    ADD_PARAMETER(PL_ID, 'P_PRNT_C_FAM_ID', TEXT_PARAMETER, :PRNT_C_FAM_ID);
    ADD_PARAMETER(PL_ID, 'P_NOTICE_DATE', TEXT_PARAMETER, TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
    ADD_PARAMETER(PL_ID, 'P_REDET_DATE', TEXT_PARAMETER, TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
    ADD_PARAMETER(PL_ID, 'USR_NM', TEXT_PARAMETER, USRNM);
    ADD_PARAMETER(PL_ID, 'SCHEDULE', TEXT_PARAMETER, :RUN_TIME);
    ADD_PARAMETER(PL_ID,'P_PRNT_PROV',TEXT_PARAMETER,'PRNT');
    ADD_PARAMETER(PL_ID, 'P_ENG_SP', TEXT_PARAMETER,'N');
    REDET_REPORT('506',PL_ID,'CT506_Parent_FamId_Eng'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
    USRNM2 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID2 := GET_PARAMETER_LIST(PL_NAME2);
    IF NOT ID_NULL(PL_ID2) THEN
    DESTROY_PARAMETER_LIST(PL_ID2);
    END IF;
    PL_ID2 := CREATE_PARAMETER_LIST(PL_NAME2);
    IF ID_NULL(PL_ID2) THEN
    MESSAGE('Error Creating Parameter List');
    END IF;
    ADD_PARAMETER(PL_ID2,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
    ADD_PARAMETER(PL_ID2,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
    ADD_PARAMETER(PL_ID2,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
    ADD_PARAMETER(PL_ID2,'USR_NM',TEXT_PARAMETER,USRNM2);
    ADD_PARAMETER(PL_ID2,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
    ADD_PARAMETER(PL_ID2,'P_PRNT_PROV',TEXT_PARAMETER,'PRNT');
    ADD_PARAMETER(PL_ID2,'P_ENG_SP',TEXT_PARAMETER,'Y');
    REDET_REPORT('506',PL_ID2,'CT506_Parent_FamId_Sp'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
    USRNM3 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID3 := GET_PARAMETER_LIST(PL_NAME3);
    IF NOT ID_NULL(PL_ID3) THEN
    DESTROY_PARAMETER_LIST(PL_ID3);
    END IF;
    PL_ID3 := CREATE_PARAMETER_LIST(PL_NAME3);
    IF ID_NULL(PL_ID3) THEN
    MESSAGE('Error Creating Parameter List');
    END IF;
    ADD_PARAMETER(PL_ID3,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
    ADD_PARAMETER(PL_ID3,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
    ADD_PARAMETER(PL_ID3,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
    ADD_PARAMETER(PL_ID3,'USR_NM',TEXT_PARAMETER,USRNM3);
    ADD_PARAMETER(PL_ID3,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
    ADD_PARAMETER(PL_ID3,'P_PRNT_PROV',TEXT_PARAMETER,'PROV');
    ADD_PARAMETER(PL_ID3,'P_ENG_SP',TEXT_PARAMETER,'N');
    REDET_REPORT('506',PL_ID3,'CT506_Prov_ProvId_Eng'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
    USRNM4 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID4 := GET_PARAMETER_LIST(PL_NAME4);
    IF NOT ID_NULL(PL_ID4) THEN
    DESTROY_PARAMETER_LIST(PL_ID4);
    END IF;
    PL_ID4 := CREATE_PARAMETER_LIST(PL_NAME4);
    IF ID_NULL(PL_ID4) THEN
    MESSAGE('Error Creating Parameter List');
    END IF;
    ADD_PARAMETER(PL_ID4,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
    ADD_PARAMETER(PL_ID4,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
    ADD_PARAMETER(PL_ID4,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
    ADD_PARAMETER(PL_ID4,'USR_NM',TEXT_PARAMETER,USRNM4);
    ADD_PARAMETER(PL_ID4,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
    ADD_PARAMETER(PL_ID4,'P_PRNT_PROV',TEXT_PARAMETER,'PROV');
    ADD_PARAMETER(PL_ID4,'P_ENG_SP',TEXT_PARAMETER,'Y');
    REDET_REPORT('506',PL_ID4,'CT506_Prov_ProvId_Sp'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
    Message('Notice Submitted For Printing');
    EXIT_FORM;
    END;
    Program unit:
    PROCEDURE REDET_REPORT(rep_name in Varchar2,plist in ParamList,rep_pdf_name in Varchar2)IS
    filecode varchar(2);
    Repnm varchar(30);
    report_id REPORT_OBJECT;
    report_id_hear REPORT_OBJECT;
    report_prop VARCHAR2(20);
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(200);
    bat_loc varchar2(200);
    time_slot varchar2(100);
    rep_folder_name varchar2(100):='Redet Notice for Packets Sent\';
    BEGIN
    Filecode := init.GetFileNmCode;
    if filecode 'FL' then
    if upper(substr(rep_name,1,2)) ='CC' then
    RepNm := filecode||substr(rep_name,3);
    else
    if rep_name != 'viewerr' then
    RepNm := filecode||rep_name;
    else
    RepNm := rep_name;
    end if;
    end if;
    end if;
    Begin
    begin
    report_id := find_report_object(RepNm);
    if error_code = '41219' then
    Message('Unable to execute : '|| RepNm);
    Raise FORM_TRIGGER_FAILURE;
    end if;
    end;
    set_report_object_property(report_id, REPORT_FILENAME, RepNm);
    set_report_object_property(report_id, REPORT_SERVER, init.Appl_Repserver);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE,SYNCHRONOUS);
    set_report_object_property(report_id, REPORT_DESFORMAT,'PDF');
    select rprm_param_val||rep_folder_name||rep_pdf_name||'.pdf' into bat_loc from rprm where rprm_param_name = 'BAT_LOC';
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,FILE);
    SET_REPORT_OBJECT_PROPERTY(REPORT_ID,REPORT_DESNAME,'"'||bat_loc||'"');
    begin
    v_rep := RUN_REPORT_OBJECT(report_id,plist);
    exception when others then
    Message('Error While executing running reports ::'||error_code);
    end;
    end;
    END;

    Thanx Frank
    Well one solution is that i can decrease the length of my report name and the problem does not occur than.
    any ways thanx ..but where to get the patch from.
    Kindly provide me with the link if possible.
    Thanx,
    Qaiser Qayyum Malik.
    [email protected]

  • Exporting to multiple PDF's from one report

    I have a requirement to create multiple PDF's from one report.
    My thought is that I can I can create a foreach loop that cycles through one of my groups.  I would then like to have each file have the name of that group. 
    If anyone could help me on how to code this in C# that would be great.  I need to know where I should be putting this code (program.cs or crystalreport.cs) and how I run it.  I am assuming I don't need the viewer for this function, since this is all on my end and no users need to have access to it. 
    My other requirement is to have each of these reports be put into their own folders at C:\.  Thanks for the help in advance!

    OK. Yup, you should be able to do this. When I was reading the initial post it looked like you might have ben wanting to export only a certain section of a report (which is a no go).
    Anyhow, first thing you want to do is apply Service pack 3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    Next, you want to look at a few sample apps and go over some docs. What you want to achieve can be done by using parameters or selection formulas.
    A good coding resources is the [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]. Don't worry about the title, it will apply to CR 2008 also.
    Next, sample apps can be downloaded from here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    [CR 2008 developer library|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm]
    [API reference|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
    Not sure if you are thinking of this being a web app, but here are some resources for that:
    [Interactivity and Reports in Web Applications|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/208edbbf-671e-2b10-d7b5-9b57a832e427&overridelayout=true]
    Before starting your project, you should have a look at [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bccdfd-88a6-2b10-1da1-c47a54b625a7] to make sure you are using the right SDK for your purposes.
    Finally, the following are links to 3rd party resources and I'm adding htese just as an FYI:
    http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx
    http://msdn.microsoft.com/en-us/magazine/cc301570.aspx
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • How to copy line items from one expense report to the next

    I travel to the same project/destination every week so in PR05, I was able to just copy the previous expense report for the new week and edit the expense values. Now, when I book travel, the air line booking starts a new expense report entry.
    Is there a way to copy the employee-paid expenses to the GetThere-generated trip entry expense report, i.e. just copy the line items from one expense report to another that already exists. I guess that would be a merge function.

    Hi Tom,
    Here are two alternative solutions:
    Alternative 1:
    If you copy the expense report before you book the services (flight, hotel …)
    in GetThere, then the airline or hotel bookings will not start a new expense
    report but will be assigned to the copied expense report.
    Alternative 2:
    This alternative is a bit laborious.
    Shift the start date and end date of the expense
    report  that was automatically created by
    your flight booking for next week (e.g. Calendar Week (CW)  47) to the week after next week (e.g. CW 48).
    Copy the expense report of the previous week (e.g.
    46)
    Afterwards open the expense report that you
    moved to CW 48 and click on the tab strip itinerary
    Now assign the bookings (flight, hotel …) to the
    expense report of CW 47 by clicking on the button assign to existing trip
    Later delete the expense report in CW 48
    Get back to me if you have any questions concerning the alternatives outlined
    above.
    Note:
    These solution alternatives are only available for customes using HTML5 UIs.

  • How to transfer reports from one environment to another

    Pls. is there a way to transfer reports from one environment to another (CTE to production f.example) ?
    I know that OBIEE has query export in XML, etc. I don´t think it exists in OD but I decided to try a question...
    Txs. for any help.
    ANtonio

    Hi Antonio,
    This is not possible, there is no such XML view for CRM On Demand.. I miss it dearly! I advise clients to prototype reports on their staging/CTE environment but actually fully develop these directly on production. Reports can be developed and changed in personal folders with no impact on the live environment, if a report is currently live it can be copied to a personal folder on tweaked in that personal folder.
    There is a whisper that R17 could bring us the ability to copy configuration/reports between environments but the Oracle guys would be better placed to update you on this one.
    Thanks
    Oli @ Innoveer

  • How to deploy reports from one environment to another in CoD

    Hi Experts,
    I'm actually in training with an Oracle partner in order to learn how to create reports in CoD.
    It seems quite easy.
    But the trainer here told us to develop directly the new reports on the Prod environment.
    I've asked why, cause we also have Dev and Test environment.
    And he answerer me that there's no way to deploy reports from one environment to another, the only way is to redevelop it on each environment.
    As for me it seems impossible not to be able to deploy reports from dev to test and then test to prod, I'm directly asking experts.
    So could you please confirm this or not, and maybe provide me an example of what you're doing on your side to copy from one environment to another.
    Thank you in advance.
    Brice

    H,
    reports cannot be migrated at this time, indeed.

  • How to run a Oracle 9i .JSP report from outside 9i Reports Builder

    Hi,
    I have successfully created a .JSP report from within 9i Reports Builder. It runs fine and generates desired output using Run -> Web Layout from the Reports Buider menu. The output is a .htm one.
    Now, my requirement is to run this .JSP from my application without using Reports Builder. In other words, I want to integrate this .JSP with my existing application which will fetch data dynamically for the user. There is no hint to this solution in the 9i Reports Tutorial available at OTN.
    A sample code would be highly helpful.
    Regards,
    - Partha

    partha,
    you deploy a reports-jsp to your oracle9i application server like any other JSP. copy it to a directory in the application servers document tree.
    when you execute the reports-jsp it will need a reports server (in process or stand alone) to execute since the actual data-management is done by the reports-server.
    regards,
    philipp
    PS : if you have further reports related questions, you might want to post those in the reports forum here on OTN.

  • Migration from one oracle DB to another Oracle DB

    Hi ,
    We are migration data from one oracle DB to another Oracle DB. Lets take it as DB1 and DB2.
    Both are having many tables and many columns. So some tables contains common columns with different data types and same datatype with different datasize.
    I am trying to map the columns in both the DB's. Then I will retrieve what are the equal columns and what are columns have difference in data types and datatype lengths.
    for Eg : Please find the below tables and the structures.
    DB1                                                              DB2
    EMP                                                             EMPLOYEE
    ENO   VARCHAR2(10)                                  EMP_NO  Number(8)
    ENAME  Varchar2(25)                                   EMP_NAME  Varchar2(20)
    SAL   NUMBER(8)                                        JOb    VARCHAR2(20)
    Description  BLOB/CLOB                              Department   Varcgar2(20)
                                                                       SAL  number(8,3)
                                                                       JOB_DESC  varchar2(30)
    I would like to migrate DB1 to DB2
    Here I found the differences as follows.
    1. There is relation between EMP and EMPLOYEE tables.
    2. Datatype is different for EMPNO(DB2) compare to DB1. ( Here in DB1 datatype is Varchar and in DB2 it is Number )
    3. in DB1 Ename datatype length is 25 and in DB2 it is 20...
    So can any one suggest me any pl/sql automation code how can we map the columns,datatypes,datalengths and other required information.
    Can you please suggest me and give your suggestions to write automation code if possible or how can we resolve these type of issues.
    Thanks,
    Vas 

    So can any one suggest me any pl/sql automation code how can we map the columns,datatypes,datalengths and other required information.
    No such 'automation code' exists. You need to write your own mapping functions and exception handling processes.
    Can you please suggest me and give your suggestions to write automation code if possible or how can we resolve these type of issues.
    Finish what you started. The most important step you can take is to create a Functional Requirements document that includes, at a minimum:
    1. Mapping of each source table to each target table
    2. Lists of possible errors, or dirty data issues, that might be encountered
    3. The business rules that should be applied to each of those possible errors
    You already made a good start on the mapping for the one table above. And you made a good start of identifying the possible errors:
    2. Datatype is different for EMPNO(DB2) compare to DB1. ( Here in DB1 datatype is Varchar and in DB2 it is Number )
    Good - it should be easy for everyone in your org to agree that you can't put 'TEXT' data into a NUMBER column so now you need to document that issue:
    1. Identify data in DB1.ENO that is not numeric
    2. Remove, ignore, fix that data?
    What do the business users want to do with text data in that DB1.ENO column that is not numeric? They need to tell you. They may want a report or excel file that contains that 'dirty' data so they can review and/or fix it. They may want to query that data for themselves. They may want to know where that data came from - especially if the data is all supposed to be numeric.
    3. in DB1 Ename datatype length is 25 and in DB2 it is 20...
    Good - use the same process as above
    1. Identify data in DB1.ENAME that is longer than 20.
    2. Remove, ignore, fix that data? Truncate it?
    Again - it is usually the business users that need to actually determine what should be done. Your job is to identify that 'dirty' data and/or make it available to the business users so they can research it
    You don't need to wait for the business users to actually provide all of those answers. You can begin writing pseudo-code that contains steps to deal with those issues - you just can't write the actual code until you have the answers.
    You can certainly begin writing queries or procedures that look for 'dirty' data. Just based on the two problems you posted you can write queries to find data that has those two issues.

  • I cannot open pdf files from one supplier when using Adobe Reader but I can using another Viewer

    I cannot open pdf files from one supplier when using Adobe Reader but I can open it if using Google PDF viewer or another viewer. The Adobe reader gives the error "There was an error opening this document. The file is damaged and could not be repaired" when I try to open the file. The version of Adobe Reader is 10.1.7, however I have tried other versions and they all fail the same way.  I have tested on a number of different PC's in different networks and all fail using Adobe Reader but work using alternate viewer. Also the PC's will open a PDF from any other source.

    Newer Reader versions are more strict than older versions (and other PDF viewers).  If certain minimum requirements are not met, Reader will tell you that the PDF is damaged.  This can happen when a document was created with software that does not adhere to PDF standards, or when the file was damaged during a download or email transmission.
    You should contact the creator of these PDFs.

  • Migrating a webi report from one environment to another using import wizard

    Hi Everyone,
    Can anyone please tell me what all access should I have on my ID to be able to migrate a webi report from one environment to another environment(e.g. from development to quality).
    Regards,
    Neeraj Sharma

    Hi,
    To use the Import Wizard utility, you basically need Administrator, Full Control to Top-level folder, and "Add objects to the folder" and "Edit objects" for this user on the root folder.
    You need the least restrictive role, because you require absolute control for content promotion between 2 entitlement systems.
    the webi document is the cherry on-top,  you;ll have universes, connections, folders to bring over too. 
    Regards,
    H
    p.s. check Note 1450708 - How to restrict access to the Import Wizard from a Business Objects Enterprise system
    and
    Note 1297121 - What rights needed to use Biar File Extraction for a normal user while using Import Wizard ?

  • Show the print dialog when running a report from an Oracle form.

    I would like to be able to print an Oracle report from an Oracle form but
    in addition show the print dialog. My PL/SQL code is shown at the bottom of this post.
    I have set the 'printjob' system parameter to 'YES' in the
    report and I can bring up a print dialog using the reports runtime.
    However, as soon as I run it from my form I lose this capability. Setting
    'printjob' to 'YES' in the code has no apparent effect.
    Many thanks,
    Ben
    -- Launch a report
    DECLARE
      v_pl_Id   paramlist; -- parameter list
    BEGIN
      -- add the parameters to the list.
      v_pl_id := CREATE_PARAMETER_LIST ('summary');
      ADD_PARAMETER (v_pl_id, 'destype', text_parameter, 'PRINTER');
      ADD_PARAMETER (v_pl_id, 'printjob', text_parameter, 'YES');
      -- run the report
      RUN_PRODUCT (
        reports
      , 'C:\Test Reports\Test.rep'
      , synchronous
      , runtime
      , filesystem
      , v_pl_id
      , NULL
    END;

    At 10g not 9i using a bean area on my canvas implementing the following class ...
    import java.awt.Frame;
    import java.awt.JobAttributes;
    import java.awt.PrintJob;
    import java.awt.Toolkit;
    import javax.swing.JPanel;
    import java.io.*;
    import oracle.forms.ui.VBean;
    public class Select_Printer extends VBean {
    public Select_Printer()
         super();
    public String getPrinterName()
    String PrinterName=null;
              JobAttributes jobAttributes;
              try{
                   jobAttributes = new JobAttributes();
                   jobAttributes.setDialog(JobAttributes.DialogType.NATIVE);
                   Frame dummyFrame = new Frame();
                   PrintJob pJobDialog = Toolkit.getDefaultToolkit().getPrintJob(
                   dummyFrame, "Printtest", jobAttributes, null);
                   PrinterName = jobAttributes.getPrinter();
              } catch (Exception e) {
                   System.out.println("Printer error!");
              return PrinterName;
    public static void main(String[] args)
    Select_Printer select_Printer = new Select_Printer();
    System.out.println(select_Printer.getPrinterName() );
    }

  • How to move a report from one account to another account

    Dear all ,
    How to move a reports from one account to another account.
    These are reports sent automatically. Unfortunately, I do not know where to find them and how to export to another account.
    Puru

    Hi,
    You can use the Transaction SCC1 to move the data from One Client to Another Client for a Client dependent table.
    The data should be present in a Transport and you can import to Transport to any client using SCC1.
    Contact the Basis team to know how to use SCC1.
    Regards,
    Aj

  • Import some data from one oracle to another...

    Hi Guys,
    we have 2 oracle database servers on 2 different machines with schema.
    I want to import some data from a specific table from one oracle into another oracle.
    what is the way to do that.
    Please help in details
    Imran Baig

    Hi,
    Thanks for the reply.
    Tables are already created in both of the oralce databases only the data varies. I just have to import only few records from one oracle to another with the same user name and table already existing.
    I have tried using database link. I can view records from the other oracle database but as soon as i write an insert command oracle gets held. I cant do anything.
    Is there any other way?
    Imran

  • Import/export from one oracle db to anothe roracle db

    Hi All,
    I would like to import and export data from one oracle database to another oracle database. Can any one please suggest me/provide me any script if available.
    I am following Datapump IMPDP and EXPDP. I would like to do this data pump process every time. So I wolud like to do this task as automate. So please provide me any script for automating this job
    or let me know if there is any easy method to do this process.. I would like to have a script and am uising Oracle 11.2.0.3.
    Thanks

    Hi,
    Below Anonymous block Exports the 'HR' schema:
    DMPDIR -- Directory object where you want to create the dmp files
    DECLARE
      l_dp_handle      NUMBER;
      l_last_job_state VARCHAR2(30) := 'UNDEFINED';
      l_job_state      VARCHAR2(30) := 'UNDEFINED';
      l_sts KU$_STATUS;
    BEGIN
      l_dp_handle                          := DBMS_DATAPUMP.open( operation => 'EXPORT', job_mode => 'SCHEMA', remote_link => NULL, job_name => 'SCHEMA_EXPORT', version => 'LATEST');
      DBMS_DATAPUMP.add_file( handle        => l_dp_handle, filename => 'SCHEMA_EXPORT.dmp', directory => 'DMPDIR');
      DBMS_DATAPUMP.add_file( handle        => l_dp_handle, filename => 'SCHEMA_EXPORT.log', directory => 'DMPDIR', filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
      DBMS_DATAPUMP.metadata_filter( handle => l_dp_handle, name => 'SCHEMA_EXPR', value => '= ''HR''');
      DBMS_DATAPUMP.start_job(l_dp_handle);
      DBMS_DATAPUMP.detach(l_dp_handle);
    END;
    Now you can use this dmp file to import the 'HR' schema in the required database.
    Below Anonymous block imports the 'HR' schema:
    DECLARE
    dph NUMBER;
    BEGIN
      dph := dbms_datapump.open(operation => 'IMPORT', job_mode =>
      'SCHEMA',job_name => 'SCHEMA_IMPORT');
      dbms_datapump.add_file(handle => dph,filename =>
      'SCHEMA_EXPORT.dmp', directory => 'DMPDIR',filetype=>1);
      dbms_datapump.add_file(handle => dph,filename =>
      'SCHEMA_IMPORT.log',directory => 'DMPDIR',filetype=>3);
      dbms_datapump.start_job(dph);
      dbms_datapump.detach(dph);
    END;

Maybe you are looking for

  • Mapping idoc to flat file

    Hi Friends I Have to map one idoc to cvs flat  file , the file structure has 10 fields , those 10 fields have to be repeated as many times as there is segments in the idoc for instance the first line takes segmenta A and the second line takes segment

  • Move or copy iPhoto '11 slideshow from one Mac to another

    How do I move or copy a slideshow created on my iMac to my Macbook Pro

  • FM of BAPI for the transactions VV12 , VV22 and VV32

    Hi All, My requirement is to update the condition records for different output types using the transactions VV12,VV22 and VV32. Is there any FM or BAPI to do that. I have searched but could not get any.

  • Adobe form - browser not closing

    We've developed an Adobe Interactive form (thru Netweaver Developer Studio NW04 SP 11 - i.e. Web Dynpro). This form will be accessed by external users for printing. They have Adobe Reader 7.0.8. Our problem is that the external users are not ready to

  • Bpel and jdev 10.1.3r3

    Are there plans for BPEL on JDev 10.1.3 in the production release ? has anybody tried it out with JDev 10.1.3r3 ?