@ generating Spools/PDF's with landscape

Hi,
I need to generate a PDf frm a spool report. But the Column headings exceed the stad Spool widht. Is there any work around for this? Similar to Landscape in normal PDF's?

Hi Anand,
Chk the sample report
REPORT ZSEND_SMARTFORMS .
Internal Table declarations
DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
i_tline TYPE TABLE OF tline WITH HEADER LINE,
i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
Objects to send mail.
i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
Work Area declarations
wa_objhead TYPE soli_tab,
w_ctrlop TYPE ssfctrlop,
w_compop TYPE ssfcompop,
w_return TYPE ssfcrescl,
wa_doc_chng typE sodocchgi1,
w_data TYPE sodocchgi1,
wa_buffer TYPE string,"To convert from 132 to 255
Variables declarations
v_form_name TYPE rs38l_fnam,
v_len_in LIKE sood-objlen,
v_len_out LIKE sood-objlen,
v_len_outn TYPE i,
v_lines_txt TYPE i,
v_lines_bin TYPE i.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZZZ_TEST1'
importing
fm_name = v_form_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION v_form_name
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
i_otf[] = w_return-otfdata[].
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.
Fehlerhandling
if sy-subrc <> 0.
endif.
loop at i_tline.
translate i_tline using '~'.
concatenate wa_buffer i_tline into wa_buffer.
endloop.
translate wa_buffer using '~'.
do.
i_record = wa_buffer.
append i_record.
shift wa_buffer left by 255 places.
if wa_buffer is initial.
exit.
endif.
enddo.
Attachment
refresh:
i_reclist,
i_objtxt,
i_objbin,
i_objpack.
clear wa_objhead.
i_objbin[] = i_record[].
Create Message Body
Title and Description
i_objtxt = 'test with pdf-Attachment!'.
append i_objtxt.
describe table i_objtxt lines v_lines_txt.
read table i_objtxt index v_lines_txt.
wa_doc_chng-obj_name = 'smartform'.
wa_doc_chng-expiry_dat = sy-datum + 10.
wa_doc_chng-obj_descr = 'smartform'.
wa_doc_chng-sensitivty = 'F'.
wa_doc_chng-doc_size = v_lines_txt * 255.
Main Text
wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt )
clear i_objpack-transf_bin.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_txt.
i_objpack-doc_type = 'RAW'.
append i_objpack.
Attachment
(pdf-Attachment)
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
Länge des Attachment ermitteln
describe table i_objbin lines v_lines_bin.
read table i_objbin index v_lines_bin.
i_objpack-doc_size = v_lines_bin * 255 .
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'smart'.
i_objpack-obj_descr = 'test'.
append i_objpack.
clear i_reclist.
i_reclist-receiver = '[email protected]'.
i_reclist-rec_type = 'U'.
append i_reclist.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = wa_objhead
CONTENTS_BIN = i_objbin
contents_txt = i_objtxt
receivers = i_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
Reward Points if Useful
Regards
Gokul

Similar Messages

  • Generating a PDF programatically with precision placement...

    I have a coworker who is creating a poster-sized calendar in Illustrator.  Imagine a calendar with 100 events on it, each represented by a rectangle containing text describing the event, and some other details, in a nice typeface, and a few other simple but very nicely-designed symbols, and maybe a drop shadow around the box.  All the elements are not complicated, but they are hand-designed.
    The problem is the customer would like several different renditions of this calendar poster, with events placed in different ways.  And then they could call each week with new events to add. This is too much work for someone to hand-place all these elements and enter text for each one.
    So I can write software however I need an API or SDK that allows a way to create this kind of diagram by the software reading the events from a spreadsheet and then placing them in x-y space.  I know that in theory I could have a program generate SVG for example, but then I have to translate all the careful designs of the elements into mathematical descriptions, right?  Also, how would I get SVG into a pdf?
    I have written Flex software to display this calendar in Flash player, however there appears to be no serious Adobe capability to convert Flash DisplayObjects to PDF.  There are some open source libraries written by soloists (e.g. Prawn) but I need something more mature.
    It's not enough to just create rectangles with ugly text -- that may be impressive for a developer audience but I need this to look like what our designer created in Illustrator.  Most of the examples of dynamic PDF generation I see are ugly and not presentable -- or the programming becomes just too complicated.
    Thanks for any advice!

    If you need the formatting capabilities of Illustrator, you probably want to
    work with the Illustrator SDK (http://www.adobe.com/devnet/illustrator/sdk/).
    Creating text effects in PDF is not impossible, but much harder to do.
    KHK

  • PD4ML generating a PDF file with weird characters

    I am running SSM SP07 NW 7.1 with Oracle in HP-UX. If we create a PDF via "Print" or "Mail" the created PDF generates a weird character  where ever a blanck space should be.
    I read that it could be a problem of the string "&nbsp" being read from ISO to UTF-8 encoding. I have tried everything with no result.
    If I transport my SSM configuration to an SQL windows environment it works fine. The problem is I need it in Oracle and HP-UX.
    Has anyone an idea?
    Thanks in advance
    Roberto

    Hello Roberto,
    Do you see the problem when using Operational Reviews as well as when exporting to a PDF ( print or mail)?
    The script looks like it is part of the upgrade, there is no separate script that you can download.
    I checked the note and there are no special instructions to run any script so I assume this runs automatically.
    This note is for SSM 7.5 installs and you can upgrade your system to 7.5 SP07 by following the upgrade guide:
    "Strategy Management Upgrade Guide 7.0 Series to 7.5 Series "
    You can get this at: https://websmp209.sap-ag.de/instguidesCPM-STM
    Select the 7.5 link on the left side to get the list of documents for 7.5.
    Thanks,
    Bill

  • Writing a java program for generating .pdf file with the data of MS-Excel .

    Hi all,
    My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
    I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
    My Program is:
    * Created on Apr 13, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    package forums;
    import java.io.*;
    import java.awt.Color;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.Font.*;
    import com.lowagie.text.pdf.MultiColumnText;
    import com.lowagie.text.Phrase.*;
    import net.sf.hibernate.mapping.Array;
    import org.apache.poi.hssf.*;
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hssf.usermodel.*;
    import com.lowagie.text.Phrase.*;
    import java.util.Iterator;
    * Generates a simple 'Hello World' PDF file.
    * @author blowagie
    public class pdfgenerator {
         * Generates a PDF file with the text 'Hello World'
         * @param args no arguments needed here
         public static void main(String[] args) {
              System.out.println("Hello World");
              Rectangle pageSize = new Rectangle(916, 1592);
                        pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
              // step 1: creation of a document-object
              //Document document = new Document(pageSize);
              Document document = new Document(pageSize, 132, 164, 108, 108);
              try {
                   // step 2:
                   // we create a writer that listens to the document
                   // and directs a PDF-stream to a file
                   PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
                   writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
    //               step 3: we open the document
                             document.open();
                   Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
                   POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
                   HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
                   HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
                   Iterator rows = hsheet.rowIterator();
                                  while( rows.hasNext() ) {
                                       Phrase phrase=new Phrase();
                                       HSSFRow row = (HSSFRow) rows.next();
                                       //System.out.println( "Row #" + row.getRowNum());
                                       // Iterate over each cell in the row and print out the cell's content
                                       Iterator cells = row.cellIterator();
                                       while( cells.hasNext() ) {
                                            HSSFCell cell = (HSSFCell) cells.next();
                                            //System.out.println( "Cell #" + cell.getCellNum() );
                                            switch ( cell.getCellType() ) {
                                                 case HSSFCell.CELL_TYPE_STRING:
                                                 String stringcell=cell.getStringCellValue ()+" ";
                                                 writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                 phrase.add(stringcell);
                                            // document.add(new Phrase(string));
                                                      System.out.print( cell.getStringCellValue () );
                                                      break;
                                                 case HSSFCell.CELL_TYPE_FORMULA:
                                                           String stringdate=cell.getCellFormula()+" ";
                                                           writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                           phrase.add(stringdate);
                                                 System.out.print( cell.getCellFormula() );
                                                           break;
                                                 case HSSFCell.CELL_TYPE_NUMERIC:
                                                 String string=String.valueOf(cell.getNumericCellValue())+" ";
                                                      writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                      phrase.add(string);
                                                      System.out.print( cell.getNumericCellValue() );
                                                      break;
                                                 default:
                                                      //System.out.println( "unsuported sell type" );
                                                      break;
                                       document.add(new Paragraph(phrase));
                                       document.add(new Paragraph("\n \n \n"));
                   // step 4: we add a paragraph to the document
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              // step 5: we close the document
              document.close();
    My Input from MS-Excel file is:
         Planning and Tracking Template for Interns                                                                 
         Name of the Intern     N.Kesavulu Reddy                                                            
         Project Name     Enterprise Sales and Marketing                                                            
         Description     Estimated Effort in Hrs     Planned/Replanned          Actual          Actual Effort in Hrs     Complexity     Priority     LOC written new & modified     % work completion     Status     Rework     Remarks
    S.No               Start Date     End Date     Start Date     End Date                                        
    1     setup the configuration          31/01/2005     1/2/2005     31/01/2005     1/2/2005                                        
    2     Deploying an application through Tapestry, Spring, Hibernate          2/2/2005     2/2/2005     2/2/2005     2/2/2005                                        
    3     Gone through Componentization and Cxprice application          3/2/2005     3/2/2005     3/2/2005     3/2/2005                                        
    4     Attend the sessions(tapestry,spring, hibernate), QBA          4/2/2005     4/2/2005     4/2/2005     4/2/2005                                        
         The o/p I'm gettint in .pdf file is:
    Planning and Tracking Template for Interns
    N.Kesavulu Reddy Name of the Intern
    Enterprise Sales and Marketing Project Name
    Remarks Rework Status % work completion LOC written new & modified Priority
    Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
    End Date Start Date End Date Start Date S.No
    38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
    38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
    2.0
    38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
    3.0
    38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
                                       The issues i'm facing are:
    When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
    and the second issue is:
    It is not recognizing the date format..it is recognizing the date in first row only......
    Plz Tell me wht is the solution for this...
    Regards
    [email protected]

    Don't double post your question:
    http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
    /Kaj

  • PDF Generation with LiveCycle Data Services

    Hi everybody!
    I am using LiveCycle Data Services to generate a dynamic pdf. I worked with this tutorial : livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/pdfgen_1.html and i adapted the code to my own example.
    I created a pdf template with livecycle designer and i succeed to generate the pdf thanks to LiveCycle Data Services.
    Here is my problem :
    In LiveCycle Designer i create a table and bind my data connection (from xml source) to this table and i bind subforms to repeating data.
    It works when i try to open an overview of the pdf with LiveCycleDesigner.
    But when i try to generate the pdf with livecycle data service, there is no repeat of my data. There is only a number of items corresponding to the minimum of repeating i set in livecycle designer binding window...
    Is it possible to generate repeating data with LiveCycle DS ?
    an example of my xml source :
    <item id="1">
         <data>blabla</data>
    </item>
    <item id="2">
         <data>blabla</data>
    </item>
    In livecycle designer, if i set the minimum of repeating to 1,  LiveCycle DS generate a pdf with only one item.
    if i set the minimum of repeating to 2,  LiveCycle DS generate a pdf with only 2 items. etc.
    I don't know how to generate an indeterminate number of items...
    Thanks in advance for your help.
    Bye
    Guillaume

    Hi Guillaume,
    there is no limitation. Dynamic PDF files can be generated with Livecycle Data Services.
    You should have a look at the XML file generated by your Flex code. Try to save it and see how the XML file behaves when you generate a PDF preview with Designer. You can go to the menu:  File >  Properties > Preview > Use XML test data...
    With the XFAHelper class, you can either load a PDF or a XDP file. Have you tried with a XDP ?
    I've attached a dynamic PDF file that I've created for a customer. I generate a dynamic PDF file using LiveCycle Data Services. Maybe you'll find some clues within the file.
    Michael

  • Get Windows message "Terminate 5-1" after printing pdf reports with Orarrp

    Hi,
    I get error message "Terminate 5-1" on clients machine after pdf report is printed with Orarrp.
    The clients is Windows XP with acrobat reader 5.
    I test on acrobat reader 6 and get the same result.
    This occur for all pdf reports and all clients.
    However this message just shows when perform printing, if I cancel printing from print dialog box then this message does not show.
    How can I avoid this message?
    Thanks in advance
    Tawatchai R.
    ===================
    Hi,
    I have same error message(Message Title: TerminateProcess Value; Message Body: 5-1) showing up when using Orarrp to print directly to printer on WEB using Oracle Forms. On my pc it shows when I have adobe acrobat reader opened up already and on others it may shows even if adobe acrobat is not already opened. However document gets printed but this is very annoying for the user to see this message.
    Client Environments:
    1. Windows XP, HP LaserJet 5P and HP LaserJet 4100 Series PCL, Adobe Acrobat 6.0
    2. Windows 2000 Professional, HP LaserJet 4000 Series PCL, Adobe Acrobat 5.0 and 6.0
    Thanks
    Kulwinder Sidhu

    Hi Kulwinder,
    We are getting this problem whenever we go through the following steps:
    - Generate a PDF report without an ORARRP file extension on a dedicated reports server. Preview the report by opening in Adobe Reader using WEB.SHOW_DOCUMENT.
    - Generate a PDF report with a ORARRP file extension of rrpa on a dedicated reports server. Directly print the report without a print dialog box using WEB.SHOW_DOCUMENT to invoke ORARRP.
    After printing the Terminate Process 5-1 message appears and Adobe is left running. If the first step is missed out then printing occurs without error and Adobe closes automatically.
    Please could you give more information on how you solved the problem. I am using Windows XP and Adobe 7.
    Thanks,
    Pete

  • Spool to PDF - Problems with downloading PDF file when converting with job

    Hi all!
    I've got a problem. I've got a program that writes a smartform into the spool. After that, I am using the function modules RSTS_GET_ATTRIBUTES and CONVERT_OTFSPOOLJOB_2_PDF to convert it into PDF. I retrieve a internal table with the binary content for the PDF file. Now i can download the file to the desktop by using the method cl_gui_frontend_services=>gui_download.
    But there is a problem: when the spool excesses 99 pages, the function module CONVERT_OTFSPOOLJOB_2_PDF asks the user via popup if the PDF should be created in background. If the user commits, the internal tables that should contain the binary PDF data is emtpy. A background job writes the binary data into the spool. The user has got an empty file that will be generated by cl_gui_frontend_services=>gui_download.
    So, is it possible to suppress the popup to create the PDF allways online? Or how can I write the PDF file if there will be create any spool id in background? You'll find my current code below.
    * Prüfen ob es die übergebene Spoolnummer überhaupt gibt
      SELECT SINGLE * FROM tsp01 INTO ls_tsp01 WHERE rqident = id_spoolid.
      IF ( sy-subrc <> 0 ).
        cf_error = 'X'.
        EXIT.
      ENDIF.
    * TemSe-Objekte speichern sequentielle Daten. Ein TemSe-Objekt kann aus
    * mehreren Teilen bestehen. Dieser FB ermittelt die wichtigsten Attribute
    * eines TemSe-Objekts. Falls das Objekt aus mehreren Teilen besteht, werden
    * die Attribute entsprechend zusammengefaßt.
      CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
        EXPORTING
          client        = ls_tsp01-rqclient
          name          = ls_tsp01-rqo1name
          part          = 1
        IMPORTING
          objtype       = ld_objtype
        EXCEPTIONS
          fb_error      = 1
          fb_rsts_other = 2
          no_object     = 3
          no_permission = 4
          OTHERS        = 5.
      IF ( sy-subrc <> 0 ).
        cf_error = 'X'.
        EXIT.
      ENDIF.
      IF ld_objtype(3) = 'OTF'.
        lf_is_otf = 'X'.
      ELSE.
        lf_is_otf = ' '.
      ENDIF.
      IF ( lf_is_otf = 'X' ).
    *   Konvertiere OTF-Spoolauftrag nach PDF
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = id_spoolid
            no_dialog                = ' '
    *        pdf_destination          = 'T'
          IMPORTING
            pdf_bytecount            = ld_numbytes
            pdf_spoolid              = ld_pdfspoolid
            btc_jobname              = ld_jobname
            btc_jobcount             = ld_jobcount
          TABLES
            pdf                      = lt_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.
        IF ( sy-subrc <> 0 ).
          cf_error = 'X'.
          EXIT.
        ENDIF.
      ELSE.
    *   Konvertiere ABAP-Liste-Spoolauftrag nach PDF
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = id_spoolid
            no_dialog                = ' '
          IMPORTING
            pdf_bytecount            = ld_numbytes
            pdf_spoolid              = ld_pdfspoolid
            btc_jobname              = ld_jobname
            btc_jobcount             = ld_jobcount
          TABLES
            pdf                      = lt_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 ).
          cf_error = 'X'.
          EXIT.
        ENDIF.
      ENDIF.
      WHILE ( lf_file_ok = '' ).
    *   Die in der Tabelle lt_pdf enthaltenen Binärdaten werden nun in eine
    *   Datei geschrieben. Da alle übergebenen Tickets in die gleiche Datei
    *   geschrieben werden, kann der im Speicher gehaltente Protokolleintrag
    *   gelesen werden
        CALL METHOD cl_gui_frontend_services=>gui_download
          EXPORTING
            bin_filesize              = ld_numbytes
            filename                  = cd_filename
            filetype                  = 'BIN'
    *    append                    = SPACE
    *    write_field_separator     = SPACE
    *    header                    = '00'
    *    trunc_trailing_blanks     = SPACE
    *    write_lf                  = 'X'
    *    col_select                = SPACE
    *    col_select_mask           = SPACE
    *    dat_mode                  = SPACE
          confirm_overwrite         = 'X'
    *    no_auth_check             = SPACE
    *    codepage                  = SPACE
    *    ignore_cerr               = ABAP_TRUE
    *    replacement               = '#'
    *    write_bom                 = SPACE
    *    trunc_trailing_blanks_eol = 'X'
    *    wk1_n_format              = SPACE
    *    wk1_n_size                = SPACE
    *    wk1_t_format              = SPACE
    *    wk1_t_size                = SPACE
    *  IMPORTING
    *    filelength                =
          CHANGING
            data_tab                  = lt_pdf
          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
            not_supported_by_gui      = 22
            error_no_gui              = 23
            OTHERS                    = 24.

    Creating a PDF file with over 99 pages through SAP seems rather unreasonable to me. What are you printing - Encyclopedia Britannica? For cripes sake... Have you thought about creating more than one spool request or using something completely different? Why do you have to do this through spool? You can get Smartform output directly into PDF, there are a lot of example out there.
    The only solution that comes to mind is rather brutal - create a copy of the function module and get rid of the popup. Although it just might time out after that...

  • Spool generates empty pdf page?

    Hi all,
    I am writing to spool using
    new-page print on parameters p_parame
    after that I get the spool number for the generated spool and use the following function to generate a pdf file:
        call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
             exporting
                  src_spoolid              = spool_num
                  no_dialog                = 'X'
             importing
                  pdf_bytecount            = pdf_length
             tables
                  pdf                      = it_pdf_file.
    But this function only generates an empty page? If I look at the sp01 with the spoolnumber the writing data is there.
    Does somebody already had this problem?
    Thanks for any help or information,
    Marcelo Moreira

    I'm having the same issue, check your apache error logs.
    Each time the page not found error in the browser is shown there is a error generated by the database:
    [Wed Sep 19 19:25:52 2007] [error] mod_plsql: /pls/apex/wwv_flow.accept ORA-22293
    ORA-22293: LOB already opened in the same transaction
    Someone was hinting that this issue could be related to the possibly the nlslanguage settings. I'd be interested to hear if anyone solves this one.
    My environment is on 10g running in Windows through an Apache mod_plsql that was installed with Oracle 9i install on Linux.

  • Generate spool request and PDF

    Hello Friends,
    I have the below requirement in Scripts.
    I need to generate spool request and also download the form as pdf simultaneously.
    I can able to generate spool request and able to download as PDF separately, but I want to do both in a single open_form is it possible?
    Regards.
    Krishna.

    Copy and Paste following code in a Z program type executable:
    REPORT ZRSTXPDFT4 LINE-SIZE 80.
    Read spool job contents (OTF or ABAP list) and convert
    to PDF, download PDF
    B20K8A0IKH replace WS_DOWNLOAD with GUI_DOWNLOAD
    SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE TEXT-015.
    SELECTION-SCREEN SKIP.
    PARAMETERS:
      SPOOLNO LIKE TSP01-RQIDENT.
    SELECTION-SCREEN SKIP.
    PARAMETERS :  DOWNLOAD AS CHECKBOX DEFAULT 'X',
      P_FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\temp\file.pdf' NO-DISPLAY."#EC NOTEXT
    SELECTION-SCREEN END OF BLOCK B.
    DATA OTF LIKE ITCOO OCCURS 100 WITH HEADER LINE.
    DATA CANCEL.
    DATA PDF LIKE TLINE OCCURS 100 WITH HEADER LINE.
    DATA DOCTAB LIKE DOCS OCCURS 1 WITH HEADER LINE.
    DATA: NUMBYTES TYPE I,
          ARC_IDX LIKE TOA_DARA,
          PDFSPOOLID LIKE TSP01-RQIDENT,
          JOBNAME LIKE TBTCJOB-JOBNAME,
          JOBCOUNT LIKE TBTCJOB-JOBCOUNT,
          IS_OTF.
    DATA: CLIENT LIKE TST01-DCLIENT,
          NAME LIKE TST01-DNAME,
          OBJTYPE LIKE RSTSTYPE-TYPE,
          TYPE LIKE RSTSTYPE-TYPE.
    TABLES: TSP01.
    DATA : RETFIELD TYPE DFIES-FIELDNAME.
    DATA : SPOOL TYPE HELP_INFO-DYNPROFLD.
    DATA : BEGIN OF ITAB OCCURS 0,
            SPOOL TYPE TSP01-RQIDENT,
           END OF ITAB.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR SPOOLNO.
      RETFIELD = SPOOLNO.
      SPOOL = 'SPOOLNO'.
      SELECT RQIDENT FROM TSP01 INTO TABLE ITAB."#EC CI_NOWHERE
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
      DDIC_STRUCTURE         = ' '
          RETFIELD               = RETFIELD
      PVALKEY                = ' '
       DYNPPROG               = SY-REPID
       DYNPNR                 = SY-DYNNR
       DYNPROFIELD            = SPOOL
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
       CALLBACK_PROGRAM       = SY-CPROG
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
        TABLES
          VALUE_TAB              = ITAB[]
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 2
       OTHERS                 = 3
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    START-OF-SELECTION.
      SELECT SINGLE * FROM TSP01 WHERE RQIDENT = SPOOLNO.
      IF SY-SUBRC <> 0.
        PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
         'Spoolauftrag existiert nicht'(003).
        EXIT.
      ENDIF.
      CLIENT = TSP01-RQCLIENT.
      NAME   = TSP01-RQO1NAME.
      CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
             EXPORTING
                  AUTHORITY     = 'SP01'
                  CLIENT        = CLIENT
                  NAME          = NAME
                  PART          = 1
             IMPORTING
              CHARCO        =
              CREATER       =
              CREDATE       =
              DELDATE       =
              MAX_CREDATE   =
              MAX_DELDATE   =
              NON_UNIQ      =
              NOOF_PARTS    =
              RECTYP        =
              SIZE          =
              STOTYP        =
                  TYPE          = TYPE
                  OBJTYPE       = OBJTYPE
             EXCEPTIONS
                  FB_ERROR      = 1
                  FB_RSTS_OTHER = 2
                  NO_OBJECT     = 3
                  NO_PERMISSION = 4.
      IF OBJTYPE(3) = 'OTF'.
        IS_OTF = 'X'.
      ELSE.
        IS_OTF = SPACE.
      ENDIF.
      IF IS_OTF = 'X'.
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
            EXPORTING
              SRC_SPOOLID                    = SPOOLNO
              NO_DIALOG                      = ' '
          DST_DEVICE                     =
          PDF_DESTINATION                =
            IMPORTING
              PDF_BYTECOUNT                  = NUMBYTES
              PDF_SPOOLID                    = PDFSPOOLID
          OTF_PAGECOUNT                  =
              BTC_JOBNAME                    = JOBNAME
              BTC_JOBCOUNT                   = JOBCOUNT
            TABLES
              PDF                            = 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.
        CASE SY-SUBRC.
          WHEN 0.
            PERFORM BD_TEXTBOX_MSG(RSTXPDFT) USING 80
             'Funktion CONVERT_OTFSPOOLJOB_2_PDF erfolgreich'(001).
          WHEN 1.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Kein OTF- und kein ABAP-Spoolauftrag'(002).
            EXIT.
          WHEN 2.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Spoolauftrag existiert nicht'(003).
            EXIT.
          WHEN 3.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Keine Berechtigung zum Lesen Spoolauftrag'(004).
            EXIT.
          WHEN OTHERS.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Fehler bei Funktion CONVERT_OTFSPOOLJOB_2_PDF'(005).
            EXIT.
        ENDCASE.
      ELSE.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
            EXPORTING
              SRC_SPOOLID                    = SPOOLNO
              NO_DIALOG                      = ' '
          DST_DEVICE                     =
          PDF_DESTINATION                =
            IMPORTING
              PDF_BYTECOUNT                  = NUMBYTES
              PDF_SPOOLID                    = PDFSPOOLID
          LIST_PAGECOUNT                 =
              BTC_JOBNAME                    = JOBNAME
              BTC_JOBCOUNT                   = JOBCOUNT
            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.
        CASE SY-SUBRC.
          WHEN 0.
            PERFORM BD_TEXTBOX_MSG(RSTXPDFT) USING 80
             'Funktion CONVERT_ABAPSPOOLJOB_2_PDF erfolgreich'(006).
          WHEN 1.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Kein OTF- und kein ABAP-Spoolauftrag'(002).
            EXIT.
          WHEN 2.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Spoolauftrag existiert nicht'(003).
            EXIT.
          WHEN 3.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Keine Berechtigung zum Lesen Spoolauftrag'(004).
            EXIT.
          WHEN OTHERS.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Fehler bei Funktion CONVERT_ABAPSPOOLJOB_2_PDF'(007).
            EXIT.
        ENDCASE.
      ENDIF.
    download PDF file ***********
      CHECK DOWNLOAD = 'X'.
      IF NOT ( JOBNAME IS INITIAL ).
        PERFORM BD_TEXTBOX_VAR2_MSG(RSTXPDFT) USING 80
         'Konvertierung per Hintergrundjob'(008)
         JOBNAME
         JOBCOUNT.
        EXIT.
      ENDIF.
      PERFORM DOWNLOAD_W_EXT(RSTXPDFT) TABLES PDF
                                       USING P_FILE
                                             '.pdf'
                                             'BIN'
                                             NUMBYTES
                                             CANCEL.
      IF CANCEL = SPACE.
        DATA: S(80).
        S = NUMBYTES. CONDENSE S.
        CONCATENATE S 'Bytes heruntergeladen in Datei'(009)
          INTO S SEPARATED BY SPACE.
        PERFORM BD_TEXTBOX_VAR1_MSG(RSTXPDFT) USING 80
                                          S
                                          P_FILE.
      ENDIF.
    Regards,
    Jeet K Bhatt

  • Generate a new pdf report with itens on my pdf form

    Hi! My name is Heitor.
    I have Adobe Forms Central and Adobe Acrobat XI Pro installed on my machine.
    I would like to know if its possible to make a pdf report.
    Example: Clicking in a button "print" on my already open and filled pdf form, and gathering all my 30 itens (see that i am only showing 5 itens on my form. but on my form exists a "Add" button to add itens on variables) on a dropdown list and generating a new pdf report with all these itens listed.
    Thanks!
    Heitor Teixeira
    www.heitorteixeira.com

    Hi! My name is Heitor.
    I have Adobe Forms Central and Adobe Acrobat XI Pro installed on my machine.
    I would like to know if its possible to make a pdf report.
    Example: Clicking in a button "print" on my already open and filled pdf form, and gathering all my 30 itens (see that i am only showing 5 itens on my form. but on my form exists a "Add" button to add itens on variables) on a dropdown list and generating a new pdf report with all these itens listed.
    Thanks!
    Heitor Teixeira
    www.heitorteixeira.com

  • An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to ad

    An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to adapt the file to make its reading possible?
    Did somebody get the same problem?

    It is a high order probability that your SQL's report generator is creating the PDF, not Acrobat (which by design and EULA cannot be used in as/with server).
    That the report generator outputs to an old-old version of PDF bears this out.
    Wiki articles on PDF are very nice for those high level intro summaries.
    To know / understand PDF you purchase and study the ISO Standard for PDF (ISO 32000-1:2008).
    Rather than "PDF validation" you may want to consider addressing the appearent root cause of the problem(s).
    You can change the email2fax application to one that can deal with older PDF versions.
    You can change the report generator to one that can output to the ISO Standard.
    (Perhaps the in-use application can be configured to output to the current version of PDF (i.e., the ISO Standard).
    Be well...

  • Generate a PDF from Excel with a Digital Signature Field?

    Hello,
    I have an excel workbook that is filled out weekly- I then have to generate a PDF with a digital signature field for a manager to sign (vouching for the data).  I currently have to manually generate the PDF and then manually add a digital signature field.  Is there any way to generate the PDF from excel with a digital signature field that can then be signed?
    Thanks for any help
    -Nathan

    Moved to Acrobat forum.

  • How to populate Adobe LiveCycle Designer generated  PDF Forms with data from Database in Windows app

    Hi
    I have a PDF template designed in Adobe LiveCycle Designer. This template has form fields which needs to be filled with data programmatically. I am using windows application in C#.Net 2005 in which I want to retrieve data from database and merge this data into PDF form in respective fields.
    How this can be achieved?
    I searched a lot & I found that we can process the XDP file generated from PDF to acheive this. I created the XDP file out of the PDF template created in designer. But I don't know how to merge data from database into that XDP file in respective fields and again convert this XDP file back to PDF programmatically. Can anybody help me ? This is urgent.
    Thanks in advance.
    Sambhaji

    Please ignore the above code.<br />The following one is correct one.<br />using System;<br />using System.Data;<br />using System.Configuration;<br />using System.Web;<br />using System.Web.Security;<br />using System.Web.UI;<br />using System.Web.UI.WebControls;<br />using System.Web.UI.WebControls.WebParts;<br />using System.Web.UI.HtmlControls;<br />using System.Text;<br />public partial class _Default : System.Web.UI.Page <br />{<br />    protected void Page_Load(object sender, EventArgs e)<br />    {<br />        Response.ContentType = "application/vnd.adobe.xdp+xml";<br />        StringBuilder responseString = new StringBuilder();<br />        responseString.Append("<?xml version='1.0' encoding='UTF-8'?>");<br />        responseString.Append("<?xfa generator='AdobeLiveCycleDesigner_V8.0' APIVersion='2.5.6290.0'?>");<br />        responseString.Append("<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>");<br />        responseString.Append("<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>");<br />        responseString.Append("<xfa:data>");<br /><br />        responseString.Append("<form1>");<br />        responseString.Append("<TextField1>Homer</TextField1>");<br />        responseString.Append("<TextField2>Simpson</TextField2>");<br />        responseString.Append("<field name ='DropDownList1'>");<br />        responseString.Append("<items save='1'>");<br />        responseString.Append("<text>1</text>");<br />        responseString.Append("<text>2</text>");<br />        responseString.Append("<text>3</text>");<br />        responseString.Append("</items>");<br />        responseString.Append("</field>");<br /><br />        responseString.Append("</form1>");<br /><br />        responseString.Append("</xfa:data>");<br />        responseString.Append("</xfa:datasets>");<br />        responseString.Append("<pdf  href='C:\\Test.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />");<br />        responseString.Append("</xdp:xdp>");<br /><br />        Response.Write(responseString);<br />        Response.Flush();<br />        Response.End();<br />    }<br />}

  • Adobe 7, and opening a pdf file with a auto generated report

    We have upgraded to the latest version of a tool we use to generate reports. The older version, when you exported the report to a PDF file, it would open it in an internet broswer, IE 6/7 in this case, and just display the PDF in the browser.
    With the latest version of the reporting tool, when you export a report to a PDF file, it opens up a blank IE windows, and subsequently opens the autogenerated report in a separate Adobe Reader window, but it does not have the primary focus. It pop's under the blank IE window. This causes a lot of confusion to our employees who are not computer savvy as they are not aware the PDF actually opened since the window did not get primary focus on the screen.
    The company which writes the tool for us says there are no changes to the way it auto generates the pdf file, and insists it has nothing to do with their software.
    We decided to dig a little deeper and only found one difference between the old and the new software.
    Old - Content-Type: application/pdf
    New - Content-Type: application/pdf;charset=UTF-8
    Would that command cause our problems? It almost seems at though Adobe 7 plugin in IE7 doesn't recognize the "charset=UTF-8" and dumps the pdf to the full Adobe reader.
    If anybody has any insight, or would need some more info to help solve the problem just let me know.
    Also, we have to stay with Adobe 7, since all 7000+ computer's this affects have identical images, and upgrading to a new version costs $$$$ and has to go through massive channels.

    Welcome To  Discussions Kathy216!
    If these are files, that are already on the Hard Drive, click once on a pdf document to highlight it.
    Press the Command + I keys, to Get Info.
    Click on the ▼ Disclosure Triangle for Open with:.
    Select Adobe if listed. If it is not listed, select Other..., and navigate to Adobe, and press Add.
    In the Get Info window, click on Change All.
    If these are pdf documents, that you are viewing on the Internet, a handy utility to use is PDF Browser Plugin.
    ali b

  • Latvian Language support for generated PDF's with FPDF module for PHP

    Hello !
    I have a problem with Adobe Reader for Android. I am working with online PDF creation with PHP module named FPDF.
    With FPDF module for PHP you can create PDF's online.
    The problem is that - when generated PDF appears on phone it doesn't show Latvian language ( cp1257 or  ISO-8859-13 for example ). For example - "ŗķļņž" and "ŖĶĻŅŽ" is shown with other symbols.
    However opening the same file with standart app "Polaris Office" - the text is show as it used to be, without problem.
    Strange bug, that i can't fix from PHP ( Tried a lot of decodes and encodes ). Also i have saved PHP file with different encodings - nothing helped.

    You might ask about this in the regular forum. There are several form experts there that may be able to help you.

Maybe you are looking for