Auto emailing of PO's of  particular purchasing groups to common mail Id

Hello All,
There is a need to have all the PO's created with multiple purchasing groups to be sent to a common mail Id.
For Example ,  there are various purchasing groups like PG1, PG2, PG3,....and so on & the need is to send all the PO's created with these purchasing groups (PG1,PG2,PG3....) to be sent to a common mail ID
Kindly advise how to proceed further regarding this.
Thanks & Regards,
Ravindra
Edited by: Ravi Bhalerao on May 5, 2011 8:41 AM

Yuo can have this as follows:-
Create a customized program which choose PO detail based on PO PR group. Then write a funtion module to send mail to external mail ID POs as PDF attachment.
Here is the sample code for Function module:-
REPORT ZREPORT_TO_EMAIL NO STANDARD PAGE HEADING LINE-SIZE 200.
DATA : BEGIN OF ITAB OCCURS 0,
PERNR LIKE PA0001-PERNR,
ENAME LIKE PA0001-ENAME,
END OF ITAB.
DATA: message_content LIKE soli OCCURS 10 WITH HEADER LINE,
receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
listobject LIKE abaplist OCCURS 10,
compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
w_object_hd_change LIKE sood1,
compressed_size LIKE sy-index.
START-OF-SELECTION.
SELECT PERNR ENAME
INTO CORRESPONDING FIELDS OF TABLE ITAB
FROM PA0001
WHERE PERNR < 50.
LOOP AT ITAB.
WRITE :/02 SY-VLINE , ITAB-PERNR, 15 SY-VLINE , ITAB-ENAME, 50
SY-VLINE.
ENDLOOP.
Receivers
receiver_list-recextnam = 'EXTERNAL-MAIL-ID'. "-->
EMAIL ADDRESS
RECEIVER_list-RECESC = 'E'. "<-
RECEIVER_list-SNDART = 'INT'."<-
RECEIVER_list-SNDPRI = '1'."<-
APPEND receiver_list.
General data
w_object_hd_change-objla = sy-langu.
w_object_hd_change-objnam = 'Object name'.
w_object_hd_change-objsns = 'P'.
Mail subject
w_object_hd_change-objdes = 'Message subject'.
Mail body
APPEND 'Message content' TO message_content.
Attachment
CALL FUNCTION 'SAVE_LIST'
EXPORTING
list_index = '0'
TABLES
listobject = listobject.
CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
compressed_size = compressed_size
TABLES
in = listobject
out = compressed_attachment.
DESCRIBE TABLE compressed_attachment.
CLEAR packing_list.
packing_list-transf_bin = 'X'.
packing_list-head_start = 0.
packing_list-head_num = 0.
packing_list-body_start = 1.
packing_list-body_num = sy-tfill.
packing_list-objtp = 'ALI'.
packing_list-objnam = 'Object name'.
packing_list-objdes = 'Attachment description'.
packing_list-objlen = compressed_size.
APPEND packing_list.
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = w_object_hd_change
object_type = 'RAW'
owner = sy-uname
TABLES
objcont = message_content
receivers = receiver_list
packing_list = packing_list
att_cont = compressed_attachment.

Similar Messages

  • PR creation - Particular Purchasing group assignment to Document type

    Hi
    We want particular Purchasing group should be selected w.r.t. Document type during PR creation.
    Is this possible thru SPRO??
    Thnx
    Nilesh

    Hi
    It is not possible per document type.
    The possibilities are -
    Can maintain in material master.
    Can use personal settings.
    warm regards
    sairam

  • Finding purchasers associated to a particular purchase group

    Hi All,
    Given a purchase group, how can one find the purchasers associated with that purchase group??
    Please give me an idea, this is really important.

    I am not clear with the question.
    Let me try answering your question.
    I assume that you need to find all the Customers belonging to a perticular group.
    Am I right? You should use Query Wizard for generationg your own report from table OCRD.
    Let me know if this not what you asked for.
    Thanks
    Kishor

  • Emailing PO script to both Purchasing Group and Vendor

    Hello All,
    Is there a way to email PO SAP script to both Purchasing Group and Vendor?
    i searched the form and endup with no luck.
    Regards,
    Sree

    Hi
    in the print program  the funciton module which you used for sending the mail add the email id of vendor and purhcasing group to the receiver list and it will send to both the parties
    regards
    m.a

  • Restricting MIGO by Purchasing Group

    Has anyone tried and found a way to restrict MIGO to particular purchasing group.  There appears to be a opportunity to leverage M_BEST_EKO however efforts thus far have not provided the desired results
    Regards,
    Eric

    Hi,
    You need to turn on the check proposal of the below objects in SU24 as YES to get them in Profile generator so that you can maintain the values for Purch. Grp.
    M_ANFR_EKG                Purchasing Group in RFQ
    M_BEST_EKG                Purchasing Group in Purchase Order
    M_BEST_EKO is for Purch. Org. and not for Purch Group.
    Regards,
    Dipanjan

  • Po approver per purchasing group

    Hi,
    i need to see the list of approvers  for  particular purchasing group.kindly advice.Is there any table to see the list of approvers assigned for that user .kindly advice
    regards
    sp

    Hello,
    There are release codes which are assigned to the approvers/users, who release the document with there respective release codes, so for this we design roles which contains authorizations like release code, transaction code etc. which is assigned to respective approver or responsible person, so this is done by Basis.
    You can identify which release code is assigned to which user by using transaction SUIM.
    SUIM>User Information System>Roles>Roles by Complex Selection Criteria>then enter User Name, transaction code for release like ME54N,ME55,ME28 etc, then execute.
    you will get a list of roles, select one role--> then you will see some tab pages like authorizations/users etc there you can check for release codes given to there respective approvers.
    regards,
    Prashant Rathore.

  • Purchasing Org from Purchasing Group

    Hi,
    I have a requirement where I need to read the Purchasing Org to which a particular Purchasing group is assigned. I get the purchasing group as input.
    I tried to find any FM which would give me this data but didn't find any. Could someone please provide any suggestions?
    Thanks & Regards
    Saravanan Sadasivan.

    Hi
    Input your user
    o/p- PO and Purchase group
    FM BBP_GET_PURCHGRPS_F4
    BBP_OM_DETERMINE_RESP_PGRP -FM
    i/p Purchase organisation
    o/p purchase group
    regards
    Muthu

  • Auto email multiple copies to multiple user as per filter

    Hello all ,
    I am developed a report 
    as below
    Auto email status report to particular Heads if store proc returns data for him .
    I can make a copy of report for one head using his division filter and user_id
    and if store proc returns data for him so email to him ..
    same thing for multiple users with same store proc can return the data and email
    but i dont getting how can i do this...?
    Please (Visakh 16) and others  help on this
    Dilip Patil..

    Hi,
    I think you should create one Delivery Profile, with multiple Email Devices. Within the Delivery Profile you should add all the Email Devices you want to use.
    If this Delivery Profile is active, you can add Active Devily Profile as the User Destination on the Destination page of the iBot.
    Otherwise you can check if it works when you select 'Email' as the Specific Device.
    Regards,
    Stijn

  • Auto Email to vendor for followup balance quantity deliver

    Hi All,
    Auto Email to vendor for followup balance quantity deliver,
    I have an requirement that Auto email to vendor for reminder with some fixed days (example : 10 days),
    Please suggest me any configurations for this and suggest me how to proceed on this..
    Thanks

    Hi,
    You can use Urging Reminders to supplier with output type MAHN.
    Here you set all the reminders to vendors based on days set up earlier then delivery date or 10 before delivery date 5 days before delivery date.
    Refer the below docs it may help you..
    Output message type MAHN Dunning - ERP SCM - SCN Wiki
    Reminders and Urging Letters (Expediters) - Purchasing (MM-PUR) - SAP Library

  • Gr message to Purchasing group email Ids

    Hi There,
                   I need to Gr message to Purchasing group email Ids using output type. I checked the output type MLGR, it is not sending the external email ids also it can send the message only to the user entered in the condition record. Also the GR posting is not accessing to the conditions given in the condition record table. It is fetching only the User detail from the condition table. Thanks for your valuable inputs for this issue.
    Regards,
    Vishnu

    Hi,
    Mail access / authorization is one of the reasons for not getting mails.Have you tried to give message manually inMB02? I think you should take a look at the problem of authorization. The process of using output type MLGR is that a mail is sent to the buyer through the purchase group entered in the PO. Check in IMG>MM>Purchasing>Creating Purchase Groups. An email address should have been maintained there.
    Alternatively, try creating an output entry using Medium 7 (as you did), but partner function $1, BU or ME. This should trigger an email to the Buyer who created the order.
    This may require you to configure these partner functions for the particular output type. I suggest you make a copy of MLGR.
    I hope this will resolve your issue. Thanking you

  • I want to create a query to send auto email to customer while adding AR Invoice

    Hi
    Friends
    I want to create a query to send auto email to customer while adding AR Invoice in SAP Business One 8.82.
    using the following fields & Text like
    email ID from - BP Master
    ' Dear Sir '
    Invoice is generated on the name  ---  BPName
    Quantity                                     ---  22.5 Tones
    Invoice Value                              ---   85,000/-
    date & Time                               ---  12-07-2014 : 16:18
    Thanks & Regards
    XXXXXXXXXX
    Please tell me how to set this in SAP B1.
    Srinivas

    I want to to send email to customer automatically the current invoice details while adding AR Invoice in SAP Business One 8.82.
    using the following fields & Text like
    email ID from - BP Master
    ' Dear Sir '
    Invoice is generated on the name  ---  BPName
    Quantity                                     ---  22.5 Tones
    Invoice Value                              ---   85,000/-
    date & Time                               ---  12-07-2014 : 16:18
    Thanks & Regards
    XXXXXXXXXX
    Please tell me how to write query in stored procedure to send email automatically.
    Srinivas

  • Purchase Order - How to email to Purchasing Group instead of Vendor?

    Hi,
    I managed to setup the PO email PDF functionality according to note 191470.
    However it sends to the Vendor by using the email address in the vendor master.
    How can I have it sent to the email specified in the Purchasing Group instead?
    Can this be configured or do I need to user-exit for this?  Please let me know the name of the user-exit if so.
    Thanks for your help and advice!
    cheers,
    Patrick

    Hi,
    Thanks for the suggestion.
    The sending of the PO PDF to the purchasing group email is meant for a certain set of PO types only.
    I'm just wondering, from what i read in note 191470, you can replace the email in the purchase order header "Address" section and the email that i specify would be used instead.
    If this is possible, then i could write a small user-exit which is activated before the PO is saved to replace that email with whatever email i want.
    Would that work?
    thanks.

  • Display of Particular Purchase order not to be shown

    Dear Experts
    How to stop the display of for some particular  purchase order on the same user id.
    i want to restrict some user not to be display some specific Purchase order , condition is that we cant change
    doc type or also cant change purchasing group.
    what other option through we can control over there.
    Rgds
    Pankaj Agarwal

    Hi,
    Restrict the Authorization for the Particaular Document Type or Purchase Group wiise or both. Inform your basis team to do that.
    Regards,
    Sudhakar
    Edited by: SudhakarMS on Jul 9, 2009 8:48 AM

  • Auto Email notification based on data from Table

    I need to send a auto email notification based on the information updated on the table. Like when response table is updated as 90 for ( column users).A Email should automatically trigger to the different users listed in a table named (email).. I have stored the value of users in a table named response and the person to whom i need to be email has been stored in table name email.
    I'm using Oracle 10g Express edition
    Let me know how this can be done automically.

    Wrong forum...should be over in the Database Forum or PLSQL forum. You need to add a trigger to the table and the trigger needs to utilize the UTL_MAIL or UTL_SMTP packages. You can get more info on UTL_MAIL here or more info on UTL_SMTP here
    and here is some example code for a trigger:
    create or replace trigger my_trigger
    after insert or update
    on my_table
    for each row
      begin
       utl_mail.send(sender     => '[email protected]',
                     recipients => '[email protected],[email protected]',
                     cc         => '[email protected]',
                     bcc        => '[email protected]',
                     subject    => 'utl_mail test',
                     message    => 'if you get this message it worked!');
    end my_trigger;UTL_MAIL and UTL_SMTP may need some configuring before you use them, see the links above for details.

  • Email PO as a PDF  document to Buyer-Purchasing Group

    Hi MM expert,
    is it possible to send an Email to Buyer (Purchasing group) as a PDF Document once we create the PO
    if yes Please let me know the Custamization settings
    Thanks in advance
    Priya

    yes it can be the output message like NEU but select medium number 7 simple email, then system will send the email who create the PO as buyer but in the profile management the creator email should be define so through ssytem it will go to his outlook system. first it can be seen in your SAP office then if in profile the outlook email is defined then through system it will go to outlook.
    regards,
    qsm sap

Maybe you are looking for

  • Mac terminal problems

    I have a mac os x 10.6.8 when  I use the terminal it seems to work responding to the commands given to it . But as i was writing something the next line it asked me for my password But refused to let me type it!! any help would be a geat help thanks

  • I cannot find my my iTunes icon on my desktop

    I cannot find my itunes icon on my desktop?

  • ALV hirarchial report - Printing.

    Hi, When number of items excceds the page, header details has to print once again  in new page while the report print. can any bopdy tell me, how i can do this. Regards, Sri

  • New to Numbers - best Tax organization?

    Hi All, I am new to Numbers. I am self-employed and unfortunately terrible at organization! I very simply need to keep track of all my expenses throughout the year, including home office expenses, flights, meals, materials, etc. Most everything I do

  • I reset my apple id and lost access to my previously purchased music.

    I reset my apple id password and lost access to my previously purchased music. How do I get those songs back in my cloud?