Need to upload a bill in pdf format to be viewed in biller direct screen

Well requirement is to view a bill(invoice) from the given format to pdf format on biller direct screen(UCES SCREEN), a web portal.
Now ,first i have to change the invoice from its current format to pdf ,and
Secondly,I have to send it to the web portal...so which FM makes a pdf file go to a remote server
Thirdly,I need a suggestion too..ie. whether the bill should be called from the database only?If so how to save the bill in pdf format in database server.
Any help will be appreciated and duely rewarded.
Thank you,
Pranab

well thanks for your reply.
But what about calling the pdf from the web portal or uploading the pdf view in web portal?
Means that when I click on pdf icon on that portal........it calls a bill in pdf format from SAP r/3.

Similar Messages

  • Shipping legacy MSDS uploaded which are in pdf format

    Hi Friends,
    Do not get mislead by Questiom Here is the requirement.
    In our project, We have imported legacy MSDS in PDF format. For this we created a program to upload legacy MSDS in PDF format.
    The generation variants are of type "MSDS" and not "IBD_MSDS" type.
    So all imported PDF MSDS are visible in CG54 as released MSDS. So here is the requirement.
    Immediately after go-live there will be no MSDS generated in SAP EHS system by WWI server.
    So if I want to ship the MSDS which is stored in PDF format, how to achive this.
    Standard scenarion of shippping is working. but this issue we need to resolve. Kindly help if I need to do any configuration or Developement.
    Note:- I am getting error as "File not found".
    Thanks.
    WIth Warm Regards
    Mangesh Pande

    Dear Mangesh
    in regards of:
    I am able to ship reports which are generated through WWI with generation variant of report category "MSDS".
    Congratulation. One process is up and running. Now you need to "establish simply" a "similar" customizing in context of "IBD_MSDS". This is not easy. I know. BUt it is possible. But first, as I have tried to explain, you need to have a super perfect very good blueprint. (considering your current and future situation in which you may be would like to dispatch normal WWI reports)
    It is nearly  not possible to explain to you the "millions" of pitfalls in your situation (but you can prepare such a set up as your situation is quite common, normal and "standard"; especsially if you have the need to migrate data (but other options exists as well to do the job)). In most cases (according to my experience in your situation) you will need at least a project running for 6 months to establish a robust process to support both document types in the "same" disptach process.
    PDF format is a quite normal format for such "business scenarios" you have. The issues is youre "wording":
    "After go-live for some days there would not be generation of MSDS in CG54 as new versions of MSDS would not be generated in CG54." => this leads to the "interpretation" that at later point in time normal WWI reports might be used and this is the "trick" (if you really have a very very good picture about how SAP has designed the SDS dispatch process). => coming to the main point: you will use a lot of SAP EHS standard customizing but you must develop of lots of customer specific function moduls to get a solution
    C.B.

  • How to create a link on a biller direct screen for downloading a pdf file

    Hi,
    My requirement is to create link on biller direct screen, when I click on that link a pdf document will be downloaded in local system. I need help on that

    contd from previous post, excerpt from BD config guide:
    Web Application
    3. Displaying the bill document
    The Web application displays the bill document.
    If the bill document is displayed using a separate Web server (for example,
    the Web server of an optical archive), then the URL for displaying the bill details
    can be transferred at event 1235 when you create the bill list. The BAdI
    FIS_INVOICEDETAIL is not called, but the Web application sends an HTTP
    request to this URL. Since the Web application requests the bill data by request
    to the Web server for bill details, the Web server does not need to have an
    authentication mechanism. SAP delivers an example implementation for
    accessing a Web server for bill details.
    Connecting Other Billing Applications
    As described above, SAP Biller Direct only makes available the display of bills from Sales and
    Distribution (SD) in PDF format. If you want to use this function for bills with a different origin,
    you need to proceed as follows. See the BAdI documentation for further details.
    1. Create an implementation for event 1235. You have to set indicator XXML, XPDF, or
    XMULTARCH (or all three) in table T_INVOICES so that a customer is able to load
    XML or PDF data in the front end of SAP Biller Direct. Technically, this means you
    ensure that the appropriate icons are shown.
    2. Implement BAdI FIS_INVOICEDETAIL. This BAdI is called by the front end if the
    customer selects the corresponding link. You can determine the required format using
    I_INVOICE_FORMATS. Create the corresponding binary data, and fill table T_XML,
    T_PDF or T_MULTIPLE_ARCHIVED_DOCS (or all three).
    3. Then set indicator XXML, XPDF or XMULTARCH (or all three) in structure
    C_INVOICE_FORMATS.
    My Questions:
    1. My PDFs are stored on a web server as described in step 3, does that mean that I don't need to use the BADI? How are these URLs generated? Does BD automatically know how to retrieve them from archivelink?
    2. My documents are insurance bills, not S&D bills. Does that mean that I need to use the BADI as described in "connecting other billing applications"?
    To me there is a lot of ambiguity in the way this is described in the configuration guide. Could use some help with the interpretation.

  • How to create a link on biller direct screen for downloading bill in PDF

    Hi,
    Our requirement is to create a link on UCES Biller Direct screen, where user can click and down load his bill or invoice in PDF format.
    If any one can help me on this I will be highly thankful to him.
    Regrds,
    Ranadev

    Hi,
    Our requirement is to create a link on UCES Biller Direct screen, where user can click and down load his bill or invoice in PDF format.
    If any one can help me on this I will be highly thankful to him.
    Regrds,
    Ranadev

  • Customise Biller Directs screen

    hi,
    Can we customise (enable disable buttons) the Biller Directs screen (frameset_top_html.jsp) ?
    If yes then from where.
    Thanks,

    Hi Deepak,
    required change is:
    Open a query, Select Values for Variables popup appears, Choose the "Select from List" option to open the Select values dialogue box.
    This box is opened as standard with History. I would like to know if there is the possibility to open it with Favorties or Single Values instead and if this can be customised for each user.
    Br
    Stefan

  • Uploading files only in PDF format

    Hi Friends,
        I have requirment in my application that i need to upload file in the content Managment
    The File should be of type PDF only.
    The issue is like this when i get a dialog box for selecting the file,
    I should be able to select files only with the extension of PDF.
    if some other file is being selected i should get popup specifying illegal format of file.
    Any replies will be thanked in advance.
    Regards
    Nawal Kishore

    The tag for file upload [ <thtmlb:fileUpload> ] has an attribute onUpload to which you can assign a event name. This event will be triggered when a file is uploaded. You can code you validation for the required mime type within this event.
    Please refer the view FileUploadTag in the component CRM_THTMLB_COMP for sample code.
    Regards
    Kathirvel

  • Exporting PDF format for web viewing, fonts look bad

    Hey everybody I'm relatively new to indesign so sorry if this is a simple one. I'm doing a newsletter in indesign, which will be used stricktly for web viewing. Whenever I export the file as a pdf the body text fonts look a bit off, as though they are slightly pixelated around the edges. This is not as noticable in the artcile titles with larger font, but any smaller font (i'm using size 14, and futura book) and it gets this pixelation, it is even more noticeable in the thinner type sets of the font. Another odd thing is the first page of the newsletter the fonts are more messed up looking than the following pages where the same font types and sizes are used, the only major difference is the first page has a photo on it, but the fonts that look weird are below the photo not overlaying it or anything like that. I turned off all the compression on the pdf export, also tried it will varying amounts of compression but still have the same issue. And I am viewing this in Mac's Preview program, not acrobat.

    Ok, just checked through all the flattening preview highlights and everything looked fine in that. Since my exported document looked perfectly fine in acrobat, but sort of pixelated in mac's preview, is there any way around that?
    If you are serving the PDF via a web address it will very likely be viewed in a browser (not downloaded and opened in an app like Preview or Reader). All of the browser displays have slightly different anti-aliasing, which you can see if you zoom in on a screen capture of the text. Here's a line of text from your PDF at 100%, magnified to 400% in Photoshop. From top to bottom Safari, Chrome, Firefox:
    There's nothing you can do about the anti-aliasing quality of the different browsers and apps. The PDF you posted has live transparency, so it isn't a flattening issue.

  • Print report parameter and column headers PDF format from Discoverer Viewer

    Hi,
    From Discoverer Viewer 4i I'm presently using the printer friendly version to print my workbooks. I would like to know if their is a way to include report parameters and print column headers on every page.
    I would appreciate any pointers or workarounds to this issue at the earliest.
    Thanks
    T

    Hi T
    I don't think this is possible with 4i.
    Have you considered upgrading to 10g R2?
    Best wishes
    Michael

  • Customizing Biller Direct application

    Hi,
    We are all set for customizing biller direct business package, and when about to begin, client came up with some questions.
    What would be the impact of Patch updates or future upgrades on customization?
    Our idea is to follow the modification guide... according to which, business package is delivered with a folder to include customer developments... as project demands, we need to copy existing biller direct screen and modify it to client's requirement.
    The point of doubt is that SAP as delivered with current version of business package, it might deliver the customeExtension folder along with future upgrades or updates. This might result in deletion of custom developments during every upgrade/update. How do we justify to this? Ideally, SAP upgrades should only effect SAP delivered objects and not customer extension... but how do we convey the same to client?
    Thanks and regards,
    Nrisimhanadh Yandamuri

    Hi,
    Thank you Sridhar.
    Is this do we need to do in java programming?
    Below is a little more background of the question
    From the java action class I have to call a BAPI to get the variant.
    I have to set the variant that I got as it is in another Function Module, say FM-1.
    I have to pass three additional parameters to the above functional module.
    When I ran the function module in ABAP by setting the variant and three parameters , it is returning the pdf.
    When I am running the function module from java action class, it is not getting the pdf on screen.
    Now my questions are,
    1. How to get and set the variant in a action class.
    2. How to display the pdf after running FM-1.
    Thanks in advance.
    RK.

  • How to create a link for downloading bill in PDF format from Biller Direct

    Hi,
    Our requirement is to create a link on UCES Biller Direct screen, where user can click and down load his bill or invoice in PDF format.
    If any one can help me on this I will be highly thankful to him.
    Regrds,
    Ranadev

    cordova1126 wrote:
    > Need help on how you can have a PDF or a Word file be
    downloaded off a site.
    > I'm not sure where the pdf needs to be for it to be
    downloaded and what the
    > download button should have to call for the download.
    Any suggestions would be
    > wonderful.
    Check help files for details on "getURL" action.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Convert Smartform in PDF format and send to SAP Workplace

    Hi to all.
    I need help of somebody expert in SMARTFORM's.
    I need to convert a smartform into PDF format and to send as attachement for SAP workplace
    of the user.
    I developed the next code.
    IT is to function and to send the mail for SAP workplace, but it happens that smartform
    contains images (logos) and tables, when the user tries to open the file pdf in inbox gives
    to error - "An unrecognized token ' q0 ' was found".
    I tried to call a smartform only with text and functioned well.
    Somebody can help me?
    My code:
    Begin ***********************************************
    REPORT zteste_nsa_send_pdf_sap_office.
    DATA: t_print LIKE zeps_fm04 OCCURS 0 WITH HEADER LINE,
          v_size TYPE i.
    DATA: ls_bil_invoice TYPE lbbil_invoice.
    TABLES: nast.
    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.
    START-OF-SELECTION.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZFPS_FICHA_VALORIZACAO'
        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'
          is_bil_invoice     = ls_bil_invoice
          is_nast            = nast
          is_repeat          = 'X'
        IMPORTING
          job_output_info    = w_return
        TABLES
          t_list             = t_print
        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
          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.
      IF sy-subrc EQ 0.
      ENDIF.
    Convert PDF from 132 to 255.
      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.
    SEND MAIL
      REFRESH:  i_reclist,
                i_objtxt,
                i_objbin,
                i_objpack.
      CLEAR wa_objhead.
    Object with PDF.
      i_objbin[] = i_record[].
    Object with main text of the mail.
      i_objtxt = 'Fichas de Valorização e Esquemas Tipo'.
      APPEND i_objtxt.
    Document information.
      wa_doc_chng-obj_name   = 'SMART'.
      wa_doc_chng-expiry_dat = sy-datum + 10.
      wa_doc_chng-obj_descr  = 'Ficha de Valorização'.
      wa_doc_chng-sensitivty = 'F'. "Functional object
      wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + STRLEN( i_objtxt ).
    Pack to main body as RAW.
    Obj. to be transported not in binary form
      DESCRIBE TABLE i_objtxt LINES v_lines_txt.
      READ TABLE i_objtxt INDEX v_lines_txt.
      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.
    Packing as PDF.
    Obj. to be transported in binary form
      DESCRIBE TABLE i_objbin LINES v_lines_bin.
      READ TABLE i_objbin INDEX v_lines_bin.
      i_objpack-transf_bin = 'X'.
      i_objpack-head_start = 1.
      i_objpack-head_num   = 0.
      i_objpack-body_start = 1.
      i_objpack-body_num   = v_lines_bin.
      i_objpack-doc_type   = 'PDF'.
      i_objpack-obj_name   = 'SMART'.
      CONCATENATE 'Ficha_Valorizacao' '.pdf' INTO i_objpack-obj_descr.
      i_objpack-doc_size = ( v_lines_bin - 1 ) * 255 + STRLEN( i_objbin ).
      APPEND i_objpack.
    e-mail receivers.
      CLEAR i_reclist.
      i_reclist-receiver = sy-uname.
      i_reclist-rec_type = 'B'.
      i_reclist-express  = 'X'.
      APPEND i_reclist.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = wa_doc_chng
          put_in_outbox              = 'X'
          commit_work                = ' '
        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.
      IF sy-subrc EQ 0.
      ENDIF.
    End  *************************************************
    Thanks very much to all and Happy New year...
    Nelson

    Please check this link...
    [http://help.sap.com/saphelp_nw04/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm]
    -Muktar

  • Converting the WAD applications into PDF format

    Hi SAPians,
    I'm in need to convert WAD results into PDF Format using SAP BW 3.5 and Acrobat Reader 7.0. And I've referred some documents in Net, But,they gave ideas only for 3.5 and Acorobat 5 version.
    But i've to convert the WAD results into PDF format only by using Acrobat Reader 7.0. So, kindly let me know the steps to do so.
    Thanks in Advance.
    Jayaprakash J

    Hi Shahid syed,
    Thanks for your reply.
    It was very useful.
    But, i've askd the solution for sap bw 3.5 with Acrobat reader 7.0.
    So, plz let me knw if any solutions for that to make wad reports into pdf format.
    Points will be awarded.
    Thanks & Regards
    Jayaprakash J

  • Print form  in pdf format

    hi,
    i want to print the form i created in sapscript. how to do that? need to save the form into pdf format and then print it.
    please advise.
    thanks.

    Hi
    This is my routine used to generate a pdf file from print, u need only to get the OTF data from CLOSE_FORM fm:
    CALL FUNCTION 'CLOSE_FORM'
             TABLES
                  OTFDATA                  = T_OTF
             EXCEPTIONS
                  UNOPENED                 = 1
                  BAD_PAGEFORMAT_FOR_PRINT = 2
                  SEND_ERROR               = 3
                  SPOOL_ERROR              = 4
                  OTHERS                   = 5.
        IF SY-SUBRC <> 0.
          MESSAGE I208(00) WITH 'Errore chiusura stampa'(A02).
        ELSE.
          PERFORM DOWNLOAD_PDF.
        ENDIF.
    FORM DOWNLOAD_PDF.
      DATA: BIN_FILESIZE TYPE I.
      DATA: T_FILE_PDF     TYPE STANDARD TABLE OF TLINE,
            DOCTAB_ARCHIVE TYPE STANDARD TABLE OF  DOCS.
      DATA: FILE_TABLE     TYPE FILETABLE WITH HEADER LINE.
      DATA: RC          TYPE I,
            USER_ACTION TYPE I.
      DATA: TITLE    TYPE STRING,
            FILENAME TYPE STRING.
      CHECK P_PDF = 'X'.
      CALL FUNCTION 'CONVERT_OTF_2_PDF'
           IMPORTING
                BIN_FILESIZE           = BIN_FILESIZE
           TABLES
                OTF                    = T_OTF
                DOCTAB_ARCHIVE         = DOCTAB_ARCHIVE
                LINES                  = T_FILE_PDF
           EXCEPTIONS
                ERR_CONV_NOT_POSSIBLE  = 1
                ERR_OTF_MC_NOENDMARKER = 2
                OTHERS                 = 3.
      IF SY-SUBRC <> 0.
        MESSAGE I208(00) WITH 'Errore conversione PDF'(A03).
        EXIT.
      ENDIF.
      TITLE = 'Creare File'(T02).
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
         EXPORTING
           WINDOW_TITLE            = TITLE
           DEFAULT_EXTENSION       = '*.pdf'
        CHANGING
          FILE_TABLE              = FILE_TABLE[]
          RC                      = RC
          USER_ACTION             = USER_ACTION
        EXCEPTIONS
          FILE_OPEN_DIALOG_FAILED = 1
          CNTL_ERROR              = 2
          ERROR_NO_GUI            = 3
          OTHERS                  = 4
      IF SY-SUBRC <> 0.
        MESSAGE I208(00) WITH 'Errore creazione PDF'(A04).
        EXIT.
      ELSE.
        IF USER_ACTION = 9. EXIT. ENDIF.
        IF RC = 1.
          READ TABLE FILE_TABLE INDEX 1.
        ENDIF.
      ENDIF.
      MOVE FILE_TABLE-FILENAME TO FILENAME.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
        EXPORTING
           BIN_FILESIZE            = BIN_FILESIZE
           FILENAME                = FILENAME
           FILETYPE                = 'BIN'
        CHANGING
          DATA_TAB                = T_FILE_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
          OTHERS                  = 22
      IF SY-SUBRC <> 0.
        MESSAGE I208(00) WITH 'Errore creazione PDF'(A04).
        EXIT.
      ELSE.
        MESSAGE S208(00) WITH 'File creato con successo'(S01).
      ENDIF.
      CHECK P_OPEN = 'X'.
      CALL FUNCTION 'CALL_BROWSER'
           EXPORTING
                URL                    = FILE_TABLE-FILENAME
           EXCEPTIONS
                FRONTEND_NOT_SUPPORTED = 1
                FRONTEND_ERROR         = 2
                PROG_NOT_FOUND         = 3
                NO_BATCH               = 4
                UNSPECIFIED_ERROR      = 5
                OTHERS                 = 6.
      IF SY-SUBRC <> 0.
        MESSAGE S208(00) WITH 'Impossibile aprire file'(A05).
      ENDIF.
    ENDFORM.                    " DOWNLOAD_PDF
    Max

  • How to convert message in XI into PDF format

    Hi,
    I am trying out a scenario where i am getting an idoc from SAP into XI and now in XI i need to convert the data into pdf format and send that pdf in a mail using mail adapter.
    Can any body help me out how to convert a message in XI to pdf format.
    Thanks in Advance!!
    Regards,
    Sudheer

    Hi Sudheer
    follow these links
    http://www.erpgenie.com/sap/sapedi/Conversion%20of%20IDOCs%20to%20XML%20format.pdf
    Here is the complete code for you;
    It Converts spool request into PDF document and emails it.
    http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
    Smartform as attachment in mail. - 46k
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/convert-smartforms-form-in-pdf-998715 - 87k
    SMART form to PDF
    https://wiki.sdn.sap.com/wiki/display/Snippets/ConvertSmartformtoPDFformat
    smartform to MAIL
    https://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment
    Regards
    Sandeep Sharma
    PS: if helpful kindly reward points

  • Converting sap script output into pdf format?

    Hi all,
    I have modified the standard purchase order script form MEDRUCK . Now i need to generate the output into pdf format.
    This is not only limited to  spool requests , But also  when the user creates the purchase  order and clicks on print or print preview the output should be in pdf format.
    Please help on where and what code has to be written for this requirement?
    Thanks, 
    Aravind.

    Hi
    I don't know which is your release, but I don't think it's possible to create a preview in pdf format, but u can create a pdf file instead of the spool and then open it automatically, this is an example:
    - A) Open form
    IF P_PDF = 'X'.
              XDEVICE        = 'PRINTER'.
    * Get OTF
              ITCPO-TDGETOTF = 'X'.
          ENDIF.
          CALL FUNCTION 'OPEN_FORM'
               EXPORTING
                    DEVICE                      = XDEVICE
                    DIALOG                      = 'X'
                    FORM                        = 'ZFI_CL_EC_MOVI'
                    OPTIONS                     = ITCPO
                    MAIL_SENDER                 = LVS_SENDER
                    MAIL_RECIPIENT              = LVS_RECIPIENT
               EXCEPTIONS
                    CANCELED                    = 1
                    DEVICE                      = 2
                    FORM                        = 3
                    OPTIONS                     = 4
                    UNCLOSED                    = 5
                    MAIL_OPTIONS                = 6
                    ARCHIVE_ERROR               = 7
                    INVALID_FAX_NUMBER          = 8
                    MORE_PARAMS_NEEDED_IN_BATCH = 9
                    SPOOL_ERROR                 = 10
                    OTHERS                      = 11.
          IF SY-SUBRC <> 0.
            EXIT.
          ENDIF.
    B) Close FORM
    CALL FUNCTION 'CLOSE_FORM'
             TABLES
                  OTFDATA                  = T_OTF
             EXCEPTIONS
                  UNOPENED                 = 1
                  BAD_PAGEFORMAT_FOR_PRINT = 2
                  SEND_ERROR               = 3
                  SPOOL_ERROR              = 4
                  OTHERS                   = 5.
        IF SY-SUBRC <> 0.
          MESSAGE I208(00) WITH 'Errore chiusura stampa'(A02).
        ELSE.
          PERFORM DOWNLOAD_PDF.
        ENDIF.
    C) Create PDF and open it:
    FORM DOWNLOAD_PDF.
      DATA: BIN_FILESIZE TYPE I.
      DATA: T_FILE_PDF     TYPE STANDARD TABLE OF TLINE,
            DOCTAB_ARCHIVE TYPE STANDARD TABLE OF  DOCS.
      DATA: FILE_TABLE     TYPE FILETABLE WITH HEADER LINE.
      DATA: RC          TYPE I,
            USER_ACTION TYPE I.
      DATA: TITLE    TYPE STRING,
            FILENAME TYPE STRING.
      CHECK P_PDF = 'X'.
      CALL FUNCTION 'CONVERT_OTF_2_PDF'
           IMPORTING
                BIN_FILESIZE           = BIN_FILESIZE
           TABLES
                OTF                    = T_OTF
                DOCTAB_ARCHIVE         = DOCTAB_ARCHIVE
                LINES                  = T_FILE_PDF
           EXCEPTIONS
                ERR_CONV_NOT_POSSIBLE  = 1
                ERR_OTF_MC_NOENDMARKER = 2
                OTHERS                 = 3.
      IF SY-SUBRC <> 0.
        MESSAGE I208(00) WITH 'Errore conversione PDF'(A03).
        EXIT.
      ENDIF.
      TITLE = 'Creare File'(T02).
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
         EXPORTING
           WINDOW_TITLE            = TITLE
           DEFAULT_EXTENSION       = '*.pdf'
        CHANGING
          FILE_TABLE              = FILE_TABLE[]
          RC                      = RC
          USER_ACTION             = USER_ACTION
        EXCEPTIONS
          FILE_OPEN_DIALOG_FAILED = 1
          CNTL_ERROR              = 2
          ERROR_NO_GUI            = 3
          OTHERS                  = 4
      IF SY-SUBRC <> 0.
        MESSAGE I208(00) WITH 'Errore creazione PDF'(A04).
        EXIT.
      ELSE.
        IF USER_ACTION = 9. EXIT. ENDIF.
        IF RC = 1.
          READ TABLE FILE_TABLE INDEX 1.
        ENDIF.
      ENDIF.
      MOVE FILE_TABLE-FILENAME TO FILENAME.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
        EXPORTING
           BIN_FILESIZE            = BIN_FILESIZE
           FILENAME                = FILENAME
           FILETYPE                = 'BIN'
        CHANGING
          DATA_TAB                = T_FILE_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
          OTHERS                  = 22
      IF SY-SUBRC <> 0.
        MESSAGE I208(00) WITH 'Errore creazione PDF'(A04).
        EXIT.
      ELSE.
        MESSAGE S208(00) WITH 'File creato con successo'(S01).
      ENDIF.
      CHECK P_OPEN = 'X'.
      CALL FUNCTION 'CALL_BROWSER'
           EXPORTING
                URL                    = FILE_TABLE-FILENAME
           EXCEPTIONS
                FRONTEND_NOT_SUPPORTED = 1
                FRONTEND_ERROR         = 2
                PROG_NOT_FOUND         = 3
                NO_BATCH               = 4
                UNSPECIFIED_ERROR      = 5
                OTHERS                 = 6.
      IF SY-SUBRC <> 0.
        MESSAGE S208(00) WITH 'Impossibile aprire file'(A05).
      ENDIF.
    ENDFORM.                    " DOWNLOAD_PDF
    Max

Maybe you are looking for

  • About blob handling - how to display document type and document name?

    Hi, I am developing an APEX application, and I need a report region with a blob column(document) in it, and I want it to display like this : with an image on the left side(different images for different type of docs such as word, pdf, txt) , and the

  • Making own pxi system?

    I currently am working on a project in which i am going to be placing a pxi system with some components inside a larger box with some other hardware connected to it. Basicly what i want to do is to get rid of my chassis. I would like to have my pxi c

  • Safari will not launch from Dock but will launch if I open it from an email

    I recently reinstalled my operating system and Safari worked fine for a day. Went to open it from the Dock today and it would not open. Click on link in an email and it opens and works fine. Have trashed the preferences file. What else should I do. T

  • ALT Key combo problem + unlock + freezing+disconnect while on usb

    im having the famous alt combo problem..i tried everything i could from trying to unjam the camera button which wasnt jammed lol.. i noticed when my mob goes on standby i need to press the switch off button or standby btn for 5 secs so that screen li

  • Bank Statement Upload (RFEBKA00) issue

    Hi All, I am trying to upload bank statements via FF_5 using multicash format. When I try uploading I get the following error for each bank account statement "statement 20088251 is not in the bank data storage". There are about 8 different accounts i