Email a Standard SapScript

Dear Friends,
1. There is a standard program (for Form 16 India)
   which has a normal selection screen
   and outputs a sapscript report.
2. The requirement is to EMAIL the report
   to each individual employees.
   (Thru a Y Program)    
3. I had investigated & done ::
   we can email a report which outputs in
   LIST FORMAT
   But
   How To EMail a report which is output in SAPSCRIPT !
Regards,
Amit M

Thanks for the reply friends.
But i could not find the exact solution
to my problem.
1. The report is a standard se38 report
   whose output is in sapscript format.
2. I don't have any control over its code
   of 'OPEN_FORM', 'CLOSE_FORM'. (Since
   it is a standard sap report)
3. A new Z Program is required to be developed
   which LOOPS and mails the sapscript report mentioned in point (1),
   one by one to each individual employees email address.
Regards,
Amit M.

Similar Messages

  • How to create an email of a SAPscript formular

    Hello,
    I like to create an email of a sapscript formular. I have read a lot about function modules CONVERT_OTF_2_PDF and SO_NEW_DOCUMENT_ATT_SEND_API1. Does anybody have a sample program ???
    Is it necessary to convert to PDF or is it possible to convert to a word document too ??
    Regards,
    GJ van Holland

    Hai G.J Van
    Go through the 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.
    Thanks & regards
    Sreenivasulu P

  • Copying Standard SAPScript to ZSapscript...

    Hi,
    I want to copy standard sapscript to zsapscript.
    I go in SE71 and enter the name of Z sapascript form and then create. Now when I go to Menu-> Form-> copy from: I give form name as MR_PRINT and give language as EN.
    It says MR_PRINT LANGUAGE EN is not available in client 120.
    But when I again go to se71, and type MR_PRINT with labguage EN in the same client, it dispalys the form but says MR_PRINT from client 000 dispalyed.
    How do I resolve this ?
    Do I need to copy the script from client 000 to 120 ?
    How do I do this ?
    Thanks.
    Regards,
    Thomas.

    hi Rajesh,
    first of all copy the script from 000 to 120
    here is the procedure
    SAP Script is client dependent.
    So you can use SCOT transaction to copy Transport request of SAP Script from one client to another.
    You can use program RSTXSCRP also to transport SAP Script from one client to another.
    Or from SE71 as SE71-> utlities->copy from client .
    then u can copy from standard to z
    if u find it useful mark the points
    Regards,
    Naveen

  • Logo in standard SAPScript

    Hi all,
    I am working on standard SAPScript, In that I am facing the problem with logo , I have to include my companys logo.
    Thus I had change standard   ADRS_HEADER using so10 Tcode. The logo is coming but in left side of the header window as it requires on write side although the IDES  logo is on write side.
    Thanks and Regards
    R Satalkar

    Hi R Satalkar,
    Do you use the BITMAP command to place your logo graphic? You can use the XPOS and YPOS paramaeters to place yuor logo differently. please see the SAP Note:
    307414 - Documentation on SAPscript command BITMAP
    Regards,
    Aidan

  • Creating sapscript from a standard sapscript - need suggestions

    Hi,
    I am currently working on a settlement form.
    There is a standard invoice settlement with the following details:
    - SAPscript - MR_PRINT
    - Program - RM08NAST
    - Entry Routine - ENTRY_KONS
    My task is to create a new SAPscript, which will have a different look. However, the new SAPscript will be 90% composed of existing standard data, with the other 10% composed of several new fields.
    At 1st, I thought of just copying the entire standard print-program.
    However, the entry point ENTRY_KONS calls an FM that does all the data selection. This FM has tons of includes inside.
    What is generally done, especially in regards to output type KONS? what do I do?
    Do I copy every include or create my own program and copy only what I need?
    Please help.
    Thanks,
    John

    Hi,
         If additional fields are few and any relationship with the existing data.
         Copy Standard sapscript and use original print program.
         You try using Subroutines, You can get the data for the additional fields and other calculations in the   subroutines and pass the data to the sapscript.
          First identify from which tables the additional fields reside and any relation with the existing data in the
    sapscript which can be used as USING parameter in PERFORM statement.
          Call the subroutine, fetch the data and do additional calculations and send data back to sapscript.
    Refer the SAP help link on PERFORM statement
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    you can find many threads on PERFORM in SAPSCRIPTS, do a search in SCN for additional help on that statement.
    Regards
    Bala Krishna

  • Standard sapscript /  smartforms for GOODS RECEIPT

    Hi,
    Can anyone tell me standard sapscript /  smartforms for GOODS RECEIPT
    -John

    Here is your answer from NACE
    Output type WF01 or WF02
    Application ME
    Program SAPM07DR
    Form routine ENTRY_WF01 or WF02
    Sap script: WE_FERT_VERS1 or VERS2 (this is for GR for prod. orders)
    Or
    Output type WE01 or WE02
    Application ME
    Program SAPM07DR
    Form routine ENTRY_WE01 or WE02 or WE03
    Sap script: WESCHEINVERS1 or VERS2 or VERS3 (this is for GR for normal purchase orders)
    I would suggest you use the latest version.

  • Standard SAPScript

    Hi,
    Is there any standard SAPScript available for tcode f-02.
    Regards,
    Vijaya B.

    hi ,
    check out this link ..
    all standard scripts are stored in the TNAPR table .
    [http://www.sap-img.com/sapscripts/create-scripts-of-your-own-using-standard-scripts.htm]

  • Standard SApScript / Smartform name for FB75 (credit memo) transaction

    Need to know Standard SApScript / Smartform name for FB75 (credit memo) transaction..

    hi
    check SPRO>Financial Accounting>Accounts Receivable and Accounts
    Payable>Customer Accounts>Line Items>Correspondence>Carry Out
    and Check Settings for Correspondence
    surya

  • Importing standard SAPScript text - not asking for transport request!

    Hi!
    I tried to import some standard SAPScript text running program RSTXSCRP.
    Everything was fine, but I was not asked for package and for a transport request... is it ok?
    How can I send this standard text to Quality system?
    Will reward,
    Mindaugas

    You can use program : RSTXTRAN
    Navigation -> goto SE38 -> enter RSTXTRAN -> execute ->
    Name of correction -
    text key -object - TEXT
    text key- name - enter standard text name
    Text id  - ST
    Text key language - EN
    execute now -> select text here -> enter -> now click on push button trsfr texts to corr -> you will get pop up window( request)
    Thanks
    Seshu

  • Emailing SAP standard report using output device ZPDF1

    I have two questions regarding the ability to email a standard SAP report.
    The user community has been using the action box in tran QM02 to create a corrective action (8D) report. The action box triggers FM QM06_FM_TASK_REQUEST_8DREPORT and QM06_REQUEST_8D_REPORT_STEP2. This process not only creates the report but creates a task in the notification that the report has been generated. The process pops up the PRINT options box to choose various setting including output device. They will then print the report, scan this hardcopy report and email it to the vendor.
    We recently showed them a more streamlined process to emailing the report. When the PRINT popup appears, they fill in the output device with ZPDF1 and hit enter. This brings in an email address line that can be filled with the vendor’s email. By specifying the ZPDF1 output device, the report is generated as a PDF attachment and sent along to the vendor via email.
    The two questions I have are:
    1. Is there any way to bring over the print parameters needed for the popup screen and eliminate this screen from appearing?
    The subject line on the email is populated with the system and spool number even if the title line is filled in on the print popup. Also, the email body has is created with generic text.
    2. How can the email subject and body information be changed?
    Sorry for the lengthy post but I am not very technical and I wanted to describe the issues as best as possible.
    thanks

    Hi,
    This is possible please configure the Message determination the Output should poin to Outlook
    Please take the help of BASIS people to configure this
    G.Ganesh Kumar

  • Emailing SAP standard reports using MS Outlook

    Hi all,
    Can anyone tell me if it is possible to email a standard SAP report to an external email address(not A SAP User) ie through MS Outlook directly from the transaction report without saving the report. My requirement is to shedule reports and email automatically without user intervention. The reports I'm refering to is any report for ex. ME2L that do not have message determination functions.
    I appreciate any input

    Hi,
    This is possible please configure the Message determination the Output should poin to Outlook
    Please take the help of BASIS people to configure this
    G.Ganesh Kumar

  • [FR] Email encryption standards support

    I'm not sure if this is supported in BES or not, but most smaller structures won't use BES anyway and many of them have been using standards such as S/MIME and PGP to protect or authenticate their communications.
    BlackBerry 10 offers no support for those standards which means that some people have to use alternative mobile OS or desktop solutions in order to perform their job.
    Please support email encryption standards in BB10.
    Olivier - interfaSys ltd
    Developing for BlackBerry 10 devices using the Sencha Touch framework.

    I invite you to check my new application which implements PGP for BlackBerry10.
    http://appworld.blackberry.com/webstore/content/47148895/?lang=en
    More details here:
    http://pawelgorny.com/pgpgp/
    I hope you find it useful. In case of any questions/remarks, please send me an email or PM.
    Regards,
    Pawel Gorny
    my apps: http://pawelgorny.com/
    PGpgp, Your Reply, Anagrammatist, Texas Hold'em Odds Calculator, Contacts to CSV
    If your issue has been solved, please resolve it by marking "Accept as Solution"

  • 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.

  • Standard sapscript form migration to adobe form

    Hello guys,
    Is it possible to migrate standard SAP Script forms to adobe forms?
    If yes then please let me know how ?

    Hi,
    It is possible, but not simple. 
    You first have to migrate the SAPscript to Smartforms, then the Smartform to adobe forms.  However, there are significant differences between the way SAPscript works compared to Smartforms so there are always manual changes needed after the migration.  Then there are differences between Smartforms and adobe forms, so more manual changes are needed.
    Once you've done all this it could have been easier to build an adobe form from scratch, based on the design of you SAPscript.
    Regards,
    Nick

  • Send hyperlink in email from standard text

    Hello everyone,
    My task is to send an email to external/internal candidates.  The objective is quite simple, but I am having trouble dealing with the hyperlink issue.  The emails will be maintained as standard texts.  The business would like to include a hyperlink within the email.  I am using FM READ_TEXT to gather the email and manipulating fields as necessary.  From here I need to email to the specified individual.
    In digging around forums, SAP help, and running enough google searches to make my head spin I have found a few FMs that may help.  But I have no experience with these and am unsure on how the standard text should be passed to the FM.  Im sure there is some symbols I should be using to indicate the hyperlink and hyperlink text. (e.g. www.yahoo.com would be shown as Yahoo)
    I have found CONVERT_ITF_TO_HTML would be the pretty straight forward answer.  I did some test and have been unsuccessful in creating a hyperlink.  I am not sure if it is the format of the lines being passed or a parameter I am passing incorrectly.
    I have also looked into FM SO_DOCUMENT_SEND_API1. Does anyone have any pointers or advice on how to do this?
    Thanks for your help in advance.
    Regards,
    C

    That document type should work. This is a working example:
      REFRESH v_object_content.
      CLEAR wa_object_content.
      wa_object_content-line = '<html><body>'.
      APPEND wa_object_content TO v_object_content.
      CLEAR wa_object_content.
      wa_object_content-line = '<a href="http://www.sdn.com">click here</a>'.
      APPEND wa_object_content TO v_object_content.
      CLEAR wa_object_content.
      wa_object_content-line = '</body></html>'.
      APPEND wa_object_content TO v_object_content.
        CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
          EXPORTING
            document_data              = wa_document_data
            document_type              = 'HTM'
            put_in_outbox              = 'X'
            commit_work                = 'X'
          TABLES
            object_content             = v_object_content
            receivers                  = v_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.

Maybe you are looking for

  • Excel 2011 version 14.4.8 running on an iMac gets "out of memory" messages.

    HELP!!!   Excel 2011 running on an iMac with OS 10.10.2 and 16GB Ram gets "out of memory" messages.  When I monitor processes with "Activity Monitor", I am using less than half of my RAM.  The Excel workbook has many sheets and also some macros.  The

  • Burning the highest quality in idvd 9

    Hi, When burning a disk at the highest quality available in idvd 9, what is the final output resolution? I'd like to get as close to 1080i as possible (knowing that I cannot burn HD without a HD burner and equivalent software). I am curious as to wha

  • How can i get wired LAN to work, missing driver?

    i recently have upgraded my machine with a new hd and windows 7 ultimate 64 bit. now i dont have use of my wired connection do to no driver for it, i cant find it anywhere and do to being a netbook i dont have a driver cd. how can i get the driver im

  • Buffer Qua is 60 % , incre the sga_max_size and db_cache_size on wht basis

    Dear All,                     In our XI Production system, data buffer quality is 60%, as i found out that sga_max_size(1.1 GB) and db_cache_size(570 MB) not set as per the standard, and also they are less when compared with development(8 GB RAM).   

  • SNMP over ACE not showing RealServer statistics

    Hi All, I have a semi weird problem. I´m trying to get statistics from my ACE, and I downloaded the MIBs for that and use a program to do a snmpwalk over these. My problem is this: I can get statistics for the Virtual Servers and also some for the re