Send automaticly a report after generation

HI,
how to send a report (the result of tcode MB52 for exemple) automaticly by mail after generation by job.
thx

Hi Anda,
             You can take the help of a basis Person, Via T-code SM36, create a variant in MB52, and keep on running the same variant and save it,
create the recipient group for whoom you want to send the, copy the Program name for MB52 (RM07MLBS), and goto SM36, give in the program and recipient list.
then goto SM37, run the Back ground job,
BUt it is not as easy as Explained., But you can always take help from the BASIS guy.
Hope it helps you.
Regards,
YK

Similar Messages

  • Can I run automatically another report after a runned report?

    Hi.
    Can I run automatically in another report after a runned report?
    Like: I open a report, I click on Run/View and then the pdf is on screen BI Publisher runs another report (on screen)?
    Thank you, bye
    R.
    Edited by: user12003776 on May 18, 2011 5:29 PM

    Ok,
    I've to do a datatemplate with 2 queries and a new page in the existing template ?

  • How to send automatic "reminder mails" after certain time

    Hi Experts,
    There is a problem which I am not able to solve, Please help !
    Requirement: 1. After the creation of a certain task, a mail should go to the user... this I have done using the Java Mail API.
    *2. After 2 days if the user don perform certain task, a reminder mail should be send to him EVERYDAY after the INITIAL 2 days.*
    how to achieve this in the Java mail.. I have heard of Java mail Schedulers but I am not able to find it.. If you can give me some guide or some steps or some article for this I would be very very gratefu to you.
    Please treat it as urgent and give your valuable suggestions.
    Thanx in advance.
    Regards,
    Rajat

    Nope. It means that if you want to schedule something, use code which does scheduling. Like Quartz for example. Bear in mind that the "something" in this case would involve sending an e-mail, but your scheduler wouldn't care about that.

  • Sending automatic e-mail after change credit limit

    Hi All,
    I need to send an external e-mail after a change credit limit happened.
    If the credit manager changes the credit limit credit-KNKK KLIMKE (via FD32 tcode), when he click on "save" I need to send an automatic e-mail to the the customer manager.
    I didn't find any user-exit or enhancement.
    Can anyone help me or show me how to solve the problem?
    Thanks in advance
    Leo

    Hi,
    If the calendar is not an Exchange or CalDAV calendar try iCal Reply Checker.
    http://discussions.apple.com/thread.jspa?messageID=10256493&#10256493
    Best wishes
    John M

  • Firefox does not send a crash report.

    Mac OS 10.6.3 Firefox 3.6.7
    Firefox does not send an error report after it crashes. It crashes consistently when accessing certain pages when Shockwave Flash 10.1 r53 10.1.53.64 is enabled, but never sends a crash report.
    == This happened ==
    Every time Firefox opened
    == I noticed the problem in early July 2010 after upgrading Shockwave.

    More information:
    Firefox produces a crash file, but does not send it.
    There are 19 July 2010 reports in /Users/me/Library/Logs/DiagnosticReports/ including 5 from today.
    A plist file was created or modified at the same time that the as the last crash report. It contains OS and Firefox versions.
    The directory /Users/tvd/Library/Application Support/Firefox/Crash Reports/pending is empty. The permission are 700. I am the owner.
    The last report submitted was Mar 4, 2010:
    tail -1 /Users/me/Library/Application\ Support/Firefox/Crash\ Reports/submit.log
    [Thu Mar 4 22:03:14 2010] Crash report submitted successfully

  • How to automatically send report after it is created?

    Hello,
    I am beginner and I would appreciate if someone could tell me general information.
    I found this tutorial how to save and access report.
    Storing and Accessing Reports in the Database
    In that tutorial report is saved onclick.
    Is there a way to automatically email report everytime report is generate or I should first save it (PDF, CSV,..) with SQL script and then email it?
    I also found that in Interactive report there is page process that can send e-mails. Is it possible that page process send e-mail with report or report should be also saved before sending?
    The reason for this is that we want to have a history of created reports.
    Thank you in advance.

    874887 wrote:
    The reason for this is that we want to have a history of created reports.
    Save report, then email it.
    I usually call COMMIT between the two steps.
    Use the APEX_MAIL package to send out an e-mail with an attachment.
    You should be able to modify the PL/SQL to do it all in one step
    declare
      l_report blob;
    -- Added this for APEX_MAIL
    l_mail_id NUMBER;
    begin
      l_report := apex_util.get_print_document (
      p_application_id => :APP_ID,
      p_report_query_name => 'blobquery',
      p_report_layout_name => 'blobquery',
      p_report_layout_type => 'rtf',
      p_document_format => 'pdf'
      insert into report_archive (
      filename,
      mimetype,
      report,
      created_date,
      created_by
      ) values (
      'BLOB Query Search Results ('||to_char(sysdate,'DDMonYYYY')||')',
      'application/pdf',
      l_report,
      sysdate,
      :USER
    -- COMMIT the insert so you don't e-mail out a report
    -- that was never saved
    commit;
    -- create e-mail here
    l_mail_id := APEX_MAIL.send( ... ); -- see document for usage
    APEX_MAIL.ADD_ATTACHMENT( .. ); -- see document for usage
    end;
    MK

  • Macbook froze while online. hard shutdown. when it restarted, an error message appeared saying finder shut down unexpectedly containing a message box with a long list of technical jibberish.  after clicking OK that it would send an error report to Apple,

    macbook froze while online. hard shutdown. when it restarted, an error message appeared saying finder shut down unexpectedly containing a message box with a long list of technical jibberish.  after clicking OK that it would send an error report to Apple, the same error message box appeared again and again every time OK was clicked.  Now the macbook will not turn on at all

    If you're able to boot, launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post "shutdownStall" or "hang" reports.
    If you can't boot in the usual way, try a safe boot. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    During startup, you’ll see a progress bar, and then the login screen, which appears even if you normally log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Safe mode is slower than normal, and some things won’t work at all.
    Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.

  • Execution of a report after execution of a transaction automatically

    Dear All,
    i want to execute one standard report after the completion of one transaction.
    Can any body guide me in how to do this without executing the report separetly means the report should be called after the completion of the transaction automatically.
    I dont want to use workflow also so is there any other way?
    Warm Regards,
    N.Jain

    Hello,
    What i understood was that you need to run a standard transaction after another transaction to run automatically.....
    it is possible if the program for the first t-code is that of  a 'Zprogram'
    so in the program for the first tcode..if it is performing an operation and does not need user interaction(like user inputs)  then in the end of the code,You need to
    do a call transaction and return <b>or</b> Submit program and return
    wherein you need to pass all sufficient parameters to the second program
    Reward if helpful
    Regards
    Byju

  • I need to send sm37 Spool Report Automatically to one or more user ids.

    Hai Gurus,
    I need to send sm37 Spool Report Automatically to one or more user ids.
    Kindly guide me

    Thanks.. .
    is it possible to create Many distribution list for each & every Spool Report ?
    I mean, Can i create separate distribution list for each Reports ?. EX: ME2N Report.
    Edited by: Swetha SAP Girl on Jul 6, 2009 10:11 AM

  • How do I stop the TX report after each fax, either receiving or sending

    How do I stop tx report after receiving or sending a fax

    Hi raylene0530!
    Welcome to the Canon Forums, and thank you for your inquiry! 
    So that the Community can help you better, we will need to know exactly what Canon equipment you're using, any error messages you're getting, and (if applicable) the Computer Operating System you're using (Windows XP/Vista/7/8 or Mac 10.x), as well as the way you connect to your device (USB or networked via WiFi or Ethernet).
    Any other details you'd like to give will only help the Community better understand your issue!
    Thanks and have a great day!

  • Save PDF file automatically after generation

    Hello,
    I have a Print only PDF Form(for a Quotation) in WebDynpro, that runs for 20-22 pages at runtime. Now it takes a lot of time(sometimes around 5-7 minutes) to generate as its dynamic form .
    The user doesn't wants to wait for so long and wants that the PDF should be automatically saved upon generation and he can continue his work.
    We have to do this in WebDynpro since the backend is 4.70
    I know its possible to save the PDF file from WebDynpro to a filesystem. But that is possible only after generation of WebDynpro.
    Is there any way to automatically save the PDF file after its generated.
    Is there ny method that is executed after the PDF is generated and before displaying the same.
    Is this possible as a background task, like in ABAP it can write to a SPOOL.
    Any inputs, source code examples will be helpful.
    Regards,
    Shubham

    Hi Shubham,
    You can use PDFObject in your code for the same.
    Check 32 number tutorial for use of PDFObject in webdynpro.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web dynpro sample applications and tutorials.htm
    Regards,
    Bhavik

  • MSN's latest update is crashing Firefox many times per day. When I try to send the crash report to Firefox, it says it has trouble sending the report. Is anyone else having this problem? Is there a setting that can help?

    Firefox is crashing every time I have my MSN email account up. (Since I use it for business, that's many times per day.) It seems to coincide with hotmail's latest update where the email is checked and downloaded to the inbox automatically. Then when it asks me if I want to send the crash report to Firefox, I select yes and it tells me it had trouble sending the report. Is anyone else having this problem? Is there a setting I can change? I can't seem to keep my email account up for more than 10 minutes.
    p.s if you're reading this Microsoft, it's still not bad enough to make me to go back to Internet Explorer!

    Hi,
    /Users/sarahschadek/Desktop/Safari.app/Contents/MacOS/Safari
    Move the Safari app from the Desktop to the Applications folder.
    Restart your Mac.
    That's why you see this:
    When I try to do the updates my computer says it has ready it goes through like it is downloading them then at the end it says some of the files could not be saved to "/" files.
    After your restart your Mac, click the Apple  menu (top left in your screen) then click:  Software Update ...
    Carolyn  

  • I no longer have the option to "Send an Error Report" to Apple?

    After installing Mountain Lion last week, my apps are crashing like crazy. Why do I no longer get the dialog that asks me if I want to send the error report to Apple?

    No setting that does not enable automatic sending. Click the question mark at the bottom of the preference page for a description.
    You will be bale to set how you want the reports sent for an app to automatically, manually or never.
    Set reporting options
    If an app quits unexpectedly, or you must force an app to quit or must restart your computer, you’ll be offered the opportunity to collect information about the problem and send it to Apple.
    If you choose to send the data to Apple, you can then specify any one of the reporting options for future information collection:
    Automatic reporting
    No reporting
    Ask each time
    Automatic reporting of diagnostic and usage information is off by default, and occurs only if you have given consent.To select automatic reporting: When prompted, make sure “Don’t ask me again” is selected, and then click OK.After you click OK, automatic reporting of diagnostic and usage information begins, and information is periodically sent to Apple anonymously. You will not be prompted again unless you deselect “Send diagnostic & usage data to Apple” in the Privacy pane of Security & Privacy preferences.To select no reporting: When prompted, make sure “Don’t ask me again” is selected, and then click No Thanks. No information is sent to Apple.To select ask each time: When prompted, deselect “Don’t ask me again.” You then have the option to agree or disagree each time a diagnostic event described above occurs.
    Show
    But for this to work at all you have to have the checkbox checked.

  • Need to send my ALV report via Email.

    hi
    I have this ALV report. I know I can go up to the toolbar and email the report manually to the user. But I am looking for a code to do that automatically. meaning When I run the report in the selection screen i will provide the email address and the report after its ran it should also email that (when its done manually it sends the attachment as an PDF, which i have no problem with) report as PDF.
    Please help me with the code i need to use..
    I tried with the following but the program crashes
    CALL FUNCTION 'RFC_MAIL' DESTINATION 'LOCAL_EXEC'
    EXPORTING USER = '[email protected]'
    TABLES MAIL = REC.

    You can output the report to a spool and then convert the spool to PDF using standard FM <b>CONVERT_ABAPSPOOLJOB_2_PDF</b>. Then use FM <b>SO_DOCUMENT_SEND_API1</b> to attach the pdf data in an outgoing email.
    Here is the sample codes:
    *& Report  ZEMAILPDF                                                *
    *& Converts spool request into PDF document and emails it to           *
    *& recipicant.                                                         *
    *& Execution                                                           *
    *& This program can be run in background or online and a spool request *
    *& will still be created                                               *
    REPORT  zemailpdf.
    PARAMETER: p_email1 LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_sender LIKE somlreci1-receiver
                                        DEFAULT ''[email protected]'',
               p_delspl  AS CHECKBOX,
               p_online no-display.
    *DATA DECLARATION
    DATA: gd_recsize TYPE i.
    * Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    * Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i,
           w_spool_nr like sy-spono.
    *       %_print LIKE pri_params.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    * Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    * Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    * Write statement to represent report output. Spool request is created
    * if write statement is executed in background. This could also be an
    * ALV grid which would be converted to PDF without any extra effort
      WRITE 'Hello World'.
      new-page.
      commit work.
      new-page print off.
      If p_online = 'X'.
    *   Processing performed when program calls itself when run online 
        gd_spool_nr = sy-spono.
        EXPORT gd_spool_nr TO MEMORY ID 'SPOOLTOPDF'.
        EXIT.
      endif.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
      ELSE.
        gd_spool_nr = sy-spono.
    * If executed online, it submits a program to perform the write statements
    * instructing it to create a spool request, this could be another program
    * which just performs the write statements and then exports sy-spono
    * to memory. But in this example it calls itself passing X to parameter
    * p_online, which takes it down an alternative procesing path.
        submit ZSPOOLTOPDF2
               with p_online = 'X'
               to sap-spool
               spool parameters   %_print
    *           archive parameters %_print
               without spool dynpro
               and return.
      ENDIF.
    * Get spool id from program called above
      IMPORT gd_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
      PERFORM convert_spool_to_pdf.
      PERFORM process_email.
      if p_delspl EQ 'X'.
        PERFORM delete_spool.
      endif.
      IF sy-sysid = c_dev.
        wait up to 5 seconds.
        SUBMIT rsconn01 WITH mode   = 'INT'
                        WITH output = 'X'
                        AND RETURN.
      ENDIF.
    *       FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
    *       FORM get_job_details                                          *
    FORM get_job_details.
    * Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
    *       FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    * Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
    *       FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    *  perform send_email using p_email2.
    ENDFORM.
    *       FORM send_email                                               *
    *  -->  p_email                                                       *
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    * Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'Attachname'.
    *  CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Message Body text, line 1'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    * If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    * Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
    *       FORM delete_spool                                             *
    FORM delete_spool.
      DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
      ld_spool_nr = gd_spool_nr.
      CHECK p_delspl <> c_no.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = ld_spool_nr.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
    *       Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
    data:   t_packing_list like sopcklsti1 occurs 0 with header line,
            t_contents like solisti1 occurs 0 with header line,
            t_receivers like somlreci1 occurs 0 with header line,
            t_attachment like solisti1 occurs 0 with header line,
            t_object_header like solisti1 occurs 0 with header line,
            w_cnt type i,
            w_sent_all(1) type c,
            w_doc_data like sodocchgi1.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    * Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    * Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_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.
    * Populate zerror return code
      ld_error = sy-subrc.
    * Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    <i><b>**** Points are always welcome ****</b></i>

  • SUBMIT an ABAP report after creating the WI but before completion of WI.

    Dear All,
    I am having an activity which sends the approval work item.
    Now my requirement is to SUBMIT an ABAP report after creating the WI but before completion of WI.
    I can not call this report before approval activity because i need to pass this WI ID to this report.
    Please suggest some way to solve this.
    Regards,
    Amar

    Hello,
    You could create a 2-from-2 fork and put the workitem in one branch and the report in the other. Have the report branch wait 1 minute and then read the workitem id from the other branch.
    What is the purpose of this report? Why does it need the workitem id?
    regards
    Rick Bakker
    hanabi technology

Maybe you are looking for

  • Can't send message on AT&T - won't connect to server. Anyone else having this issue?

    All of a sudden I can't send messages on my AT&T account. I get a message that Thunderbird cannot connect to server (STMP). Called AT&T and they verified all the settings; I can access my email account on Apple Mail and through Yahoo (AT&T's email pr

  • How can I make a file not read only? Using LV6.0, I have tried the Access Rights VI w/o luck.

    I am talking about any file in windows 98 that has the read only box checked when I look at the properties of the file from Windows Explorer. I can can get rid of the check from the properties box, but I want to do it programmaticaly in LabView.

  • Can you create report and schedule in EVDRE

    Hi, I was asked by someone that if it is possible to create report and schedule in one single worksheet?  As you set report/schedule in workbook options for the file my assumption was its not possible. Is there any work around? Also i was asked about

  • Quality of photo

    Is there a way to adjust the quality of Photos on a IPhone 4? The pictures I take are sharp but their size is less then 2.5 Mb's

  • The question about date

    business scenario: 1, there is a project   : A 2, the first layer WBS: A    the secongd layer WBS: A1, A2    the third layer WBS: A11,A12, B21, B22,    the fourth layer WBS: A111 A112 A121 A122 B211 B212 B221 B222 B223 3, Activity assigned to WBS:  n