Sending output LD00 by email

Hello!
Please answer on my question. How do we send LD00 by email after creating? And addressee should be user SAP.
Thanks

Hi Elena
You have to configure for output determination and maintain condition records in transaction VV21.
Check the below link.
[http://help.sap.com/saphelp_46c/helpdata/en/30/c6853488601e33e10000009b38f83b/frameset.htm]
Regards

Similar Messages

  • How to send output by mail?

    Hi Experts,
    Current output type in our system:
    Document: SD delivey note
    Output type: LD00
    Medium: 1
    Form:  Smartforms.
    Now we are printing delivery note by LD00 and Medium 1.
    In the future, we need to send ducument output to customer by mail, format still as original smartforms.
    Would you please give me a guide line to do this?
    Thank you.
    Richard.

    Hi Richard,
    you need to do following things to send output as an email.
    The output type should have medium 5. thats to send an email. Along with this you need to check following two things.
    if you are using a copy of a standard program it should have code to send an email. Then  you just need to configure following output type with medium '5' to send an email.
    If you dont have code to send it as an email  you can use FM to send it as an email.
    you can use following FM if its an adobe form.
    CALL FUNCTION 'SD_PDF_SEND_DATA'
        EXPORTING
          iv_device        = p_w_device
          iv_email_subject = w_lv_subject
          it_email_text    = w_mail_text
          is_main_data     = p_wa_fp_formoutput
          iv_language      = w_langu
          is_address       = w_ls_address
        IMPORTING
          ev_send_to_all   = w_lv_send_to_all
        EXCEPTIONS
          exc_document     = 1
          exc_send_request = 2
          exc_address      = 3
          OTHERS           = 4.
    Else  for smart form you need to convert it to PDF format first and send it as an email. Refer below code.
    Call Smartform function module.
    CALL FUNCTION fm_name
    EXPORTING
    control_parameters = ssfctrlop
    output_options = ssfcompop
    IMPORTING
    job_output_info = it_otf_data
    TABLES
    it_nfal = it_nfal.
    ***********appending the otf data into the final table*********************
    it_otf_final[] = it_otf_data-otfdata[].
    converting OTF data into pdf data**************************
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    IMPORTING
    bin_filesize = bin_filesize
    bin_file =
    TABLES
    otf = it_otf_final
    lines = it_pdfdata[]
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    err_bad_otf = 4
    OTHERS = 5.
    To send data as email attachment, we need to have a table of SOLISTI1.
    This table contains line size of 255 characters. Below function module
    does the trick of changing the table from X character sized lines into
    any given Y character sized lines.
    REFRESH it_pdf[].
    CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
    EXPORTING
    line_width_dst = '255'
    TABLES
    content_in = it_pdfdata[]
    content_out = it_pdf[]
    EXCEPTIONS
    err_line_width_src_too_long = 1
    err_line_width_dst_too_long = 2
    err_conv_failed = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    "Subject of the mail.
    w_document_data-obj_name = 'MAIL_TO_HEAD'.
    w_document_data-obj_descr = 'Regarding Mail Program by SAP ABAP'.
    "Body of the mail
    w_body_msg = 'This is body of mail msg.'.
    APPEND w_body_msg TO i_body_msg.
    CLEAR w_body_msg.
    "Write Packing List for Body
    DESCRIBE TABLE i_body_msg LINES g_tab_lines.
    w_packing_list-head_start = 1.
    w_packing_list-head_num = 0.
    w_packing_list-body_start = 1.
    w_packing_list-body_num = g_tab_lines.
    w_packing_list-doc_type = 'RAW'.
    APPEND w_packing_list TO i_packing_list.
    CLEAR w_packing_list.
    "Write Packing List for Attachment
    w_packing_list-transf_bin = 'X'.
    w_packing_list-head_start = 1.
    w_packing_list-head_num = 1.
    w_packing_list-body_start = 1.
    DESCRIBE TABLE it_pdf LINES w_packing_list-body_num.
    w_packing_list-doc_type = 'PDF'.
    w_packing_list-obj_descr = 'PDF Attachment'.
    w_packing_list-obj_name = 'PDF_ATTACHMENT'.
    w_packing_list-doc_size = w_packing_list-body_num * 255.
    APPEND w_packing_list TO i_packing_list.
    CLEAR w_packing_list.
    "Fill the document data and get size of attachment
    w_document_data-obj_langu = sy-langu.
    READ TABLE it_pdf INTO w_pdf INDEX g_tab_lines.
    w_document_data-doc_size = ( g_tab_lines - 1 ) * 255 + STRLEN( w_attachment ).
    "Receivers List.
    w_receivers-rec_type = 'U'."Internet address
    w_receivers-receiver = p_mail.
    w_receivers-com_type = 'INT'.
    w_receivers-notif_del = 'X'.
    w_receivers-notif_ndel = 'X'.
    APPEND w_receivers TO i_receivers .
    CLEAR:w_receivers.
    "Function module to send mail to Recipients
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = w_document_data
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    sent_to_all = g_sent_to_all
    TABLES
    packing_list = i_packing_list
    contents_bin = it_pdf
    contents_txt = i_body_msg
    receivers = i_receivers
    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 = 0 .
    MESSAGE i303(me) WITH 'Mail has been Successfully Sent.'.
    ENDIF.
    ENDIF.
    Edited by: Sumit Naik on Oct 13, 2010 11:20 PM

  • Send billing output to multiple email adresses

    Hi,
    we need to configure our output determination to be able to send billing invoices via email to multiple recipients.
    In our old 4.6c environment it worked with output type 5 when we added multiple comma separated email-addresses to the customer master record.
    After applying some kernel updates, this does not work anymore.
    does anyone have experience with that?
    I tried to set it up for output media 7 (SAPoffice) and wanted to get it working with SAP distribution list. but I struggle and I am at the point where I feel like I have tried everything.
    Maybe it's just an easy setting I'm missing.
    Thanks for any help.
    Markus

    Huey,
    Read and processed your selection as you suggest. Run into issue when the output record is executed, get error message that ...
    Communication type  cannot be used
    Message no. SVN000
    Diagnosis
    Message type ZD08 should be sent with communication type .
    System Response
    Communication type  is not supported by the conversion module.
    Procedure
    Use one of the supported communication types:
    Printer (LET)
    Fax (FAX)
    Telex (TLX)
    X.400 (X40)
    Mail via Internet (INT)
    Mail via SAPoffice (RML)
    Any thoughts on this are appreciated. We are on ECC 6.0 SP14.
    Thanks,
    Jay

  • Not able to see the output in sost when sending the image in email body

    I am sending the image in email body and when m trying to see the output in SOST then it showing a page 'you are not connected to the internet'
    I am able to see the output when m saving local objects but when m saving it in some package its showing me this page
    Kindly help it
    Regards
    Pratham Kapoor

    Hello Prakash,
    Thanks for the reply
    I am able to see the mail in SOST but when I click on the Display Document to see the content of the mail then I am getting this error of 'you are not connected to the internet'
    My Program is to put the logo in my email body
    I am sending you the attached image

  • Send Output as attachment to email address

    Hi friends,
    My requirement is to send the Output as attachment to a specific email address.
    I have created a new output type and using transmission medium as External Send.
    If I use SH/BP/SP it is picking the mail address and working fine.
    Now my requirement is to send to fixed standard email address irrelevant of document.
    Can anyone help me to explain how can I achieve this by setting in Parner functions of that output type?
    I dont want to add any parner function in partner determination.
    Thanks in advance.
    Rgds,
    AK

    Hi there,
    Define a new customized Z table & maintain the required mail ids in the table.
    in the O/p processing prog, call the Z table & send the mail to the mail ids mentioned in it.
    For formality, assign the O/p to an partner function in your condition records.
    Regards,
    Sivanand

  • How to send output of smartform in pdf format as an attachment to email

    how to send output of smartform in pdf format as an attachment to email
    search before posting further and follow Forum rules
    Edited by: Vijay Babu Dudla on Jan 15, 2009 4:50 AM

    Did u check on sdn?
    i dont think so or else there are many posts on this topic and good wikis too.
    look at one of these code tutorial wiki
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/mail%2bsend%2bthrough%2boutput%2bcontrols
    So next time do use the search functionality.
    кu03B1ятu03B9к
    Edited by: kartik tarla on Jan 15, 2009 12:33 PM

  • To send smartform output in an email without attachment

    Hi All,
      How to send smartform output in an email without attachment?
    Thanks & Regards,
    Mamta Gupta.

    Try this,
    DATA:
    ls_control_param TYPE ssfctrlop, "Control paramters
    ls_output_options TYPE ssfcompop. "Output options
    DATA:
    lv_ip_mailaddr TYPE so_name, "Address of a Mail Recipient
    lv_ip_type_id TYPE so_escape, "Recipient type
    ls_recipient_id TYPE swotobjid, "Structure for recvr obj ID
    ls_sender_id TYPE swotobjid. "Structure for sender obj id
    CONSTANTS:
    lc_ip_type_id TYPE so_escape VALUE 'U', "For internet address.
    lc_smartform TYPE tdsfname VALUE 'ZVSF_ASN_DELNOTE', "Smart form name
    lc_mail TYPE tddevice VALUE 'MAIL'. "Mail device
    Assign recipient
    lv_ip_mailaddr = gv_smtp_addr. "CSAM email id
    lv_ip_type_id = lc_ip_type_id. "External address
    Create Mail title
    CONCATENATE text-001
    nast-objky
    INTO ls_output_options-tdtitle.
    Create recipient object
    CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'
    EXPORTING
    ip_mailaddr = lv_ip_mailaddr
    ip_type_id = lv_ip_type_id
    IMPORTING
    ep_recipient_id = ls_recipient_id
    EXCEPTIONS
    invalid_recipient = 1
    OTHERS = 2.
    IF sy-subrc 0.
    cf_retcode = sy-subrc.
    PERFORM protocol_update.
    ENDIF.
    Get sender object id.
    CALL FUNCTION 'CREATE_SENDER_OBJECT_PPF'
    EXPORTING
    ip_sender = sy-uname
    IMPORTING
    ep_sender_id = ls_sender_id
    EXCEPTIONS
    invalid_sender = 1
    OTHERS = 2.
    IF sy-subrc 0.
    cf_retcode = sy-subrc.
    PERFORM protocol_update.
    ENDIF.
    Assign the smart form name
    w_ssfname = lc_smartform.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = w_ssfname
    IMPORTING
    fm_name = lf_fm_name
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3.
    IF sy-subrc 0.
    cf_retcode = sy-subrc.
    PERFORM protocol_update.
    ENDIF.
    For Print output:
    IF nast-nacha = '1'. "Print output
    ls_control_param-preview = 'X'.
    ls_control_param-no_dialog = 'X'.
    ENDIF.
    For Email output.
    IF nast-nacha = '2'. "Email
    Output options
    ls_output_options-tdteleland = gs_kna1-land1.
    ls_output_options-tdtelenum = gs_kna1-telfx.
    ls_output_options-tdfaxuser = sy-uname.
    ls_output_options-BCS_COMMIT = 'X'.
    ls_control_param-device = lc_mail.
    ENDIF.
    dynamically call Fm behind the Smart form
    CALL FUNCTION lf_fm_name
    EXPORTING
    control_parameters = ls_control_param
    mail_recipient = ls_recipient_id
    mail_sender = ls_sender_id
    output_options = ls_output_options
    user_settings = ' '
    TABLES
    delivery = gt_delivery
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    IF sy-subrc 0.
    cf_retcode = sy-subrc.
    PERFORM protocol_update.
    ENDIF.
    Regards,
    Joan

  • How to send the ALV report output by automated email.

    Hi All,
    Can any one advice how to send ALV report output by automated email.
    Thanks in advance.
    Vikram.
    Edited by: vikram mallavaram. on Oct 13, 2011 3:26 PM
    Moderator message: FAQ, please search for previous discussions of this topic.
    Edited by: Thomas Zloch on Oct 13, 2011 3:27 PM

    Hi Ramya,
    Check the links below :
    http://wiki.sdn.sap.com/wiki/display/Snippets/Sending+Mail
    http://wiki.sdn.sap.com/wiki/display/Snippets/AbapEMAILProgram
    http://wiki.sdn.sap.com/wiki/display/ABAP/SendMessagetoExternalemailidandSAPUseridvia+ABAP
    They will explain you to send an email.
    Regards,
    Kittu

  • Best way to send GR document to email destination output printing

    When a goods receipt document is printed, I need to send an email with the document attached.  It does not matter if it goes to an external email address or to the SAPoffice (Workplace). 
    If it can not be triggered during GR output creation, I could just do it when the GR is processed.
    What is the best approach?  Can this be done in output determination or is there a user exit?
    Thanks!
    Norm

    This looks very helpful, but I still have one problem. 
    The requirement will allow me to check the PLANT.  This is perfect.  However, I can only set this up once per condition type.
    Details...
    I am using WE03.  WE03 needs to print.  I cannot define a requirement to stop WE03 for email, because it will stop it from printing.
    In SD, I would create a new output condition for email (like ZE03).  I could have a requirement on ZE03 to check PLANT and use it for email.
    I thought there were issues with new output types in MM.  The standard SAP processing programs have values hard coded.  I remember seeing things like "WE" being concatenated to "03" to form "WE03" in standard SAP code.  New output types like ZE03 will not work. 
    Maybe this has changed?  Maybe I am wrong?
    I will try it.

  • Is there a way to send output from a Concurrent Request via email in r12?

    We are looking for a way to send emails out from the Concurrent Request output in r12.
    Discussions internally have involved using Unix procedures/commands but we were looking for an EBS integrated solution if one is available.
    I did find document 811716.1which seems to provide a solution, but the patches and information given are for 11i (we are r12). If this functionality is available in r12, is there any further documentation we can use?
    Any assistance would be appreciated.
    Thanks.
    Kevin
    Edited by: user3065048 on Jul 21, 2009 2:52 PM

    Duplicate post.
    Is there a way to send output from a Concurrent Request via email in r12?
    Re: Is there a way to send output from a Concurrent Request via email in r12?

  • Sending smartform output to external email id

    here the issue is ,,'
    in pa40..m
    after changing the start date of pernr ...
    if i click on save button i  have to generate one  smartform based on the pernr and bedga ..
    after i have to send that smartform output to external email id dynamically ..
    please help me in this...
    Moderator message: please search for available information/documentation before asking, your posts are pain to read, use normal punctuation, capitalization, do not open multiple threads for the same issue.
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    Edited by: Thomas Zloch on Nov 10, 2010 1:56 PM

    Hi Swati,
    Try to maintain an auto-forwarding email address for this user using transaction SO36 and check if that solves your problem.
    Regards,
    Jigar

  • Schedule ME2L in background and send output to email address

    Hi,
    Our Client has a requirement to schedule ME2L (particular variant) in background.
    The report should run every day in background and output should get emailed to particular email address.
    Any ideas??? Pleae let me know.

    Thanks for the information. Very useful.
    I am just facing one road block at the moment.
    I am now able to schedule the ME2L Report and email it as attachment.
    But, we have created a particular layout for this report, which we want should get emailed.
    But when we schedule the report in the background (or run it in background manually), it only picks the standard layout!
    I cannot find any layout option in ME2L Selection Screen as well. (I could have saved it in the variant then)
    Can you help?

  • Sending Customer Invoices by Email

    Hi,
    I would like to Configure this functionality where instead of printing reports they are sent out by email to the customers. I am a Basis consultant and i have configured in the SAP system so that SMTP is working and we can send external email from withing SAP.
    Can anyone please assist with the configuration that needs to be done from the Sales and Distribution side.
    Thank you for your assistance

    Hi Trevor,
    Output Determination
    Output is a form of media from a business to one of its business partners. The possible media forms are printouts, faxes, telexes, e-mails, and EDI. The output can be sent to any of the partners defined in the document. Outputs are usually in the form of order confirmations, delivery notes, invoices, and shipping notifications.
    Output&#61664;Output&#61664;Basic fncs&#61664;SD&#61664;IMG determination
    An output type is simply a type of output and it contains all the control features for the output. For ex, it defines the kind of output, which business transaction it applies to, which business partner receives the output, how the output is sent (the media), and the print program and SAP Script layout to use in formatting the output.
    Output determination can be maintained as originating from the customer master record or as originating by using the condition technique.
    Output proposal from the customer master record
    Output proposal from the&#61664;Output determination&#61664;Output&#61664;Basic fncs&#61664;SD&#61664;IMG customer master record, Define output
    In this option one creates output types, such as BA00 (order confirmation). After creating the output type, one assigns the output type to an output procedure, such as DB0001. After the assignment of the output types to the procedure, the output procedure is then assigned to the customer account group. This is a simple procedure and results in the output that is placed on the customer master record being copied into the sales document.
    OUTPUT DETERMINATION:
    Output is a form of media from business to one of its business partners. The output can be sent to any of the partners defined in the document. Outputs are usually in the form of Order Confirmations, Freight List, Delivery Notes, Invoices & Shipping Notifications. Determining form of output is output determination
    Types of Output: Print Output, Fax, Telex, E-Mail & EDI (Electronic Data Interchange)
    PRINT OUTPUT:
    SPRO- IMG- Basic Functions- Output Control- Output Determination- Output Det using Cond Tech- Output Det for Sales Documents & output det for billing documents.
    Create Condition Table: select the field Sales Doc Type from field catalog & Save
    Maintain Access Sequence: 4-digits code & description. Assign condition table to access sequence. Select Accesses line item and Go To Fields. Fields will display the fields we have selected in the condition table i.e. sales doc type.
    Maintain Output Types:
    AF00: Inquiry
    AN00: Quotation
    BA00: Order Confirmation
    LD00: Delivery
    Select BA00 & Copy & Rename. Give the same 4-digit code as given to acc seq.
    You Can Maintain:
    Languages of Output
    Partners (to whom we want to send output)
    Print Program- print specification
    Sap Script- layout
    Assign Output Types to Partner Functions: go to new entries & assign your output type to partner functions.
    Maintain Output Determination Procedure: V10000 (Standard Procedure). Go to new entries & create your own 6-digit code with descp. Select the procedure & go to Control Data. Here mention the output type i.e. cond type & leave requirement and manual only columns as blank.
    Determination Rule: link the 6-digit procedure code to doc types.
    Create Condition Records: VV11. Select document type and click on Communication. Mention partner function, medium, time. Output device: LP01, Spool request Name: SD_003, Suffix 2: order_confir & flag on print immediately.
    Once you press enter you will come across 2 key combinations:
    Sales organisation/ Customer Number: fill SO, Customer No, Partner Function Abbreviation, Partner to whom the output should be sent, time, medium, language. {It contains: Sales Orgn, Customer, Partner Function (The abbreviated form of the name that identifies the Partner) (During output determination, the system determines the recipient of the output from the master record for the specified partner function. In this field, you can explicitly specify a recipient that will override the standard partner. There must also be a master record for the partner that is specified explicitly.), Medium, Time & Language.}
    Order Type: Document Type, Partner Function (abbreviation), Partner, Medium, Time & Language.
    U cannot have ouput at Billing item level ..u can only have at header level.
    u can maintain output at sales document header and item level as well as the delivery document header and item level.
    Go to Spro>>>SD> Basic functions>> output control>>
    1) maintain output determination for sales docuemnt
    2) maintain output determination for billing documents
    To maintain output at delivery header and itemlevel:
    SPRO>> Logistic execution>>shipping>>basic shipping functions>>>output control>> output determination for outbound deliveries.
    Create condition tables and assign to to relevant access sequence.
    assign access sequence to output types.
    assign output types in relevant outpur procedure.s
    assign output procesdure to rlevant document types and item categories.
    VV11- To create output condition records for sales order
    VV21- To craete output condition records for shipping
    VV31- to create output condition records for billing.
    Please alsoMaintain the Email id in Customer Master Record –XD01 / XD02
    Please Reward If Really Helpful,
    Thanks and Reagards,
    Sateesh.Kandula

  • Error while sending PDF file by Email

    Hi All,
    I have a requirement to send multiple files by Email attachement from SAP to internet address.
    All files sent correctly, except one PDF file.
    I have 2 spools, and I am using FM CONVERT_OTFSPOOLJOB_2_PDF to get PDF data for Spool.
    Then I am converting the 134 length PDF data to 255 Email Attachement binary table.
    Now I have 2 file F1.PDF and F2.PDF, in SAP Office outbox and in receivers email, F2.PDF opening fine, however for F1.PDF I am getting some error no 109 in Adobe, which says "There was an error processing a page.There was a problem reading this document. (109)".
    Please help in figuring out the reason for this.
    Additional Information F2.PDF has some text data (SAP Script output) and F1.PDF has some text data with logo (SAP Script Output)
    Thanks in advance

    hi check out following code..
    REPORT ZRICH_0003.
    DATA: ITCPO LIKE ITCPO,
    TAB_LINES LIKE SY-TABIX.
    Variables for EMAIL functionality
    DATA: MAILDATA LIKE SODOCCHGI1.
    DATA: MAILPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
    DATA: MAILHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
    DATA: MAILBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
    DATA: SOLISTI1 LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
    PERFORM SEND_FORM_VIA_EMAIL.
    FORM SEND_FORM_VIA_EMAIL *
    FORM SEND_FORM_VIA_EMAIL.
    CLEAR: MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
    REFRESH: MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
    Creation of the document to be sent File Name
    MAILDATA-OBJ_NAME = 'TEST'.
    Mail Subject
    MAILDATA-OBJ_DESCR = 'Subject'.
    Mail Contents
    MAILTXT-LINE = 'Here is your file'.
    APPEND MAILTXT.
    Prepare Packing List
    PERFORM PREPARE_PACKING_LIST.
    Set recipient - email address here!!!
    MAILREC-RECEIVER = '[email protected]'.
    MAILREC-REC_TYPE = 'U'.
    APPEND MAILREC.
    Sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = MAILDATA
    PUT_IN_OUTBOX = ' '
    TABLES
    PACKING_LIST = MAILPACK
    OBJECT_HEADER = MAILHEAD
    CONTENTS_BIN = MAILBIN
    CONTENTS_TXT = MAILTXT
    RECEIVERS = MAILREC
    EXCEPTIONS
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    OPERATION_NO_AUTHORIZATION = 4
    OTHERS = 99.
    ENDFORM.
    Form PREPARE_PACKING_LIST
    FORM PREPARE_PACKING_LIST.
    CLEAR: MAILPACK, MAILBIN, MAILHEAD.
    REFRESH: MAILPACK, MAILBIN, MAILHEAD.
    DESCRIBE TABLE MAILTXT LINES TAB_LINES.
    READ TABLE MAILTXT INDEX TAB_LINES.
    MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
    Creation of the entry for the compressed document
    CLEAR MAILPACK-TRANSF_BIN.
    MAILPACK-HEAD_START = 1.
    MAILPACK-HEAD_NUM = 0.
    MAILPACK-BODY_START = 1.
    MAILPACK-BODY_NUM = TAB_LINES.
    MAILPACK-DOC_TYPE = 'RAW'.
    APPEND MAILPACK.
    Creation of the document attachment
    This form gets the OTF code from the SAPscript form.
    If you already have your OTF code, I believe that you may
    be able to skip this form. just do the following code, looping thru
    your SOLISTI1 and updating MAILBIN.
    PERFORM GET_OTF_CODE.
    LOOP AT SOLISTI1.
    MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
    APPEND MAILBIN.
    ENDLOOP.
    DESCRIBE TABLE MAILBIN LINES TAB_LINES.
    MAILHEAD = 'TEST.OTF'.
    APPEND MAILHEAD.
    Creation of the entry for the compressed attachment
    MAILPACK-TRANSF_BIN = 'X'.
    MAILPACK-HEAD_START = 1.
    MAILPACK-HEAD_NUM = 1.
    MAILPACK-BODY_START = 1.
    MAILPACK-BODY_NUM = TAB_LINES.
    MAILPACK-DOC_TYPE = 'OTF'.
    MAILPACK-OBJ_NAME = 'TEST'.
    MAILPACK-OBJ_DESCR = 'Subject'.
    MAILPACK-DOC_SIZE = TAB_LINES * 255.
    APPEND MAILPACK.
    ENDFORM.
    Form GET_OTF_CODE
    FORM GET_OTF_CODE.
    DATA: BEGIN OF OTF OCCURS 0.
    INCLUDE STRUCTURE ITCOO .
    DATA: END OF OTF.
    DATA: ITCPO LIKE ITCPO.
    DATA: ITCPP LIKE ITCPP.
    CLEAR ITCPO.
    ITCPO-TDGETOTF = 'X'.
    Start writing OTF code
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    FORM = 'ZTEST_FORM'
    LANGUAGE = SY-LANGU
    OPTIONS = ITCPO
    DIALOG = ' '
    EXCEPTIONS
    OTHERS = 1.
    CALL FUNCTION 'START_FORM'
    EXCEPTIONS
    ERROR_MESSAGE = 01
    OTHERS = 02.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    WINDOW = 'MAIN'
    EXCEPTIONS
    ERROR_MESSAGE = 01
    OTHERS = 02.
    Close up Form and get OTF code
    CALL FUNCTION 'END_FORM'
    EXCEPTIONS
    ERROR_MESSAGE = 01
    OTHERS = 02.
    MOVE-CORRESPONDING ITCPO TO ITCPP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT = ITCPP
    TABLES
    OTFDATA = OTF
    EXCEPTIONS
    OTHERS = 1.
    Move OTF code to structure SOLI form email
    CLEAR SOLISTI1. REFRESH SOLISTI1.
    LOOP AT OTF.
    SOLISTI1-LINE = OTF.
    APPEND SOLISTI1.
    ENDLOOP.
    ENDFORM.

  • Send remittance advice by email to vendors

    When automatic payment (F110) run is done to make payment to vendors,it generates a PAYEXT IDOC to be send to bank for payments.
    Print output program is RFFOEDI1
    Remittance advice standard SAP script is F110_IN_AVIS.
    What are the ways to send email in PDF format? DO we need to write a code or is there ay facility like message control?

    you need to use available FM's to convert the data into PDF and send as attachment via email..

Maybe you are looking for

  • Table fields to match pdf form

    I found this on my formscentral help file. Note: Some types of form fields aren't supported when you import a PDF form. For example, text fields with formatting applied, such as numeric or percentage fields, are converted to plain text fields. And, s

  • Hp pavilion dv 3072 er

    Я русккий. В общем проблема с ноутбуком. Была замена жесткого диска. жесткий диск осыпался. После установки нового ЖД и установки системы был оставлен на ночь. Утром      включился 1 раз завис. И все. реакции никакой. Потом после включения начал 5 ра

  • Update to OS X 10.6.6 fails

    Hello, I've bought a Macbook 7,1 with OS X 10.6.4 while trying to update to 10.6.6 it's fails while uncompressing and verifying. I cat /var/log/install.log and the following error apears "*SUSessionErrorDomain error 4*" the question is what does it m

  • Licensing with Oracle

    I currently run Oracle 8.0.5 on a HPUX 10.20 I am looking into Red Hat Linux Enterprise Edition Optimized for Oracle 8i. Eventhough this is an open source server, what type of support would this list reccomend. The server that I looked at comes with

  • Could any way to connect to oracle 7.1.6 with oledb?

    we are urgently, could some body help us? thanks. fred