How to run a report to a file ascii in forms/report 10G

We have an application in form an report 6i and we are going to translate it in 10G dev suite.
We have a problem with any forms modules which run report to file ascii with particular format.
After these files are send to printer o machine with host comand (we use the webutil for the host comand).
How can we run tese reports to file ascii ?

Hi,
if you print a Reports to the file system then this happens on the server. Your options are
a) Run the Reports with destype=cache and have the user printing it from the Browser
b) Print the Reports to the file system as before and make the directory accessible on the Web so that you can call the file using web.show_document()
c) You use Run_Report_Object() and print the reports to a network printer next to the user
d) check otn.oracle.com/products/forms for orarrp (an unsupported utility but working)
Frank

Similar Messages

  • How 2 call a report 10g from a parameter form 10G

    Hello,
    pls. i need steps ,or docs how 2 run a report 10g from a parameter form ;
    Is it requireD for the Parameter form to call a report an Application Server no* ???*
    i had a previous  experience with the code due to run the report as follows:_
    DECLARE
       PARAM_ID                                 PARAMLIST ;
       PARAM_NAME                           VARCHAR2(30) := 'REPORT_PARAMETER';
       ALRT                                         NUMBER;
       ERR_TXT                                   VARCHAR2(1000);
       repid                                         REPORT_OBJECT;
       v_rep                                        VARCHAR2(100);
       v_REP_SERVER_NAME       VARCHAR2(200);
       v_ip                                          VARCHAR2(100);
    BEGIN
           PARAM_ID := GET_PARAMETER_LIST(PARAM_NAME);
           IF NOT ID_NULL(PARAM_ID) THEN
              DESTROY_PARAMETER_LIST('REPORT_PARAMETER');
           END IF;
           v_REP_SERVER_NAME := REP_SERVER_NAME;
    BEGIN
            SELECT  PARAMETER_VALUE
            INTO   v_ip
            FROM GENERAL_FIXED_PARAMETERS
           WHERE PARAMETER_ID = 'REPORT_SERVER_IP';
           EXCEPTION
           WHEN OTHERS THEN   
           Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);
           Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);     
    END;
           PARAM_ID := CREATE_PARAMETER_LIST(PARAM_NAME);
           ADD_PARAMETER(PARAM_ID,'PARAMFORM',TEXT_PARAMETER,'NO');   
           ADD_PARAMETER(PARAM_ID,'COPIES',TEXT_PARAMETER,:COPIES);
           ADD_PARAMETER(PARAM_ID,'P_DISPLAY',TEXT_PARAMETER,:DESTYPE);
           ADD_PARAMETER(PARAM_ID,'DESFORMAT',TEXT_PARAMETER,'pdf');
           ADD_PARAMETER(PARAM_ID,'group_id',TEXT_PARAMETER, :group_id);
             repid := find_report_object('WH_R01_GRP_ITEM');
             SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_rep_server_name);     
             v_rep := RUN_REPORT_OBJECT(repid,PARAM_ID);
      WEB.SHOW_DOCUMENT('http://'||V_IP||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?server='||v_REP_SERVER_NAME,'_blank');
    --  http://server_name:8889/reports/rwservlet?report=rep_name.rdf&paramform=yes&destype=CACHE&desformat=htmlcss&userid=id/pass@conn
    END;notice here the value of V_IP it is retrieved from the following table desc...
    The table desc   GENERAL_FIXED_PARAMETERS that i select from the values are as follows:_
    SQL>   DESC GENERAL_FIXED_PARAMETERS;
    Name                                      Null?    Type
    PARAMETER_ID                                       VARCHAR2(200)
    PARAMETER_VALUE                                    VARCHAR2(200)
    PARAMETER_DESC                                     VARCHAR2(200)
    MODULE                                             VARCHAR2(200)it's stored value is as follows:
    SQL>  select * from GENERAL_FIXED_PARAMETERS;
    PARAMETER_ID   PARAMETER_VALUE  PARAMETER_DESC   MODULE
    REPORT_SERVER_IP     rep_oraas_OracleAs_10gNotice here the value of the PARAMETER_VALUE is a string ; as if it's a generic value to be applied on any REPORT_SERVER_IP this value ...
    Where Should i retrieved or Get ???
    That was long time i can't remember pls help me 2 run my report what should id
    i searched the google but there is a missing link can u help and guide me it's urgent pls.
    if needed 2 start oc4j for reports , setting pathes ,fonts, enviroment file etc.
    The report object's property in the object navigator is as follow:_
    + Oracle Developer Integration node :
    File name : My_Report_name
    Execution Mode: Runtime
    Communication Mode : Synchronous
    Data Source data block :NULL
    + Reports node:
    Report Destination Type : FileThanks in advance,
    Regards,
    Abdetu...

    Thanks InoL for reply,
    REPORT_SERVER_IP is not correcti had doubted but wasn't sure of it...!
    My First Question was :
    Is it requireD for the Parameter form to call a report an Application Server no ???*the answer i found is Yessss
    Regards,
    Abdetu...

  • How to run the report and show the output in excel file

    salam
    how to run the report and show the output in excel file,
    how to run the report and print the o/p via printer
    how to run the report and send the o/p via mail
    thank u all

    Hi,
    There are Parameters DESTTYPE, DESFORMAT and DESNAME. You can set these parameters to get as you want.
    1) Output in Excel File
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'FILE');
         ADD_PARAMETER(PL_ID, 'DESFORMAT', TEXT_PARAMETER, 'DELIMITED');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<file_name>.XLS');2) output to printer
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<printer_name>');3) Email - Have to configure SMTP and all. ( i didn't checked it)
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'MAIL');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<email_id>');Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • How to run a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

  • How to run a report in form 10g

    How to run a report in form 10g;

    RUN_REPORT_OBJECT - check the on line help and there is a great paper on otn.oracle.com/products/forms and click on 9i papers (it will be relevant for 10g as well)>
    Regards
    Grant Ronald
    Forms Product Management

  • How to run a remote windows dll files and the drivers of the system using j

    Dear Friends,
    I need some valuable info regd how to run a remote windows dll files and the drivers of the system using java
    reply regd thanking you

    Please don't make duplicate posts like this.

  • How to Run a Report automatically in Background for every night

    Hi,
    How to run a report program in Background automatically for every nigh.
    Thanks
    Ramesh

    Hi Ramesh,
    You can use SM36 and use the "Job Wizard" to define a background job in simple step by step procedure
    Or
    Goto SM37 and specify a job name.
    Next specify the ABAP Program Name of the report you want to execute under Job Step.
    Then click on "Extended Job Selection" and goto the Period Tab.
    There select "Only Periodic Jobs" and then specify the frequency of execution based on Months, Weeks, Days, Hours or Minutes.
    Hope this helps,
    Regards,
    Madhur
    Message was edited by: Madhur Chopra

  • How to run a report in back ground

    how to run a report in background with out using job open, submit , close is there any other function module to run report in background.

    Hi,
               There are two ways for you to handle,
    one manually setting up the job through SM36 which is better and convinient,
    secondly through program using FM's JOB_OPEN, SUBMIT, JOB_CLOSE.
    Find below steps in doing both:
    Procedure 1:
    1. Goto Trans -> SM36
    2. Define a job with the program and variant if any
    3. Click on start condition in application tool bar
    4. In the pop-up window, click on Date/Time
    5. Below you can see a check box "Periodic Job"
    6. Next click on Period Values
    7. Select "Other Period"
    8. Now give '15' for Minutes
    9. Save the job
    Procedure 2 via Program:
    Below is a sample code for the same. Note the ZTEMP2 is the program i am scheduling with 15mins frequency.
    DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
    L_RELEASE(1) TYPE c.
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    JOBNAME = 'ZTEMP2'
    IMPORTING
    JOBCOUNT = P_JOBCNT
    EXCEPTIONS
    CANT_CREATE_JOB = 1
    INVALID_JOB_DATA = 2
    JOBNAME_MISSING = 3
    OTHERS = 4.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    SUBMIT ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT
    TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    WITH DESTINATION = 'HPMISPRT'
    WITH IMMEDIATELY = SPACE
    WITH KEEP_IN_SPOOL = 'X' AND RETURN.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    JOBCOUNT = P_JOBCNT
    JOBNAME = 'ZTEMP2'
    STRTIMMED = 'X'
    PRDMINS = 15
    IMPORTING
    JOB_WAS_RELEASED = L_RELEASE
    EXCEPTIONS
    CANT_START_IMMEDIATE = 1
    INVALID_STARTDATE = 2
    JOBNAME_MISSING = 3
    JOB_CLOSE_FAILED = 4
    JOB_NOSTEPS = 5
    JOB_NOTEX = 6
    LOCK_FAILED = 7
    INVALID_TARGET = 8
    OTHERS = 9.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Hope the above helps you.
    <b>Reward points</b>
    REGARDS

  • How to run a report in SAP

    hi sap gurus
    can anybody tell me about how to run a report in sap (ABAP). what is the TCode for that one.while i am trying to post asset master it is asking to start a report first and then post. kindly reply me soon
    thanx in advance

    Hi,
    - normal ABAP reports are executed by a TCode or SE38
    - reports relating to assets are located at SPRO-Info Systems-Accounting-Fixed Assets
    Rgds.

  • How to run the report RM07CUFA?

    How to run the report RM07CUFA?

    Go to SE38 and enter RM07CUFA and click execute.
    in the next screen enter details for
    Movement Type
    Special Stock Indicator
    Company Code
    G/L Account
    and execute.
    If you have any inconsistency with fields that will be shown with red colour..

  • How to run OBIEE Reports in Multi-Org Environment?

    How to run OBIEE Reports in Multi-Org Environment of EBS.

    hi Rainer,
    My Forms and Reports Server is in Same System only. Actually i am giving this path
    http://vagee.ail/reports/rwservlet?
    server=rep_vagee_oracle10g_apps_server&report=D:\FP2
    \dealer_reports\oc_dealer.rep&userid=fp2/fp2erp@info
    &destype=cache&desformat=pdf&ODSNO=OC0809/00110&branch=DLR002
    In My AS System Running Successfully. But Client systems Page cannot be display message is displaying.
    but generally i m able to access the reports server using this path
    http://vagee.ail/reports/rwservlet?
    then Reports server page is displaying but
    when i specify that report server name
    http://vagee.ail/reports/rwservlet?server=rep_vagee_oracle10g_apps_server
    page cannot be displayed.
    what will be the problem. please help me. thank you.
    Regards,
    Kalyan.

  • How can run the report SAP_INFOCUBE_DESIGN?

    hI gURUS
    To know about the DIM Table size
    How can run the report SAP_INFOCUBE_DESIGN?
    Thanks
    Cheers
    Durai

    Function (se37):
    RSDEW_INFOCUBE_DESIGNS
    Try to see/run this function in order
    to get statistic about one InfoCube
    How to determine the size of DIM?
    From this Function u can determine
    how many rows in DIM u have.
    After this u can determine size of DIM table:
    ROWS * (How many Bytes are in one row) = Size of table.
    In order to determine how many Bytes are in one row,
    u can see transaction se11 -> Database table -> Tabkle name of DIM -> Display -> Fields -> just add the length*Bytes for all fields in this table.
    BR

  • How to call a Report 10g from a parameter form..?

    Hello,
    pls i wanna know the procedure of :
    How to call a Report 10g from a parameter form..?
    regards,
    Abdetu..

    hopes it work for you.
    procedure get_report is
    pl_id paramlist;
    p_year varchar2(4);
    param_name varchar2(10) :'param';
    begin
    pl_id := get_parameter_list(param_name);
    if not id_null(pl_id_)then
    destroy_parameter_list(pl_id);
    end if;
    pl_id := create_parameter_list(param_name);
    p_year := year -- assign the value.
    add_parameter(pl_id,'p_year',text_parameter,p_year);
    execute_report('report_name',pl_id);
    end;

  • How to run a report from WCF

    hi,
    I am trying to run a report from a WCF service application, and then render it in PDF Format to a caller WPF application. But I cant get it! In more detail, this is what my app should do
    1. from WPF, call a web service procedure, pass a report name, report path and parameters. Report is store at the same server where Web Service is installed
    2. WCF procedure loads report, set parameters, retrieve data from DB and renders it as an array of bytes
    3. WPF gets the array, save it into a PDF file, then open it.
    this is the code of the WCF procedure.
        Function DownloadCRReport(codEnte As String, connString As String, reportDir As String, reportName As String, Parameters As Dictionary(Of String, Object)) As Byte() Implements IGesiService.DownloadCRReport
            Try
                Dim bytes As Byte()
                Dim infile As BinaryReader
                Dim fs As FileStream
                Dim rep As New ReportDocument
                Dim RepAddress As String
                logPath = reportDir & "log\"
                sb = New StringBuilder()
                timestamp = Now.Year.ToString & Now.Month.ToString & Now.Day.ToString & Now.Hour.ToString & Now.Minute.ToString & Now.Second.ToString
                logFileName = timestamp & "_" & reportName & ".txt"
                logFile = New StreamWriter(logPath & logFileName, FileMode.CreateNew)
                logFile.WriteLine("----
    Date and time: " &amp; Now.ToString &amp; " -
                If My.Computer.FileSystem.FileExists(reportDir & reportName & ".rpt") = False Then
                    Throw New Exception("file RPT non found in: " & reportDir)
                End If
                RepAddress = reportDir & reportName & ".rpt"
                logFile.WriteLine("rep address: " & RepAddress)
                rep.Load(RepAddress, OpenReportMethod.OpenReportByDefault)
                logFile.WriteLine("load rep")
                If rep.DataSourceConnections.Count > 0 Then
                    rep.DataSourceConnections.Item(0).SetLogon("usr", "pwd")
                    logFile.WriteLine("data source connection")
                End If
                For Each i In Parameters
                    rep.SetParameterValue(i.Key, i.Value)
                    logFile.WriteLine("param: " & i.Key & " - " & i.Value)
                Next
                Try
                    fs = rep.ExportToStream(ExportFormatType.PortableDocFormat)
                    logFile.WriteLine("export to stream")
                    infile = New BinaryReader(fs)
                    logFile.WriteLine("created binaryreader")
                    bytes = infile.ReadBytes(CInt(fs.Length))
                    logFile.WriteLine("render pdf. fine")
                    logFile.Close()
                    Return bytes
                Catch ex As Exception
                    logFile.WriteLine("vbCrLf & ex.Message & vbCrLf & ex.InnerException.Message)
                    logFile.Close()
                    Return Nothing
                End Try
            Catch ex As Exception
                logFile.WriteLine("vbCrLf & ex.Message & "-" & vbCrLf & ex.InnerException.Message)
                logFile.Close()
                Return Nothing
            End Try
        End Function
    I detected that error occurs on rep.ExportToStream(ExportFormatType.PortableDocFormat). I should point out that the same procedure works under WPF application. In the WCF server I installed CR Runtime engine for .NET framework (13.0.9.1312) and CR version for Microsoft Visual Studio (same version). Moreover, all DB operations are stored into the report, so I should not pass any dataset, just parameters.
    Anyway, just to begin, I tried to call a simple report with just two string parameters and no queries, but I alwais get error ("An exception of type 'System.NullReferenceException' occurred in MyApp... Object reference not set to an instance of an object)!
    How can I make it work? thanks for help

    hi Ludek,
    Im trying to change DB connection info at runtime for all of the report tables. this is the code I used in my Web Service
              Function DownloadCRReport(...)
    If rep.DataSourceConnections.Count > 0 Then
       Dim conn As New ConnectionInfo
       Dim tabLogon As TableLogOnInfo
       conn.ServerName = "10.10.15.90" 'IP address of DB server
       conn.DatabaseName = "MyDB"   'Database name as set in TNSNAMES.ORA
       conn.UserID = "newuser"
       conn.Password = "newpwd"
       For Each t As Table In rep.Database.Tables
          tabLogon = t.LogOnInfo
          tabLogon.ConnectionInfo = conn
          t.ApplyLogOnInfo(tabLogon)
          logFile.WriteLine("changed logon tab. " & t.Name)
       Next
       rep.Refresh()
       logFile.WriteLine("changed data source connection")
    End If
    'set parameters
    If Not IsNothing(Parameters) Then
       For Each i In Parameters
          rep.SetParameterValue(i.Key, i.Value)
          logFile.WriteLine("set parameter" & i.Key & " - " & i.Value)
       Next
    End If
    fs = rep.ExportToStream(ExportFormatType.PortableDocFormat)
              End Function
    that comes to an error on rep.ExportToStream: "Unable to access database".
    Running web service in debug mode, I noticed that, after t.ApplyLogonInfo(tabLogon), the new ConnectionInfo has "password" property empty. Maybe this could cause the error, or is there some mistake in the new connectioninfo?

  • How to run the cmd or bat files in the con current program R12 Windows

    Hi,
    I would like to run one cmd or batch file, usually it is looking exe file only.
    How do we register the cmd or bat files?
    We encountered lot of problems to call the exe files, now we want to know to use the cmd file or batch or prog file (abc.cmd or abc.bat or abc.prog)
    Application: R12.0.4
    OS: Windows 2003
    Awaiting for your sincere response,
    Thanks,
    M.K.Thamaraiselvan

    Hi Hussien,
    Please help me that
    1. Create a file under the %FND_TOP%\bin directory called testhost.cmd
    In the file put the following two lines:
    ls >> testhost.txt
    exit
    2. From the %FND_TOP%\bin directory, do the following:
    copy fndcpesr.exe testhost.exe
    I understood the above 2 steps, the below one, is making confusion. Can you explain that what application i have to choose. 3. Register testhost (use 'testhost' for the Execution File Name) as a concurrent executable in Oracle Applications.
    4. Register a testhost host program as a concurrent program in Oracle Applications.
    5. Add the program to your report group.
    Awaiting for your explanation clearly to go ahead.
    Please explain me that which application i can choose while define the executable and program.
    awaiting.
    Thanks
    M.K.Thamaraiselvan

Maybe you are looking for