Email functionality for delivery release via VKM3

Dear All,
My question is -
When a delivery  is being released by the credit department by transaction VKM4 a message should be automatically send to the responsible person in the sales office with the confirmation that the delivery has been released.
The message will be send to the @ mail (Lotus Notes) address.
The correct person will be identified via the partner function VW Customer Service which is defined at header level and should be available in the sales order.
I found the user exit Include RVKREFZ2 to be used for this.
Can anyone guide how to use this email functionality and from where the relevant data can be picked up from?
If any further clarifications are needed pls let me know.
Would greatly appreciate your useful feedback.
Thanks.
Regards,
Saurabh.

hello Saurabh,
You can use the following code to send an email.
DATA : l_message(100) TYPE c.
  DATA : l_subject(50) TYPE c.
  DATA : g_email(50) type c value '[email protected]'.
  DATA : objheader LIKE solisti1 OCCURS 0 WITH HEADER LINE.
  DATA object_id LIKE soodk.
  DATA : docdata LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
  DATA : objcontents LIKE solisti1 OCCURS 0 WITH HEADER LINE.
  DATA : receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
  receivers-receiver = g_email.
  MOVE :  'X'      TO receivers-express,
          'U'      TO receivers-rec_type.
  APPEND receivers.
  CONCATENATE 'Please note that your cheque numbered' p_cheque ' has been dishonoured' INTO l_message SEPARATED BY space.
  CONCATENATE 'Cheque numbered' p_cheque 'dishonoured' INTO l_subject SEPARATED BY space.
  objheader-line = 'Cheque Dishonoured!'.
  APPEND objheader.
mail contents
  objcontents-line = l_message.
  APPEND objcontents.
  objcontents-line = 'You are requested to contact the nearest Regional Office immediately'.
  APPEND objcontents.
mail subject
  docdata-obj_descr = l_subject.
  APPEND docdata.
  CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
      document_data                    = docdata
  DOCUMENT_TYPE                    = 'RAW'
     put_in_outbox                     = 'X'
   commit_work                      = 'X'
   IMPORTING
  SENT_TO_ALL                      =
     new_object_id                    = object_id
    TABLES
     object_header                    = objheader
     object_content                   = objcontents
  CONTENTS_HEX                     =
  OBJECT_PARA                      =
  OBJECT_PARB                      =
      receivers                        = 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
Moreover the email address can be found from the ADR6 table by giving the address number from KNA1 - the customer master.
Happy Programming
Zankruti

Similar Messages

  • Email functionality for PO Release Strategy:

    Email functionality for PO Release Strategy:
    >When PO is blocked an email must be sent out to the first approver.
    >If there is a second approver there should be sent out an e-mail after the first level is approved and soon.
    >When a PO is released by last approver an e-mail must be sent to the creator of the PO
    I need develop this demand without workflow.     
    I found an Exit 'EXIT_SAPMM06E_013' which is triggering when 'ME21N' is executed.
    But i'm unable to update the table EKKO before my code is executed.
    Here i need Rel. gr(FRGGR),
                Rel Str.(FRGSX),
                Rel Indicator(FRGKE),
                subject to release(FRGRL) AND
                Rel Status(FRGZU) from table EKKO to check whether the PO is Blocked or Released.
    Based on the values got from the table EKKO, i need pick email ids from ZTable which stores Email Ids.
    I'm able to get the PO no which is currently genereated and i need to pass this PO no. to table EKKO to get the above fields.
    But Table EKKO is updating in the database after the execution of my code.
    What do i need to do to get table EKKO updated in the database before my code is executed.

    Email functionality for PO Release Strategy:
    >When PO is blocked an email must be sent out to the first approver.
    >If there is a second approver there should be sent out an e-mail after the first level is approved and soon.
    >When a PO is released by last approver an e-mail must be sent to the creator of the PO
    I need develop this demand without workflow.     
    I found an Exit 'EXIT_SAPMM06E_013' which is triggering when 'ME21N' is executed.
    But i'm unable to update the table EKKO before my code is executed.
    Here i need Rel. gr(FRGGR),
                Rel Str.(FRGSX),
                Rel Indicator(FRGKE),
                subject to release(FRGRL) AND
                Rel Status(FRGZU) from table EKKO to check whether the PO is Blocked or Released.
    Based on the values got from the table EKKO, i need pick email ids from ZTable which stores Email Ids.
    I'm able to get the PO no which is currently genereated and i need to pass this PO no. to table EKKO to get the above fields.
    But Table EKKO is updating in the database after the execution of my code.
    What do i need to do to get table EKKO updated in the database before my code is executed.

  • URGENT: Cutomize Email functionality for Action Items

    Experts,
    I need to your help for a customization I need to help setup immediately.
    Here is the requirement : Client does not currently have an E-mail notification functionality turned on for Action Items. The requirement is to have E-mails sent out when ever an Action Item is Assigned to a User. The email should be sent to both the user who has been AssignedTo and the person who actually assigned.
    I believe this need customization to Criteria Workflow email and/or cutomization to the out of the mail templates - reviewr_mail.htm and reject_mail.htm .
    I am not sure which workflow is tied to Action Items.
    Any expert advise on this would tremendously help .
    Thanks in advance.
    Rakesh

    Old Old (6 years) data that only partly covers this, and on a current server may need some tweaking but this may help.
    The following are required and assumed for custom workflow email functionality:
    Stellent Content Server 7.x or higher
    A working knowledge of CS
    A working knowledge of CS workflow step event architecture
    A working knowledge of Idoc Script.
    Business Problem
    You wish to customize the email message, subject, template, or all of the above, sent out by CS Criteria workflow.
    Idoc Script Explanation
    There are several new or newly exposed Idoc Script variables and functions, as well as old stand-bys, that make customizing 7.x Criteria Workflow emails quick and easy. All the functions and variables described herein may be found in the Idoc Script reference guide.
    Emails will be triggered by criteria workflow:
    Upon Step Entry
    Upon Reject
    Upon execution of the <wfNotify()> Idoc Script function
    Customizing Email Templates
    There are two primary workflow email templates that are used to generate the email messages sent out to recipients. These are: reviewer_mail.htm and reject_mail.htm both of which are located in the default templates directory at:
    < Stellent Home Dir >/shared/config/templates
    These templates may be modified like any other template according to established component architecture best practices. The templates are Idoc Script enabled and, as such, may evaluate dynamic code and draw dynamic results when the server is creating the mail message. Of course, after the message instance is created from the template and sent off to the mail server, no additional scripting may be done. Email message template modification provides the greatest flexibility and opportunity for truly customized and dynamic workflow emails.
    It should be noted that not only may the email templates be modified for universal email changes, but also you may create custom workflow email templates based on the standard templates. Custom templates may be called as desired by adding them as the optional third parameter to <wfNotify()>.
    Example:
    <wfNotify(userName,"user",templateName)>
    or
    <wfNotify(aliasName,"alias",templateName)>
    If no template is specified, SCS will use the system default template.
    Although email template modification is relatively straightforward, such modification requires careful component development. Consequently, some clients prefer to modify the most important portions of the criteria workflow email: the subject and the message.
    Customizing the Email Subject Line
    Criteria workflow email subject lines may be modified in several ways. The core string resource may be modified according to standard component architecture. Additionally, the wfMailSubject IdocScript variable may be declared in criteria workflow step event scripting to give greater control and flexibility for narrowly targeted customization.
    The default criteria workflow email subject lines are defined in the ww_strings.htm file located at:
    < Stellent Home Dir >/shared/config/resourced/lang
    The string definitions are:
    <@wwWfIsNotifyOnly=Workflow notification for content item '{1}' is in step '{2}'.@> {1} = content item title. {2} = name of step in workflow.
    <@wwWfReadyForStep=Content item '{1}' is ready for workflow step '{2}'.@> {1} = content item title. {2} = name of step in workflow.
    <@wwWfRejected=Content item '{1}' has been rejected.@> {1} = name of content item.
    These may be aliased (superceded) in a component resource file. They are typically called with the localization Idoc Script function <$lc()$>. See the <@dynamichtml wf_approve_mail_subject@> include definition in std_page.htm for an example of how email subject line string includes may be implemented.
    For simple criteria workflow subject line changes Idoc Script, rather than full-blown components, may be used. The Idoc Script variable <$wfMailSubject="my subject"$> can be placed in step event script. The value of <$wfMailSubject$> can also accept Idoc Script. For example:
    <$wfMailSubject="My Custom Subject Line for the content with title <$dDocTitle$>"$>
    Note that no eval() function is required for the Idoc Script variable to evaluate when included in the wfMailSubject variable.
    If wfMailSubject is place in the entry event of a workflow step, then any email messages triggered by content entering the step will receive the customized subject line. Additionally, wfMailSubject may be declared just prior to a wfNotify() function and the email(s) generated by that function call will receive the custom subject line.
    Customizing the Email Message Line
    The email message line is not the same thing as the email body. Rather each SCS criteria workflow generated email contains several lines of standard data:
    Message: message line
    Workflow Name: workflow name line
    Workflow Step: workflow step name line
    Content Item:     content id line
    The message line will default to one of two messages depending on whether or not the workflow step is a "notification only" (i.e. 0 required reviewers) step or not. The relevant localized strings are:
    Notification only: <@wwWfIsNotifyOnly=Workflow notification for content item '{1}' is in step '{2}'.@> {1} = content item title. {2} = name of step in workflow.
    Review Required: <@wwWfReadyForStep=Content item '{1}' is ready for workflow step '{2}'.@> {1} = content item title. {2} = name of step in workflow.
    See the <@dynamichtml wf_approve_mail_message@> include definition in std_page.htm for an example of how email message line string includes may be implemented.
    For simple criteria workflow message line changes Idoc Script may be leveraged in step event scripts. The Idoc Script variable <$wfMessage="my message"$> may be placed in step events to give the workflow emails custom message lines. Like wfMailSubject, the value of wfMessage can accept tagged Idoc Script variables without requiring an eval() wrapper. If wfMessage is declared in the entry event of a workflow step, workflow generated email messages for that step will use the value assigned to wfMessage. Additionally, wfMessage may be declared prior to a wfNotify() function and the email(s) generated by that function call will receive the custom message line.
    These are not the only ways to customize criteria workflow email attributes. However, the SCS 7.x Idoc Script API provides these methods, functions, and variables to make customizing workflow emails simple.
    Requirements, Pre-Requisites, and Assumptions
    The following are required and assumed for custom workflow email functionality:
    Stellent Content Server 7.x or higher
    A working knowledge of CS
    A working knowledge of CS workflow step event architecture
    A working knowledge of Idoc Script.

  • Emailing functionality for billing output

    Hello SDN's,
    As per requirement, business needs to send invoice output to customer email directly and business needs to validate the invoice before sending to customer email .Can you please suggest how do we implement this process in as per business requirement.
    I have checked current functionality, as per that business is validating the invoice before sending to customer(not email).
    Please suggest.
    Thanks in advance
    Regards,
    KV

    Hello Guru's
    Based on the discussion, I do have similar business requirement but with little twist, as it can never be same
    I need to configure billing output via ale. which they want in email format to be sent to vistex for further processing.
    Secondly this output has to be for some special customers, business will run a batch by the end of the day to push this docs for further processing to vistex.
    So for this solution do I control it by output routine or maintain access sequence?
    And also which transmission medium should I use?
    Please suggest on this.
    Thanks
    Aman

  • EMail notification for PO confirmation via PPF

    Hello,
       I want to send a email notification whenever the PO is confirmed and I want to do this Post Processing Framework. I dont have any idea about the PPF. So could explaing the steps for achieving this functionality.
    If you can point me to any blog's where this has been explained in detial would be great.
    I already explored the Alert Notification functionality but i wont suit my requirement.
    BR, Saravanan

    Hi Saravanan,
    May be you can use  class /SCA/CL_IM_BOL_ORDR_CNFPBL for your requirement.
    Regards,
    Nikhil

  • Configuring and testing email functionality for GP

    Hi,
    May I know what are the steps that i need to do in order to send email out to users in Guided Procedures? What are the configurations that need to be done?
    And after configuring it, is there any way to test if the email configurations is set properly and is working fine?
    Thanks in advance.
    Regards,
    Cindy

    Hi Cindy,
    Check this <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/e0/e3934249c30c31e10000000a1550b0/frameset.htm">link</a>
    Focus on: <b>smtp.server</b> and <b>smtp.service_user_mail</b> parameters,
    For testing create a "send notification" CO and test it.
    Hope this Help
    Regards
    Luca

  • Configuring email functionality in CHARM

    Hello Gurus,
    We are at SAP SOLUTION MANAGER 7.1 ,ST 710 07 and have charm configured and operational.
    we need to configure email functionality for change in charm status .
    So need your help and guidance tu understand the scope such as
    1.whom we can send mail
    2.content of mail alerts
    3.pre-requisites if any
    and standard documents  that could help me configure the same.
    Thanks
    Prasanjeet

    Hi Prasanjeet,
    The email functionality is almost same for ServiceDesk & CHARM.
    You can check the below link for more details -
    Pep Up Your ChaRM - Part 1: HowTo Create a Smart e-Mail Action
    Best Regards,
    Tanmeya

  • Email functionality lost in IOS5

    I lost email function for all my accounts on my IPad after ios5 upgrade.  I, like a bunch of other people, am having problems with apps and new features on the iPad. iPhone is working ok but not as fast as I expected.  Is apple working on an update to fix the update? :)

    Lost what email functionality (sending, receiving, reading ...), what problems with apps, and what needs fixing ? Nobody on here knows what Apple are or aren't working on. If you say what problems that you've got then someone on here might be able to help

  • Credit Management - Release for delivery

    Dear all,
    Any body kindly explain for me about Release function in VKM3, pls?
    If a sales order is blocked for delivery with Credit limit check, and now, i want to deliver that order without remove Credit limit check by go to va02 and change that order. So, How to do?
    Thank you,

    Hi Quang...
    VKM3 is used to view the orders blocked for delivery.
    As you said.. if an order is blocked for delivery, you can release the block by getting into VA02. Under the General Header data of Sales in the field delivery block you could see the reason for blocking that particular sales order for delivery.
    In that you may have to remove the block to blank.(i.e the delivery block column should be blank...) Hence you can remove the block for that particular delivery....
    Sometimes if releasing the sales order block is not in your eligibility and if you have to reassign that responsibility to your manager (say the Regional sales manager) then you have to reassign the task to him. For that we are having reassign button.
    Sometimes.. if you want to reject that sales order as a whole , as you are thinking that sales need not happen for that particular sales order... you can reject the sales order. If you reject the sales order it wouldn't be possible for your other users to process that under any circumstance of time..
    Hope I have answered all your queries..
    Thanks,
    Safeer Rahman

  • Share via email function missing in Pages

    I use the share via email function 100+ times a day. I'm a power user with it and my business work efficiency depends on it as most of my clients work with MS Office.
    Now that share via email function is completely missing in Page 5.5 (Yosemite). Did they remove it!?!?!?
    Now have to export as a Word Doc, save it, open email and attach it. Very frustrating.
    I use a 2010 Macbook Pro with everything up to date on it. I have not upgraded to iCloud Drive, as I want to manually retrieve all my iPad documents and back it up before activating that feature.
    Any insights?
    Thanks,
    Lisa Ann

    Hello LisiAnni,
    The Share feature was not removed. It is located in the toolbar and looks like a box with an arrow pointing up next to the tips button. Take a look at the links below for how to do this and if you are missing that button, you can add it back by following the second article.
    Send a copy of a document
    http://help.apple.com/pages/mac/5.5/#/tan5394fbf0f
    Customize the toolbar
    http://help.apple.com/pages/mac/5.5/#/tanafa2f718a
    Regards,
    -Norm G. 

  • RFC/BAPI For Sales Order Credit Block Release like vkm3 (very urgent )!!

    hi experts,
    I need the RFC/BAPI For Sales Order Credit Block Release like vkm3 function ,please help
    thanks
    Godspeed

    hi
    can get the list of all the bapis..
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    Reward if USeful
    Thanx & regards.
    Naren..

  • Output determination for sales order via email notification

    Dear All,
    Can some one provide  me  a  step by step configuration guide for Output determination via email notification.
    I would appreciate for your prompt response.
    Thanks
    ANGKS

    Hi there,
    For getting output Email or any media you have to do output determination. output determination is also carried by Condition techniques.
    Configuration path: (following are the steps)
    1) SPRO-> IMG-> Basic Functions-> Output Control-> Output Determination-> Output Determination using Condition Technique- >Output Determination for Sales Documents .
    2) Create Condition Table: select the field Sales Doc Type from field catalog & Save
    3) Maintain Access Sequence: 4-digits code & description. 
    4) Assign condition table to access sequence. Select Accesses line item and Go To Fields. Fields will display the fields we have selected in the condition table i.e. sales doc type. Maintain Output Types:BA00: Order Confirmation Select BA00 & Copy & Rename. Give the same 4-digit code as given to access sequence. You Can Maintain: Languages of Output Partners (to whom you need to send output) Print Program- print specification Sap Script- layout Assign Output Types to Partner Functions: go to new entries & assign your output type to partner functions. Maintain Output Determination Procedure: V10000 (Standard Procedure)here you select communication medium Email.
    Go to new entries and create your own 6-digit code with description. Select the procedure, go to Control Data. Here mention the output type i.e. condition type and leave requirement and manual only columns as blank. Determination Rule: link the 6-digit procedure code to doc types. Create Condition Records: VV11. Select document type and click on Communication. Mention partner function, medium, time. Output device: LP01, Spool request Name: SD_003, Suffix 2: order_confir & flag on print immediately. Once you press enter you will come across 2 key combinations: Sales organisation/ Customer Number: fill SO, Customer No, Partner Function Abbreviation, Partner to whom the output should be sent, time, medium, language. It contains: Sales Orgnisation, Customer, Partner Function (The abbreviated form of the name that identifies the Partner) (During output determination, the system determines the recipient of the output from the master record for the specified partner function. In this field, you can explicitly specify a recipient that will override the standard partner. There must also be a master record for the partner that is specified explicitly.), Medium, Time & Language.} Order Type: Document Type, Partner Function (abbreviation), Partner, Medium, Time & Language. Path For Output Determination For Sales Documents: Logistics -> Sales/distribution -> Master data -> Output -> Sales Document -> Create (t-code VV11) Path for Output Determination
    I hope this will help you.....
    Regards
    Deepak

  • To stop email notification for a user regarding PR release in workflow

    Hi All,
    I am new to workflow.
    I need to stop an email notification for a user who receives it for PR release.
    I checked earlier posts which stated some send email steps in workflow and extended notifications.
    But I am not aware of any of this things.
    Can you all please help me in resolving this? As i hardly know anything about workflow.
    How can i check where this email notification gets triggered or from where it picks the user id?
    Your help would be appreciated.
    Thanks.

    Hi Dharmin
    Identify which workflow is for PR:
    Go to T Code SWI2_FREQ
    Select the appropriate date range
    Work item Type should be (Sub-)Workflow
    Execute
    You will get the list of ALL workflows triggered during the given time interval
    Hopefully, the developers in your system have maintained the correct Work item text and you can identify the PR workflow . Pick the WSxxxxxxxx number from the "task" Column for the PR Workflow
    Go to SWDD and analyze this workflow, check for steps which are sending the emails.
    (simplest possibility)
    Once you find the step, see if this can be blocked for a given user or not (or will it block for everyone).
    Reach there and give us the details of the email step and we shall work out a way.
    BTW - did you try to ask for the Functional and Technical Specs for this ?
    It should contain some details to help you.
    Regards,
    Modak

  • Release Orders Blocked for Delivery

    Hello Experts!!
    We have V.23, release orders blocked for billing.. is there a similar transaction where we can release orders blocked for delivery??
    Help is greatly appreciated.

    Hello Carla,
    Yes in the T-code "V.23", you can release the billing block for SALES ORDER in one single click. While releasing the delivery block for the Sales order the following T-code are useful:
    1. VDBLOCK
    2. V.14
    3. VA14L
    When you are using these T-codes, you get the list of all the Sales order which are blocked for Delivery. Then you can select the document for which you want to remove the delivery block and do the required updation.
    Regards,
    SARTHAK

  • Broadcasting via Bursting to multiple email address for a single vendor cod

    Hello -
    I have a requirement to broadcast out a web template based scorecard to multiple email addresses for a given vendor code.  We have gotten it to work via a single email address, but I need to send it to more than one email per vendor code.
    Has anyone else tried this?
    Thank you!

    Hi Chris,
    If my understanding is right, you must be using the master data of vendor Code(Which has an attribute to store Email IDs).
    You can add multiple email ID to the same master data separated by semi colon ";"
    If you are using user IDs instead, I dont think it is possible to use multiple user ID in the same attribute.
    in this case you need to enhance the master data with a new attribute to store the second user ID and the  create a separate setting for this attribute.
    Hope this helps.
    Regards.
    Shafi.

Maybe you are looking for