Output of SapScript to E-mail?

Hi,
I have a  requirement  when  the driver program (custom program) for sapscript  is executed ,the  output of sapscript has to be sent as a email attachment to  desired people(s) Email accounts .
How can I do it?.. could you provide any points for thisu2026.
Thanks in advance .
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on May 8, 2009 10:22 AM

Get the output data in the OTF format in close_form under table OTFDATA
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
  RESULT                         =
  RDI_RESULT                  =
TABLES
   OTFDATA                        = 
Call below mentioned function module to convert otf format of smart form to pdf format
CALL FUNCTION 'CONVERT_OTF'.
Convert PDF from 132 to 255.
For sending mail
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'.

Similar Messages

  • How to send output of alv report as mail

    Hi Experts,
    I Have retrieved data from USER tables and i need to send the output of the list through mail.
    could you please help me in completing this task
    Moderator message: FAQ, please search for previous discussions of this topic.
    Edited by: Thomas Zloch on Mar 16, 2011 9:41 AM

    Hi,
    You can send the report data as an either excel sheet ot txt attachment in side the email. for this you can use  the function module . for this refer to program BCS_EXAMPLE_7 .

  • Sapscript/Smartform via mail with PDF attachment: logo is missing

    Hi all
    I'm implementing my function to send Sapscript/smartform via mail.
    I need to do it because when a message needs to be sent, I have to insert the message as attachment but also to add a text in the body mail.
    So I've just created a simple sapscript having a logo (as graphic) and a little text.
    I use the fm CONVERT_OTF to convert the OTF to PDF format and the following code to increase the pdf string from 132 to 255 char:
    LOOP AT t_pdf.
          TRANSLATE t_pdf USING ' ~'.
          CONCATENATE l_buffer t_pdf INTO l_buffer.
        ENDLOOP.
        TRANSLATE l_buffer USING '~ '.
        DO.
          MOVE l_buffer TO l_attachment.
          APPEND l_attachment TO x_attachment.
          SHIFT l_buffer LEFT BY 255 PLACES.
          IF l_buffer IS INITIAL.
            EXIT.
          ENDIF.
        ENDDO.
    All seem to work fine, but as soon as I open the pdf file attached to the mail I can't see the logo
    So after calling fm CONVERT_OTF, I've created a pdf file by method GUI_DOWNLOAD, and then upload this file (by GUI_UPLOAD) into internal table for attachment and send the mail.
    Now really all work very fine, becaus I can see the logo
    Of course I don't want to dowload the file before sending a mail, but I need to send my print directly as pdf attachment
    The two ways seem to be equal, they use the same print and the same functions, only the way to upload the internal table for attachment is different:
    1) tha abap code above to expand the line from 132 to 255
    2) the method GUI_UPLOAD
    So something seems to be wrong in the first way because ithe logo is missing in the pdf attachment generated for the mail
    Max

    Hi
    I'm not working on unicode system, anyway I didn't see that parameter BIN_FILE, so I didn't use it
    I've read the note 1324547 and I've done just as it explaines: now works fine
    I don't know why it doesn't work with old manner (i.e data is treated as character-type), but it worls with the new one (If the data is treated as xstring-type)
    I can only suppose the data are corrupted while being elaborated for expand to 255 char....but I don't why
    Anyway your suggestion works for me
    Thank
    Max

  • Output determination and sending external mails

    Hi,
    I've set up our system to send an email in the event of an order going into credit block. I've configured the output type as a simple mail and used the following parameters for the processing routine:
    PROGRAM: RSNASTSO
    FORM ROUTINE: SAPOFFICE_AUFRUF_VX
    This all works fine except for the fact that the email which is sent includes a blank attachment. I would like the email to only be text and not to include any attachment. Is this possible?
    Thanks,
    Steph.

    Hello Steph
    I suggest you rather use output type KRML or a copy of it.  Please see OSS note 677377 (E-mail to credit representative) while doing so. This would ensure a workflow type behavior and should not include an attachment.

  • Any STD PGM To Trigger SapScript to E-Mail

    Hi All, Is There Any STD Pgm is There to Trigger Sapscript to E-Mail,
    Letme Know .
    Thanks in Advance.

    Hi,
    Have a look at this SAP has provided a great way to send your PDFs to Email.
    http://help.sap.com/saphelp_nw04s/helpdata/en/ae/16193ce8fac413e10000000a114084/content.htm
    <b>or</b>
    No standard programs but you can use the function modules available and trigger them.
    <b>SO_NEW_DOCUMENT_ATT_SEND_API1</b>
    Also try this code...  The code is quite big.
    1. Include with the name : ZAMI_INCLFOR_MAIL
    2. Report with the name : ZAM_TEMP147 (any name will do)
    3. Activate both and execute (2)
    4. After providing filename, email adress
    5. Code for Include :
    Data
    DATA: docdata LIKE sodocchgi1,
    objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
    objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
    objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objhex LIKE solix OCCURS 10 WITH HEADER LINE,
    reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    DATA: tab_lines TYPE i,
    doc_size TYPE i,
    att_type LIKE soodk-objtp.
    DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
    FORM
    FORM ml_customize USING objname objdesc.
    Clear Variables
    CLEAR docdata.
    REFRESH objpack.
    CLEAR objpack.
    REFRESH objhead.
    REFRESH objtxt.
    CLEAR objtxt.
    REFRESH objbin.
    CLEAR objbin.
    REFRESH objhex.
    CLEAR objhex.
    REFRESH reclist.
    CLEAR reclist.
    REFRESH listobject.
    CLEAR listobject.
    CLEAR tab_lines.
    CLEAR doc_size.
    CLEAR att_type.
    Set Variables
    docdata-obj_name = objname.
    docdata-obj_descr = objdesc.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addrecp USING preceiver prec_type.
    CLEAR reclist.
    reclist-receiver = preceiver.
    reclist-rec_type = prec_type.
    APPEND reclist.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addtxt USING ptxt.
    CLEAR objtxt.
    objtxt = ptxt.
    APPEND objtxt.
    ENDFORM. "ml_customize
    FORM
    FORM ml_prepare USING bypassmemory whatatt_type whatname.
    IF bypassmemory = ''.
    Fetch List From Memory
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'LIST_FROM_MEMORY'.
    ENDIF.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    COMPRESSED_SIZE =
    TABLES
    in = listobject
    out = objbin
    EXCEPTIONS
    OTHERS = 1
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'TABLE_COMPRESS'.
    ENDIF.
    ENDIF.
    Header Data
    Already Done Thru FM
    Main Text
    Already Done Thru FM
    Packing Info For Text Data
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'TXT'.
    APPEND objpack.
    Packing Info Attachment
    att_type = whatatt_type..
    DESCRIBE TABLE objbin LINES tab_lines.
    READ TABLE objbin INDEX tab_lines.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = att_type.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = whatname.
    APPEND objpack.
    Receiver List
    Already done thru fm
    ENDFORM. "ml_prepare
    FORM
    FORM ml_dosend.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = docdata
    put_in_outbox = 'X'
    commit_work = 'X' "used from rel. 6.10
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    CONTENTS_HEX = objhex
    OBJECT_PARA =
    object_parb =
    receivers = 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 <> 0.
    MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
    WITH docdata-obj_name.
    ENDIF.
    ENDFORM. "ml_customize
    FORM
    FORM ml_spooltopdf USING whatspoolid.
    DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    Call Function
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = whatspoolid
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_otf_spooljob = 1
    OTHERS = 12.
    Convert
    PERFORM doconv TABLES pdf objbin.
    ENDFORM. "ml_spooltopdf
    FORM
    FORM doconv TABLES
    mypdf STRUCTURE tline
    outbin STRUCTURE solisti1.
    Data
    DATA : pos TYPE i.
    DATA : len TYPE i.
    Loop And Put Data
    LOOP AT mypdf.
    pos = 255 - len.
    IF pos > 134. "length of pdf_table
    pos = 134.
    ENDIF.
    outbin+len = mypdf(pos).
    len = len + pos.
    IF len = 255. "length of out (contents_bin)
    APPEND outbin.
    CLEAR: outbin, len.
    IF pos < 134.
    outbin = mypdf+pos.
    len = 134 - pos.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF len > 0.
    APPEND outbin.
    ENDIF.
    ENDFORM. "doconv
    FORM
    FORM ml_saveforbp USING jobname jobcount.
    Data
    data : yhead like yhrt_bp_head.
    DATA : ydocdata LIKE yhrt_bp_docdata,
    yobjtxt LIKE yhrt_bp_objtxt OCCURS 0 WITH HEADER LINE,
    yreclist LIKE yhrt_bp_reclist OCCURS 0 WITH HEADER LINE.
    DATA : seqnr TYPE i.
    Head
    yhead-jobname = jobname.
    yhead-jobcount = jobcount..
    MODIFY yhrt_bp_head FROM yhead.
    Doc Data
    ydocdata-jobname = jobname.
    ydocdata-jobcount = jobcount.
    MOVE-CORRESPONDING docdata TO ydocdata.
    MODIFY yhrt_bp_docdata FROM ydocdata.
    Objtxt
    seqnr = 0.
    LOOP AT objtxt.
    seqnr = seqnr + 1.
    yobjtxt-jobname = jobname.
    yobjtxt-jobcount = jobcount.
    yobjtxt-seqnr = seqnr.
    MOVE-CORRESPONDING objtxt TO yobjtxt.
    MODIFY yhrt_bp_objtxt FROM yobjtxt.
    ENDLOOP.
    RecList
    seqnr = 0.
    LOOP AT reclist.
    seqnr = seqnr + 1.
    yreclist-jobname = jobname.
    yreclist-jobcount = jobcount.
    yreclist-seqnr = seqnr.
    MOVE-CORRESPONDING reclist TO yreclist.
    MODIFY yhrt_bp_reclist FROM yreclist.
    ENDLOOP.
    ENDFORM. "ml_saveforbp
    FORM
    FORM ml_fetchfrombp USING jobname jobcount.
    CLEAR docdata.
    REFRESH objtxt.
    REFRESH reclist.
    SELECT SINGLE * FROM yhrt_bp_docdata
    INTO corresponding fields of docdata
    WHERE jobname = jobname
    AND jobcount = jobcount.
    SELECT * FROM yhrt_bp_objtxt
    INTO corresponding fields of TABLE objtxt
    WHERE jobname = jobname
    AND jobcount = jobcount
    ORDER BY seqnr.
    SELECT * FROM yhrt_bp_reclist
    INTO corresponding fields of TABLE reclist
    WHERE jobname = jobname
    AND jobcount = jobcount
    ORDER BY seqnr.
    ENDFORM. "ml_fetchfrombp
    CODE FOR PROGRAM
    5.
    REPORT zam_temp147 .
    INCLUDE zami_inclfor_mail.
    DATA
    DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA : file_name TYPE string.
    data : path like PCFILE-PATH.
    data : extension(5) type c.
    data : name(100) type c.
    SELECTION SCREEN
    PARAMETERS : receiver TYPE somlreci1-receiver lower case.
    PARAMETERS : p_file LIKE rlgrap-filename
    OBLIGATORY.
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CLEAR p_file.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
    file_name = p_file.
    START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM ml_customize USING 'Tst' 'Testing'.
    PERFORM ml_addrecp USING receiver 'U'.
    PERFORM upl.
    PERFORM doconv TABLES itab objbin.
    PERFORM ml_prepare USING 'X' extension name.
    PERFORM ml_dosend.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    AND RETURN.
    FORM
    FORM upl.
    file_name = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = file_name
    filetype = 'BIN'
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    path = file_name.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    CHECK_DOS_FORMAT =
    IMPORTING
    DRIVE =
    EXTENSION = extension
    NAME = name
    NAME_WITH_EXT =
    PATH =
    EXCEPTIONS
    INVALID_DRIVE = 1
    INVALID_EXTENSION = 2
    INVALID_NAME = 3
    INVALID_PATH = 4
    OTHERS = 5
    ENDFORM.
    Feel free to revert back.
    --Ragu

  • To send output of report to the mails ids as an excel attachment

    Hi all,
    I have a requirement that I have created a report using classes. Now I have to send output of my report to the particular mailids as an excel attachment.
    Can anybody help me?
    Regards,
    Azra.

    Hi,
    Refer Below links.
    Re: Formatting Excel Attachment output in SO_DOCUMENT_SEND_API1
    Information Broadcasting with Excel Report as attachment
    Zip the excel and send as mail attachment
    Regards
    Md.MaahboobKhan

  • PO output type to send a mail  to the user along with PO output as PDF file

    Hi Friends,
    I have one requirement from client.
    Client wants the PO output to be converted to PDF format and sent to User while doing the PO release through e-mail. Can anybody guide me how to Configure a New Output Type and convert the PO output into PDF and send to User through e-mail.
    Thanks
    Nazer

    This can be done with the standard form itself.
    first find out the output type u r using.
    Then goto T-code NACE and then choose EF- purchase order and then select the output type u r using.
    Then goto the 'processing Routines' at the lefe side of the screen.
    There u can find out the output forms for this output typr u r using. Here add 'Simple mail-7' in the list and then give the program name and the smartform or the script u r using.
    We can also give the mail texts for this output form.
    After that goto ME22N and then choose the 'Messages' tab and then click the simple mail and in the 'communication method' kindly provide the mail id for which the PO mail has to be sent.
    And then the mail can be viewed in the inbox of the recipient.
    in this way we can sent the PO mail to the corresponding mail address,.
    I guess this will solve ur issue.
    Thanks and Regards
    Siva
    Edited by: Sivaprakash R on Apr 20, 2009 1:00 PM
    Edited by: Sivaprakash R on Apr 20, 2009 1:00 PM

  • Crystal Server XI - Output to body of e-mail

    Is it possible to include the output of a report in the body of an e-mail?
    I want to do this to forward the message to an SMS agent for onward distribution, so any alternatives would be appreciated
    Richard

    I think you are limited to including it as an attachment.
    Fuskie
    Who normally formats the output as a PDF file and then attaches it to a message...

  • Corrupt file attachment when sending sapscript form by mail

    i have requirment to send sapscript through mail but when open my attachment it is giving file is corrupted.let me know where i am wrong
    i am specifying the code here
    CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         format                      = 'PDF'
    *     MAX_LINEWIDTH               = 132
    *     ARCHIVE_INDEX               = ' '
    *     COPYNUMBER                  = 0
    *     ASCII_BIDI_VIS2LOG          = ' '
    *     PDF_DELETE_OTFTAB           = ' '
    *     PDF_USERNAME                = ' '
       IMPORTING
         bin_filesize                = binfilesize
    *     BIN_FILE                    =
        TABLES
          otf                         = datab[]
          lines                       = pdftab[]
       EXCEPTIONS
         ERR_MAX_LINEWIDTH           = 1
         ERR_FORMAT                  = 2
         ERR_CONV_NOT_POSSIBLE       = 3
         ERR_BAD_OTF                 = 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.
      REFRESH it_pdf[].
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        EXPORTING
          line_width_dst              = '255'
        TABLES
          content_in                  = pdftab[]
          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   = 0.
        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 i_body_msg INTO w_body_msg INDEX g_tab_lines.
        w_document_data-doc_size = ( g_tab_lines - 1 ) * 255 + STRLEN( w_body_msg ).
        "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 ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        else.
          MESSAGE 'Mail Successfully Sent' type 'S'.
        ENDIF.
    Edited by: sam_ins123524 on Oct 8, 2010 9:31 AM
    Edited by: sam_ins123524 on Oct 8, 2010 9:33 AM
    Moderator message: subject corrected for you, please use a more descriptive one next time, also use code tags.
    Edited by: Thomas Zloch on Oct 8, 2010 10:51 AM

    Hi,
    Once you get otf data, Use FM 'SX_OBJECT_CONVERT_OTF_PDF' to convert it to PDF. Then use CONTENT_BIN to send mail.
    Refer below code:
    * Converting OTF data to single line
      LOOP AT I_OTF INTO WA_OTF.
        CONCATENATE WA_OTF-TDPRINTCOM WA_OTF-TDPRINTPAR INTO WA_PDF.
        MOVE WA_PDF TO WA_CONTENT_TXT.
        APPEND WA_CONTENT_TXT TO I_CONTENT_TXT.
        CLEAR: WA_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    = WA_TRANSFER_BIN
          CONTENT_TXT     = I_CONTENT_TXT
          CONTENT_BIN     = I_CONTENT_BIN
          OBJHEAD         = WA_OBJHEAD
          LEN             = V_LEN_IN.
    *- Send mail
        CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
          EXPORTING
            DOCUMENT_DATA                    = L_WA_DOCUMENT_DATA
          TABLES
            OBJECT_CONTENT                   = I_CONTENT_BIN
            RECEIVERS                        = L_I_RECEIVERS.

  • Outputting quiz results to E-mail / Excel

    Hi everyone,
    I am a multimedia computing student currently on placement at
    an organisation. I am designing an e-learning package at the moment
    and am fairly new to Captivate. I have designed a package which
    consists of 6 question slides. I have set the project to send the
    results of the quiz to my work's e-mail address. I'm trying to find
    out if there is a way of getting Captivate to directly output the
    results to an Excel document. I have read numerous articles on this
    site regarding outputting the results to an Access database and
    would use this method, although my workplace unfortunately does not
    have ColdFusion. I have also read the article regarding manually
    importing the results from the e-mail into Excel, but have been
    asked by my supervisor to see if there is way for Captivate to
    automate this process. If you guys can help in any way, it would be
    greatly appreciated.
    The organisation does not currently have a LMS either, so I
    can't even output the results to that. On top of that, they want me
    to find a way of identifying when somebody has been through the
    appication, but without a LMS I guess Captivate is unable to do
    that. If you can let me know whether this is true too, that would
    be brilliant!
    Many thanks in advance for your help guys.

    Would your office, department, and/or township be willing to
    look at an
    LMS? There are a few free and low-cost LMS products out
    there...
    Gaftop's solution is decent but shouldn't be limited to ASP.
    Since Captivate can run javascript functions that are present
    in the
    parent HTML page, just make calls to that JS, which then
    posts to
    whatever backend page you have setup to receive that POST
    (ASP, PHP,
    etc). Then have the backend page update the database.
    This does, of course, require some sort of web server.
    Erik
    jostler wrote:
    > Hi everyone,
    >
    > I am a multimedia computing student currently on
    placement with the police. I
    > am designing an e-learning package at the moment and am
    fairly new to
    > Captivate. I have designed a package which consists of 6
    question slides. I
    > have set the project to send the results of the quiz to
    my work's e-mail
    > address. I'm trying to find out if there is a way of
    getting Captivate to
    > directly output the results to an Excel document. I have
    read numerous
    > articles on this site regarding outputting the results
    to an Access database
    > and would use this method, although my workplace
    unfortunately does not have
    > ColdFusion. I have also read the article regarding
    manually importing the
    > results from the e-mail into Excel, but have been asked
    by my supervisor to see
    > if there is way for Captivate to automate this process.
    If you guys can help
    > in any way, it would be greatly appreciated.
    >
    > The police don't currently have a LMS either, so I can't
    even output the
    > results to that. On top of that, they want me to find a
    way of identifying
    > when somebody has been through the appication, but
    without a LMS I guess
    > Captivate is unable to do that. If you can let me know
    whether this is true
    > too, that would be brilliant!
    >
    > Many thanks in advance for your help guys.
    >
    > It's really good to find other people whom are
    experiencing similar problems
    > to talk to. The head multimedia designers at work are
    absolutely useless!
    >
    > :-)
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.macromedia.com/support/forums/team_macromedia/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/groups?q=macromedia.authorware

  • Displaying output of sapscript

    Hi,,
    I had created a code in which i am displaying the output of the data in pdf format which is working fine but the thing is when i use to execut the program it display the print view in the pdf format and then ask to download which is due to the FM called 'PDF Preview'. But i want that it should display the data in sapscript first and then ask to save the file in PDF format .
    Please provide me guidlines that is it possible to display the data in the sapscript  and then save it in a pdf format.
    Edited by: ricx .s on May 25, 2009 7:50 AM

    hi,
    i am already using this FM and done the amendments mentioned above but still it is giving the same result not the desierd result .
    please provide me guidelines to solve this  problem.
    here's the code which i am using right  now:-
    form otf.
    call function 'CONVERT_OTF'
    exporting
    format = 'PDF'
    importing
    bin_filesize = BINFILESIZE
    tables
    otf = datab[]
    lines = pdftab[]
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    OTHERS = 4.
    if sy-subrc ne 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
      CHANGING
        filename = file_name
        path = file_path
        fullpath = full_path
      EXCEPTIONS
        CNTL_ERROR = 1
        ERROR_NO_GUI = 2
        NOT_SUPPORTED_BY_GUI = 3
        OTHERS = 4.
      IF sy-subrc NE 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        BIN_FILESIZE = BINFILESIZE
        FILENAME = full_path            "file_name
        FILETYPE = 'BIN'
      TABLES
        data_tab = PDFTAB[]
      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 .
    ENDFORM.
    Edited by: ricx .s on May 26, 2009 10:12 AM
    Edited by: ricx .s on May 26, 2009 10:12 AM
    Edited by: ricx .s on May 26, 2009 12:31 PM
    Edited by: ricx .s on May 27, 2009 5:32 AM

  • ALV output as an attachment to mail

    Hi all,
    I have an requirement where in an interface i populate a ALV data and i need to pass the ALV output as an attachment to a mail send to some shared folder in SAP mail office. Indeed i should not display the output but rather capture the output and send it as an attachment to mail. Tried using with SPOOL, able to capture the ALV output in background but the retrieval of spool id being generated during that process seems to be difficult. if some one has already worked on this kind of requirement may throw some light on this.
    thanks,
    Jagath

    Hi Zhenglin hu,
    thanks for your valuable information. well it indeed was really helpful, but i have a small problem which is when i call the FM print_report and executemy ALV the output gets attached to spool but it displays a spool request screen which will stop my interface process until or unless i press back manually. how to avoid this screen being displayed after i execute the same.
    are there any different approach apart from this?
    Thanks,
    Jagath
    Message was edited by: Jagathguru Chandrasekharan

  • Redirect ClamAV output &/or forward from unix mail

    I have started using ClamAV as an anti-virus checker. It is a command line application and sends it's output to the unix mail client (as well as it's own logs). Both are a bit of a pain to open all the time to check if something has been found. Does anybody know;
    1) how to configure ClamAV to send it to my personal mail account (i.e. to be able to be picked up by Mail.app.)
    2) how to configure the unix mail client to forward all mail to my personal mail account and then delete that mail.
    Preferably without using 3rd party software - ok is this all a tall order
    An answer to either would be good, an answer to both would be brilliant.
    Thanks

    I don't know how to configure ClamAV - but forwarding email is pretty easy with Postfix Enabler.
    http://www.cutedgesystems.com/software/PostfixEnabler/
    You might grab the manual or check with your ISP to be sure they will accept mail from other mail servers. Usually it's not a big issue if you can send mail from the Mail app - getting postfix to do the same thing and forward email should be a snap. Don't feel intimidated by how much the enabler does. It's default configuration (click one button) is most likely all you need. I had to enter three additional pieces of information to get mine working to forward mail from departmental servers to our corporate mail servers.

  • Migrate PO output from Sapscript to Smartform

    Hi,
    I'll be migrating ZZMEDRUCK (customized copy of the standard form)that is in sapscript to smartform. I'll be doing this manually since some of the layout/format was changed by the user. Now do i have to create a new print program aside from the ZZSAPFM06P so that it will call the new smartform that i will make? Do i have to create a new output type? Or i dont have to do this and just change the configuration in M/34?
    Thanks a lot.

    TCode smartforms--> Utilities --> Migrate SAPScript form
    This will copy hte SAP Script form into smart forms.
    But this will not solve the purpose.
    YOu will have to map the print program accordingly.
    Hope this helps.
    Please reward if useful
    thnx

  • SM37 spool output not matched with the mail received

    Hi All
    I have a background job which run on daily basis. After the job is finished successfully the spool is sent to client in the form of the html page.
    The mail received by client and the actual spool in R3 are not matching.
    Some of the text is missing at the end of the lines. Say like a row having 300 characters in the actual spool R3, 280 characters are only showing in the received mail of client, last 20 characters are missing.
    How to check the settings of Page width in SAP R3.
    Should i check the settings in the Mail configuration.
    Please advise
    Regards

    Hi
    Thank you for all the replies.
    The issue is related to the width of the output missing.
    The spool output is fine. Once this output is generated this wil be send to the spool recipient.
    spool output is different in the spool recipient and actual spool output produced in SM37. i.e  The width of the spool received in the spool receipient is missed. length is ok but widh is missing.
    Should i check in mail settings. Please help me
    Regards,

Maybe you are looking for