How to triger SAP workflow after save in t-code RMWB

Dear friends,
After execute t-code RMWB, I could click save button to save it. but my requirement is to triger the SAP workflow to send an email.
My question is, how to triger this SAP workflow after clicking save in t-code RMWB?
Thanks a lot!

Use this function module in a Exit or BADI or Enhancement spot during SAVE
SAP_WAPI_START_WORKFLOW
I THINK IT CAN BE DONE BY CREATING A SPOT IN "CALL METHOD GO_APPL->MO_RMWB->SAVE" IN PROGRAM OF RMWB

Similar Messages

  • How to automatic complete workflow after 3 weeks ago ?

    Hi all,
    I have one problem about workflow in SAP.
    I have the workflow that have one agent to assigned.
    How can I setup workflow to automatic complete if agent don't process task within 3 weeks ?

    Hi,
    Check whether the background job SWWDHEX is configured and its running for each 3 minutes.
    Also if you set the deadline as 3 minutes's, then you have to wait for some more 3 mins. Once the deadline reached the background job will execute the step with in three minutes. Check transaction SWWA. Here you can set the time interval for deadline job SWWDHEX.
    Then in the Activity step once the deadline is set, then select the modeled deadline in the action field. So that it will create a new
    branch in the wok flow template.
    For testing purpose, Just create a send mail step in the new branch and wait for ten minutes. Deadline will be reached and the mail will send to the inbox.
    Thanks.

  • How to continue the workflow after a block?

    Hello,
    I'm trying to make continue the workflow after a block. The CompleteActivity procedure doesn't give an error, but the workflow doesn't continue.
    Anybody a good idea?
    Robby

    CompleteActivity is the correct API, see the Workflow Guide for details,
    procedure CompleteActivity
    (itemtype in varchar2,
    itemkey in varchar2,
    activity in varchar2,
    result_code in varchar2);
    where:
    itemtype A valid item type.
    itemkey A string generated from the application object's primary key. The string uniquely identifies the item within an item type. The item type and key together identify the process.
    activity The name of the activity node that is completed. Provide the activity node's label name. If the activity node label name does not uniquely identify the subprocess you can precede the label name with the internal name of its parent process. For example, <parent_process_internal_name>:<label_name>. This activity node must be marked as a 'Start' activity.
    result_code An optional activity completion result. Possible values are determined by the process activity's Result Type, or one of the engine standard results. See: AbortProcess.
    Hello,
    I'm trying to make continue the workflow after a block. The CompleteActivity procedure doesn't give an error, but the workflow doesn't continue.
    Anybody a good idea?
    Robby

  • How to stop a workflow after appraisal is deleted / BUS7026

    Hello dear workflow experts,
    I want to automatically stop a workflow for business object BUS7026 after the appraisal is deleted with  transaction PA30. For this i created a new event but although I put the entry in the table with  transaction SWEHR3 it is not picked up. I only put a breakpoint in the function module to see if it comes that far. But tests are negative. Does anyone has experience with this which object and infotype to use in the table?
    Any help is welcome!
    Thx Richard

    Hello thanks for the replies,
    I have created an event in the SWO1 for the business object because this object does not have an event to handle this. Only the event COMPLETEDAPPRAISAL exists. Therefore it is not displayed in the SWEL automatically. I have to force this. My question how.....
    I tried to add the event in SWEHR3 for the deletion of object type BA but this does not trigger the workflow. My question now is does anyone have an idea how to trigger the event.
    Off course I understand that after the event is raised you can model a parallel branch but this is not my problem. Getting the deletion event raised is my problem.
    Regards,
    Richard

  • How translate Action Processed messages, after save or delete registers ?

    Hi,
    I know so must be a lot of easy, but I don't know how I can do it. What is the way for translate or change or don't show, the messages that the system show when is pressed the save or delete button, like "Action Processed" or "1 row(s) deleted. Action Processed" ?
    Thanks in advance.
    Xavier.

    It will be good if you create a procedure and check all the validations there...
    For eg:
    FUNCTION l_chk_leave_eligibility RETURN NUMBER is
    /*return 1 if you want to stop user from saving,else return 0*/
    a_1 alert := find_alert('Alert_1');
    a_2 alert := find_alert('Alert_2');
    a_3 alert := find_alert('Alert_3');
    a number;
    BEGIN
       If :no_of_days < 60 then /*applied days less than 60 days*/
           a := show_alert(a_1);  /*stop user from proceeding,so return 0 */
           return 1;
       end if;
       If :duration < 1 then /*employee worked less than year */
             If :no_of_Days >   4*30 then /*more than 4 months
                 a:= show_alert(a_2); /*stop user as she is not allowed to take more than 4 months*/
                 return 1;       
             end if;
        else /*worked more than year*/
        end if;
    return 0;
    End;In your pre-insert/pre-update triggers...
    Declare
    m_err  number ;
    Begin
       m_err :=  l_chk_leave_eligibility;
       If m_err = 1 then
           raise form_trigger_failure; /*this line will prevent the user from saving the record*/
       end if;
    End;Edited by: Dora on Jan 19, 2010 8:37 AM

  • How to recover the workflow after dead line is missed

    Dear friends,
    my work item missed requested end date as well as latest end date. I see it in
    transaction SWI2_DEAD. Is there way how to recover the work item or prolonge
    the dead lines?
    Thanks for you help.
    Regards,
    Petr.

    Hi Petr,
    Could you please explain in a little more detail, what exactly you mean by "recover"?
    Nothing actually happens to the work item, unless you have designed the workflow with modelled deadlines in such a way that it cancels the item and perform some or other action. Simple deadlines don't do anything to the work item, they just send out a notification and the work item remains where it is.
    If on the other hand you have a modelled deadline which cancels the item and generates a new one, then there is no way to "recover" other than starting a new workflow.
    Cheers,
    Mike

  • How to clear the form after save?

    Hi,
    My environment is JSF1.2 and Hibernate3. Scope of my bean is request level. On JSF form where I press the save button, data is saved in the database and form is empty for new record.
    I do not want to call method resetMe() because I have many beans with 10-20 fields per bean. I don't want to write such method again and again.
    Can you please help me for better solution?
    Here is my bean:
    package test.bean;
    import java.io.Serializable;
    import javax.faces.event.ActionEvent;
    import test.hib.CountryHome;
    public class Country implements Serializable {
         private Integer cPk;
         private String cName;
         private String cDesc;
         public Country() {
         public Integer getcPk() {
              return cPk;
         public void setcPk(Integer cPk) {
              this.cPk = cPk;
         public String getcName() {
              return cName;
         public void setcName(String cName) {
              this.cName = cName;
         public String getcDesc() {
              return cDesc;
         public void setcDesc(String cDesc) {
              this.cDesc = cDesc;
         public void save(ActionEvent ae) {
              CountryHome ch = new CountryHome();
              ch.save(this);
              this.resetMe();
         private void resetMe() {
              this.setcPk(null);
              this.setcName(null);
              this.setcDesc(null);
    }My database/hibernate class with save operation:
    package test.hib;
    import org.hibernate.SessionFactory;
    import test.bean.Country;
    import test.helper.HibernateUtil;
    public class CountryHome {
         private SessionFactory sf = HibernateUtil.getSessionFactory();
         public void save(Country instance) {
              sf.getCurrentSession().beginTransaction();
              sf.getCurrentSession().saveOrUpdate(instance);
              sf.getCurrentSession().getTransaction().commit();
    }My JSF page:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Country Form</title>
    </head>
    <body>
    <f:view>
         <h:form>
              <h:panelGrid border="1" columns="2">
                   <h:outputLabel value="Name: "></h:outputLabel>
                   <h:inputText value="#{country.cName}"></h:inputText>
                   <h:outputLabel value="Description: "></h:outputLabel>
                   <h:inputTextarea value="#{country.cDesc}"></h:inputTextarea>
              </h:panelGrid>
              <h:commandButton value="Save" actionListener="#{country.save}"></h:commandButton>
         </h:form>
    </f:view>
    </body>
    </html>

    What you are doing now will not create a maintenance nightmare in future, if you are doing it in a framework oriented fashion. We have done something similar in one of our biggest project( around 50 developers working 3 years). What we have done is, created a method resetBean() in our abstract backing bean like:
    public void resetBean(){
                        // doing nothing
    We didn’t make it abstract, so that all backing bean in our project need not implement this method. Those who want to use this method can implement this method to reset the values in the backing bean.
    One thing we achieved by doing this is, we don’t let each developers do the reset logic in different ways.
    One of the advantages of this over the redirect is, you have full control over resetting the form. Which means, sometimes, we may need partial resetting of the form.
    Thanks and regards
    Rick

  • How to get SAP application language only with SQL code

    Hi all,
      is there a way to get the current language only whith a sql query on the Database?
    I know that Ican find that information from the Application object of the UI Api but in this case i can't access them.
    Thanks in advance, Luca.

    Hello
    You cannot get the Application language (GUI Language) from SQL, because it is stored on the client machine filesystem
    Location is defined in
    C:\Program Files\SAP\SAP Business One\Conf\b1-config-path.txt text file, which by defaulf is:
    %USERPROFILE%\Local Settings\Application Data\SAP\SAP Business One\b1-current-user.xml file
    Regards
    J.

  • How to Add Carriage Return After PageBreak using XSL code?

    Hi,
    I have created one RTF Template for Check printing. My requirement is to print check on next page if total number of invoices exceeds certain value.
    I achieved this and used below condition in my RTF Template.
    <xsl:if xdofo:ctx="inblock" test="count($invLines)>=$lpp"><xsl:attribute name="break-after">page</xsl:attribute></xsl:if>
    "lpp" is global variable whose value is set at the start of template. Now i also want to add some space after pagebreak in my Template.
    Like presently, check prints at the top of page, so i want to print it after leaving 9-10 lines blank.
    Can anyone please help me to achieve this?
    Thanks
    Amit

    Hi,
    I tried below syntax but its working only for first page, its not giving space for second page
    <xsl:if xdofo:ctx="inblock" test="count($invLines)>$lpp"><xsl:attribute name='space-after'>700pt</xsl:attribute></xsl:if>
    I want to combine it with page-break. Like i need specific space only after page break. I tried to combine both, but its not working. Any inputs on these?
    <xsl:if xdofo:ctx="inblock" test="count($invLines)>$lpp"><xsl:attribute name='space-after'>100pt</xsl:attribute>
    <xsl:attribute name="break-after">page</xsl:attribute></xsl:if>
    Thanks
    Amit
    Edited by: user11982820 on Apr 14, 2010 5:52 AM

  • How to put HTML content after the following java code in the JSP

    Hello Guys :),
    In the following jsp I force the user to download a file but I am not able to perform any action after I do this. I want to put some HTML code in this jsp at the end so that user has the option of doing other things after downloading the file.
    Any solution will be highly appreciated :)
    Thanks
    <%@ page import="java.util.*,java.io.*"%>
    <script language="JavaScript" src="common.js"></script>
    <%
    Hashtable hashTable = (Hashtable)session.getAttribute("platformAndSampleInfo");
    Date date = (Date)hashTable.get("date");
    String userName = (String)hashTable.get("userName");
    String dateString = date.toString().substring(0, date.toString().length()-9).replace(' ','_');
    dateString = dateString.replace(':','_');
    String fileExtension = (String)session.getAttribute("fileExtension"); //,getFileExtension(request));
    String outputFile = userName + dateString + fileExtension;
         File f = new File (outputFile);
         response.setContentType("APPLICATION/OCTET-STREAM");
         response.setHeader ("Content-Disposition", "attachment; filename=\""+ f.getName() + "\"");
    InputStream in = new FileInputStream(f);
         ServletOutputStream outs = response.getOutputStream();
              int bit = 256;
              int i = 0;
              try {
                   while ((bit) >= 0) {
                        bit = in.read();
                        outs.write(bit);
              } catch (IOException ioe) {
                   ioe.printStackTrace(System.out);
              outs.flush();
              outs.close();
              in.close();     
    %>
    <!--
    The following piece of HTML code is never reached
    -->
    <html>
    Want to display this
    <html>

    Thats odd.. try using out to print the character
    inst of creating the instance outs.. Maybe your
    overiding something.
    ex)
    char c='s';
    out.print(c);
    //the jsp will create the instance of out for you.

  • How to assign SAP forms in FB50, F-28 and F-53

    Greetings for the day,
    Actually my client's business is like retail business so they are accepting daily N no.of payments from their customers. Now my problem is they need a print receipt for each transactions and that to be according to their own format. Not only for the payments but also for all the transactions whatever they are entering in the system. So you tell me how to set SAP script forms to these transaction code like in fb01, f-02, f-28, f-53 etc.
    Note : I have already suggested them about T.code : f.62 but they are not ready to go in another T.code for print. They need print option with in the same T.code in which they are posting the transaction.
    Regards,
    Vinod

    Dear:
                This can be achieved through SHD0.. You can disable posting button in these t code using SHD0. Please follow the procedure given as
    Go to SHD0...In t code write FB50...Transaction Variant..ZFB50...Click create ... Now enter document date as soon as you enter document date just press enter ... A new box will appear .. There will a button at its bottom--Menu Function...Click it...A new screen will appear...In it go to menu Bar...document.. There you will see post click on it and press F2..now it will be deactivated..Exit and save..Give Package that ABAP use and save it again and again until it shows that the changes have been saved.. Now you will see this ZFB50 in Standard Variants tab of SHD0.. Activate it.
    Do the same thing for F-02. So you simply have to create Z screen variant and assign them to t code.
    It will do the job for you.
    Refer to the link i posted earlier regarding disabling parking button in FB50
    Re: FB50 - disable PARK icon
    Regards

  • Add eventlistener to catch after save document event?

    How can I catch a after save document event?
    Best regards
    / Pontus

    http://127.0.0.1:63632/help/index.jsp?topic=%2Fcom.adobe.cside.docs%2Freferences%2Fcshalib %2Fcom%2Fadobe%2Fcshostadapter%2FIDScriptingEventAdapter.html
    Harbs

  • How to route the information to approver with out involving sap workflows.

    Hi Developers,
    i have a doubt regarding how the requester filled form information will be send to approver with out involving SAP workflows in the portal.
    Normally i know the procedure where users fills the form with the approver details, the filled information is routed to approver UWL by trigerring a function module thru webdynpro.
    But i need to know is there any procedure to route the information without involving any backends.
    Thanks in Advance.

    Michele is correct - sneep will help you get the serial from the running domain on the M3000 ,
    and it is a good idea to install STB on your machines.
    If that isn't possible for you, then sneep can be downloaded directly from [http://www.sun.com/sneep]
    I believe that on this platform, sneep gets the serial from the output of prtconf.
    There is a minor correction to be made :
    After installed SNEEP use "man sneep" for all technical details.The sneep man page is not linked into the shared man pages, so you need to use
    man -M /opt/SUNWsneep/man sneep
    with out going to OK prompt (Banner)It is worth noting that the serial shown in the OBP banner is not the product serial
    that you will find on the physical serial tag.
    The banner "serial" is the decimal equivalent of the host ID, which you normally get in hexadecimal from the "hostid" command.

  • Large numbers of workflows appearing in SAP Inbox after system refresh

    Hi all,
    We are having an odd issue where after we perform a system refresh of our PR system to QA, a massive number of Business 23,000+ appear in the SAP Inbox of certain users who are registered as agents.
    We understand how to delete the workflows but want to understand the process of why they keep appearing, and whether this is a system error or a symptom of a user/batch process during or after the refresh.  The workflows do NOT appear for these users in the PR system.
    95% of the notifications are flagged "Error when generating IDoc from MC Document."
    I have been reviewing the Workflow wiki but have yet to find anything pertinent yet.
    http://wiki.sdn.sap.com/wiki/display/HOME/3.Administrationand+Troubleshooting
    Any help with this or applicable SAP Notes would be greatly appreciated.
    Thanks!
    Edited by: Ben Daniels on Dec 6, 2010 11:21 AM

    Hi,
    As the error message, those workitems are generated when system trying to generate IDocs.
    And the reasons why all workitems are sent to all users is, the task is marked as general task.
    What i would suggest is, select any of those workitem, go to its workflow log & analyze which workflow generates these workitems in what case and proceed accordingly.
    Regards,
    Raj

  • How to get the only the changed or newly added entries in AFTER SAVE.

    I have created table maintenance generated for a table,I want to get the newly added or changed entries while saving thats why im using AFTER SAVE event for the same,can anyone please tell me how to get the only the changed or newly added entries in AFTER SAVE.

    Hi,
    Welcome you post on the forum.
    I have moved your thread here because it is in English and should not in the language specific forum. What is your system version?
    Thanks,
    Gordon

Maybe you are looking for

  • Dummy Entires in report output

    Hi All, I have report (Age analysis)which created on multiprovider. when i execute (Age Analysis) report it will display selection screen as below. production year/month. == Jan 2001 to May 2001 class                          == A in my cube there is

  • Library won't open in updated iPhoto

    I have updated to iPhoto 6.0.4 but it presents me with a library that is completely empty. There are folders for "Early Photos," "2004," "2005," etc. but nothing in them. I have all my earlier library on a backup disk, but when I move them over to my

  • Correct FB project settings for AIR3.2 mobile dev using stage3d?

    I would love to use Flare3D on a mobile app. Im struggling to get FB to get set up for this. I have overlayed AIR3.2 and added a flash player 11.2 debugger exe in the players folder as well as playerglobal.swcs for 11.2RC. When I go to make a new act

  • Photoshop CS5 Crashes when attempting to Print

    MacBook Pro OS X v10.7.1 Photoshop CS5 v12.0 HP Deskjet F4280 Ever since upgrading to Lion I am not able to print from Photoshop. I can print elsewhere, however Photoshop is where I need to print from, as colors are optimal. Photoshop crahses when I

  • Mac OS 10.7 shockwave bug

    1.  Open a jigsaw puzzle on a web page, examples @ kayingleside.com 2.  When loaded click on a puzzle piece and move it around. problem: When you click the piece it disappears until you release the mouse button then it reappears in the new location.