Generate PDF format from ABAP List using 'RSPO_SR_OPEN'

Hi All,
I need some help on the following code. I have 2 cases.
First case:
I am using the function Module 'RSPO_SR_OPEN' to create spool from the List Output.
Once I get the Spool number from Above function Module I will submit it through report RSTXPDF5 to get spool request for PDF data created.
I will use this spool number in the report RSTXPDFT5 to download it to Local system in PDF format.
PDF will be generated but I am unable to open the PDF, some conversion error.
Second Case:
Instead of using function Module 'RSPO_SR_OPEN' , I will use standard Print button on the application toll bar to generate the spool number and then remaining step follows.
In this case PDF file is generating as per the requirement.
Now my question is why system does not work properly when I am using function module 'RSPO_SR_OPEN' .
I have attached the code for your reference:
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'EMAIL'.
IF SY-LSIND EQ 1.
Send mail to User ID
PERFORM SEND_MAIL.
LEAVE TO LIST-PROCESSING.
ENDIF.
WHEN 'MM03'.
SET PARAMETER ID 'MAT' FIELD I_MARA-MATNR.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
WHEN 'LIST'.
data: pdf_spoolid like tsp01-rqident.
data: gd_spool_nr1(11) type c,
      gd_spool_nr2(10) type c.
RANGES : R_SPOOL FOR TSP01-RQTITLE.
Function Module to Create Spool Number
  call function 'RSPO_SR_OPEN'
       exporting
            dest             =  c_device
            LAYOUT           = 'X_65_200'
            copies           = '1'
            doctype          = 'LIST'
       importing
            spoolid          = gd_spool_nr
       exceptions
            operation_failed = 1
            others           = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Report to Generate spool number for PDF convert
submit RSTXPDF5 with spoolno  = gd_spool_nr
                with dstdevic = 'LOCL' and return .
if sy-subrc eq 0.
gd_spool_nr2 = gd_spool_nr.
condense gd_spool_nr2 no-gaps.
concatenate '00000' gd_spool_nr2 '*' into gd_spool_nr1.
R_SPOOL-LOW     = gd_spool_nr1.
R_SPOOL-OPTION  = 'CP'.
R_SPOOL-SIGN     = 'I' .
APPEND R_SPOOL.
To select PDF Spool Number from TSP01 based on Title
select single * from tsp01 where rqtitle IN R_SPOOL.
if sy-subrc eq 0.
Report to Download PDF spool to GUI
  submit RSTXPDFT5 with spoolid = tsp01-rqident and return.
endif.
endif.
ENDCASE.
Thanks & Regards,
Nagaraj

Hi,
Check this code,
REPORT  Z_CREATE_PDF_ABAPLIST NO STANDARD PAGE HEADING.
PF-status containing a PDF button in the report Output to generate
PDF form
SET PF-STATUS 'Z_PDF'.
*Table Declarations
TABLES: MARA, MARC, MAKT.
Internal Table Declarations
DATA: BEGIN OF TS_MARA OCCURS 0,
         MATNR LIKE MARA-MATNR,
         MTART LIKE MARA-MTART,
         MATKL LIKE MARA-MATKL,
         LVORM LIKE MARA-LVORM,
         WERKS LIKE MARC-WERKS,
         MAKTX LIKE MAKT-MAKTX,
       END   OF TS_MARA.
Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK B1.
  SELECT-OPTIONS: S_MATNR FOR MARA-MATNR OBLIGATORY,
                  S_WERKS FOR MARC-WERKS OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
TOP-OF-PAGE.
write: 40 'Generating PDF from List Output' color 1 intensified on.
  skip 1.
  write: /1 'Date        :',  SY-DATUM,
         /1 'User ID     :',  SY-UNAME,
         /1(112) SY-ULINE.
START-OF-SELECTION.
Perform for Basic Selection
PERFORM GET_MARA.
Perform to Display Data
PERFORM DISPLAY_MARA.
AT USER-COMMAND.
User Command to generate PDF Form
  AT USER-COMMAND.
  CASE SY-UCOMM.
    WHEN 'PDF'.
    DATA: L_PARAMS TYPE PRI_PARAMS,
            L_VALID TYPE STRING,
            W_SPOOL_NR LIKE TSP01-RQIDENT.
TO GET PRINT PARAMETERS
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        IMPORTING
          OUT_PARAMETERS = L_PARAMS
          VALID          = L_VALID.
      IF SY-SUBRC <> 0.
      ENDIF.
Internal table for Selection Screen
DATA: BEGIN OF I_RSPARAMS OCCURS 0.
       INCLUDE STRUCTURE RSPARAMS.
DATA: END OF I_RSPARAMS.
Store the current selection screen details
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
  EXPORTING
    CURR_REPORT           = SY-REPID
IMPORTING
  SP                    =
  TABLES
    SELECTION_TABLE       = I_RSPARAMS
EXCEPTIONS
  NOT_FOUND             = 1
  NO_REPORT             = 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.
SUBMIT TO GET THE SPOOL NUMBER
SUBMIT Z_CREATE_PDF_ABAPLIST WITH SELECTION-TABLE I_RSPARAMS
                             TO SAP-SPOOL
                             SPOOL PARAMETERS L_PARAMS
                             WITHOUT SPOOL DYNPRO
                             AND RETURN.
SELECT THE RECENTLY CREATED SPOOL
      SELECT MAX( RQIDENT ) INTO W_SPOOL_NR FROM TSP01
                                 WHERE RQCLIENT = SY-MANDT
                                 AND   RQOWNER  = SY-UNAME.
*REPORT TO GENERATE SPOOL NUMBER FOR PDF CONVERT
      SUBMIT RSTXPDF5 WITH SPOOLNO  = W_SPOOL_NR
                      WITH DSTDEVIC = 'LOCL' AND RETURN .
      IF SY-SUBRC EQ 0.
        CLEAR W_SPOOL_NR.
SELECT THE RECENTLY CREATED SPOOL FOR PDF
        SELECT MAX( RQIDENT ) INTO W_SPOOL_NR FROM TSP01
                                   WHERE RQCLIENT = SY-MANDT
                                   AND   RQOWNER  = SY-UNAME.
*REPORT TO DOWNLOAD PDF SPOOL TO GUI
        SUBMIT RSTXPDFT5 WITH SPOOLID = W_SPOOL_NR
                         AND RETURN.
      ENDIF.
  ENDCASE.
*&      Form  GET_MARA
      text
-->  p1        text
<--  p2        text
FORM GET_MARA .
CLEAR  : TS_MARA.
REFRESH: TS_MARA.
To select Materials based on Selection Criteria
SELECT A~MATNR A~MTART A~MATKL A~LVORM B~WERKS INTO CORRESPONDING
                           FIELDS OF TABLE TS_MARA FROM MARA AS A
                           INNER JOIN MARC AS B ON A~MATNR EQ B~MATNR
                           WHERE A~MATNR IN S_MATNR
                           AND   B~WERKS IN S_WERKS.
LOOP AT TS_MARA.
   SELECT SINGLE * FROM MAKT WHERE MATNR EQ TS_MARA-MATNR
                             AND   SPRAS EQ SY-LANGU.
   MOVE MAKT-MAKTX TO TS_MARA-MAKTX.
   MODIFY TS_MARA INDEX SY-TABIX.
ENDLOOP.
ENDFORM.                    " GET_MARA
*&      Form  DISPLAY_MARA
      text
-->  p1        text
<--  p2        text
FORM DISPLAY_MARA .
CLEAR  : TS_MARA.
WRITE: /1   '|', 2(18)  'Material Number' COLOR 7,
         21  '|', 22(5)  'Plant          ' COLOR 7,
         28  '|', 29(13) 'Material Type  ' COLOR 7,
         42  '|', 43(14) 'Material Group ' COLOR 7,
         57  '|', 58(13) 'Deletion Flag  ' COLOR 7,
         71  '|', 72(40) 'Description    ' COLOR 7,
         112 '|'.
WRITE: /1(112) SY-ULINE.
LOOP AT TS_MARA.
  WRITE: /1   '|', 2(18)   TS_MARA-MATNR,
          21  '|', 22(5)   TS_MARA-WERKS,
          28  '|', 29(13)  TS_MARA-MTART,
          42  '|', 43(14)  TS_MARA-MATKL,
          57  '|', 58(13)  TS_MARA-LVORM,
          71  '|', 72(40)  TS_MARA-MAKTX,
          112 '|'.
WRITE: /1(112) SY-ULINE.
ENDLOOP.
ENDFORM.                    " DISPLAY_MARA
Thanks & Regards,
Nagaraj Kalbavi

Similar Messages

  • Generate PDF file from a report using greek characters

    Dear all,
    I tried to generate a PDF file from a Report having greek characters on it.While in previewer I could see everything OK, when PDF file was generated all greek characters had been substituted by symbols...
    Any ideas, suggestions and workarounds are welcome.
    Thanx a lot!

    hi Kiriakos,
    which version are you using ?
    please test this with reports 9i since PDF support
    has been enhanced there.
    to test i would suggest to run the report from rwclient
    as well and specify desformat=pdf and to a generate to
    file within builder to see if the same behavior occurs.
    if this problem reproduces there as well i suggest
    to contact oracle support to log the problem.
    regards,
    christian

  • How to generate PDF file from HTML file using Acrobat API's

    Hi,
    I want to generate a PDF file from an HTML file on server side(C# .Net).
    Their is a COM interop called "AcrobatWeb2PDF" availaible but could not find any document regarding how to use it.
    I cant use "Adobe live cycle PDF Generator" as we just have license for Adobe Acrobat 8 Professional.
    Please help...
    Thanks and Regards,
    Anand Mahadik.

    > It is hard to believe that Adobe doesn't provide a toolkit for generating PDF files, so many web based applications have vector based content that needs to be converted to PDF!!!!
    They do, it's just not free (A company in business to make money? I'm sure IBM would never think this way... ;)). As mentioned you have Adobe LiveCycle PDF Generator, which you can customize and extend with Java. You also have the Adobe PDF Library SDK, which is written for use with C/C++ although if you license it from Datalogics (the only company in NA Adobe allows to license the PDF Library) you will also get .NET and Java interfaces (part of the DLE - DataLogics Extensions).
    > There must be a way to generate PDF dynamically on a server or from Javascript!
    JavaScript? Not really, no. As far as I'm aware JavaScript has no file system access capabilities without some form of intermediary (like sending the data to a webservice that writes it out to file). How would you create a PDF file with JavaScript?
    The PDF Standard is also in ISOs hands now (ISO 32000-1:2008), it is no longer owned by Adobe - you can download a copy of the specification from them and write your own library based on that as well.

  • Standard routine to generate PDF format  from Spool

    Hi,
    I have a requirement where I need to pick the Spool for the report and convert that in to PDF later that needs to be stored on Application server.  
    Any early response will be rewarded

    Hi Nikhil,
    See if the following code helps you.
      DATA: num_bytes TYPE i,
       pdf_spoolid LIKE tsp01-rqident,
       job_name LIKE tbtcjob-jobname,
       job_count LIKE tbtcjob-jobcount,
       pdf LIKE tline OCCURS 100 WITH HEADER LINE,
    *give the filename along with the path
       file_name LIKE rlgrap-filename default 'file_name'.
    Get spool requests
      SELECT * FROM tsp01 INTO TABLE tsp01_itab
       WHERE rq0name = 'LIST1S' AND rq2name LIKE 'YOUR_REPORT_NAME%' AND
             rqowner = sy-uname.
      LOOP AT tsp01_itab.
      Convert spool request into PDF file
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
             EXPORTING
                  src_spoolid              = tsp01_itab-rqident
                  no_dialog                = 'X'
             IMPORTING
                  pdf_bytecount            = num_bytes
                  pdf_spoolid              = pdf_spoolid
                  btc_jobname              = job_name
                  btc_jobcount             = job_count
             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.
        CHECK sy-subrc = 0.
        CONDENSE file_name NO-GAPS.
      Download file to application server
        OPEN DATASET file_name FOR OUTPUT IN BINARY MODE.
        LOOP AT pdf.
          TRANSFER pdf TO file_name.
        ENDLOOP.
        CLOSE DATASET file_name. 
      ENDLOOP.
    Reeta.

  • How To Generate And Print Reports In PDF Format From EBS With The UTF8 Char

    Hi,
    I want to know How To Generate And Print Reports In PDF Format From EBS With The UTF8 Character Set in R12.0.4.
    Regards

    Refer to Note: 239196.1 - PASTA 3.0 Release Information
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=239196.1
    Or, you can use XML Publisher.
    Note: 551591.1 - Need Latest XML Publisher / BI Publisher Patches For R12
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=551591.1

  • How can I print PDF attachments from ABAP report in transaction ME23N?

    Hi,
    Users attach PDF files using "services for objects" in transaction ME23N.
    How can I print the PDF attachments from ABAP report ?
    Thanks in advance,,

    Hi,
      check this link,this might help you to solve your problem
    /people/thomas.jung3/blog/2005/04/28/setting-up-an-adobe-writer-for-abap-output
    Regards
    Kiran Sure

  • Error while Generating PDF file from Datagridview .

    Hi every one,
         I'm trying to generate pdf file from datagridview,while executing my code getting nullvalue exception..
    Here is my code:
    private void btnexportPDF_Click(object sender, EventArgs e)
                //Creating iTextSharp Table from the DataTable data
                PdfPTable pdfTable = new PdfPTable(dataGridView1.ColumnCount);
                pdfTable.DefaultCell.Padding = 3;
                pdfTable.WidthPercentage = 30;
                pdfTable.HorizontalAlignment = Element.ALIGN_LEFT;
                pdfTable.DefaultCell.BorderWidth = 1;
                //Adding Header row
                foreach (DataGridViewColumn column in dataGridView1.Columns)
                    PdfPCell cell = new PdfPCell(new Phrase(column.HeaderText));
                    cell.BackgroundColor = new iTextSharp.text.BaseColor(240, 240, 240);
                    pdfTable.AddCell(cell);
                //Adding DataRow
                foreach (DataGridViewRow row in dataGridView1.Rows)
                    foreach (DataGridViewCell cell in row.Cells)
                        pdfTable.AddCell(cell.Value.ToString());//nullvalue exception
                //Exporting to PDF
                string folderPath = "C:\\PDFs\\";
                if (!Directory.Exists(folderPath))
                    Directory.CreateDirectory(folderPath);
                using (FileStream stream = new FileStream(folderPath + "DataGridViewExport.pdf", FileMode.Create))
                    Document pdfDoc = new Document(PageSize.A2, 10f, 10f, 10f, 0f);
                    PdfWriter.GetInstance(pdfDoc, stream);
                    pdfDoc.Open();
                    pdfDoc.Add(pdfTable);
                    pdfDoc.Close();
                    stream.Close();
    Thanks & Regards RAJENDRAN M

    Hi Rajendran,
    The second question is about the usage of iTextSharp library, which is not a MS product, please post in their forum for help:
    http://support.itextpdf.com/forum
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I get missing plug-in error when opening my online bill which is in PDF format. I am using a 2010 Macbook with the latest version of Safari and Adobe suite installed in my computer. Why do I get this error? What should I do?

    I get missing plug-in error when opening my online bill which is in PDF format. I am using a 2010 Macbook with the latest version of Safari and Adobe suite installed in my computer. Why do I get this error? What should I do?

    In relation to my previous inquiry regarding inability to view a pdf file using Safari...
    Is it possible that I can view other online bills from other website but not this particular bill from one specific website?
    Sorry if I missed any important point in this article -->Apple Safari 5.1 and Adobe Reader/Acrobat Advisory
    Thanks again!

  • Generated pdf file from oracle reports show bad characters

    Hello all,
    Iam fighting with a problem with generated pdf file from oracle reports which show some bad characters. I was searching for some information but it didnt help...
    I have Oracle Database 11g R2 (or 10g R2) on Oracle Linux or Windows, Oracle forms and reports 6i (i know that is very old and not supported with 11gr2 but we are in this scenario).
    NLS parameters are set like this
    server:
    NLS_CHARACTERSET EE8MSWIN1250
    NLS_TERRITORY AMERICA
    NLS_LANGUAGE AMERICAN
    client:
    NLS_CHARACTERSET EE8MSWIN1250
    NLS_TERRITORY SLOVAK
    NLS_LANGUAGE SLOVAKIA
    When I run Oracle Reports it show perfect in display and when I try to print them, they are all good with good characters, but when I try to generate pdf file, some characters like č,š,ľ are not displaying corectly... This happen only when try to generate to pdf...
    I try to work with uifont.ali on client side but without any result. Fonts for reports were installed on client and server side... Can someone help me with this problem? Thank you very much for every advice.
    Martin

    Hi Sergiusz,
    Thank you for your reply. I look at what you wrote and try to make some test...
    1) For first I download FontForge, which can generate type1 font from true type. So I open FontForge and open my Arial.ttf font and use "Generate Fonts" to save my Arial.ttf font to pfb and pfm (whoch are need to set in uifont.ali). I have to change encoding, because my font has 2byte encoding so I reecondode the font from ISO10646-1 to ISO8859-2 and generate to pfb.
    2) Then I navigate REPORTS_PATH from regedit to my *.pfm and *.pfb files.
    3) I add these lines to end of my uifont.ali
    [ PDF:Embed ]
    Arial = "Arial.pfm Arial.pfb"
    ArialNarrow = "ArialNarrow.pfm ArialNarrow.pfb"
    4) Then I generate my report but nothing change... I check "Font used" in my pdf file, but there were not my fonts embedded I guess..
    I also try PDF:Subset, but it doesnt change anything... I try PDF aliasing to see if my uifont is working - this work very well, but I dont need to change font...
    Any other advice? Thank you so much to everyone!
    Martin

  • Generate PDF documents from Oracle PL/SQL

    Hi All,
    we are working on a PL/SQL project, named PL/PDF, for generate PDF documents from Oracle PL/SQL language. We are looking for PL/SQL programmers for beta testing. If you are an enquirer in this topic, please send an email to [email protected]
    Thanks,
    LL

    You will need to use form fields. You may be able to use adjustible size form fields in Designer. You might try to ask in the Designer forum for help.

  • Print BDS document(in PDF format) from SAP R/3

    Hello ,
    I have a requirement to print BDS document(in PDF format) from SAP R/3 without user interaction.
    In simple way, if I execute the program - PDF document will get printed on local default printer.
    Please help me if anybody worked on similar requirement.
    Thank you very much,
    Liliya

    Hi Liliya,
    First you should create a smartform for BDS  Layout and give output parameter like this..
      wa_param-langu     = sy-langu.
      wa_param-no_dialog = 'X'.
      wa_param-getotf = 'X'.
      wa_param-DEVICE = '     '.                               " (here you can give the path of your printer)
      lv_output_options-tdnewid = 'X'.                      "Print parameters,
      lv_output_options-tddelete = space.                "Print parameters,
      lv_output_options-tdnoprev    = 'X' .
       lv_output_options-TDIMMED    = 'X' .               " it will give the immediate output of form in given output device
    I hope it will help you.....
    Enjoy...

  • Problem with opening PDF files from JSF page using SDO

    Hi all,
    I'm new with JSF and was attempting to read a PDF file from a Database using SDO and JSF. The code below throws an exception when casting from DataObject to Blob. The getLcDoc() method was created by WSAD when I dragged an SDO relational record onto the JSF page. This method returns an DataObject type which I tried casting to a Blob type before using it further. However, an exception is thrown.
    Any feedback is appreciated.
    Arv
    try {
                   FacesContext faces = FacesContext.getCurrentInstance();
                   HttpServletResponse response =(HttpServletResponse) faces.getExternalContext().getResponse();
                   Blob file= (Blob)getLcDoc().get("ATTACH");
                   int iLength = (int)(file.length());
                   response.setHeader("Content-type", "application/pdf");
                   response.setHeader("Content-Disposition", "inline; filename=Attachment");
                   response.setHeader("Expires","0");
                   response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
                   response.setHeader("Pragma","public");
                   response.setContentLength(iLength);
                   ServletOutputStream os = response.getOutputStream();
                   InputStream in = null;
                   in = file.getBinaryStream();
                   byte buff[] = new byte[1024];
                   while (true) {
                   int i = in.read(buff);
                   if (i<0) break;
                   os.write(buff,0,i);
                   os.flush();
                   os.close();
         } catch(Exception ex){
              System.out.println("Error while reading file : " + ex.getMessage());
         }

    Hi...I found out that there is actually no need to use a Blob object at all. You can simply call the OutputStreams write() method and pass the DataObject.getBytes() method that returns a byte[] array. The revised code is shown at the end of this posting.
    However, a few other teething problems exist:
    1. This works well only if I specify the content type in response.setHeader() method. What if my users upload different types of files, is there a way that the browser opens according to the file type without setting the content type?
    2. I still have a problem opening PDF files, even if I specify - response.setHeader("Content-type", "application/pdf");
    I get the message - The file is damaged and could not be repaired
    3. I would also like this to open the attachment in a new window and using target="_blank" doesn't seem to work as seen below:
    <h:commandLink
                                                 styleClass="commandLink" id="link1" action="#{pc_DocumentDetailsRead.doLink1Action}" target="_blank">
                                                 <h:outputText id="text5" styleClass="outputText"
                                                      value="Click Here"></h:outputText>
                                            </h:commandLink>
    ------------------------Revised code-----------------------------------------
    FacesContext faces = FacesContext.getCurrentInstance();
                   HttpServletResponse response =(HttpServletResponse) faces.getExternalContext().getResponse();
                   response.setHeader("Content-type", "application/msword");
                   response.setHeader("Content-Disposition", "inline; filename=Attachment");
                   response.setHeader("Expires","0");
                   response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
                   response.setHeader("Pragma","public");
                   ServletOutputStream os = response.getOutputStream();
                   os.write(getLcDoc().getBytes("ATTACH"));
                   os.flush();
                   os.close();

  • When trying to generate pdf file from firefox 7.0.1 , getting corrupt content error, used to work with previous versions of firefox

    We have done toleration testing on firefox version 5 thru 6 and haven't got an issue with our website generating pdf files for our users. One of our users upgraded to firefox version 7.0.1 and they tried to generate a pdf report, now a screen pops up with Corrupted Content Error The page you are trying to view cannot be shown because an error in the data transmission was detected. I recreated this issue on my pc yesterday by installing firefox 7.0.1. Any hints as to what I need to look at would help. Cannot provide the url because it is a secure website for law enforcement. Thanks.

    You can turn off compatibility checking, but more and more of the Google Toolbar will not work. Google is no longer supporting the Google Toolbar so you should use the alternatives.
    Hi Mark,
    See http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
    If you have an aspect that is not covered, indicate what that is; otherwise, expect you to be fully functional within 1-2 weeks.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • How to generate PDF copy of invoice list

    Hi All,
    I need a favor from you in helping to generate a PDF copy to invoice list .
    I observed that  spool is not generated for this print output of invoice list but output successfully triggered.
    we have z report (zretrieval ) to generated the PDF  but it's not allowed to generate PDF.
    I tried alternative method by saving the print preview but I can able to save only that particular page.
    our business looking for all invoice list pages in single pdf  so please guide me to proceed further.
    Regards
    Srinivasa Reddy

    I presume your issue is output triggered but PDF file is not generating if the invoice list goes for multiple pages.  If this is correct, then you need to talk to your ABAPer as they only, have to check the  smartform being used for invoice list.
    G. Lakshmipathi

  • Pdf created from FrameMaker book using FDK is of bigger size

    Hi,
    I am new to FrameMaker, when trying to generate a pdf document from a FrameMaker book using FDK, the size of the pdf file created is big when compared to the pdf created using “Save As PDF” from FrameMaker. I have tried setting Named Destinations to false and also “PDF Job Options” to “Smallest File Size”.
    Below is the code we use to create a pdf file using FDK
    //Open the frame book to process document by document
    bookId = OpenFile(strFile);
    /* Get docId in order to set Acrobat Bookmark levels */
    docId = F_ApiGetId(FV_SessionId, FV_SessionId, FP_FirstOpenDoc);
    F_ApiSetInt(FV_SessionId,bookId,FP_PDFBookmark,True);
    F_ApiSetInt(FV_SessionId,bookId,FP_PDFJobOption,6);
    /* Sets "Body" to the highest Acrobat Bookmark level. */
    pgfId = F_ApiGetNamedObject(docId, FO_PgfFmt, StringT("Body"));
    F_ApiSetInt(docId, pgfId, FP_AcrobatLevel, 1);
    F_ApiSimpleSave(docId, name, False);
    /* Sets the save parameters so as to save as PDF and allow user to name file.*/
    params = F_ApiGetSaveDefaultParams();
    i = F_ApiGetPropIndex(&params, FS_FileType);
    params.val[i].propVal.u.ival = FV_SaveFmtPdf;
    i = F_ApiGetPropIndex(&params, FP_PDFAllNamedDestinations);
    params.val[i].propVal.u.ival = (IntT)False;
    i = F_ApiGetPropIndex(&params, FP_PDFJobOption);
    params.val[i].propVal.u.sval = F_StrCopyString ((StringT)"Smallest File Size");
    /* Saves the book and all its components to one PDF file */
    int_SaveID = F_ApiSave(bookId, StringT(strTargetFile), &params, &returnParams);
    /* Close the open files.*/
    F_ApiDeallocatePropVals(&params);
    F_ApiDeallocatePropVals(returnParams);
    CloseFile(bookId);
    Can anyone suggest a way to reduce the size of the pdf file
    Thanks,
    Neeraja

    Are these duplicates side-by-side (e.g. A and then A again) or one after another (A, B, C... and then A, B, C...)?
    If they're one set after another, FM picks up the list of paratags to include in the bookmarks list from the first file in the book, so if this doesn' contain everything, it might help to import the additional formats into that one. Then clear/remove the exisiting bookmarks and only add back the Titles and Heading1 bookmarks (check that the TOC ones remain in the Don't include list).

Maybe you are looking for

  • How to find all values from Minimum to Maximum?

    Post Author: newcruser CA Forum: Formula @Minimum DatePart("h",(Minimum ())) @Maximum DatePart("h",(Maximum()))

  • I use to keep all my Mini DV Tapes WHAT now with AVCHD Format ?

    I started shooting video way back in the seventies using tape and graduated to Mini DV in the nineties. NOW I have upgraded to a Panasonic TM700 AVCHD camera that records to flash memory. I always kept my tapes as backups, never re-using them. Now wi

  • Enterprise link - transform

    hi I've installed BAM, and i'm following the TechNote document "TechNote_BAM_ReadingExternalTableintoADC". However i can't have access to any Transform object. i fixed the problem Message was edited by: psi

  • Techniques of recursion

    Although I can manage my way through recursive implementations. i want to train more in it like how actually Java implements it and also tough problems that the recursive approach can solve... No

  • No preinstalled iphoto

    I just recently bought a new mac book air 2012 version and no iphoto or ilife has been preinstalled on the computer.When trying to download the app from the app-store, it costs me 14$. Shouldn't it be preinstalled? How can I access Iphoto for free?