Email a SAPScript Form

Hi All,
Is it possible to send a Sapscript form or a smartform form as an email,
We need to be able to email out the form using a function Module.
Even if we are able to send it as an attachment , it should be fine,
Did not find any function Module that would do this.
Appreciate any input.,
Thank you
Lalitha

it is possible in both smartforms and scrits
For Scripts
Retrieve the OTF table from the FM CLOSE_FORM then , convert OTF to PDF using FM 'SX_OBJECT_CONVERT_OTF_PDF' then I attach and send mail with 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
For smartform check this link
Create Smartform and Email it

Similar Messages

  • Sending sapscript form through Email

    Hi,
         I modifyed a std sapscript form for customer statement and that output i want to send to the customer through Email.So now i need a help for further what are the steps need to be do for sending that form by email.Pls be in details so that for me easy to solve this.
    Thanks,
    Rajendra.

    Hi ,
        I  am using the below code to send the form output by mail but it is not working for me.pls correct my code where i want to change so that i can solve my issues.
    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.
    parameter: p_email1 like somlreci1-receiver .
    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 =  p_email1.
    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 = 'Z2006FICSE'
    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.
       Hope i can expect the feedback soon from you guys.
    Thanks,
    Rajendra.

  • Sending sapscript form by email

    dear experts
    i want to send  sapscript forms by email from sap. how is it done. is there any configuration that needs to be done

    Hello,
    I have done in case where we are sending to an external mail id.
    Check the code it may help u.
    REPORT Z_SCRIPT .
    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     = 'Z08V3_COLLI'
                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.
    I am sending to [email protected].
    So proceed in similar manner and let me know if u face any problem.
    Regards

  • Include PDF file in a SAPscript Form

    Here is a good one.  Anyone ever heard of this.  I need to somehow import a PDF file into an ABAP program and include it in a sapscript form. 
    Requirment:
    Customer sends a PDF file to our system. We need to take this PDF file and include into a "quote" sapscript form and fax it back to the customer.
    If anyone has any other ideas of how I can accomplish this task........PLEASE let me know.  Thanks.
    Regards,
    Rich Heilman

    i solved a similiar problem by following:
    - catch the sapsript-data in otf-format by setting
      itcpo-tdgetotf = 'X' at CALL FUNCTION 'OPEN_FORM'
    - read the pdf-file from it's source
      (i.e. content server)in an internal table
    - send the fax with function-module SO_DOCUMENT_SEND_API1.
      at least in 4.6c you can add attachements to the fax.
      the fax-body is the otf, the attachements are
      the pdf-files.
    i suppose that your fax-software is able to send the pdf-attachements.
    here is some coding i copied from my program. i simplified it to show the main steps, so it won't run immediatly. the form assumes that the otf is filled in table ZT_OTFDATE, the pdf in ZT_PDFDATA and the PDF-filesize is in Z_PDFSIZE.
    *&      Form  FAX
    FORM fax CHANGING pe_subrc.
      DATA
      : ls_docdata TYPE sodocchgi1
      , ls_sadrfd  TYPE sadrfd
      , l_len TYPE i
      , lt_packlist TYPE TABLE OF sopcklsti1 WITH HEADER LINE
      , lt_head TYPE TABLE OF solisti1 WITH HEADER LINE
      , lt_text TYPE TABLE OF solisti1 WITH HEADER LINE
      , lt_bin  TYPE TABLE OF solisti1 WITH HEADER LINE
      , lt_recv TYPE TABLE OF somlreci1 WITH HEADER LINE
      , l_lines TYPE i
    OTF-Body
      CLEAR lt_packlist.
      DESCRIBE TABLE zt_otfdata LINES l_lines.
      lt_packlist-transf_bin = 'X'.
      lt_packlist-head_start = 1.
      lt_packlist-head_num   = 1.
      lt_packlist-doc_type   = 'OTF'.
      lt_packlist-obj_name   = 'Letter'.
      lt_packlist-obj_descr  = 'Letter'.
      lt_packlist-body_start = 1.
      lt_packlist-body_num   = l_lines.
      lt_packlist-doc_size   = lt_packlist-body_num * 255.
      APPEND lt_packlist.
      APPEND tnapr-fonam TO lt_head.
      APPEND LINES OF zt_otfdata TO lt_bin.
    Attachement
      CLEAR lt_packlist.
      lt_packlist-transf_bin = 'X'.
      lt_packlist-doc_type   = 'PDF'.
      lt_packlist-obj_name   = 'filename'.
      lt_packlist-obj_descr  = 'a filedescription'.
      lt_packlist-head_start = 2.
      lt_packlist-head_num   = 1.
      DESCRIBE TABLE lt_bin LINES l_lines.
      lt_packlist-body_start = l_lines + 1.
      DESCRIBE TABLE zt_PDFDATA LINES l_lines.
      lt_packlist-body_num   = l_lines.
      lt_packlist-doc_size   = Z_PDFSIZE.
      APPEND lt_packlist.
      APPEND 'filename' TO lt_head.
      APPEND LINES OF zt_pdfdata TO lt_bin.
    Receiver
      ls_sadrfd-rec_state = itcpo-tdteleland.
      ls_sadrfd-rec_fax   = itcpo-tdtelenum.
      lt_recv-receiver     = ls_sadrfd.
      lt_recv-rec_type     = 'F'.     " F=FAX U=Email
      APPEND lt_recv.
    DOCUMENT HEADER
      CLEAR ls_docdata.
      ls_docdata-obj_name    = 'fax name'
      ls_docdata-obj_descr   = 'fax description'.
      ls_docdata-obj_langu   = sy-langu.
      ls_docdata-obj_sort    = sy-datum.
      ls_docdata-obj_expdat  = sy-datum + 7.
      ls_docdata-sensitivty  = 'O'.
      ls_docdata-obj_prio    = '1'.
    ls_docdata-NO_CHANGE   = ''.
      ls_docdata-priority    = ls_docdata-obj_prio.
      ls_docdata-expiry_dat  = ls_docdata-obj_expdat.
    ls_docdata-PROC_TYPE   = ''.
    ls_docdata-PROC_NAME   = ''.
    ls_docdata-PROC_SYST   = ''.
    ls_docdata-PROC_CLINT  = ''.
    ls_docdata-SKIP_SCREN  = ''.
    ls_docdata-TO_DO_OUT   = ''.
    ls_docdata-FREE_DEL    = ''.
      ls_docdata-doc_size    = l_len.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data                    = ls_docdata
        PUT_IN_OUTBOX                    = ' '
        SENDER_ADDRESS                   = SY-UNAME
        SENDER_ADDRESS_TYPE              = 'B'
      IMPORTING
        SENT_TO_ALL                      =
        NEW_OBJECT_ID                    =
        SENDER_ID                        =
        TABLES
          packing_list                     = lt_packlist
          object_header                    = lt_head
          contents_bin                     = lt_bin
          contents_txt                     = lt_text
        CONTENTS_HEX                     =
        OBJECT_PARA                      =
        OBJECT_PARB                      =
          receivers                        = lt_recv
        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.
        pe_subrc = sy-subrc.
        PERFORM protocol_update.
      ENDIF.
    ENDFORM.

  • Sapscript form printing

    i am having a problem with a sapscript form for payment advice. its in germany but i want it in english. how do i convert it to english. the name of the form is F110_D_DTA. Its a standard form. if there is anyone who has this form in english please send it to my email: [email protected]

    Hi Chingarande,
    You can also try this.
    GO to SE71->Administrative Data. In language Attributes change the option "Translate to all languages" from "Do not ranslate".
    Ashven

  • PMW - Payment Advice - Sapscript Form

    Hi.
    I need help understanding and seting up payment advice for ACH and wire transfer using PMW.
    Can someone tell me where and how I need to set up/program to create payment advice after creating either ACH or
    wire transfer?  If possible, I want to use sapscript form (modified version of F110_IN_AVIS form) and email the form to the vendors.
    I can create payment advice using F110 w/ variant for checks using classic program, but can't figure out how to do that using PMW.
    Thanks in advance for your help.
    John

    Hi,
    You need to assign the form for Payment Advice in the FBZP t-code under Form data for Payment methods in Company Code. For PMW you use PMW Workbench and the Std. SAP program it uses for Payment Advice is RFFOAVIS_FPAYM. You need to set the print variant for this program to generate the Payment Advice and also this Variant has to be used in F110 printout/ data medium.
    Let me know if you need any more help.
    Thanks,
    Ashok

  • Email of SAPSCRIPT Print Output

    Hi,
    Can anyone please tell me steps to send an External Email from SAPSCRIPT.
    let me elaborate more on this.I have a "Z" print program for printing RFQ's.Now we need to send this output thru Email as well to vendors.
    Thanks in advance,

    Hi,
    You do not need to bother with the OTF stuff - you can ditch it.
    Use the code below to achieve the e-mailing :
    *--- Set the recipient e-mail address
    LW_COMM_VALUES-ADSMTP-SMTP_ADDR = [email protected]
    *--- Set title
    LW_SNAST-TDCOVTITLE = SY-TITLE
    *--- Set sender and recipient details
    CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
    EXPORTING
    PI_COMM_TYPE = 'INT'
    PI_COMM_VALUES = LW_COMM_VALUES
    PI_REPID = SY-REPID
    PI_SNAST = LW_SNAST
    PI_MAIL_SENDER = SY-UNAME
    IMPORTING
    PE_ITCPO = GW_ITCPO
    PE_MAIL_RECIPIENT = LW_RECIPIENT
    PE_MAIL_SENDER = LW_SENDER
    EXCEPTIONS
    COMM_TYPE_NOT_SUPPORTED = 1
    RECIPIENT_CREATION_FAILED = 2
    SENDER_CREATION_FAILED = 3
    OTHERS = 4.
    The objects used here are defined as follows :
    LW_COMM_VALUES TYPE SZADR_COMM_VALUES
    LW_SENDER TYPE SWOTOBJID
    LW_RECIPIENT TYPE SWOTOBJID
    LW_SNAST TYPE SNAST
    This will give you the recipient and sender details. Now all you need to do is call the function OPEN_FORM as follows:
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    DEVICE = 'MAIL' <--- Note: Device is PRINTER for printing
    DIALOG = SPACE
    FORM = SAPscript form name
    LANGUAGE = SY-LANGU
    OPTIONS = GW_ITCPO
    MAIL_SENDER = LW_SENDER
    MAIL_RECIPIENT = LW_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
    CODEPAGE = 11
    OTHERS = 12.
    This is far easier to use this method.
    Any questions, please let me know.
    Kind regards
    Colin

  • Don't know what's happen in SAPScript Form

    I have a question about the SAPscript form of delivery note
    i got the item line show in the doc should be like this
    000515   Farm & Country - Cow & Sheep                        1700003333     444PC
    But I don't know why the description become showing the form code of it..like this
    000515 Farm & Country - Cow &,,&VBDPL-BSTKD&,,&VBDPL-VBELN_VAUF&,,&QTY&&VBDPL-VRKME&
               Sheep
    the form code that i write is shown as below.
    &OLD_MATERIAL&,,<b>&ITEM_DESC1+0(31)&</b>,,&VBDPL-BSTKD&,,&VBDPL-VBELN_VAUF&
    actually i don't know which combination of the letter will make this kind of problem.
    can anyone know this?
    Thx for help

    Jellicent wrote:It tells you: you are missing libfltk.so, hence you are missing the appropriate package.
    Use your favourite search engine and search for for information on what package it is.
    I found what you are looking for by searching on duckduckgo for "libfltk Arch Linux".
    Thanks, i searched google and i installed fltk package. Then i try to start them in termial, there are some problem:
    $ hdspconf
    HDSPConf 1.4 - Copyright (C) 2003 Thomas Charbonnel <[email protected]>
    This program comes WITH ABSOLUTELY NO WARRANTY
    HDSPConf is free software, see the file copying for details
    Looking for HDSP cards :
    Card 0 : HDA Intel at 0xfdff8000 irq 43
    No Hammerfall DSP card found.
    $ hdspmixer
    HDSPMixer 1.11 - Copyright (C) 2003 Thomas Charbonnel <[email protected]>
    This program comes with ABSOLUTELY NO WARRANTY
    HDSPMixer is free software, see the file COPYING for details
    Looking for RME cards:
    Card 0: HDA Intel at 0xfdff8000 irq 43
    No RME cards found.
    Thankyou, i will continue search google for my problem

  • Sending Email thorugh SAPSCRIPT

    Hi,
        we are able to send an email using a sapscript, inthe function OPEN_FORM we are passing the fields ITPCO, MAIL SENDER and MAIL RECIPENT. But now we want one line in the body also. Cann any tell us the fields we should pass for this data????

    Hi,
      Check the code it may help u.
    REPORT Z_SCRIPT .
    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 = 'Z08V3_COLLI'
    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.
    Check out these threads ..
    Re: send sap script via email or printer.
    Email SapScript : Question on READ_OTF_FROM_MEMORY
    Regards,

  • Adobe Creative Cloud Muse: Why I don't receive anymore the email from the forms I created in several websites?

    Adobe Creative Cloud Muse: Why I don't receive anymore the email from the forms I created in several websites?

    Hello Sanjit,
    thank you for replying.
    I had the problem on this website, I have two forms, one simple and the other more sofisticated:
    www.oeso.org
    (at the bottom I have a simple contact form) and
    I created also a form on www.oeso.org/new-membership.html
    but i didn't receive any reply so
    I put the form on my website (architecturevisualdesign.ch) in a hidden form:
    http://architecturevisualdesign.ch/oeso-new-membership.html
    and here I receive the OESO New Membership Form Submission reply.
    Thank you for your help.
    Best regards,
    Nicole
    2014-09-09 11:17 GMT+02:00 Sanjit_Das <[email protected]>:
    Adobe Creative Cloud Muse: Why I don't receive anymore the email from the forms I created in several websites?
    created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion
    Please provide the site url in question , also have you hosted the site on Business Catalyst ?
    Emails can land to spam/junk folders so you should also check the folders.
    Thanks,
    Sanjit
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6713391#6713391
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • SAPSCRIPT form - Text is not porperly displayed

    hi all,
    in my SAPSCRIPT form, I am getting a text from PERFORM stmt. in the PERFORM , the text is coming correct, but in the form , it is showing only half of the text.
    the code
    FORM get_text TABLES ts_intab STRUCTURE itcsy
                         ts_outtab STRUCTURE itcsy.
    DATA: l_haul_text(500) TYPE c,  
               l_haul_long(250) TYPE c.
    l_haul_long = l_haul_text+0(250).
        LOOP AT ts_outtab.
          CASE ts_outtab-name.
            WHEN 'L_HAUL_LONG'.
              ts_outtab-value = l_haul_long.
              MODIFY ts_outtab.
          ENDCASE.
        ENDLOOP.
    Then in the form, just display
    /:  PERFORM GET_TEXT IN PROGRAM
    /:   USING &VBDKL-VBELN&
    /:   CHANGING &L_HAUL_LONG&
    /:  ENDPERFORM
    &L_HAUL_LONG&
    while debugging, the text is correct till TS_OUTTAB but when it comes to the form L_HAUL_LONG, it is truncated.......what should i do..
    Kindly help.
    THnaks

    answered

  • Addint new field to the standard sapscript form.

    FOR SALES INVOICE DOCUMENT FORM PRINTING
    TRANSACTION CODE: VF01
    OUTPUT TYPE : FJCI
    PROGRAM NAME: RVADAUS1
    SAPSCRIPT FORM NAME: SD_EXPORT_FJCI
    ENTRY ROUTINE: ENTRY_FJCI.
    STRUCTURE USED FOR THIS OUTPUT TYPE = V55EFJCI
    THE QUERY IS AS FOLLOWS:
    I WANT TO ADD DATA MODE OF TRANSPORT FROM THE INVOICE DOCUMENT. THE TABLE AND FIELD IS T618-BEZEI.
    SO I COPIED THE STANDARD FORM TO ZSD_EXPORT_FJCI AND THE STANDARD PROGRAM TO ZRVADAUS1.
    I SUCCESSFULLY FETCHED THAT FIELD DATA.
    I APPEND THE STRUCTURE 'ZAV55EFJCI' TO ADD THE ADDITIONAL T618-BEZEI FIELD.
    AND WRITE MY SELECT QUERY IN THE ENTRY_FJCI FORM ROUTINE.
    THE CODE IS AS FOLLOWS:
    data: begin of it_mode_of_tp occurs 1,
          bezei type t618t-bezei,
          end of it_mode_of_tp.
    select a~bezei as zzbezei into table it_mode_of_tp from t618t as a
    inner join
    eikp as b on aexpvz = bexpvz and aland1 = baland inner join vbrk as
    c on bexnum = cexnum
    where cvbeln = nast-objky and aspras = nast-spras .
    loop at it_mode_of_tp.
       v55efjci-zzbezei = it_mode_of_tp-bezei.
    endloop.
    BUT THE DATA FOR THAT IS NOT GETTING DISPLAYED.
    THIS WAS THE FIRST METHOD I FOLLOWD.
    THE SECOND METHOD I DID WAS AS FOLLOWS:
    FORM ENTRY_FJCI.
         PERFORM PROCESSING.
    ENDFORM
    FORM PROCESSING.
         PERFORM PRINT_DOCUMENT.
    ENDFORM.
    FORM PRINT_DOCUMENT.
           CALL FUNCTION 'RV_EXPORT_DOCUMENT_PRINT'
    ENDFORM.
    IN THIS FUNCTION THE DATA IS GETTING FETCHED FROM THE DATABASE TABLES AND STORED IN THE STRUCURE V55EFJCI.
    SO I COPIED THAT FUNCTION.
    IN THIS FUNCTION , THEIR IS A INCLUDE PROGRAM 'LV55EF11' FOR FETCHING DATA FOR ENTRY_FJCI FORM ROUTINE.
    I COPIED THAT PROGRAM CODE , AND CREATED MY OWN INCLUDE PROGRAM (WHICH I AM STORING IT IN ANOTHER Z PACKAGE.)
    AND WRITTEN MY ABOVE CODE IN THAT PROGRAM. BUT WHEN I DO THIS, NOITHING GETS DISPLAYED , EVEN THE PREVIOUSLY COMING DATA ALSO NOT GETTING DISPLAYED.
    HOW SHOULD I PROCEED.

    you said you copied layout(form) SD_EXPORT_FJCI to ZSD_EXPORT_FJCI,
    you updated program to fetch datat & populate v55efjci-zzbezei field.
    Now
    - you need to modify layout(form) ZSD_EXPORT_FJCI via SE71 to insert your field in one of the windows where it has to be printed (sap script knowledge is required here).
    - you need to either modify SAP output type FJCI to use your program/layout(form) or you need to create your own output type and assign your form/program to it, and in addition to that if you define your own output type - yo have to add it to output determination procedure, to access sequences, add condition records to condition table... so it's picked up by the invoice.

  • Can't send a PAGES document Via email in PDF form ... used to be done by clicking share and PDF  HELOP

    creating a document on pages and trying to share it via email in PDF form used to be really easy...
    How does this work now?  help

    I always just do file->print. Then in the lower left is a menu that said "PDF" and just pick "Mail PDF" from the dropdown and a new email is composed with the PDF attached. One step to print, one click to choose mail and you're done. I just tried this on the latest Yosemite and Pages updates and it works fine.

  • How to make an unformatted sapscript form

    At the bottom of [this page|http://help.sap.com/saphelp_45b/helpdata/en/34/60b30cae724effe10000009b38f91f/content.htm] it says:
    "If you want to pass on the information to be printed to one printer only, and this printer then takes care of editing and layout, you can mark a special form for this purpose (see Release Information SAPSCRIPT). In this way, the text is passed on unformatted. This is of interest, for example, if you are using thermal-transfer label printers
    ... without any links. I've been looking for this "Release Information SAPSCRIPT" but can't find it, does anyone know where?
    I need to print labels to a thermal printer (Paxar Monarch) but if I put the print codes inside a sapscript form, the printer always gives errors. If I write the same printcodes directly to the printer, it works fine. However, I need to use sapscript forms for customizing reasons, but the form just needs to pass on the printcodes as unformatted text.

    Refer this link might be useful -
    ftp://ftp.nicelabel.com/docs/whitepaper/wp-Printing_labels_from_SAP_R3-eng.pdf
    Regards,
    Amit

  • How to embed email opt-in form in image

    How to embed email opt-in form in image

    You cannot delete the email field. It is required for the form to work. One thing you can do that is a bit more work is to use Adobe Forms. I believe it is at Quickly & Easily Create Online Forms and Surveys | Adobe FormsCentral and create the form you want there and then you can copy the embed code from it and use the insert HTML to embed the form in your page.

Maybe you are looking for