Sending email for some pages of a report

Hi!
I would like to know, is it possible to send via email some pages of a SAPScript.
I've created a report, with SAPScript output. The report is collecting a lot of data, and is grouping the data by customer.
So at the end of the report run, I have 5 pages, with a grouping like this:
1. Customer A / Deliveries 1,2,3
2. Customer B / Deliveries 4,5
3. Customer C / Deliveries 6,7,8,9
4. Customer D / Deliveries 10
5. Customer E / Deliveries 11,12
In the B, D customer master data exist an email address, so I have to send the 2nd page to the email address of B (for example [email protected]) and the 4th page to the email address of D (f.e.: [email protected]).
How can I solve this?
Thanx
Tamá

Hi!
The following coding provides the SAPScript list, now. This is what I would like to extend with the email sending.
The table it_fuvar contains the data of the customers and deliveries. I think I have to enter the email sending between the END_FORM and START_FORM function modules.
My problems are:
- is the OTF ready and convertable to PDF at this moment (after an END_FORM)?
- if it is, then how identify it to convert  and how to send the converted PDF via attachment?
  DESCRIBE TABLE it_fuvar LINES fcount.
  IF fcount = 0.
    WRITE:/ 'Nincsen nyomtatható adat.'.
    EXIT.
  ENDIF.
  SET LANGUAGE sy-langu.
  CLEAR wa_itcpo.
  MOVE 'X' TO wa_itcpo-tdimmed.
  MOVE 'X' TO wa_itcpo-tdnewid.
  MOVE sy-repid TO wa_itcpo-tdsuffix2.
  MOVE sy-title TO wa_itcpo-tdtitle.
* open form
  CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      OPTIONS       = wa_itcpo
      dialog        = 'X'
      form          = gc_formname
      language      = sy-langu
    EXCEPTIONS
      canceled      = 1
      device        = 2
      form          = 3
      OPTIONS       = 4
      unclosed      = 5
      mail_options  = 6
      archive_error = 7
      OTHERS        = 8.
  IF sy-subrc NE 0.
    EXIT.
  ENDIF.
  MOVE 1 TO fcount.
  SORT it_fuvar.
  LOOP AT it_fuvar INTO wa_fuvar.
    AT NEW vstel_bez.
* speditőr címadatok kiírása a scriptbe
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          window = 'M_SPEDIT'
        EXCEPTIONS
          OTHERS = 1.
* cím, téma, számlázási cím kiírása a scriptbe
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          window = 'M_INFO'
        EXCEPTIONS
          OTHERS = 1.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          element = 'M_SZALLITASI_CIM'
        EXCEPTIONS
          OTHERS  = 1.
    ENDAT.
    AT NEW tknum.
      SUM.
* kocsik (transzportok) kiírása a scriptbe
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          element = 'M_KOCSI'
        EXCEPTIONS
          OTHERS  = 1.
      fcount = fcount + 1.
    ENDAT.
*   print item line
    CALL FUNCTION 'WRITE_FORM'
      EXPORTING
        element = 'M_ARUFOGADO'.
    AT END OF vstel_bez.
* footer
      MOVE 1 TO fcount.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          window  = 'M_BOTTOM'
          element = 'NEW_PAGE'.
      CALL FUNCTION 'END_FORM'
        EXCEPTIONS
          unopened                 = 1
          bad_pageformat_for_print = 2
          spool_error              = 3
          codepage                 = 4
          OTHERS                   = 5.
      IF sy-subrc <> 0.
      ENDIF.
* EMAIL SEND???
* EMAIL SEND???
* EMAIL SEND???
      CALL FUNCTION 'START_FORM'
        EXPORTING
          form        = gc_formname
          language    = sy-langu
        EXCEPTIONS
          form        = 1
          format      = 2
          unended     = 3
          unopened    = 4
          unused      = 5
          spool_error = 6
          codepage    = 7
          OTHERS      = 8.
      IF sy-subrc <> 0.
      ENDIF.
    ENDAT.
  ENDLOOP.
  CALL FUNCTION 'CLOSE_FORM'
    EXCEPTIONS
      OTHERS = 1.
Thanx
Tamá

Similar Messages

  • I have not been able to send email for some time but now i have stopped being able to recieve email.

    i have not been able to send emails for some time but in the last two days ive stopped being able to receive, the message says 'username or password incorrect' ive checked all the settings, ive deleated accout and set up again, ive rebooted phone. i tried to sync with pc but this also fails any ideas

    That is correct, They don't seem to know about Mac, never got a single scrap of help from  them.  Try recreating your account from scratch, delete the account, (write down all your settings first) and add an account, see if that works, and if it does, delete the first account to prevent things doubling up on you.  I think that's what I did, it was quite a while ago.  Hope this helps, or gets you pointed in the right direction.  Maybe go to At&t and try creating another account, and if ti works, delete the first.
    One other tihing I did was to reset Safari, as AT&T uses the net, that's about all I can remember, like I said it was awhile ago.

  • Sending email for selected pages of a script output

    Hi all,
    i want to know how to send email only the selected pages of an script output.Example if the script produce 10 pages i want to send 4th and 5th page to one customer and 6th ,7th page to another customer like that. because this is an customer statement of account which is confidetial. i refer so many sites but useless. i hope here my problem can solve.
    rgds,
    Ashok

    Hi ashok,
    While enter the print parameters enter the page number what ever u want.
    Reply for queries,
    Regards,
    Kumar.

  • TS3899 Sending emails from some WI-FI locations

    I can send and receive emails in most WI-FI's yet once in a while I have trouble sending emails from some WI-FI locations, even though I can receive all emails and everything else works 100% too.  If I leave this WI-Fi and if I were to go to an Apple store for example, it will then send all emails in Outbox that will not send from this WI-FI . 
    What setting prevents sending emails from the few WI-FI!s that emails do not work.

    You're welcome.
    Please answer the question - is the account's SMTP server authenticated with the account's user name and password?
    Regardless, this has nothing whatsoever to do with the iPhone and once again, receiving email and sending email with an email client are completely separate processes. All ISPs block the use of SMTP servers that are outside of their network or not provided by the ISP being used for your internet connection at the time unless the SMTP server is authenticated. This is part of an overall effort to prevent spam eminating from the ISP's domain. Rarely if ever is there any restriction on receiving email regardless the ISP being used for your internet connection.
    The email account provider associated with the few wi-fi networks with the problem may restrict the sending of email with any SMTP server regardless if the SMTP server is authenticated.

  • Why is gmail blocking me from sending email with a "pages" document attached?

    Why is gmail blocking me from sending email with a "pages" document attached? I've checked the document for viruses with "MacKeeper" and it's clean.

    Google reads your emails, in case you did not know that. Unless you are sending an email containing content Google can extract and add to its vast database of personal information, Google has no use for it.
    Google Mail is becoming progressively useless. It won't accept .zip attachments, at least not the last time I tried, it will eventually prevent you from using an email client unless you visit their web mail interface, and it will disable your account if you attempt to log in from someplace Google deems is not where Google thinks you ought to be.
    Gmail is worth every cent you paid.
    Get rid of MacKeeper. It is capable of doing nothing beneficial and will only cause problems.

  • Restrict Broadcaster to not send Emails for certain Queries

    Hi,
    is there any possibility to restrict a user on sending Emails for certain queries?
    With the existing authorizaion objects S_RS_BCS and S_RS_ADMWB it is not possible to do so.
    He will need S_RS_COMP to be able to open the Query.
    With S_OC_SEND I just be able to take his ability to send Emails, but the user will need this option.
    Does anybody has an idea?
    Thanks and best regards
    Sascha

    The Workspace User role ony controls whether the user is allowed to use Workspace or not.  A user will only be able to Start a Process in Workspace if they a) are a Workspace User and b) the process security settings allow them to by having the INVOKE_PERM enabled.  The INVOKE_PERM setting is usually controlled from within Application Management area in the Adminui and would be set per process to define who is allowed to invoke (start) that service (process).  Take a look at your processes and see if they are defined for the All Principals group having the INVOKE_PERM as this is one way in which everybody can start a process.
    I'm unfamiliar with the Services User role but if it sounds like maybe this has the INVOKE_PERM so this could be why all your users can start processes, presuming they are all in this role.
    But however the INVOKE_PERM priviledge is being granted, it is not via the Workspace User role.
    Hope that helps.
    Jon

  • How can i send email for suport to rest my questions' please helpe'

    how can i send email for suport to rest my questions' please helpe'

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (109789)

  • How to send a 100 plus page MS Word Report with Word and pdf. attachments?

    Sir or Madam,
    I am not able to e-mail or have a 100 plus page report received and need your support. It contains a combination of MS Word and pdf files and attachments.
    I am using MS Outlook 2007 and Google Chrome.
    Please advise.
    Thank you in advance.
    Earleb
    Earle Rheaume

    Sir or Madam,
    I am not able to e-mail or have a 100 plus page report received and need your support. It contains a combination of MS Word and pdf files and attachments.
    I am using MS Outlook 2007 and Google Chrome.
    Please advise.
    Thank you in advance.
    Earleb
    Earle Rheaume
    If your mail service allows all of that to be sent as attachments or however you are attempting that then it's possible the email server or servers receiving the email do not allow attachments that large.
    You say you are sending "a combination of MS Word and pdf files and attachments". I've never sent anything like that. I have zipped various files into a zip file then attached that to an email for sending.
    Googles mail appears to allow a total of 25 megabytes of attachments in a single email.
    Yahoo mail appears to allow a total of 25 megabytes also.
    Microsofts mail appears to allow a total of 20 megabytes of attachments in a single email.
    Another option would be to upload everything to your onedrives public folder and provide a link for others to download all of it in the email you send out.
    A single users onedrive supposedly can have up to 10 gigabytes loaded onto it. I suppose all of that could be used by the public folder but maybe not.
    La vida loca

  • How to Send Emails for failed messages without using Alert

    Hi Experts,
    In our project, we need to trigger Emails for the failed messages in SXMB_MONI / Adapter Engine without using Alert Framewrok.
    Please let me know the below :
    1. Is this really possible to avoid Alert?
    2. If possible, then can we accomplish this by creating any PI Scenario? Please provide me some knowledge.
    3. Can we do it by writing any ABAP Code? If ABAP report can make it, then please provide me the code/ tables which will be needed. If any Blog/ Wiki is there, then please let me know the URLs. 
    Thanks,
    Nabendu.

    Hi Nabendu,
       If your customer asks for mails with specific text for message failure, tell that it is not possible. Because Message will go through several engines like Adapter Engine, Integration Engine, BPE. You can not generate mails for the message failures in all these areas with out standard alert mechanism. These are pure technical alerts which only PI people can understand, not business alerts.
    Example: assume your sender channel is unable to connect FTP Server, in this case you can not generate even though you will develop adapter module to generate alerts.
                            So for message validation only you can send mails not for message failures.
    thanks,
    madhu

  • Sending emails from home page

    I would like to know how to send email's from my home page. I had some information on line that I wanted to send to someone but there are no facilities on BTYahoo home page for doing this can you help please.

    maryjane wrote:
    I would like to know how to send email's from my home page. I had some information on line that I wanted to send to someone but there are no facilities on BTYahoo home page for doing this can you help please
    Go to mail, and click "compose message"
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • When I try to send email from my iPad I get the message "A copy has been placed in your Outbox.  The sender address hplar45ATcomcastDOTnet was rejected by the server". Prior to this I have used the same process to send email for a year.

    I have been using the iPad for email for a year.  WIFI connection cannot be established for some reason, I am stuck on 3G.  I am sitting next to the WIFI router.
    Why can't I send email using my only email address hplar45ATcomcastDOTnet?
    Why can't I get a WIFI connection?
    What changed?
    Dan
    <Email Edited by Host>

    I can't answer why you are not able to connect to WiFi but I can tell you to try the basic things, turn WiFi off and on again, restart your iPad, reset network settings, reboot your router, forget your WiFi network and try again .....
    The issue with the email is probably a password issue. Make sure that your password is entered in the incoming mail server setting and in the outgoing mail server setting as well. The outgoing server setting can be accessed by tapping on the SMTP under the Outgoing Mail Server Setting and then tapping the smtp.comcast.net in the next window under the Primary Server Setting.
    The outgoing mail server setting will be in the first window when you tap on the Comcast account in the Mail settings.
    Look here for a few different web sites for help with the WiFi.
    http://www.google.com/search?q=troubleshoot%20wifi%20on%20iPad

  • Eem applet or script for sending email for syslog denies

    I am wanting to have my isr's send an email when a certain number of deny's occur on an ace.  So if i have a particular ace set up to log when tcp 3389 denied.  Then the eem applet or script would track when that deny entry happens.  When the deny hits on that entry reach three times, it will send an email alert.  The thing i am wondering about is how to set a variable within an event syslog pattern statement.  For instance, how do i say express a variable for the source ip/port in the below
    config-applet)# event syslog pattern "SEC-6-IPACCESSLOGP: list 198 denied tcp 201.198.71.51(38531) -> 212.184.81.52(3389)" occurs 3
    The source ip and port could rotate or change so i'd need to express that with some kind of variable.  How could that be done?(or is there a better approach altogether). 

    I put the below script in and it takes fine but does not send email alert.  Is there something more to do for configuring email sending? 
    event manager applet Intrusion-Tracking
    event syslog pattern "SEC-6-IPACCESSLOGP:.*-> 208.195.174.115\(3389\)" occurs 3
    action 1.0 mail server "173.16.7.2" to ".[email protected]" from ".eem@company1." subject ".intrusion_alert_from_c2900isr." body "Intrustion alert c2800isr"

  • Why I can't send emails to some address and also i...

    Hello!
    Why I can't send  email using my ovi mail account to some email address and also i can't send email using Thunderbird? So what is the problem?
    I can't send email to any address using Mozilla Thunderbird. Every time show "Login to server mail.ovi.com failed." but Thunderbird download my ovi account email without any problem. how do i fix this error. I don't know where to post this matter!

    Yahoo has messed with their stuff lately (honestly they've been messing with their servers for months)
    One thing would be if you guys wanted to use the yahoo mail app, or there have been other users posting solutions that they say work for them
    https://discussions.apple.com/message/27906475?ac_cid=tw123456#27906475
    https://discussions.apple.com/message/27894621?ac_cid=tw123456#27894621
    These have applied to people not able to get mail but changing the settings may help you and your wife. (My yahoo is still working so I haven't needed to try any of these)
    I've noticed with my Yahoo that they've changed their login protocols. For example 'stay signed in' is always clicked and the push is for people to merge multiple accounts to access their multiple yahoo from one account/sign in instead of signing out/in to access different accounts. I'm wondering if that change is what's messing with the protocols needed for iOS mail to work. But no one really knows for sure (and neither Apple or Yahoo will comment on the issue)
    About all users can do is find work arounds that work for them.
    If these don't work or if you don't want to use the yahoo mail app, you might try using safari to go to yahoo.com and access your mail that way.

  • Send Email for manager of the user with Login and Password the user.

    Hello everyone,
    I need to send an email to the manager of the user with login and password when it is created in AD.
    I already have a mail server configured in the IT Resource. It has some component of the IDM that solve this issue?
    Anyone you help me with the next steps?
    Thank you.

    Thank you for your attention.
    It did not work, I did another test to send email notifying you when the User change password.
    The following error message appears in oim_server1-diagnostic.log:
    [2011-08-08T19:21:30.865-03:00] [oim_server1] [NOTIFICATION] [] [oracle.iam.passwordmgmt.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Resetting password
    [2011-08-08T19:21:30.936-03:00] [oim_server1] [NOTIFICATION] [IAM-0080013] [oracle.iam.platform.kernel.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Kernel executing default validation with process id, event id, entity and operation 59,612.0.User.RESET_PASSWORD
    [2011-08-08T19:21:31.155-03:00] [oim_server1] [NOTIFICATION] [IAM-3050013] [oracle.iam.identity.usermgmt.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Searching for users with the specified criteria.
    [2011-08-08T19:21:32.018-03:00] [oim_server1] [WARNING] [] [oracle.iam.passwordmgmt.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Sending Reset Password Notification is not successful
    [2011-08-08T19:21:32.639-03:00] [oim_server1] [NOTIFICATION] [IAM-0080046] [oracle.iam.platform.kernel.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Completed orchestration with action result - oracle.iam.platform.kernel.vo.EventResult@4fe0d018
    [2011-08-08T19:21:32.642-03:00] [oim_server1] [NOTIFICATION] [IAM-0080011] [oracle.iam.platform.kernel.impl] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oiminternal] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Orchestration process with id 59,612 started running in a new thread.
    Edited by: Piza on 08/08/2011 15:24
    Edited by: Piza on 08/08/2011 15:26

  • Send email for new customer creation

    Can I send email to someone when the new customer has been create through XD01. Is there any userexit to do that. thanks!

    Receiving E-Mail and processing it with ABAP - Version 610 and Higher
    OR
    REPORT  zsendemail                    .
    PARAMETERS: psubject(40) type c default  'Hello',
                p_email(40)   type c default 'write mail id' .
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *&      Form  POPULATE_MESSAGE_TABLE
          Adds text to email text table
    form populate_message_table.
      Append 'Email line 1' to it_message.
      Append 'Email line 2' to it_message.
      Append 'Email line 3' to it_message.
      Append 'Email line 4' to it_message.
    endform.                    " POPULATE_MESSAGE_TABLE
    *&      Form  SEND_EMAIL_MESSAGE
          Send email message
    form send_email_message.
    Fill the document data.
      gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'SAPRPT'.
      gd_doc_data-obj_descr = psubject.
      gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      it_receivers-receiver = p_email.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      append it_receivers.
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_txt               = it_message
                receivers                  = it_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.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.
    endform.                    " SEND_EMAIL_MESSAGE
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
      endif.
    endform.

Maybe you are looking for

  • BT Premium mail & Broadband - at my wits end

    Converted my free @btinternet addresses to BT Premium mail last Sep.  Opted for BT Broadband in April. Have been trying ever since to get my Premium mail moved to the BT Broadband so I don't have to pay. Have been in touch many times with the BT Prem

  • How do i open a 2nd window in iTunes?

    I had a window open for the phone podcast and another for the computer. I don't know how i did that. very useful to se what to delete  etc

  • Vault + Time Machine w/ Referenced Masters

    I know this general question has been asked several times, but I can't find a solution that matches my specific setup. I'm running Aperture off my MBP, so I have set up one external drive to hold my referenced masters. My internal drive has my apertu

  • Itunes says my ipod is corrupt. it's not my intunes is. How do I fix it?

    My ipod nano was corrupt and I restored it and even took it to the apple store to see cause it still was not working. It worked fine there and they even put sample music on it. I came home and tried putting all my music from itunes on it and it still

  • ACR 4.4, ACR 3.3...What does the "ACR" stand for ?

    In the Camera Calibration tab in Camera Raw or Lightroom, we can choose the profile from the menu. There are so many profiles in the menu, ACR 4.4, ACR 3.3...What does the "ACR" stand for ?