Forms calling Reports output issue RTF/PDF - strange issue

Dear All,
I'm looking for a bit of help with a strange situation calling reports from Forms.
This problem I'm getting in both 11.1.1 and 11.1.2 of Forms/Reports. Client is WinXP/7 (issue appears on both), Weblogic server is Linux (SLES11 and Red Hat - issue on both)
So the issue is
1. calling a report with output as RTF (this works fine and we use OLE2 to open the report in Word)
2. Wihile in that form call the same report though change the output to be created as PDF in the cache and the report then opens in IE (this too works fine)
3. Now if we try and do number 1 again (still in the same form) and run the same report again and choose to generate as RTF and open in word, it erroneously generates the report in PDF format but with an .RTF extension on the file.
Of course most of the time people would not want to do this, but the client has identified this issue and classified it as a bug, so we need to fix it (and it doesn't happen in the Forms6i version it is migrated from).
I have tried to ensure that the parameter list is correctly deleted and re-created, which appears to be the case. I also tried to generate a new unique parameter list for every run, which made no difference to the problem.
If I choose to run a completely different report, the problem has reset itself. So the problem exists only when I've chosen the PDF output and then run the same report thereafter as RTF output to a file.
Code to prepare for the RTF option is:
Add_Parameter(pl_id,'destype',TEXT_PARAMETER,'FILE');
Add_Parameter(pl_id,'desname',TEXT_PARAMETER,l_temp_env||'/'|| p_report || '.rtf');
l_report_desname := l_temp_env||'/'|| p_report || '.rtf';
Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'RTF');
Add_Parameter(pl_id,'REPORT_DESFORMAT',TEXT_PARAMETER,'RTF');
Add_Parameter(pl_id,'mode',TEXT_PARAMETER,'BITMAP');
l_report := p_report;
Code used to prepare for PDF option is:
Add_Parameter(pl_id,'destype',TEXT_PARAMETER,'CACHE');
Add_Parameter(pl_id,'desname',TEXT_PARAMETER,'');
Add_Parameter(pl_id,'desformat',TEXT_PARAMETER,'PDF');
l_report := p_report;
Any ideas gratefully received.
cheers
Tony

So I delete the paramlist correctly, then the code is:
IF (p_display_method = 'W')
THEN
--WORD Format
     --delete file on client
     Delete_File('c:\temp'||'\'|| p_report || '.rtf');
     --delete file on app server
     host('rm '||l_temp_env||'/'|| p_report || '.rtf');
     Add_Parameter(pl_id,'REPORT_DESTYPE',TEXT_PARAMETER,'FILE');
     Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'FILE');
     Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,l_temp_env||'/'|| p_report || '.rtf');
     l_report_desname := l_temp_env||'/'|| p_report || '.rtf';
     Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'RTF');
     Add_Parameter(pl_id,'REPORT_DESFORMAT',TEXT_PARAMETER,'RTF');     
     Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'BITMAP');
     Add_Parameter(pl_id,'printjob',TEXT_PARAMETER,'no');
     l_report := p_report;
ELSIF (p_display_method = 'E')
THEN
--EXCEL format
     --delete file on client
     Delete_File('c:\temp'||'\'|| p_report || '.csv');
     Delete_File('c:\temp'||'\'|| p_report || '.xls');
     --delete file on app server
     host('rm '||l_temp_env||'/'|| p_report || '.csv');
     Delete_File(l_temp_env||'\'|| p_report || '.cvs');
     Delete_File(l_temp_env||'\'|| p_report || '.xls');
     Add_Parameter(pl_id,'destype',TEXT_PARAMETER,'FILE');
     Add_Parameter(pl_id,'desname',TEXT_PARAMETER,l_temp_env||'/'|| p_report || '.csv');
     Add_Parameter(pl_id,'desformat',TEXT_PARAMETER,'csv.prt');
     Add_Parameter(pl_id,'REPORT_DESFORMAT',TEXT_PARAMETER,'csv.prt');
     Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'character');
     Add_Parameter(pl_id,'printjob',TEXT_PARAMETER,'no');
     l_report := p_report || '_d';
ELSIF (p_display_method = 'P')
THEN
-- PDF Format
     Add_Parameter(pl_id,'destype',TEXT_PARAMETER,'CACHE');
     Add_Parameter(pl_id,'desname',TEXT_PARAMETER,l_temp_env||'/'|| p_report || '.pdf');
     Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'PDF');
     Add_Parameter(pl_id,'REPORT_DESFORMAT',TEXT_PARAMETER,'PDF');     
     l_report := p_report;
END IF;
So all of the above works fine when generating a report the first time you enter a form, but if you run a PDF output report then immediately in the same form generate the report again to a non-PDF format, it comes out in incorrectly in PDF format.
rgds
Tony
Edited by: tony.g on Nov 29, 2012 1:37 PM

Similar Messages

  • From form calling report to result to pdf file

    Dear All,
    Usually, when we call a report from form, it calls to preview. Now, I would like to autometically call the report and upon execute, the pdf file will be created. Can anybody tell me how to do that.
    p/s: I do not want the preview becasue this report is a complicated report and it takes quite some time to process. So I would like my user to get the pdf directly instead of going though the preview.
    Thanks

    DECLARE     
    pl_id ParamList;
    Begin
    pl_id := Create_Parameter_List('Reports_Parameters');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'FILE');
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,'C:\aRep1.Pdf');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'PDF');
    RUN_PRODUCT REPORTS,'C:\Rep1',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_ID);
    Destroy_Parameter_List(pl_id);
    End;

  • How to open Report output in RTF format using concurrent request form.

    Hi
    I have created a report using BI publisher and RTF format. This report is working fine in PDF format. User can submit report using consurrent request form and can see report preview in PDF format.
    Now user wants to submit another request and wants to see report output in RTF format.
    User submitted a request, request successfully completed and generated a output RTF file in unix box but when user wants to see report output using concurrent request form (View Output) then window is showing raw data instead of RTF output.
    Can any body tell me about solutions?
    Thanks
    Ravi

    Hi Ravi
    I did little R&D on it and found following 2 solutions.I am sure that you also find something but for my shake i am putting it here.If you already find the solution then ignore it.
    I) 1st Solution
    1)Change the profiles 'Viewer: Application for Text' and put value as 'Browser'
    2) Change the profiles 'Viewer: Text' and put value as 'Browser'.Either change it system level or concerned user.
    3) Log out from Current session and close all internet explorer application.
    4) Log in again to check the result
    II) 2nd Solution
    1) Navigate to: Sys admin --> Install -> Viewer Options to open the Form "Viewer Options".
    Do the entry as shown below:
    File_Format     Mime Type               Description
    RTF          application/rtf Microsoft Word(.rtf)
    RTF          application/msword          Microsoft Word(.rtf)     
    2) Then ensure that the profile option Viewer: Application for Text is set to BLANK at the Site Level and User Level.
    3) Then ensure that the profile option Viewer: Text is set to 'browser' at the Site Level.
    -- It will pop-up the screen to choose application name from above two values.
    Hope this will work it for you. For me i replicated the scenario and both solutions were working for me.
    With Best Regards
    Darshan Bhavsar

  • Form call report,but form hang when report sun slowly,how to set server?

    In version 10.1.2
    Form call report, form hang when report sun slowly,
    finally the report will done,I can see the output in the server disk,but form hang,
    I think it's out of the report session, ,how to set server?
    thanks for any help!
    lind

    Hello,
    If you are using the "Paper Layout", check the Reports's "Before Report Value" property:
    Before Report Value :
    <meta http-equiv="Content-Type" content="text/html; charset=&Encoding">
    If you are using the "Web Layout", take a look to the document :
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_nls.htm#i1006142
    18.3 Specifying a Character Set in a JSP or XML File
    Regards

  • How to call Report output in Modulepools

    hi
    can any one suggest me
    How to call Report output in Modulepools
    i have a push button in modulepool after clicking that pushbutton i need a report output
    how to do this
    Thanks & Regards
    kalyan

    Hi Kalyan,
    From Module pool program you have to go display A Report output..
    So at User-Command of PAI use LEAVE TO LIST PROCESSING.
    Regarding this check the Demo program DEMO_LEAVE_TO_LIST_PROCESSING.
    And for further reference please check this SAP Help
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/frameset.htm
    For more help please check this thread
    Re: LEAVE TO LIST-PROCESSING
    Hope this would help you.
    Good luck
    Narin

  • Form calling Report with web.show_document caught by SSO

    A 10g form button calls a 10g report via web.show_document.
    In the dev environment it works, but in the full app server SSO is enabled and stops & prompts for a login/password.
    I'm trying to include the SSOCONN parameter in the URL. I've tried the db userid & the sso userid without success.
    Any help is much appreciated.

    How are you calling the report with Web.Show_Document (what's the URL you're passing)? The application I'm working on uses SSO and I call Reports from Forms and don't have this issue. You should just have to pass the return value of RUN_REPORT_OBJECT() in the URL along with the server name - at least that is how we do it. For example (bare in mind this is an abbreviated example):
    DECLARE
         v_rep_rtn   VARCHAR2(4000);
         v_repsvrname      VARCHAR2 (100);  /* This is a CONSTANT and used here as an example */
         v_paramlist  paramlist;
    BEGIN
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname);
         v_report    := Find_Report_Object('REP1');
         Set_Report_Object_Property(v_report, report_execution_mode, batch); 
         Set_Report_Object_Property(v_report, report_comm_mode,      synchronous);
         Set_Report_Object_Property(v_report, report_destype,        CACHE);
         Set_Report_Object_Property(v_report, report_desformat,      'pdf');
         Set_Report_Object_Property(v_report, report_server,         v_repsvrname);
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         rep_status := Report_Object_Status(v_rep_rtn);
         WHILE rep_status IN ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')     LOOP           
              rep_status := Report_Object_Status(v_rep_rtn);        
         END LOOP;   
         IF rep_status <> 'FINISHED' THEN
              msg_box('Error when running report. Status = '||rep_status);  
         else
              Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname); -- || '&authid=orcladmin/admin999');
         END IF;
    END;Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • Form calling report by HOST( rwrun...)

    I want to call a report within Form & mail that output of report to respective destination.
    I am trying to implement by using rwrun in form i m giving
    Client_host('rwrun .....'); by giving destype "mail" I am able to send output of it
    by mail. But now I want to implement by using Host command
    Client_Host --> to run @ client machine
    Host --> to run @ server (linux)
    Please help about it.

    hey Rajesh_Alex,
    I tried same by using RUN_REPORT_OBJECT but it gives error
    FRM-41219: Cannot find report: invalid ID
    Please Help Me.......
    here is my code
    declare
              v_report_id REPORT_OBJECT;
              v_job_id varchar2(70);
              sts varchar2(80);
    begin
    v_report_id:=find_report_object('C:\Testing\Purchase_Order.rdf');
    --v_report_id:=find_report_object('Purchase_Order');
    SET_REPORT_OBJECT_PROPERTY (v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,mail);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESNAME,'[email protected]');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,':P_POR_NO='||'2006-30210'||'paramform=no');
    v_job_id:=RUN_REPORT_OBJECT(v_report_id);
    sts:=REPORT_OBJECT_STATUS(v_job_id);
    end;

  • URGENT HELP:Reports Output in RTF Format

    Hi,
    I have a problem with Oracle Reports 3.0
    I am generating a report output to a RTF file.
    The report is output in landscape orientation in Reports Runtime
    window.
    But when I open the RTF document, the output is in
    Portrait orientation and some of the information is getting out
    of the view. If I manually change the orientation in the RTF
    Page Setup, I am able to view the output properly.
    Can this be automated by using some property/setup in Oracle
    Reports 3.0?
    Also, the BMPs are not visible in the RTF file.
    Can anyone help me on these issues?
    Regards,
    Uma Shankar Varati
    null

    Hi Aravind,
    I don’t think there is any help in HTMLDB for this. There is this technical note: http://www.oracle.com/technology/pub/notes/technote_htmldb_fop.html I don’t really like this approach.
    You should consider using XML Publisher. It’s a “new” Oracle product that is easy to use and really works! Actually it’s an Oracle Application product that is now standalone. It’s much faster to use than making the xslt manually. You can make the templates in Word. We have a project where we don’t make any templates. The customers make their own on each site.
    There of cause is a licensing issue. Depending on you setup it can be expensive.
    Check:
    http://www.oracle.com/technology/products/applications/publishing/index.html
    BI Publisher
    You can download it from Oracle eDelivery:
    http://edelivery.oracle.com/EPD/Download/get_form?egroup_part_number=B23145-01
    Product Pack Oracle Application Server Products
    Platform: Any (e.g. Window 32 Bit)
    The part number is B23145-01: "Oracle® XML Publisher CD/Media Pack".
    This includes the client and server side code + documentation and sample templates and applications.
    Regards Pete

  • Migrating application containing forms calling reports on ids9i

    i am trying to migrate an application with forms and reports.
    problem: menu.mmb contains "run_product(REPORTS..."
    i tried: result:=run_report_object(find_report_object('abr_as'), ' ');
    (and definied this report in the menu.fmb)
    rep-file and rdf-file are in the same dir as fmb-files
    i am working with oc4j standalone (without as)
    => and get: "rep-0503 Sie haben keinen Berichtnamen angegeben"...
    by the way: did anyone successfully used ifconvplsql90 (forms migration util) ???
    if i try this util, it replaces the "run_product"-line with:
    rp2rro.rp2rro_run_product(REPORTS, 'abr_as', SYNCHRONOUS, RUNTIME, FILESYSTEM, ' ', NULL);
    => FRM-41219 Bericht nicht gefunden. Ung|ltige Id.
    (and a lot of following errors...)

    G|nther,
    I am inlining my comments
    >i am trying to migrate an application with forms and reports.
    problem: menu.mmb contains "run_product(REPORTS..."
    i tried: result:=run_report_object(find_report_object('abr_as'), ' ');
    (and definied this report in the menu.fmb)
    So I am assuming that you have a reports object node of the the name "abr_as". Thus "abr_as" is not the name of the Reports module (rdf or rep).
    If abr_as is the name of the Reports physical file, then please create a Reports Object node and add this name as the physical file name in teh properties. use the name of the Reports object within your Run_Report_Object calls
    >rep-file and rdf-file are in the same dir as fmb-files
    i am working with oc4j standalone (without as)
    Make sure that the directory is known by the Reports Server. Use Reports_Path setting in the registry. Forms does not look for the Reports directly but call ReportsServices. make sure that the Reports Object property has a valid entry for a Reports module
    >=> and get: "rep-0503 Sie haben keinen Berichtnamen angegeben"...
    by the way: did anyone successfully used ifconvplsql90 (forms migration util) ???
    if i try this util, it replaces the "run_product"-line with:
    rp2rro.rp2rro_run_product(REPORTS, 'abr_as', SYNCHRONOUS, RUNTIME, FILESYSTEM, ' ', NULL);
    All that this utility does is to take teh Run_Product request and pass it to the plsql library shipped with the utility. The utility also create a Report Object node that is used with the library call. An here is where the possible problem is:
    Menu items don't have a Report Object node. Thus you need to make sure that the fmb file using this menu module does have the rp2rro entries. The easiest way to achieve this is to create a dummy run_product entry in the fmb file and run this through the converter. This adds all the rp2rrp dependecies to the fmb file. Finally remove the dummy run_product entry (that now shows converted) but leave the rp2rro parameters , Reports Object node and attached library.
    >=> FRM-41219 Bericht nicht gefunden. Ung|ltige Id.
    (and a lot of following errors...)
    The are some known issues with the rp2rro.pll (the call to Reports9i Services has a wrong format) that will be fixed in the first Forms9i patch that comes out soon.
    A Whitepaper about integrating Forms9i with Reports9i will be available on OTN in mid december (It's currently reviewed)
    Frank

  • Call Report output via a Button click

    Hello,
    I am using a button placed on a SCREEN.
    WHen i click on the button i am doing some process using on user command.
    I want the output on a report (as a list output) based ob my write statments
    I tried with  leave to list processing , set screen 0..etc stuff but thats not calling my report output.
    Can any one suggest?
    Thanks
    Ricky

    hmmm... sounds to me like you're looking for something like
    * Print report
      NEW-PAGE PRINT ON NEW-SECTION PARAMETERS Z_L_PRI_PARAMS NO DIALOG.
      FORMAT COLOR COL_BACKGROUND INTENSIFIED OFF.
      LOOP AT Z_T_ITAB INTO Z_L_ITAB.
        WRITE: / SY-VLINE(01), Z_L_ITAB-EBELN,
                 SY-VLINE(01), Z_L_ITAB-EBELP,
                 SY-VLINE(01), Z_L_ITAB-AEDAT,
                 SY-VLINE(01), Z_L_ITAB-OID_EXTBOL.
      ENDLOOP.
      NEW-PAGE PRINT OFF.
      COMMIT WORK AND WAIT.
    Lookup NEW-PAGE

  • Form call report

    In Unix environment when I call REPORT from FORM using RUN_PRODUCT built-in, it has no response and no error message just as if it has run but no display.
    How to solve the problem? Is there anyone who used form6i and report6i and their integration or configured form server and report server on unix?
    null

    In Unix environment when I call REPORT from FORM using RUN_PRODUCT built-in, it has no response and no error message just as if it has run but no display.
    How to solve the problem? Is there anyone who used form6i and report6i and their integration or configured form server and report server on unix?
    null

  • Forms sending report output horizantally in excel...

    Hi....when I send my group above report output to exel it arranges each group horizantally. For example if there are two master groups 'A' & 'B' each of them having 500 child rows, then in excel fristly appears the Group 'A' with its 500 child records downwards. And group 'B' appears ahead of Group 'A' instead of down to Group 'A'. Is it not possible to arrange output in excel like that of oracle reports previewer???

    Is there no one to answer this???

  • XML Publisher report output in RTF format does not display full page

    Hi,
    We have one XML Publisher report, the output of report in RTF format is not getting displayed in Full Page in normal way (MS Word -->View menu --> Print layout) but we can see full page display when we do MS Word -->View menu --> Outline.
    Appreciate your valuable inputs on this.
    Is this a template issue or any profiles needs to be set.
    Thanks
    Vijay

    Do you have any header and footer on your template?
    If you have any header and footer then try to adjust it as of to display full page.
    Thanks
    Yasar

  • How to save report output in a PDF file and also show preview in one processing cycle

    Hi every body,
    We R re-developing an application from COBOL to Oracle.
    Using Reports 6i 6.0.8.11.3.
    The requirement is that whenever a user processes a report, it should be saved on disk say in PDF format. Then it should be shown in Reports Runtime Previewer.
    So far I have explored that only one of theses can be done in one processing cycle.
    That is if we set DESTYPE to FILe it will only be saved to disk. If we set DESTYPE to Preview, the report can be previewed and optionally printed but not saved.
    I want that both saving to disk and preview should be possible.
    I have explored .DST file option but there is only provision for FILE, PRINTER and MAIL.
    Printing facility should be optional, otherwise we would have used FILE and PRINTER destinations in .DST file.
    Once that file is saved on disk, it can later on be printer if user requires more copies.
    I would prefer a solution other than User_exit as I don't have training in developing user_exits.
    Any help please.
    Tariq

    I had a similar requirement and decided to run the report from forms. When a button is pressed, the report is run to create the pdf file, followed by separate command to invoke acrobat reader or internet explorer to display the file, rather than using reports previewer.
    The file can be displayed from forms by a host command in client server, or by web.show_document on the web.

  • Report output to soppl - pdf- email

    Hi
    i am generating an alv report,
    1 .executing it in the background
    2, convert to pdf
    3,send mail
    my report contains 10 columns but the pdf is showing only 5 columns .
    is it possible to create a landsape so that all the columns will fit into the pdf or is there any other way to solve this?
    <removed_by_moderator>
    thanks
    Ramya
    Edited by: Julius Bussche on Jul 28, 2008 10:56 AM

    Hi,
    Please give correct  columns in your fieldcat.
    eg.
    WA_FIELDCAT-COL_POS = 1.
    WA_FIELDCAT-FIELDNAME = 'WERKS'.
    WA_FIELDCAT-SELTEXT_M = 'PLANT'.
    APPEND WA_FIELDCAT TO T_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-COL_POS = 2.
    WA_FIELDCAT-FIELDNAME = 'LGORT'.
    WA_FIELDCAT-SELTEXT_M = 'STORAGE LOC'.
    APPEND WA_FIELDCAT TO T_FIELDCAT.
    CLEAR WA_FIELDCAT.
    Give all columns value, like above.
    then
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = SY-CPROG
       IT_FIELDCAT                       = T_FIELDCAT
       IT_SORT                           =  T_SORTINFO
      TABLES
        T_OUTTAB                          = T_OUTPUT
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    IF SY-SUBRC <> 0.
    MESSAGE I005.
    LEAVE LIST-PROCESSING.
    ENDIF.
    Plz try like this.
    Thanking you.
    Subash

Maybe you are looking for

  • Controlling spry accordion from flash doesn't work in IE 8

    Hi all, I created a spry accordion in an html page and a little spry controller in flash, on the same page. The flash controller contains buttons that should trigger the accordion in the same page. here is the code I inserted in a flash button: on (r

  • How java handles package/class names

    I am developing a strategy for internationalizing our company's middle-ware product. While I have no problem with the GUI's, exceptions, log files etc, I have no concept of how things like classpaths and packages can be specified in an asian language

  • Using environmental variables in dataexport calc

    I'm using 11.1.2.1, and I thought I'd try this fancy new feature of using environmental variables in a DATAEXPORT calc script. I've played around quite a bit, and believe the following is true. The environmental variables must be the full path (inclu

  • Logo is missing elements when I save for web

    I was given a logo to work with for a project, but whenever I try to save it as a gif, jpeg, or in another image format, the text of the logo is missing. Here's a screenshot of what it's supposed to look like: Here's a screenshot of what it looks lik

  • Removing hub/cas server

    Exchange 2010 sp3, 1 multi-role, 1 DAG (2 hubs, 2 mbs) a few weeks ago, my DAG included the multi-role server. but due to hd space problems, i wasn't able to add more hd to the multi-role server. only to the 2 mb servers. therefore i removed the mult