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.

Similar Messages

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

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

  • I have 2 email accounts the second one i have only recently added, i have sent one email from my second account but i cant seem to send anymore, it says "cant send email with selected server" i am still able to send emails from my first account. Any ideas

    I have 2 email accounts, the second i only just recently added, i was able to send an email from this account after i added the account but am not able to send anymore emails. It says "unable to send email with selected server" there are no other servers to choose from. please help! TIA

    Hi apmichael,
    If you are having issues sending email from one of your mail accounts on your iPhone, you may find the following article helpful:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Regards,
    - Brenden

  • What are the differences between Turn in Final Timesheet and the other option: Send Progress for Selected Tasks?

    Hello,
    The resource filled his/her timesheet in PWA. 
    Now : 
    What are the differences between Turn in Final Timesheet
    and the other option: Send Progress for Selected Tasks?
    Thanks

    You are partially correct and partially wrong.
    Turn
    in Final Timesheet sends
    the timesheet to the Timesheet Manager for Approval
    but task update always goes to Status manger of the task. Taks manager you can see in MPP(insert status manager field then check)
    Yes
    after approval progress will be available in MPP as well as in Projectweb app as % complete . 
    Send
    Progress for Selected Tasks 
    Send progress of selected task to status manager after approval update will be available in both MPP and Projectweb
    app as % complete.
    In Send
    Progress for Selected Tasks Timesheet
    Manager doesn't receive anything in his Approval center
    because all the update directly go to Status manager Approval center.
    Here you have to understand
    that there are two role Timesheet Manager(for timesheet approval) and Status manager(for task
    actual approval) 
    kirtesh

  • 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

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

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

  • Displaying Page number in all pages of sap script output

    Hi All,
    I have a issues in displaying page number in all pages of sap script output.
    I have created a seperate window just above main window to display page number.
    I have given &PAGE& in the layout editor.
    Now in the sap script output i am getting page number as 1 in all the pages page number is not changing for pages-2,3, etc..
    Can anybody tell me the reason for the same!
    In some other objects same syntax is working fine. For this object it is not working!
    Is there any setting changes!
    Thanks i
    Thanks,
    Deep.

    Hi,
    Just check the Page Counter of the Next or Second Page which you defined.
    First page
    Mode                     START
    Numbering Type           ARABIC
    Second Page
    Mode                     INC
    Numbering Type           ARABIC
    Regards
    Bala Krishna
    Edited by: Bala Krishna on Oct 17, 2008 11:23 AM

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

  • BODS 3.1 :SMTP configuration to send email for success or failure of job

    Hi.
    This is further to this post : http://forums.sdn.sap.com/thread.jspa?threadID=1965129&tstart=0
    Thanks to all for the help.
    I did not find a complete set of information as things to do (for a person who is new to BODS).
    Hence sharing the workflow which works for me when tested on a simple workflow  :
    Pre-requisite : SMTP service to be made available on the BODS server and port 25 to be opened up.
    This is done by the IT dept of the company.
    When smtp service is activated and port 25 is opened up, telnet IP address 25 should say, service is available.
    Suggestion : create a email group like : bods at company.com which can be used to be used for the BODS JOBs. Which does not prompt for a password. This also is done by the IT dept of the company.
    1) On the BODS server :
    1) Click open Data Services Server Manager
    2) SMTP settings for smtp_to functions :
    Add the IP Address of the SMTP server
    Add the email address of the sender. Eg. bodsjobs at companyname,com
    3)Apply/Restart the server.
    2) Login to BODS Designer :
    Create a test job :
    TRY ==>DF===> Script for success ===> CATCH script for failure
    In the script for success : add the following :
    print (' IN TRY BLOCK Before email ' );
    smtp_to('bodsjobs at abc,com', ' SUCCESS OF JOB  :  '
    || job_name(),'Job completed successfully ', 0, 0);
    print('After Email ');
    In the script for Catch add the following :
    print (' IN CATCH BLOCK Before email ' );
    smtp_to('bodsjobs at abc,com', 'FAILURE OF JOB : '
    || job_name(),
    error_number( ) || 'Error message: ' || error_message( ) ||
    'check details', 50, 50);
    print('After Email ');
    Note : In the catch : select all exceptions on the check box.
    Save all.
    Click on the job and say execute.
    The job will run and if it is successful. You will receive the succes mail.
    If there is any error in the DF before the catch, you will receive a mail, which says failure.
    The above workflow, when tested atleast works for me.
    Hope this  helps.
    Regards
    indu

    Hi Arun.
    Am really not aware as to how to make things work from the console.
    I work on windows environment both at client and on the server.
    It looks like you got a bit confused on suggestion of a email group account.
    I never did anything on outlook configuration for activation of smtp for bods.
    I think you should not mess with outlook.
    I dont know from the client side how things work.
    But i have worked directly on the BODS server where the bods installation was done.
    It is relatively very simple to do and to test.
    But to even test why you get that error.
    All you need is just a email id. Which could be yours ???
    Put your email id as the source of email in that box in the job server.
    And put only your email id in smtp_to and test it.
    Run a test job. If it completes successfully. You will receive a mail.
    In the catch, if you have checked all the boxes for error capture,
    if the job fails, it would throw a dump of the errors in the email.
    Once everything works well and you receive emails for any jobs you are running.
    Then you could decide for the source of your email id and for the receipients of your emails of the jobs.
    You could put a group id of your team as source. And also in smtp_to script in case you want everyone to receive the alert that the job has been done or it has errors.
    Or include only those email ids in the smtp_to whom you feel, should receive the mail.
    Hope this idea helps.
    Please dont mess with outlook for any smtp activation for bods.
    It is not required if you are working on a windows environment.
    You just need a email id for testing.
    Outlook configuration does not come into picture at all.
    if there is any other unix environment involved. I have no idea.
    And i really do not know how things would be from a client side to configure.
    Server configurations i do from the server.
    I did all configurations on the main server machine. Not from the client.
    And I have only one job server so i did everything there.
    I did not do anything from management console.
    I use management console only for monitoring of jobs on a daily basis, the dashboard which gives you details of the data pulled, time taken etc etc.
    cheers
    indu.
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:05 AM
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:09 AM
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:17 AM
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:18 AM

  • "Send [email] from Selected Account..." is nearly random. Anyone else?

    +I don't think its just me, but maybe it is:+
    Do other people have issues with multiple email accounts
    in that sending an email with this preference set, tends to be almost random?:
    You can send email to a person you have emailed a hundred times, but if you don't double-check the source account - and it may go from the WRONG account. It wasn't the SELECTED account, it may not even be a
    much used account (email address).
    You can fire 2 emails back-to-back, to 2 different destinations, and the 2nd seems to have arbitrarily
    selected another account to send from.
    This is more than a little bit galling, if you intend to email certain people ONLY from a special account.
    Say, for example, people who indulge in viral emails, etc.
    Eventually half your contacts have half your email addresses - and now you are in spam **** again,
    as soon as one of your recipients sends one of these viral emails out in a group email.

    I've submit this as a problem in the "reply" to Apple.
    If others are finding it a problem, I hope they do too.
    Here are some scenarios that underscore it.
    Having the ability to set a default FROM address in MAIL to a given destination is fairly important.
    Especially when you are trusting your machine to automate the correct event.
    If you have multiple email addresses, one has them for a reason.
    You send from only certain ones - to certain people, for a reason:
    For example, contacting a subordinate or boss at work, from your home account.
    I have found the said contacted colleague will sometimes send work communication to my home account by mistake.
    Instead of getting a last minute meeting notice while at work, it goes to a home account I don't pick up very often.
    Or, if sent from an account one picks up on their iPhone... Now I get long messages that I would prefer not receiving on that device. Simply because the wrong SEND account was used, but not actually CHOSEN by me. (We all have those relatives, don't we?)
    Once an address is "compromised" by inadvertently sending from the wrong address:
    well, you accounts are free of spam only so long as your contacts are secure.
    You are only as good as your least capable correspondent & spam filter.

  • Campaign execution not send emails for contact persons

    Hi All!
    I'm facing a problem with Campaigns (communication medium - E-mail): Those are the steps i'm following:
    1.Start the campaign, and on the "campaign: Schedule job" screen, i choose  "immediately". If i look at the campaign details after scheduled the job, the status is now "job started".
    2. To check wich mails were sent, I also had a look at the business partner account that belongs to the target group used. On the "Interaction History" block, there is a line: "Outgoing Email" - on the details of this outgoing email I can see the "To" (Receivers). And here, I have emails from the business Partner contact persons and from the business partner itself (the email that is on the header level of the business partner account, on the "main address and communication data" area). So far so good. That's exactly what i need but,
    3. If i go to the tcode, i only have a send request for the business partner itself and none for his contact persons (although those emails are on the "To" line for the interaction history).
    I'm working on the Webclient UI, of the CRM 7.0
    Does someone knows why the emails are not being sent also for the contact persons?
    Thanks in advance.
    Inê

    I have achieved this by implementing the BADI : CRM_MKT_ADR_SEARCH
    In this BADI's method : CHANGE_SEARCH_RESULTS you can modify the data which is being sent back to system for campaign execution.
    NOTE: I am using Address Independent Communication Data of Business Partner
    Below is my sample code for contact person email :
      data: wa_bp_cp_channel type crmt_bp_cp_channel.
      field-symbols: <fs_bp_cp_channel> type crmt_bp_cp_channel.
      types: begin of ty_cp,
              partner type but000-partner,
              address type but000-addrcomm,
             end of ty_cp,
             begin of ty_bpcp,
               partner1 type but051-partner1,
               partner2 type but051-partner2,
             end of ty_bpcp.
      data: it_cp type table of ty_cp,
            wa_cp type ty_cp.
      data: it_bpcp type table of ty_bpcp,
            wa_bpcp type ty_bpcp.
      data: it_bp type table of ty_cp,
            wa_bp type ty_cp.
      read table ct_bp_cp_channel into wa_bp_cp_channel with key com_channel = '03'.
      if sy-subrc = 0.
        select partner addrcomm
          from but000
            into table it_cp
              for all entries in ct_bp_cp_channel
                where
                  partner = ct_bp_cp_channel-cp_number.
        select partner1 partner2
          from but051
            into table it_bpcp
              for all entries in ct_bp_cp_channel
                where
                  partner1 = ct_bp_cp_channel-bp_number.
        if it_bpcp[] is not initial.
          select partner addrcomm
            from but000
              into table it_bp
                for all entries in it_bpcp
                  where
                    partner = it_bpcp-partner2.
        endif.
        sort it_cp by partner.
        sort it_bp by partner.
        sort it_bpcp by partner1.
        loop at ct_bp_cp_channel assigning <fs_bp_cp_channel> where com_channel = '03'.
          read table it_cp into wa_cp with key partner = <fs_bp_cp_channel>-cp_number binary search.
          if sy-subrc = 0.
            <fs_bp_cp_channel>-addrnumber = wa_cp-address.
            clear <fs_bp_cp_channel>-bp_number.
            clear <fs_bp_cp_channel>-bp_guid.
          else.
            read table it_bpcp into wa_bpcp with key partner1 = <fs_bp_cp_channel>-bp_number binary search.
            if sy-subrc = 0.
              read table it_bp into wa_bp with key partner = wa_bpcp-partner2 binary search.
              if sy-subrc = 0.
                <fs_bp_cp_channel>-addrnumber = wa_bp-address.
                clear <fs_bp_cp_channel>-bp_number.
                clear <fs_bp_cp_channel>-bp_guid.
              endif.
            endif.
          endif.
        endloop.
      endif.

  • Urgent - Not able to Print back page for Last Page in SAP Script.

    Hello All,
    I need to Print back page in SAP Script, I am able to do it by setting print mode as D, but now the problem is, it does not print back page for last page.
    For eg. if there are 3 pages it prints back page for first two. If there is only one page then it does not print back page.
    Please Help.
    Thanks.

    hi,
    Yes, we can print logo as water mark in scripts
    Just do as like this....
    Upload your logo via SE78.
    - Select 'Import' button from application toolbar of SE78, and perform upload.
    and write this code in scripts
    BITMAP 'COMPANY_LOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL 
    regards
    Sankar

  • How to create a notification subscription to send email for all alerts except exchange objects related alerts.

    Hi Team,
    We have notification subscription configured currently, which will send email notification for Central team for all alerts generated in SCOM. Recently we got complaint from messaging(exchange server) team, that the exchange related email notifications are
    going to other teams.
    How shall we exclude "All exchange 2010 entities" group from current subscription.
    Thanks,
    Dinesh
    Thanks &amp; Regards, Dinesh

    Hi
    There is no functinality to exclude objects in notifications. You would have to select everything that you want to be alerted on. Either you select all Groups, classes or split up the subscription per "Technology" like SQL, IIS etc. and select
    the corresponding MPs to be alerted on like all rules and Monitors.
    Probably selecting the classes would be the best option
    https://social.technet.microsoft.com/Forums/systemcenter/en-US/7e8a5d4a-1727-4448-a2d8-85950645e01a/notification-subscription-by-management-pack
    This might help also
    http://blogs.technet.com/b/kevinholman/archive/2008/06/26/using-opsmgr-notifications-in-the-real-world-part-1.aspx and
    http://myitforum.com/myitforumwp/2014/03/04/system-center-operations-manager-2012-r2-generating-notifications-by-management-pack/
    Cheers,
    Stefan
    Blog: http://stefanroth.net If my post helped you, please take a moment to vote as helpful and\or mark as an answer

Maybe you are looking for

  • Strange behavior with TabNavigator code ...

    Hi, In my code I use a Tab Navigator and it works OK; yet if I want to use an Alert in Tab (0) ONLY I get that every other Tab is now opening with the same Alert as well ??? Does anybody have a fix for that ! Thanks in advance regards aktell2007     

  • Why all the incompatibilities from safari?

    Safari problems: filling out forms, getting .pdf from a site gives black screen etc. problems chrome or firefox don't have. Time Apple acts

  • 32 bit emulation? What's that?

    You might have seen this post of mine: http://bbs.archlinux.org/viewtopic.php?id=33876 Wandering around seeking the solution I found this message: http://www.linuxgames.com/forums/index. - ed8214fdef 32 bit emulation? What's that? Can be obtained usi

  • VG224 port stuck in 'off-hook' state

    Hi All, I have strange problem with my VG224 connected to CME4.0. I have 1 port have no dial tone. And 'show voice port sum' result VG1050005#sh voice port sum IN OUT PORT CH SIG-TYPE ADMIN OPER STATUS STATUS EC ============== == ============ ===== =

  • FCS2 export to iDVD aspect ratio problems...

    Hi all. Usually would use DVD studio but just wanted a quick test from iDVD. Pretty recent version but can't get 16:9 exports from FCS2 to show in a 16:9 iDVD project. When you play the film it is always 4:3. Any suggestions?