How to generate the output of BSP application in PDF format?

Hi,
I need to modify one BSP application, which generates its output in the form of PDF. I have checked all the methods in the bsp pages and its corresponding controller class's. I couldn't find any relevant method, which deals with generating the output in PDF.
Could you please share your valuable thoughts on this?
Again it would be helpful, If anyone of you share some knowledge on Interactive Adobe Forms.
Thanks,
John

okay, awesome
i'd use DOM or some high level API for this (don't write it by hand using plain File IO)
okay, try this site, it goes through building a document, adding elements, writing to file, etc.
http://www.roseindia.net/xml/dom/

Similar Messages

  • How to generate the output of a BSP application in PDF format?

    Hi,
    I need to modify one BSP application, which generates its output in the form of PDF. I have checked all the methods in the bsp pages and its corresponding controller class's. I couldn't find any relevant method, which deals with generating the output in PDF.
    Could you please share your valuable thoughts on this?
    Again it would be helpful, If anyone of you share some knowledge on Interactive Adobe Forms.
    Thanks,
    John

    >
    I am using oracle version 11.2.0.1, I have set a cronjob which will run on every 15 minutes and give us a log file mentioning the execution time taken for that SQL query:-
    The above query will return the output as well as the time taken for execution of the query. I want to suppress the output of the query and only want the time taken to be printed. Is it possible by set commands. I have marked the output as bold and made it Italic.
    >
    How would that even be useful?
    A query from a tool such as sql*plus is STILL going to send the output to the client and the client. You can keep sql*plus from actually displaying the data by setting autotrace to trace only.
    But that TIME TAKEN is still going to include the network time it takes to send ALL rows that the query returns across the network.
    That time is NOT the same as the actual execution time of the query. So unless you are trying to determine how long it takes to send the data over the network your 'timing' method is rather flawed.
    Why don't you tell us WHAT PROBLEM you are trying to solve so we can help you solve it?

  • Can we generate the output of SQL Query in XML format ..

    Hi Team,
    Can we generate an XML doc for an SQL Query.
    I've seen in SQL Server 2000.It is generating the output of an SQL Query in xml format.
    select * from emp for xml auto
    The output looks like
    <emp EMPNO="7369" ENAME="SMITH" JOB="CLERK" MGR="7902" HIREDATE="1980-12-17T00:00:00" SAL="2800" DEPTNO="20"/><emp EMPNO="7370" ENAME="SMITH" JOB="CLERK" MGR="7902" HIREDATE="1980-12-17T00:00:00" SAL="2800" DEPTNO="10"/>

    Just a little bit of short hand.
    Get the XML out of your database, via HTTP
    Of course the easiest method is just to return an XMLType from a stored procedure and let the calling routine figure out what to do with it. Instead
    of that way though, I'll show you how to do it via HTTP. It's all completely built into 10g and is super easy to use.
    CREATE OR REPLACE VIEW emps_and_depts AS
    SELECT e.employee_id AS "EmployeeId",
    e.last_name AS "Name",
    e.job_id AS "Job",
    e.manager_id AS "Manager",
    e.hire_date AS "HireDate",
    e.salary AS "Salary",
    e.commission_pct AS "Commission",
    XMLFOREST (
    d.department_id AS "DeptNo",
    d.department_name AS "DeptName",
    d.location_id AS "Location"
    ) AS "Dept"
    FROM employees e, departments d
    WHERE e.department_id = d.department_id
    Some people hear web and immediately start salivating about security issues. Let me address that quickly. Just because you have the HTTP and/or
    FTP servers running in the database, that does not mean you have a security problem. For one, I would hope your databases are behind a firewall.
    Second, with the correct architecture (DMZ, app servers, etc) you can make this data available outside the firewall fairly transparently and third,
    just because it's on the web does not mean the data MUST be available on the internet. This is a good way to make your data available on your
    intranet. If you are worried about people INSIDE your firewall, that still doesn't preclude web based access. Follow Oracle security guidelines.
    Before I show you how to get to your data, let's talk about URLs and URIs. A URL is a Uniform Resource Locater and URI is a Uniform Resource
    Identifier. A URL is the way you would identify a document on the net, i.e. http://www.oracle.com is a URL. A URI is a more generic form of a URL.
    Oracle supports three types of URI: HTTPURIType - basically a URL (which would be like the URL above), XDURIType - a pointer to an XDB resource
    (usually an XML document but can be other objects), and DBURIType - a pointer to database objects.
    It's the DBURIType that we're going to concentrate on here. The DBURIType let's us reference database objects using a file/folder paradigm. The
    format for a DBURI is /oradb/<schema>/<table>. Oradb is shorthand for the database; it is not the database name or SID. My database is named XE
    but I still use oradb in the DBURI. For example, the view we created above is in my XE database, is owned by HR (at least in my case) and is called
    EMPS_AND_DEPTS. This can be referenced as /oradb/HR/EMPS_AND_DEPTS.
    If the view had many rows and you wanted only one of them, you can restrict it by including a predicate. The documentation for XDB has a great
    write up on Using DBURIs.In our case, we are going to write out the entire document. Now that you understand that the DBURI is a pointer to
    objects in our instance, we can use that to access the data as a URL.
    The format for the URL call is http://<machinename>:<port>/<DBURI>
    In my case, my XE database is running on a machine called mach1 and is listening on port 8080. So to see the view we created above, I open my
    browser and navigate to: http//mach1:8080/oradb/HR/EMPS_AND_DEPTS
    The created URL will be as http//mach1:8080/oradb/PUBLIC/EMPS_AND_DEPTS
    If your database is set up correctly and listening on port 8080 (the default), your browser should ask you to login. Login as the user who created the
    view (in my case HR). You should now get an XML document displayed in your browser.
    And that's it. It doesn't get much simpler than that. If you get rid of the descriptive text above, it basically comes down to:
    Create a table or view
    Open your web browser
    Enter a URL
    Enter a user ID and password
    View your XML
    If you notice, Oracle formatted the data as XML for us. Our view returns scalar columns and an XML fragment called Dept. Oracle formatted the
    return results into an XML format.
    And as a side note, if you look closely, you'll see that my URL has PUBLIC where I said to put HR. PUBLIC is a synonym for all objects that your
    logged in user can see. That way, if your user has been granted select access on many schemas, you can use PUBLIC and see any of them.

  • How to save the output of sap script to pdf document in sap

    hi abapers
    how to save the output of sap script in sap so that can retrieve the saved document later.
    i have to save the rcia output from sap script in pdf document in sap so that it can be retrieved later
    how to use dms

    Hi deepika,
    This thread will solve ur problem OTF  -> PDF
    Regards,
    Pravin

  • How to send the form data through mail with pdf format?

    forms 6i
    Hi to all,
    i am developed one master detail form.example is based on the dept number emp details will be displayed.here my requirment is whatever displayed on the form
    the data ,these data send to mail with any format.is it possible? if is possible any one give a proper solution.
    Regards,
    Stevie
    Edited by: 994418 on 6 May, 2013 11:15 PM

    Hello,
    you can create a Report that accepts the search parameters from the Forms mask and generates a PDF. You also have the option to send the report via mail.
    Personally I would generate the report with a tool like as_pdf
    http://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/
    Then you can send the mail using utl_mail or utl_smtp.
    www.google.com/search?q=site:forums.oracle.com+utl_mail+utl_smtp
    Regards
    Marcus

  • Output of a report in PDF Format

    Hi all,
    I need to get the Output of a report in PDF format.
    Please suggest me hwo to do this requirement.
    If having please give me the sample code
    Thanks and Regards
    Ajay

    sample code for PDF conversion...
    tables : vbrk. "Billing Document: Header Data
         Type pool declaration
    type-pools slis.
         Selection screen
    selection-screen begin of block b1 with frame.
    select-options : p_date for vbrk-aedat.
    selection-screen end of block b1.
         Types declaration
    types : begin of t_vbrk,
            vbeln type vbrk-vbeln,  "Billing Document
            aedat type vbrk-aedat,  "Changed on(date)
            fksto type vbrk-fksto,  "Billing document is cancelled
            end of t_vbrk.
         Internal table declaration
    data : i_vbrk type table of t_vbrk,
           w_vbrk type t_vbrk.
         Field catalog declaration
    data : i_cat type slis_t_fieldcat_alv,
           w_cat like line of i_cat,
           t_print type  slis_print_alv.
    data :top type table of slis_listheader  with header line.
    data : event type table of slis_alv_event with header line.
         start of selection
    top-of-page.
    start-of-selection.
      perform get_dat.
      if sy-subrc = 0.
        perform build_cat.
        perform alv_print_info.
        perform sub_create_spool_id.
        perform display_data.
        perform sub_send_mail.
      endif.
         Subroutine GET_DAT
    form get_dat .
    *---To fetch canelled billing documents.
      select vbeln
             aedat
             fksto
      from   vbrk
      into table i_vbrk
      where aedat in p_date and fksto = 'X'.
    endform.                    " GET_DAT
       Subroutine DISPLAY_DATA
    form display_data .
    call function 'REUSE_ALV_EVENTS_GET'
    importing
       et_events             = event[]
    top-typ = 'H'.
    top-info = sy-title.
    append top.
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
       i_callback_program                = sy-repid
       i_callback_top_of_page            = 'NAN'
       i_grid_title                      = 'Alok Arun (Mr.A)'
       it_fieldcat                       = i_cat
       it_events                         = event[]
       is_print                          = t_print
      tables
        t_outtab                          = i_vbrk
    endform.                    " DISPLAY_DATA
    *&      Subroutine  BUILD_CAT
    form build_cat .
      w_cat-seltext_l = 'Billing Document'.
      w_cat-col_pos = '1'.
      w_cat-tabname = 'I_VBRK'.
      w_cat-fieldname = 'VBELN'.
      w_cat-ref_fieldname = 'VBELN'.
      w_cat-hotspot = 'X'.
      append w_cat to i_cat.
      clear w_cat.
      w_cat-seltext_l = 'Cancelled on'.
      w_cat-col_pos = '2'.
      w_cat-tabname = 'I_VBRK'.
      w_cat-fieldname = 'AEDAT'.
      w_cat-ref_fieldname = 'AEDAT'.
      w_cat-hotspot = 'X'.
      append w_cat to i_cat.
      clear w_cat.
    endform.                    " BUILD_CAT
    *&      Form  alv_print_info
    form alv_print_info .
      t_print-no_print_selinfos  = 'X'.
      t_print-no_coverpage       = 'X'.
      t_print-no_print_listinfos = 'X'.
    endform.                    " alv_print_info
    *&      Form  sub_create_spool_id
    form sub_create_spool_id .
    data: lv_text(50) type c.
      lv_text = sy-title.
      new-page line-size sy-linsz
      print on destination 'LP01'
      cover text lv_text
      list name 'LIST NAME SOL MANAGER'(002)
      list dataset 'LIST DATASET'(003)
      immediately ' '
      keep in spool 'X'
      new list identification 'X'
      no dialog.
    endform.                    " sub_create_spool_id
    *&      Form  sub_send_mail
    form sub_send_mail .
    data:     v_spono like  tsp01-rqident.
      v_spono = sy-spono.
    data:
              v_type         like  soodk-objtp,
              i_pdflist      like  tline  occurs 0,
             t_print        TYPE  slis_print_alv,
              jobname        like  tbtcjob-jobname,
              jobcount       like  tbtcjob-jobcount,
              numbytes       type  i,
              pdfspoolid     like  tsp01-rqident,
              jobname2       like  tbtcjob-jobname,
              jobcount2      like  tbtcjob-jobcount,
              i_compresslist like  soli   occurs 0.
    data: pdf like tline occurs 100 with header line,
          objbin like solisti1 occurs 10 with header line.
    *--convert into PDF
    call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid              = v_spono
          no_dialog                = ' '
        importing
          pdf_bytecount            = numbytes
          pdf_spoolid              = pdfspoolid
          btc_jobname              = jobname2
          btc_jobcount             = jobcount2
        tables
          pdf                      = 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.
      if sy-subrc <> 0.
      endif.
    *-- change the width of the pdf table --
      call function 'SX_TABLE_LINE_WIDTH_CHANGE'
        exporting
          line_width_src              = 134
          line_width_dst              = 255
        tables
          content_in                  = pdf
          content_out                 = objbin
        exceptions
          err_line_width_src_too_long = 1
          err_line_width_dst_too_long = 2
          err_conv_failed             = 3
          others                      = 4.
      if sy-subrc <> 0.
      endif.
    endform.

  • How to change the output directory of .xml files

    Hi,
    There are lots of .xml files generated under
    $ORACLE_AS_HOME/j2ee/home/applications/xmlpserver/xmlpserver/xml.
    (ex:/usb/bipub3/oracle/oc4j_bi/j2ee/home/applications/xmlpserver/xmlpserver/xml).
    I found these files are generated in the following operation;
    1.Log in BI Publisher.
    2.Select the Schedules tab.
    I think they are kind of temp files so we will be able to delete them.
    But I'd like to know how to change the output directory.
    Can we change the above directory to other path?
    Regards.

    Why? As that may invalidate support since you configure/alter the deployment.
    The location is specified in oc4j_bi\j2ee\home\applications\xmlpserver\xmlpserver.war, so you could go into the war file and alter it.

  • 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.

  • How to change the output as text format in Apps R12.1.3

    Hi All,
    Currently iam trying to modify the Java Concurrent Program (FDExtractAndFormatting) in Batch Payment Process. This Program is generated in text format in 11i APPS. Now we are upgrading to R12.1.3. In R12.1.3 output is coming as PDF format. Here my requirement is how to change the output as text format in R12.1.3 also.
    Please do the needful and suggest me.
    Regards,
    Jagadeesh

    1. It is seeded java concurrent program. Some attributes are missing from 11i to R12. In 11i it is a text format.So i have to investgate on how to retrive those attributes in R12. What is the concurrent program name?
    Have you tried to change the output and submit the request?
    2. Once all are attributes are coming in PDF format. Client wants to open same output in text format as it is 11i (In R12 it is generated in PDF format).If the above does not help, please log a SR.
    Thanks,
    Hussein

  • How to send the output to PDF format in reports 6i?

    Hi,
    How to send the output to PDF format in reports 6i? I given Mode = BITMAP.
    DESTYPE = File, DESFORMAT = PDF, DESNAME = C:\x.pdf.
    Report is running fine. But PDF file not generated. I don't know what i missed. Any one can help this?
    Thanks
    Kavitha

    Hello,
    Do you get this problem only for DESFORMAT=PDF ?
    Test with :
    DESFORMAT = RTF, DESNAME = C:\x.rtf
    or
    DESFORMAT = HTMLCSS, DESNAME = C:\x.html
    does it work ?
    Check if DESNAME is modified in the reports itself.
    Regards

  • How to change the output executable file name(a.prj:(output)--- b.exe)

    LabWindows / CVI: how to change the output executable file name
                For example, I have an A project a.prj, I do not want to compile the output file is a.exe, but b.exe.
    I will try to save as a.prj b.prj, a.cws save as b.cws
    eg:a.prj  ---->(output)--->b.exe
    Solved!
    Go to Solution.

    You can go to Build >> Target Settings menu item, select Release (or Release 64) in the Configuration filed and set the name of the executable to create in Application FIle field, withouyt need to change the prj or cws filename.
    See the complete description of available options here.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to dispaly abap output in bsp

    hi experts
    can u say me how to display the output from abap in bsp.
    there is an report which gives employee details , output is shown using write statement in report . i need the to call this ouput in bsp.

    Dear Pradeep,
    The same thing I alo have worked with.
    Follow the thing which is refered below.
    In ONINPUTPROCESSING event handler
    have the below code where ZERRS is the name of the report.
    submit zerrs with selection-table seltab and return
              exporting list to memory.
    import int_result to it_bsp from memory id 'ZERRS'.
    In TYPEDEFINITIONS
    have your own data type.
    types: BEGIN OF int_result ,
            ( VARIABLES),
             END OF int_result.
    types: mytab type standard table of int_result.
    In PAGEATTRIBUTES
    it_BSP     TYPE     MYTAB
    In LAYOUT
    you design the page according to the variable present.
    Reward points if it is helpful.
    Gokul.

  • How to generate the Cobol Source part of the ApplicationViewer

    Hello,
    I'm actually generate the Cobol Source part of the application viewer on a windows environment.
    I'm trying to build it from a Unix environment but I don't know how because I doesn't find the same script in Unix I use in windows.
    Can someone tell me how to generate the Cobol Source part of the application Viewer please ?
    Thank you in advance.

    >
    How can I read the html source code of a webpage
    with a java application?
    Is there a good idea?
    I don't know if this is a good idea, but it works.
    1) Use a URL to obtain the document's location
    2) Use a URLConnection to open a connection between your computer and the
    document server
    3) Connect to the server
    4) Get the InputStream of said connection
    5) Associate the Input Stream with a Buffered Input Stream
    At this point you can use a loop to read lines from the BufferedInput Stream and append them to a TextArea or other suitable text component.

  • How to know the output type for particular tcode

    Hi
    how to know the output type for the VL10D & VAL TCODES.
    Can anybody help me out.
    Thanks and Regards
    Krishnarao

    Hi Krishna,
    GO to NACE and select your application and click on output types and in the next screen select your output type and and dbl click on Processing routines.
    Here you will come to know about which driver program is used for which smartform or Script.
    and for Program details you can refer table: REPOSRC
    Regards,
    Sachin

  • Unable to generate the output for S_ALR_87012048

    Dear All,
    We are trying to execute the report  S_ALR_87012048 for the first period in 2015.  We have tried execute this report with report date 25.01.2015 (which is the last day in period 01), but it is giving no data was selected.
    Can anybody suggest whether I need to give any further inputs to generate the output apart from the below.
    Co.code : 9000
    Reporting date : 25.01.2015 (which is the last day in our fiscal period 01 /2015)
    Dep area : 01
    Sort Variant : 03 (co.code / bs  accounts / asset class)
    User able to execute this report in the last month successfully.
    We have completed all year ending process as well.
    I have tried execute this report in our quality system with reporting date as 31.12.2014 and 31.12.2015.
    Do we need to give reporting date as year ending date ? or last date of current period.
    Thanks in Advance.
    Prasad

    Hi Prasad,
    I do believe that you should consider the authorization side of the matter carefully as pointed out by Mahmoud on Feb 6th. Please check again the mentioned SAP Notes in that thread.
    For example, I just tested in my system, I can trigger a report even in a closed fiscal year with a report date end of each period. The only difference is that I get a information message:
    Report date is in a closed fiscal year
    Message no. AU172
    Diagnosis
    The report date is in the past.
    Here the report date is allowed to be the end of the year as well as any
    period end during the fiscal year.
    System Response
    In an asset report during the fiscal year (report date for a period end
    within the year) in a closed fiscal year, it can be the case that the results
    for depreciation or the net book value are different between the historical
    calculation and the current calculation for the report date. The reason for this
    are any changes to asset-related depreciation terms, such as the depreciation
    key, useful life, and so on. In the case of such changes, the asset values are
    recalculated with the currently entered depreciation terms.
    In an open fiscal year and a report date end of period I do not get AU172 and get an output.
    Beside above provided SAP Notes, also see another couple of SAP Notes with some interesting information are also:
    1566099  Reporting in Asset Accounting
    1491612  Authorization concept in FI-AA
    1394450  Reporting: Authorization check for report assignment
    929732    Authorization checks: Correction Note 856248
    856248   Authorization checks in asset reporting
    Regards,
    Brigitte

Maybe you are looking for

  • Officejet Pro 8600 Plus copy prints with black streaks

    I just bought an HP Officejet Pro 8600 Plus and it seems to work great at printing; however, when I tried to copy something, the copy came out with black streaks that nearly render the print illegible and are the most dark/condensed towards the left

  • Limiting of sale price for specefic period and customer

    Dear Gurus, May you guide me if you want to give a customer specific price to specific customer for specific period. How can you limiting the quantity more than one order within a specified period without any trade deal. I did it with the change of t

  • Sender JDBC with Stored Procedure or Function

    Hi. I have a problem to update a row that I obtain from sender JDBC (using SELECT or calling to a FUNCTION). As the consultation is so complex and the table has fed up transactions, often it takes the registry “A” and updates register “B”. Try to use

  • Noob Question: How Do I Resume Downloads

    I started downloading a couple of podcasts through Safari yesterday just before I turned off my Mac. Now I have got the downloads window back up but I can't see where I click to resume the downloads. There's no orange icon to start downloading again

  • Why does my printer show up as "busy" when it's not?

    The situation is this: I set up my HP Laserjet 1200 via AirPort and everything worked fine until I started printing a pdf document from a client. As it was processing, I noticed that it was set up for US Letter paper instead of A4 (my default). So I