Calling Reports from a Form - Application Server Forms and Reports Services

Hi
We currently are running App Server 10G Forms and Reports and Oracle DB 11G. Forms are running fine with the Apps Server but what I need to find out is how do I set the path for the .rdf files of the reports and how do I configure the Apps Server to present the Reports? I am sure we have to edit a .conf file and add the server name but not sure what to do or how to do it?
ps. I am a newb but I managed to get both of Apps Server and Database configured on my lonesome so I am just missing the info on the Reports side of things.
The Developer has asked the following questions :-
We want to run a report created in report builder from forms by using the following command in forms;
web.show_document(v_url,'_blank');
what does v_url need to be - we need to find an example showing the v_web_address and v_rpt_server
v_url := 'http://'||v_web_address||'/reports/rwservlet?server='||v_rpt_server||'+report=test_report.rdf &desformat=PDF&userid=user/pw@database'
Do we need to make changes on the report server configuration and where should the rdf files reside?
Regards

Hiya
Thanks for the message.
I have started to look at the response you sent me. I have included an output of the rwservlet.properties file and the rep_s-lon-w-001_frhome1 file.
rwservlet.properties
SERVER_IN_PROCESS=YES
RELOAD_KEYMAP=NO
#DIAGNOSTIC=YES
#TRACEOPTS=TRACE_ALL
#TRACEFILE=rwservlet.trc
#TRACEMODE=TRACE_REPLACE
#SERVER=<reports_server_name>
#IMAGEURL=http://<web_server_name>:<port_num>/reports/rwservlet
#KEYMAPFILE=CGICMD.DAT
#DBAUTH=RWDBAUTH.HTM
#SYSAUTH=RWSYSAUTH.HTM
#ERRORTEMPLATE=RWERROR.HTM
#COOKIEEXPIRE=30
#ENCRYPTIONKEY=reports9i
#DIAGBODYTAGS=<reports_servlet_help_file_title>
#DIAGHEADTAGS=<reports_servlet_help_file_body_tag>
#HELPURL=<url_of_customized_help_file_for_reports_servlet>
#SINGLESIGNON=YES
OID_ENTITY=%REPORTS_OID_ENTITY%
#ALLOWHTMLTAGS=NO
#REPORTS_NETWORK_CONFIG=rwnetwork.conf
#OIDCON_INIT=10
#OIDCON_INCREMENT=10
#OIDCON_TIMEOUT=0
SERVER=rep_s-lon-w-001_FRHome1
rep_s-lon-w-001_frhome1
<?xml version = '1.0' encoding = 'ISO-8859-1'?>
<!DOCTYPE server PUBLIC "-//Oracle Corp.//DTD Reports Server Configuration //EN" "file:C:\oracle\FRHome_1/reports/dtd/rwserverconf.dtd">
<server version="10.1.2.0.2">
<cache class="oracle.reports.cache.RWCache">
<property name="cacheSize" value="50"/>
<!--property name="cacheDir" value="your cache directory"/-->
<!--property name="maxCacheFileNumber" value="max number of cache files"/-->
<!--property name="ignoreParameters" value="parameter names to be ignored in constructing cache key, separated by comma ','"/-->
</cache>
<!--Please do not change the id for reports engine.-->
<!--The class specifies below is subclass of _EngineClassImplBase and implements EngineInterface.-->
<engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="90000">
<!--property name="sourceDir" value=c:\reports/-->
<!--property name="tempDir" value=c:\reports_temp/-->
<!--property name="keepConnection" value="yes"/-->
</engine>
<engine id="rwURLEng" class="oracle.reports.urlengine.URLEngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="60000"/>
<!--security id="rwSec" class="oracle.reports.server.RWSecurity">
<property name="securityUserid" value="%PORTAL_DB_USERNAME%/%PORTAL_DB_PASSWORD%@%PORTAL_DB_TNSNAME%" confidential="yes" encrypted="no"/>
<property name="oidEntity" value="%REPORTS_OID_ENTITY%"/>
</security-->
<!--destination destype="oraclePortal" class="oracle.reports.server.DesOraclePortal">
<property name="portalUserid" value="%PORTAL_DB_USERNAME%/%PORTAL_DB_PASSWORD%@%PORTAL_DB_TNSNAME%" confidential="yes" encrypted="no"/>
</destination-->
<destination destype="ftp" class="oracle.reports.plugin.destination.ftp.DesFTP">
<!--property name="proxy" value="proxyinfo.xml"/-->
</destination>
<destination destype="WebDav" class="oracle.reports.plugin.destination.webdav.DesWebDAV">
<!--property name="proxy" value="proxyinfo.xml"/-->
</destination>
<!-- By default server will use rwnetwork.conf as network config file
Use this element to override the same -->
<!--networkConfig file="rwnetwork.conf"></networkConfig-->
<job jobType="report" engineId="rwEng"/>
<job jobType="rwurl" engineId="rwURLEng"/>
<notification id="mailNotify" class="oracle.reports.server.MailNotify">
<property name="succnotefile" value="succnote.txt"/>
<property name="failnotefile" value="failnote.txt"/>
</notification>
<!--notification id="wfNotify" class="oracle.reports.server.WorkflowNotify">
<property name="connStr" value="%WF_DB_USERNAME%/%WF_DB_PASSWORD%@%WF_DB_TNSNAME%" confidential="yes" encrypted="no"/>
</notification-->
<log option="noJob"/>
<!--jobStatusRepository class="oracle.reports.server.JobRepositoryDB">
<property name="repositoryConn" value="repo_db_username/repo_db_password@repo_db_tnsname" confidential="yes" encrypted="no"/>
</jobStatusRepository-->
<!--trace traceOpts="trace_all"/-->
<connection maxConnect="20" idleTimeOut="15">
<orbClient id="RWClient" publicKeyFile="clientpub.key"/>
</connection>
<queue maxQueueSize="1000"/>
<!--jobRecovery auxDatFiles="yes"/-->
<!--
The value of the 'identifier' element is encrypted and is of the form SERVERACCESSKEY_USER/SERVERACCESSKEY_PASSWORD
SERVERACCESSKEY_USER and SERVERACCESSKEY_PASSWORD in <server>.conf and targets.xml
file should match for Reports EM pages to display data correctly.
Corresponding entries of username and password in targets.xml:
<Property NAME="Password" VALUE="SERVERACCESSKEY_PASSWORD" ENCRYPTED="FALSE"/>
<Property NAME="UserName" VALUE="SERVERACCESSKEY_USER" ENCRYPTED="FALSE"/>
-->
<identifier confidential="yes" encrypted="yes">ZgZCDkywAUaHwMnb+A6YTg0UVX12puJiKZe8PYR1NHiooqnkbstGLcLqn5sWJCnWjREALf9UVz0N/P7HpgkTrPTCwgYirXmx1oZKCWkodsu06FNAJJ8ioXQCBWAG+SeHElcR5At9pTaiZZjXv8MtUP6cEUcH//E5eI4JnO/PLfS0u0OmElFdQn9lsDYF/ETYcK7QVswlN0LAE0yUqCC7bI+mVhhSkW80XXnh5oPISEiMwb+KcNW2T2zz+m1KLJAQFDk0S3cCIMaj6NBF7yXmoJOoGRNmfQBk8HHfx7Z6+l//BZP/hswX5NojatpWa46uDU8HNtNfcLSKxSUHH64g/FaEqzoXIXbIVWuGVwUA4gRUulJ0Ew0HVtyXC5wsnUW5zD0HnUFYoKXeNssDrT6HapRoEwSYE3n2ogux3vOefUXkPy5hsPCc9I3R5tmdljjuUGxmF1QXckIv12aMw0+JGIyevbv7X33vhJc=</identifier>
<!--pluginParam name="mailServer">%MAILSERVER_NAME%</pluginParam-->
<!--pluginParam name="proxy" type="file">proxyinfo.xml</pluginParam-->
<pluginParam name="xmlpds" type="file">xmlpds.conf</pluginParam>
<pluginParam name="jdbcpds" type="file">jdbcpds.conf</pluginParam>
<pluginParam name="textpds" type="file">textpds.conf</pluginParam>
</server>
If our Apps server is s-lon-w-001.homes.local, where do I make the changes in these two files to make the reports to run. You can see I have defined the reports on the C: on the server.
Many thanks in advance!

Similar Messages

  • Unable to load forms Application Server starting  page as comprd to earlier

    I have insatalled my Allication in Forms Application server 10g and it was running succesfully up to yesterday.
    All of a sudden my application got slow down,and it is taking more time to load my first page(say Logon.fmx).
    Clearly to say a pop like "oracle Application Server Forms 10g" is displaying for more time rather than skipping to my Logon.fmx.
    pls help

    I saw this on another windows machine as well. I believe that the port should be 1800 and not 18100. Look into the emd.properties and check if they are configured correctly.
    cu
    Andreas

  • Starting/Stopping Application Server Forms and Reports

    Hello,
    Are there any scripts (like dbstart and dbshut for Oracle DB) for starting and stopping "Application Server Forms and Reports". If not, any special suggestions?
    I must automatically start this application on Unix. I know that during starting some steps must be performedy by the root user (export DISPLAY env variable and issue the "xhost +" command) and later the oracle user must do some things( export ORACLE_HOME and DISPLAY and issue the "opmnctl startall" command). Does anybody have scripts like that?
    Regards,
    Tim

    If you're on 10.1.2, there is a script (requires an X Windows session). It's called runstartupconsole.sh, but you've got to update the install type to Portal in the ias.properties file if I remember right. It looks cool, but a shell script works better.
    Here is a shell script that does some of those things. You still need to run xhost+ after running a display if you're using something that requires a DISPLAY to start. Someone may have a better one, but this one works.
    We actually use one that starts all the different components individually except for Reports in rc scripts. That is the only thing we have that needs a Display set to start. So then xhost + is run & at the same time, the Unix sysadmin runs a script that start Reports from opmn.
    I hope this is useful.
    Cordially,
    Steve
    #!/bin/sh
    # =======================
    # Collect Global Variables
    # =======================
    # Collect server specific install location
    export ORACLE_BASE=/u01/app/oracle
    export MIDDLE_TIER_ORACLE_HOME=$ORACLE_BASE/product/ias/101202_EE/mt_maxportal_02
    export INFRASTRUCTURE_ORACLE_HOME=$ORACLE_BASE/product/ias/101202_EE/if_maxportal_02
    export SID=orcl
    # Collect current PATH and LD_LIBRARY_PATH for reuse
    export OLD_PATH=$PATH
    export OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
    # Unset variables that can cause problems starting or stopping
    unset CLASSPATH
    case "$1" in
    start)
    # =======================
    # Start Infrastructure
    # =======================
    # Set environment to start infrastructure components
    export ORACLE_SID=$SID
    export ORACLE_HOME=$INFRASTRUCTURE_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Start Infrastructure Database Listener
    echo -n "Starting Infrastructure Database Listener: "
    $ORACLE_HOME/bin/lsnrctl start
    echo "OK"
    # Start Infrastructure Database
    echo -n "Starting Infrastructure Database: "
    $ORACLE_HOME/bin/dbstart
    echo "OK"
    # Start Infrastructure OPMN managed components
    echo -n "Starting Infrastructure OPMN Managed Components: "
    $ORACLE_HOME/opmn/bin/opmnctl startall
    echo "OK"
    # =======================
    # Start Middle Tier
    # =======================
    # Change environment for middle tier
    unset ORACLE_SID
    export ORACLE_HOME=$MIDDLE_TIER_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Start Middle Tier OPMN managed components
    echo -n "Starting Middle Tier OPMN Managed Components: "
    $ORACLE_HOME/opmn/bin/opmnctl startall
    echo "OK"
    # Start Application Server Control
    echo -n "Starting Application Server Control: "
    $ORACLE_HOME/bin/emctl startifdown iasconsole
    echo "OK"
    stop)
    # =======================
    # Stop Middle Tier
    # =======================
    # Set environment for middle tier
    unset ORACLE_SID
    export ORACLE_HOME=$MIDDLE_TIER_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Stop Application Server Control
    echo -n "Stopping Application Server Control: "
    $ORACLE_HOME/bin/emctl stop iasconsole
    echo "OK"
    # Stop Middle Tier OPMN managed components
    echo -n "Stopping Middle Tier OPMN managed components: "
    $ORACLE_HOME/opmn/bin/opmnctl stopall
    echo "OK"
    # =======================
    # Stop Infrastructure
    # =======================
    # Set environment to start infrastructure components
    export ORACLE_SID=$SID
    export ORACLE_HOME=$INFRASTRUCTURE_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Stop Infrastructure OPMN managed components
    echo -n "Stopping Infrastructure OPMN managed components: "
    $ORACLE_HOME/opmn/bin/opmnctl stopall
    echo "OK"
    # Stop Infrastructure Database
    echo -n "Stopping Infrastructure Database: "
    $ORACLE_HOME/bin/dbshut
    echo "OK"
    # Stop Infrastructure Database Listener
    echo -n "Stopping Infrastrucutre Database Listener: "
    $ORACLE_HOME/bin/lsnrctl stop
    echo "OK"
    reload|restart)
         $0 stop
    $0 start
    echo "Usage: `basename $0` start|stop|restart|reload"
    exit 1
    esac
    exit 0

  • Oracle Application server Forms and Report services 10.1.2.0.2 on Windows 2

    Hi,
    I am installing the Oracle Application server Forms and Report services 10.1.2.0.2 on Windows 2003 R2, but the problem is that setup is not running on this Windows 2003 R2 version.
    Any idea about this why it is not running.
    Regards,
    Iftikhar

    You asked this
    How can i find what is the latest version that i can upgrade this install to
    I told you where to find the last update, I checked that version yesterday, the last update is 10.1.2.3, my misstake was to put a 0 before the 3.
    You can go to Patches & update>Quick Links to: Latest Patchsets, Mini Packs and Maintenance Packs>Oracle Fussion Middle Ware> Look for you OS versión and CPU> No clic just put pointer over the links and you will see the last one.
    And finaly could look for the CPU of Jul and Apr that as requirement they ask for version 10.1.2.3 (as I say I checked yesterday)
    Greetings.

  • Oracle Application Server Forms and Reports

    Dear All
    I want to install Oracle Application Server Forms and Reports on windows server 2008 32-bit
    how i can do that? and is there version for this new OS ?
    thanks in advanced

    You want to install "Oracle Portal, Reports, Forms, and Discoverer"
    Fusion Middleware Installation Planning Guide B32474-12
    http://download.oracle.com/docs/cd/E21764_01/install.1111/b32474/start.htm
    For OS information see My Oracle Support Doc "How to Find Certification Details for Oracle Application Server 10g and Oracle Fusion Middleware 11g [ID 431578.1]"
    Version 11gR1 (11.1.1.1+) can use Windows Server 2008 with SP1+
    If you find this helpful please mark it so.
    Best Regards
    mseberg

  • Application Server & Forms Server

    I'm trying to study Oracle Developer. I need someone to tell me what's the different between Application Server and Forms Server?
    Is Application server software that can run any application one of them is form applications?
    Is it one software? so if I use it to run my forms I’ll call that machine forms server or if i use it to run my report I’ll call it report server.
    I would appreciate any help
    With regards

    Hi.
    Oracle Forms Server - the correct name is Oracle Application Server Forms Services - is a component of teh Oracle Application Server.
    After installing the full version of Application Server Forms is ready for you to use.
    Please refer to the Forms Whitepapers on otn.oracle.com/products/forms for how to configure Forms (formsweb.cfg and default.env) to run your custom applications.
    Configuration is also supported through Enterprise Manager.
    Frank

  • How can i call a jasper report from a java Application

    Hi,
    i am chiranjit , currently i working in a web based ERP project, in this project as a report building tool we are using JasperReport wih eclipse plugin . in eclipse report's are generating very well but i am unable to call that report from a java application because i have no idea about the How to call a Jasper Report from a Java Application . so please send me the necessary class names, jar files names and programe code as early as possible.
    Chiranjit

    Ahh, kind of a duplicate thread:
    http://forums.java.sun.com/thread.jspa?threadID=631642
    @OP. You could have clarified your original post and the relationship of your question to java. You did not need a new thread.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Application Server Form Template

    I am looking to install Oracle Application server 10G and also Oracle Database 10G in a development environment.
    I have installed Oracle 10G database before without any problems but don't have any development experience on the Application server .e.g i wouldn't be able to develop an Application to put on the Application server.
    What i would like to know is:
    When you install Oracle 10G database it installs with a test database has anyone created a template form for this dtabase that i could install on my Application server when i install the Application server? All i am looking for is a very simple form to insert a username addres and location or something like that.
    If anyone has this could they please respond..
    thanks to all who take time to look/reply to this posting

    What I find strange is that when you run the test form using the OC4J instance on your PC it operates correctly, but when you run the same test form using the application server it behaves differently. Are you using the same database in both cases? I'm wondering if a different schema or table is being used.
    Message was edited by:
    Mark Roberts

  • How to send the report output to the application server in a excel file

    Hello,
    how to send the report output to the application server in a excel file.
    and the report runs in background.
    Thanks in advance.
    Sundeep

    Dear Sundeep.
    I'm providing you with the following piece of code ... Its working fine for me ... hopefully it suits your requirement ...
    D A T A D E C L A R A T I O N *
    TYPES: BEGIN OF TY_EXCEL,
    CELL_01(80) TYPE C,
    CELL_02(80) TYPE C,
    CELL_03(80) TYPE C,
    CELL_04(80) TYPE C,
    CELL_05(80) TYPE C,
    CELL_06(80) TYPE C,
    CELL_07(80) TYPE C,
    CELL_08(80) TYPE C,
    CELL_09(80) TYPE C,
    CELL_10(80) TYPE C,
    END OF TY_EXCEL.
    DATA: IT_EXCEL TYPE STANDARD TABLE OF TY_EXCEL,
    WA_EXCEL TYPE TY_EXCEL..
    E V E N T : S T A R T - O F - S E L E C T I O N *
    START-OF-SELECTION.
    Here you populate the Internal Table.
    Display - Top of the Page.
    PERFORM DISPLAY_TOP_OF_PAGE.
    E V E N T : E N D - O F - S E L E C T I O N *
    END-OF-SELECTION.
    SET PF-STATUS 'GUI_STATUS'.
    E V E N T : A T U S E R - C O M M AN D *
    AT USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'EXPORT'.
    Exporting the report data to Excel.
    PERFORM EXPORT_TO_EXCEL.
    ENDCASE.
    *& Form DISPLAY_TOP_OF_PAGE
    text
    --> p1 text
    <-- p2 text
    FORM DISPLAY_TOP_OF_PAGE .
    SKIP.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'O R I C A'
    CENTERED COLOR 1,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'Shift Asset Depreciation - Period/Year-wise Report.'
    CENTERED COLOR 4 INTENSIFIED OFF,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE.
    E X C E L O P E R A T I O N
    CLEAR: IT_EXCEL[],
    WA_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    WA_EXCEL-cell_02 = ' XYZ Ltd. '.
    APPEND WA_EXCEL TO IT_EXCEL.
    CLEAR: WA_EXCEL.
    WA_EXCEL-cell_02 = 'Shift Asset Depreciation - Period/Year-wise Report.'.
    APPEND WA_EXCEL TO IT_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    ENDFORM. " DISPLAY_TOP_OF_PAGE
    *& Form APPEND_BLANK_LINE
    text
    -->P_1 text
    FORM APPEND_BLANK_LINE USING P_LINE TYPE I.
    DO P_LINE TIMES.
    CLEAR: WA_EXCEL.
    APPEND WA_EXCEL TO IT_EXCEL.
    enddo.
    ENDFORM.
    *& Form EXPORT_TO_EXCEL
    text
    --> p1 text
    <-- p2 text
    FORM EXPORT_TO_EXCEL .
    DATA: L_FILE_NAME(60) TYPE C.
    Create a file name
    CONCATENATE 'C:\' 'Shift_Depn_' SY-DATUM6(2) '.' SY-DATUM4(2)
    '.' SY-DATUM+0(4) INTO L_FILE_NAME.
    Pass the internal table (it_excel which is already populated )
    to the function module for excel download.
    CALL FUNCTION 'WS_EXCEL'
    exporting
    filename = L_FILE_NAME
    tables
    data = IT_EXCEL
    exceptions
    unknown_error = 1
    others = 2.
    if sy-subrc <> 0.
    message e001(ymm) with 'Error in exporting to Excel.'.
    endif.
    ENDFORM. " EXPORT_TO_EXCEL
    *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    When you click the button - Export to Excel ( GUI-Status) you'll be able to export the content of the Internal Table to an Excel file .......
    Regards,
    Abir
    Don't forget to award Points *

  • How to download from spool to application server

    Hi all,
       Can any one tell me how to download from spool to application server. Quick response would be appreciated.
    thanks
    mahesh

    Hi Kilaru,
    Please find the sample code for your req,t and let me know if you found any difficulty on the same.
    <b>Just copy paste the code :</b>
    This will Convert spool to PDF format and download.
    data: w_ident     like tsp01-rqident,
          w_doctype   like tsp01-rqdoctype,
          w_bytecount type i.
    data: itab_pdf    like tline occurs 0 with header line.
    parameter spoolnum like tsp01-rqident obligatory.
    selection-screen begin of block a2 with frame.
    parameters:  to_pc   radiobutton group a2 default 'X',
                 pcfile like rlgrap-filename lower case,
                 to_unix radiobutton group a2,
                 unixfile(255) lower case.
    selection-screen end of block a2.
    at selection-screen on block a2.
      if to_pc = 'X' and pcfile is initial.
        message e398(00) with 'Enter PC File Name.'.
      elseif to_unix = 'X' and unixfile is initial.
        message e398(00) with 'Enter Unix File Name.'.
      endif.
    at selection-screen on spoolnum.
      select single rqident rqdoctype
             into (w_ident, w_doctype)
             from tsp01
             where rqident = spoolnum.
      if sy-subrc ne 0.
        message e398(00) with 'Spool' spoolnum 'not found'.
      endif.
    at selection-screen on value-request for pcfile.
      call function 'WS_FILENAME_GET'
           exporting
                mask     = ',.,..'
           importing
                filename = pcfile
           exceptions
                others   = 1.
      if sy-subrc <> 0.
        message id sy-msgid type 'I' number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    start-of-selection.
      if w_doctype = 'LIST'.
        perform get_abap_spool_in_pdf.
      elseif w_doctype = 'OTF'.
        perform get_otf_spool_in_pdf.
      endif.
      if to_pc = 'X'.
        perform write_pdf_spool_to_pc.
      else.
        perform write_pdf_spool_to_unix.
      endif.
      message i398(00) with 'Completed OK'.
    form get_abap_spool_in_pdf.
      refresh itab_pdf.
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
           exporting
                src_spoolid              = w_ident
           importing
                pdf_bytecount            = w_bytecount
           tables
                pdf                      = itab_pdf
           exceptions
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                others                   = 12.
      if sy-subrc ne 0.
    message e398(00) with 'Cannot convert to PDF. Error =' sy-subrc.
      endif.
    endform.
    *********************************************************form get_otf_spool_in_pdf.
      refresh itab_pdf.
      call function 'CONVERT_OTFSPOOLJOB_2_PDF'
           exporting
                src_spoolid              = w_ident
           importing
                pdf_bytecount            = w_bytecount
           tables
                pdf                      = itab_pdf
           exceptions
                err_no_otf_spooljob      = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_dstdevice        = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                others                   = 12.
      if sy-subrc <> 0.
    message e398(00) with 'Cannot convert to PDF. Error =' sy-subrc.
      endif.
    endform.
    *********************************************************form write_pdf_spool_to_unix.
      open dataset unixfile for output in binary mode.
      if sy-subrc ne 0 .
        message e398(00) with 'Cannot open unix file for output:' unixfile.
      endif.
      loop at itab_pdf.
        transfer itab_pdf to unixfile.
        if sy-subrc ne 0 .
          message e398(00) with 'Cannot write to unix file:' unixfile.
        endif.
      endloop.
      close dataset unixfile.
    endform.
    *********************************************************form write_pdf_spool_to_pc.
      call function 'WS_DOWNLOAD'
           exporting
                bin_filesize            = w_bytecount
                filename                = pcfile
                filetype                = 'BIN'
           tables
                data_tab                = itab_pdf
           exceptions
                file_open_error         = 1
                file_write_error        = 2
                invalid_filesize        = 3
                invalid_type            = 4
                no_batch                = 5
                unknown_error           = 6
                invalid_table_width     = 7
                gui_refuse_filetransfer = 8
                customer_error          = 9
                others                  = 10.
      if sy-subrc <> 0.
    message e398(00) with 'Cannot download to PC. Error =' sy-subrc.
      endif.
    endform.
    Hope this will help you.
    Cheers
    Sunny
    Rewrd points, if found helpful

  • TRANSFER OF DATA FROM DATABASE TO APPLICATION SERVER

    I have to upload /transfer data from database to application server .
    I am not able to get it.
    If anyone have any solution to it,
    post it to me.
    thanks

    *& Report <name>
    REPORT name.
    DATA:
    BEGIN OF FS_SPFLI,
    CARRID TYPE SPFLI-CARRID,
    CONNID TYPE SPFLI-CONNID,
    COUNTRYFR TYPE SPFLI-COUNTRYFR,
    CITYFROM TYPE SPFLI-CITYFROM,
    AIRPFROM TYPE SPFLI-AIRPFROM,
    COUNTRYTO TYPE SPFLI-COUNTRYTO,
    CITYTO TYPE SPFLI-CITYTO,
    AIRPTO TYPE SPFLI-AIRPTO,
    FLTIME TYPE SPFLI-FLTIME,
    DEPTIME TYPE SPFLI-DEPTIME,
    ARRTIME TYPE SPFLI-ARRTIME,
    DISTANCE TYPE SPFLI-DISTANCE,
    DISTID TYPE SPFLI-DISTID,
    FLTYPE TYPE SPFLI-FLTYPE,
    PERIOD TYPE SPFLI-PERIOD,
    END OF FS_SPFLI.
    DATA:
    T_SPFLI LIKE
    STANDARD TABLE
    OF FS_SPFLI.
    DATA:
    BEGIN OF FS_TABLE,
    CHAR(100) TYPE C,
    END OF FS_TABLE.
    DATA:
    T_TABLE LIKE
    STANDARD TABLE
    OF FS_TABLE.
    DATA:
    BEGIN OF FS_TABLE1,
    CHAR(100) TYPE C,
    END OF FS_TABLE1.
    DATA:
    T_TABLE1 LIKE
    STANDARD TABLE
    OF FS_TABLE1.
    SELECT CARRID
    CONNID
    COUNTRYFR
    CITYFROM
    AIRPFROM
    COUNTRYTO
    CITYTO
    AIRPTO
    FLTIME
    DEPTIME
    ARRTIME
    DISTANCE
    DISTID
    FLTYPE
    PERIOD
    FROM SPFLI
    INTO TABLE T_SPFLI.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    FILENAME = 'd:\files\p_spfli04'
    FILETYPE = 'ASC'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = ' '
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    TABLES
    DATA_TAB = T_SPFLI
    FIELDNAMES =
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = 'd:\files\p_spfli04'
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = ' '
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    VIRUS_SCAN_PROFILE =
    IMPORTING
    FILELENGTH =
    HEADER =
    TABLES
    DATA_TAB = T_TABLE
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    NO_AUTHORITY = 6
    UNKNOWN_ERROR = 7
    BAD_DATA_FORMAT = 8
    HEADER_NOT_ALLOWED = 9
    SEPARATOR_NOT_ALLOWED = 10
    HEADER_TOO_LONG = 11
    UNKNOWN_DP_ERROR = 12
    ACCESS_DENIED = 13
    DP_OUT_OF_MEMORY = 14
    DISK_FULL = 15
    DP_TIMEOUT = 16
    OTHERS = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *LOOP AT T_TABLE INTO FS_TABLE.
    WRITE:
    / FS_TABLE-CHAR.
    *ENDLOOP.
    OPEN DATASET 'p_spfli04' FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF SY-SUBRC EQ 0.
    MESSAGE 'File Already Exists' TYPE 'I'.
    STOP.
    ELSE.
    CLOSE DATASET 'p_spfli04'.
    ENDIF.
    OPEN DATASET 'P_SPFLI02' FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    LOOP AT T_TABLE INTO FS_TABLE.
    TRANSFER FS_TABLE TO 'p_spfli04'.
    ENDLOOP.
    CLOSE DATASET 'p_spfli04'.
    *ENDIF.
    OPEN DATASET 'p_spfli04' FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    LOOP AT T_TABLE INTO FS_TABLE.
    READ DATASET 'p_spfli04' INTO FS_TABLE.
    APPEND FS_TABLE-CHAR TO T_TABLE1.
    ENDLOOP.
    Here is the sample code to download and upload the file onto presentation server and then using OPEN DATASET you'll be able to transfer the data to APPLICATION SERVER....
    Regards,
    Pavan P.

  • How to move PDF file from Spool to Application Server?

    How to move PDF file from Spool to Application Server?
    Cannot use RSTXPDFT4 because that converts OTF to PDF and the file is already PDF.
    RSTXPDFT5 doesn't work. It picks the file up and assigns it a 'text' type and outputs a 1 line txt (1kb in size) on the server with the spool number in it!
    The program which outputs the file to the spool, in the first place, uses adobe forms and outputs to a printer of type PDF.

    Hi Gemini ,
    Please refer the below links.
    [http://sap.ittoolbox.com/groups/technical-functional/sap-hr/convert-a-spool-to-pdf-and-save-on-application-server-in-background-720959]
    [http://www.sapfans.com/forums/viewtopic.php?f=13&t=325628&start=15]
    Edited by: Prasath Arivazhagan on Apr 13, 2010 4:48 PM

  • Upload data from excel to application server

    Hi all,
    Is there any process to upload data from excel to application server other than reading the data from excel to z program through gui_upload and transferring the data to application server.
    I want to run background job for a BDC program with the data present in the excel file.
    Thanks & regards
    sreehari p.

    Hi Sreehari,
    Please use the tcode - CG3Z, where you can transfer the file from presentation server to the application server.
    Regards,
    Selva K.

  • How can I create a Report from a SWT-Application?

    Post Author: mkoch
    CA Forum: JAVA
    I'm a Developer and new to Crystal Reports and I have the job to create a Report from a SWT-Application.The report-files ( *.rpt) were created with Crystal Reports 10 or 11.> I'm not sure but I have access to a machine where Crystal Reports 10 Developer an Crystal Reports 11 Runtime are installed.Can anybody describe in detail how I can start the creation of a report from my Java-Application?> What libraries are needed, where can I get them and so on.I saw in the CR10-Setup that there is a Java-feature - but unfortunately this is not installed on my test-machine.--> Is it necessary to install this feature or can I get this files on businessobjects.com?Is it possible to start the report-creation from command-line?I saw a Java-example on the internet which uses Report.exe - but I haven't found this on my machine.I hope, that somebody can help me.GreetingsMarkus

    Inv. #
    Item
    Sale Price
    Lisa
    Oct Sold 12
    Oct Sold 12-2
    Oct Sold 12-3
    149
    Vase Lidded
    25
    201
    Bird
    7
    7
    202
    Bird
    7
    203
    Bird
    7
    204
    Bird
    7
    7
    205
    Bird
    7
    7
    206
    Bird
    7
    7
    207
    Bird
    7
    207
    Bird
    7
    7
    208
    Bird
    7
    7
    209
    Bird
    7
    7
    This is my very simple inventory.  On previous program I could sort by those items that did not have any figure in the row across.  Then I could print a report of open inventory.  Such as 149 Lidded Vase has not sales amount in the four colums across, thus it is open inventory.  How can I capture all those items in one report?

  • Download ALV report with layout to application server

    Hi Gurus,
    I have a problem as follows:
    I have one ALV Grid report. This report is very time consuming.
    That is why, user wants this to be run in background every night and in the morning when user comes to the office that ALV report should be on user's drive in excel format.
    However, it should run with one specific variant and that variant should be dynamically populated. (I have handled this part)
    It should also apply specific layout that has many filtering conditions.
    As I can not download ALV to excel in background, I decided to download it to the Application server.
    My problem is that when run in background, in spool ALV report shows o/p with proper filter conditions that is 5 out of 20 records.
    But, when I write this report o/p to Application server, it writes all the records in there, i.e., all 20 records. It does not take into account all the filters. [:(]
    I also tried downloading spool to excel, but o/p is not neatly formatted. All columns are fying here and there.
    Any suggestion, how can I write ALV o/p to Application server with layout into consideration?
    P.S. I have searched forum for this type of query, but no apt responses.
    Thanks

    did u downloaded the report with standard option provided in the alv and checked the data? that is populating all 20 records?. if so then use coding for achieving the standard one
    at the end of selection do like this ..
    SET USER-COMMAND ' %PC' .
    and in the user-command use like this..
    case sy-ucomm.
    when '  %PC'.
    give the file name ..
    do processing ..
    endcase.

Maybe you are looking for

  • Help! ORA-03113 while compiling certain packages!

    Hello everyone Recently we migrated our PLSQL code from Oracle 8.1.7.0 to 9.2.0.4. While compiling our packages in 9i, we are getting the ORA-03113: end-of-file on communication channel error. This happens only when we compile two particular packages

  • Select query on a table with 13 million of rows

    Hi guys, I have been trying to perform a select query on a table which has 13 millions of entries however it took around 58 min to complete. The table has 8 columns with 4 Primary keys looks like below: (PK) SegmentID > INT (PK) IPAddress > VARCHAR (

  • Permissions differ - Forever!

    What's up with Disk Utility indicating a repair of: "Applications/Safari.app/Contents/Resources/Safari.help/Contents/Resources/index .html"; should be lrwxr-xr-x ; they are -rwxr-xr-x . Every time I Repair Permissions, this file always differs. (So i

  • Internal Order & Asset

    Dear All, user want to control the asset purchasing  with approved budget. in order to achieve the user requirement we created internal order , entered the budget & activate the availability control. at the time of PO creation, we input Asset & inter

  • Authenticating Guest Users Using External Database.

    Folks, greetings. Due to the limitations imposed by wlc's database size, we decided to go for an external authentication server. Since this external database is for guest access, we are considering in using a Linux box with LDAP, along with a web-bas