How to convert a note in pdf and put the data in the structure SOOD4

Good day!
I'm using CONVERT_OTFSPOOLJOB_2_PDF.
This function SO_DOCUMENTS_MANAGER selects a note from uploading and fills the structure SOOD4 with the file data.
Need to do this automatically, convert to pdf and fill the structure SOOD4

If I got your point correctly, you may use the function module SO_OBJECT_CREATE. Take a look at the thread below for an example on how to use it.
Attachments to Material Master
Regards,
Felipe

Similar Messages

  • How to convert a workbook into PDF and broadcast as Email attachment

    Hello Gurus,
    i have installed the ADS (Adobe Document services). I would like to broadcast workbooks as a pdf file to some user.
    When i open the workbook and go to Broadcast --> Setup a broadcast setting for this workbook. The distribution type is
    Broadcast E-mail; Broadcast E-mail (Bursting); Broadcast Portal; Broadcast Multichannel and Output Format only MS Workbook and Link to current Data. Here i miss the possibility as PDF.
    Where can i set up that the workbook should be broadcast as PDF.
    Any help appreciated.
    Thanks and kind rgerads,
    Murat

    Thanks all for your answers,
    i also read that with changing the format in Report designer then broadcasting via PDF. Is there no possibility for PDFs for MS Excel Workbooks? How does it work when opening the query in Report designer? What do i have to do there but it is no solution for us because in the workbooks we use GET BEX DATA formulas and just show parts of the analyisis grid. I need a proper solution how to use broadcaster converting workbooks into PDF an send them as email attachment
    Thanks,
    Murat

  • How to convert sap script to pdf and send it as email attachment

    hi,
    my requirement is to convert a standard sales order form to pdf and send it as email attachment. get me some sample code for the same
    thanks in advance

    Hi
    See this sample code and after that use the fun module to send the mail
    SO_NEW_DOCUMENT_ATT_SEND_API1
    REPORT zzz_jaytest .
    Types Declaration
    TYPES : BEGIN OF ty_pa0001,
    pernr TYPE pa0001-pernr,
    bukrs TYPE pa0001-bukrs,
    werks TYPE pa0001-werks,
    END OF ty_pa0001.
    Internal Table Declaration
    DATA : i_pa0001 TYPE STANDARD TABLE OF ty_pa0001, "For pa0001 Details
    i_otf TYPE STANDARD TABLE OF itcoo, "For OTF data
    i_content_txt TYPE soli_tab, "Content
    i_content_bin TYPE solix_tab, "Content
    i_objhead TYPE soli_tab,
    Work Area Declaration
    w_pa0001 TYPE ty_pa0001, "For pa0001 Details
    w_res TYPE itcpp, "SAPscript output
    "parameters
    w_otf TYPE itcoo, "For OTF
    w_pdf TYPE solisti1, "For PDF
    w_transfer_bin TYPE sx_boolean, "Content
    w_options TYPE itcpo, "SAPscript output
    "interface
    Variable Declaration
    v_len_in TYPE so_obj_len,
    v_size TYPE i.
    Constants Declaration
    CONSTANTS : c_x TYPE c VALUE 'X', "X
    c_locl(4) TYPE c VALUE 'LOCL', "Local Printer
    c_otf TYPE sx_format VALUE 'OTF', "OTF
    c_pdf TYPE sx_format VALUE 'PDF', "PDF
    c_printer TYPE sx_devtype VALUE 'PRINTER', "PRINTER
    c_bin TYPE char10 VALUE 'BIN', "BIN
    c_name TYPE string VALUE 'C:\ZZZ_JAYTEST.PDF',"Downloading
    "File Name
    c_form(11) TYPE c VALUE 'ZZZ_JAYTEST'. "Form Name
    START-OF-SELECTION.
    Selecting the records from pa0001
    SELECT pernr bukrs werks FROM pa0001
    INTO TABLE i_pa0001 UP TO 10 ROWS.
    Setting the options
    w_options-tdcopies = 1 ."Number of copies
    w_options-tdnoprev = c_x."No print preview
    w_options-tdgetotf = c_x."Return of OTF table
    w_options-tddest = c_locl."Spool: Output device
    Opening the form
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    form = c_form
    device = c_printer
    language = sy-langu
    OPTIONS = w_options
    IMPORTING
    RESULT = w_res.
    LOOP AT i_pa0001 INTO w_pa0001.
    Writting into the form
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'MAIN'
    window = 'MAIN'.
    ENDLOOP.
    Closing the form
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT = w_res
    TABLES
    otfdata = i_otf
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    codepage = 5
    OTHERS = 6.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Converting OTF data to single line
    LOOP AT i_otf INTO w_otf.
    CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
    INTO w_pdf.
    APPEND w_pdf TO i_content_txt.
    ENDLOOP.
    Converting to PDF Format
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    format_src = c_otf
    format_dst = c_pdf
    devtype = c_printer
    CHANGING
    transfer_bin = w_transfer_bin
    content_txt = i_content_txt
    content_bin = i_content_bin
    objhead = i_objhead
    len = v_len_in
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    v_size = v_len_in.
    Downloading the PDF File
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = v_size
    filename = c_name
    filetype = c_bin
    TABLES
    data_tab = i_content_bin.
    If you r using this function module check it once....
    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.
    or u can use the standard program RSTXPDFT4 to download the script into PDF format onto a particular location
    follow this link for sample program.
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1121833,00.html
    check...
    How to send smart form via email
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp
    Regards
    Anji

  • How to Convert Blog Page in PDF and Print it Directly?

    Hi,
    I have a technology tips and tricks related blog which is named TechnTechie. I want that my visitors will be able to convert all of my blog pages to PDF and also will be able to print that out with a single click with the pictures in the post. Is it possible to do that? If possible please suggest how to do that? My blog is in WordPress blog and the url is http://techntechie.com
    Thank You
    Himadri Subrah Saha

    You cannot invoke "automatic" printing from the server side. Best what you can do is to download the whole PDF file inline and let the client decide what to do with it. If you really, really want to pick a page out of the PDF file and display that page only, then you should use a PDF reader API for Java to be able to pick a page programmatically. iText is such a PDF reader API for Java. You can find it here: http://sourceforge.net/projects/itext

  • How to convert script output to excel and send through mail in the report

    I need a solution for Converting script into EXCEL  and sending Excel as a attachment to the mail. In my current Program I am getting OTF data from script and converting into PDF using Function module ' CONVERT_OTF'
    And sending PDF as a mail attachment using Function module 'SO_NEW_DOCUMENT_SEND_API1' it is working fine but
    My current requirement is I need to send Excel as a mail attachment instead of PDF.
    Hope it is clear for you, please give me possible solutions with sample code..

    hi
    good
    CONSTANTS: CON_CRET TYPE X VALUE '0D',  "OK for non Unicode
                 CON_TAB TYPE X VALUE '09'.   "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    *class cl_abap_char_utilities definition load.
    *constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
       con_cret type c value cl_abap_char_utilities=>CR_LF.
      CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
             INTO IT_ATTACH SEPARATED BY CON_TAB.
      CONCATENATE CON_CRET IT_ATTACH  INTO IT_ATTACH.
      APPEND  IT_ATTACH.
      LOOP AT IT_EKPO INTO WA_CHAREKPO.
        CONCATENATE WA_CHAREKPO-EBELN WA_CHAREKPO-EBELP
                    WA_CHAREKPO-AEDAT WA_CHAREKPO-MATNR
               INTO IT_ATTACH SEPARATED BY CON_TAB.  " Check here
        CONCATENATE CON_CRET IT_ATTACH  INTO IT_ATTACH.  " Check here
        APPEND  IT_ATTACH.
      ENDLOOP.
    thanks
    mrutyun^

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • How to convert Indesign CC to pdf?

    Hi
    How to convert Indesign CC to pdf? Should I download a distiller or acrobat Pro X or ?

    You should ask in InDesign for direct program help
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Convert sap script to pdf and send mail before close_form

    hi experts,
    I am converting a sap script to PDF and then sending that pdf to vendor mail ids.
    I am getting the Data for the conversion of pdf From close_form.But it contains the data for all the vendors . But i have to Send the mail to the specific vendors.For ex if my script output has 5 sheets each with different vendors . I have to send  1 sheet as a pdf mail for that particular vendor. so,1 sheet each for 5 differrent vendors . But the data i get from close_form is the data for all the 5 vendors. How to split the data ?. can any one help me on this issue.
    with thanks in advance,
    syed

    Hi,
        Change your driver program so that it calls the script n no of times .. and every time send mail to particular vendor ..
        Loop at vendors.
         call the form ...
         send mail ...
        endloop ...
    Regards,
    Srini.

  • How to convert spool request to pdf format (to send mail) - SAP 3.1H

    Hi,
       I am working in 3.1H version. How to convert spool request into pdf cormat to send a mail?. Spool request is in TEXT format.
    regards,
    sundaram J.

    Hi sundaram,
    1. I suppose u know how to send
        mail with attachment.
    2. If that is the case,
       then no need to do anything.
    3. Bcos
       There is setting in SCOT,
       for INTERNET
       ABAP List ---> PDF
       Raw TEXT  -
    PDF
      (Your basis team will help u)
    4.  text data will get automatically converted
       to pdf and get mailed.
    regards,
    amit m.

  • Adobe Acrobat X - convert outlook email to pdf and include attachments as pdf

    Is there a way to save an Outlook email as a PDF and include attachments as extra pages within the same PDF? I know I can convert an email to PDF and it will include the attachments as links.  My end users feel that their clients won't understand the link feature, and/or the paper clip on the side pane.  They'd rather convert an email and have it's attachments converted also, making the pdf an email message + converted attachments....all in one process.  The only way currently is to open each attachment and convert them individially, then combine the email pdf and attachment pdf together.  Too many steps involveed there.
    make sense?
    Thanks,
    Jon Wooten

    Same question here, but for Lotus Notes!! Seems ridiculously simple.

  • Convert external documents to PDF and print

    Hi,
    I have a SAP script and with some help from SDN I am at point where I can convert this SAP script to PDF using the function module below
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    * MAX_LINEWIDTH = 132
    * ARCHIVE_INDEX = ' '
    * COPYNUMBER = 0
    * ASCII_BIDI_VIS2LOG = ' '
    * PDF_DELETE_OTFTAB = ' '
    IMPORTING
    BIN_FILESIZE = BINFILESIZE
    * BIN_FILE =
    TABLES
    otf = DATAB[]
    lines = PDFTAB[].
    Now my requirement is, let's say I have an external doc(word or excel) residing on my PC. I have complete path of this file in my hand. I want to convert this file to PDF and append it to the above PDFTAB[] and print to the printer 'TDDEST' as a single document.
    Thanks,

    Hi,
    use this code passing in v_url the complete path
    START-OF-SELECTION.
      SET SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS'.
      SET TITLEBAR 'T1'.
    *running down the pbo for the first time,
    *create the controls and their containers
      IF my_main_container IS INITIAL.
        CREATE OBJECT my_main_container
        EXPORTING
        container_name = 'CUSTOM_CNTL'
        EXCEPTIONS
        cntl_error = 1
        OTHERS = 2.
    *create PDF Viewer object
        CREATE OBJECT my_pdf_viewer
        EXPORTING
        parent = my_main_container
        EXCEPTIONS
        cntl_error = 1
        cntl_system_error = 2
        OTHERS = 3.
        IF sy-subrc <> 0.
    *could not create PDF Viewer
        ENDIF.
    *my_pdf_viewer->LANGU = 'IT'.
        DATA: view_buttons_active TYPE char01 VALUE 'X',
        v_url TYPE char255.
        IF my_pdf_viewer->acrobat_vs_reader = ''.
          view_buttons_active = 'X'.
        ENDIF.
    *create SAP toolbar for PDF Viewer
        CALL METHOD my_pdf_viewer->create_toolbar
          EXPORTING
            tool_buttons      = 'X'
            view_buttons      = view_buttons_active
          EXCEPTIONS
            cntl_error        = 1
            cntl_system_error = 2
            OTHERS            = 3.
        IF sy-subrc <> 0.
    *could not create toolbar
        ENDIF.
    *Open the PDF document
       IF NOT my_pdf_viewer->html_viewer IS INITIAL.
        CLEAR v_url.
        v_url = file.
        CALL METHOD my_pdf_viewer->open_document
          EXPORTING
            url = v_url.
        IF sy-subrc <> 0.
          SET SCREEN 1000.
          MESSAGE i208(00) WITH 'Documento non presente: riprovare'.
        ENDIF.
       ELSE.
        MESSAGE e208(00) WITH 'Impossibile aprire il documento'.
       ENDIF.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  EXIT-PROCESSING  INPUT
          text
    MODULE exit-processing INPUT.
      fcode = ok_code.
      CLEAR ok_code.
      CASE fcode.
        WHEN 'BACK' OR 'EXIT' OR 'CANC'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " EXIT-PROCESSING  INPUT

  • Converting from Word to PDF and printer settings

    I have a program that writes letters automatically in Word and if we have a PDF file as an enclosure when the letter prints, it actually converts the word document as a whole to a PDF. This part works great, however, when the letter begins with Word we have the Page setup for the printer to print the first page on letterhead (tray 1) and all pages after to plain paper (tray 2). When the word document converts to pdf, it is printing everything from tray 1 which is letterhead.
    Is there any way to convert a document to pdf and keep the page settings as well?
    Thanks for any input!

    Don't have an answer. However, you might consider creating the WORD document so that the letterhead is built in and you do not need the paper.

  • Convert  Script output into PDF and save into Unix Directory

    Hi,
      I had Sales Order Acknowledgement Output and wants to converted to PDFs and then these PDFs to be placed in Unix Directory
    on their way to Docs Library.
    I am using the following code
      CALL FUNCTION 'CLOSE_FORM'
        IMPORTING
          RESULT   = itcpp
        TABLES
          otfdata  = lt_otf  " OTF Data
        EXCEPTIONS
          unopened = 1
          OTHERS   = 2.
    After this form ,  table ltf_otf is empty, So i am not converting into PDF .
    So i need the logic to convert to PDF , and most importantly logic to save into UNIX Directory.
    Thanks

    Hi,
    If you are using the Function Module "OPEN_FORM" to open the form for printing then in this function module there is an IMPORTING parameter OPTIONS which is of type ITCPO to this parameter "OPTIONS-TDGETOTF" needs to be passed as 'X' which will give you the OTF output in the FM "CLOSE_FORM".
    After this call the FM "CONVERT_OTF" and pass the FORMAT as "PDF" which will give you the PDF output in LINES table Parameter. Most important please pass some dummy variable to BIN_FILESIZE variable.
    Now by using OPEN DATASET file name FOR OUTPUT IN BINARY MODE and the LOOP the PDF table and use the TRANSFER statement to place the data in the UNIX File and then Finally use the CLOSE DATASET file name.
    Hope will help to address your issue.
    Regards,
    SRinivas

  • How to convert WIM files to PDF?

    I am trying to recover files saved from a back up cd. The files I'm trying to access are saved as a WIM file. I have no idea how to convert them to a pdf or image file.  Please help me.

    WIM is an image file format and you can mount that file and extract the PDF files you are looking for inside the image:
    Start a command prompt (cmd.exe) and run the command:
    Dism /Mount-Image /ImageFile:C:\temp\install.wim /index:1 /MountDir:C:\temp\offline
    After that, you will have all files inside that WIM file in the C:\temp\offline location.
    Blogging about Windows for IT pros at
    www.theexperienceblog.com

  • How to convert *.pmd files to *.pdf files?

    How to convert *.pmd files to *.pdf files?

    Depends on your setup. Please give full details; messages here are not charged by the word.

Maybe you are looking for