Workflow in MM module

Dear Experts,
                      I have to use workflow in MM module (for P.O), have never worked with workflow, Plz send some useful documents and links and suggest how to do it.
Looking forward to your response.
Regards,
Gulrez

Purchase Order Workflow
Purchase Order workflow ( Transaction : ME23N) determines the approval path for the buying organization . It first goes to the buyer, buyer's manager & thereafter based on the cost center & the associated amount, it goes for approval through the Cost Center organization .
Chk these links.
MM - Workflow Scenarios
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMMM/BCBMTWFMMM.pdf
Purchase Order and Sales Order Workflow
http://www.sap-img.com/workflow/purchase-order-and-sales-order-workflow.htm
Workflow of Purchase Requisition Release Strategy
http://www.sap-img.com/workflow/workflow-of-purchase-requisition-release-strategy.htm

Similar Messages

  • Triggering Workflow from Custom Module pool

    Hi,
    I am trying to trigger my workflow from my custom module pool using the function module "SAP_WAPI_START_WORKFLOW". I am passing the following parameters for the above function module
    TASK, LANGUAGE, DO_COMMIT, USER and INPUT_CONTAINER
    but, it is returning the following message
    "You are not one of the possible agents of task 'WS90100020'"
    Please suggest a solution for this problem?
    Regards
    Sujith P. Soman

    Hi,
    A better way would be to trigger your WF using an event and calling SAP_WAPI_CREATE_EVENT. But if you want to start it directly then if you are calling this FM in dialog you need to be a possible agent. The easiest is if you jsut make it a general task so anyone can start it.
    In PFTC, open your WF goto Additional Data -> Agent assignment -> Maintain. Click on 'Attribnutes' and select 'General Task'.
    Also run SWU_OBUF afterwards to synch all buffers before testing your FM again.
    Cheers,
    Mike

  • Start workflow with f. module to trigger event and how to pass data to BOR?

    Hi,
    I have a custom BOR object, with Event "Created". I have also an attribute in this BOR, just simple field Plant.
    I have prepared a custom Workflow which is triggered when event Created of that custom BOR business object is raised.
    To raise an event and to start a workflow I run f. module SAP_WAPI_CREATE_EVENT.
    I have a problem to pass a Plant value to the Workflow container. In the PFTC_CHG for my Workflow I made the container
    of BOR object, and the data binding &_EVT_OBJECT& => &MATREQ&  (symbol of my BOR).
    Below both of EVTOBJECT and MATREQ I can see my field Plant.
    Then I run f. module SAP_WAPI_CREATE_EVENT with tables parameter input_container.
    I try to fill the data in many ways, but the started workflow does not have Plant filled.
    I try to use '_EVT_OBJECT.WERKS' in field name for input_container parameters.
    Business Object is passed to the Workflow container, but I do not get the fields
    as attributes. Do I have to use the parameters for the event Created ?
    Thank you in advance
    Wojtek

    Hello,
    I've never used GUID as a key but I suppose the principles are the same - the object instance is equivalent to "something", say a widget.
    This widget has attributes, e.g. the factory where it was created, the day it was created, its weight etc.
    If you make a widget BOR object and you specify attributes then you're telling SAP how, given the key, it can deduce the value of the attributes. Widget 1234's weight can be looked up in table XXX by doing this select.
    If you pass an object instance to a workflow then all you need to pass is the type of object and the key, the rest can be done by the workflow (or any other program). It can instantiate the object, and the attribute values are immediately available.
    If you can instantiate the object in SWO1 and the attributes get values, then it should work in the workflow as well.
    If not, please provide the code of the attribute or describe how it finds the attribute value.
    regards
    Rick Bakker
    hanabi technology

  • Better way of Sending E-Mail Notifications -- Workflow or Function Module ?

    Hi All,
    I have an implicit enhancement written in a t-code and based on some conditions I am creating event which inturn will trigger the workflow which inturn send e-mail notification via send mail step.
    My question is:
    Which one of the ways is better in terms of performance or overhead to send an e-mail notification. (There are no Approval processes in the workflow.. Just One Step E-mail Notification).
    1) In the Implicit Enhancement, Trigger an event which inturn will trigger the workflow and e-mail is sent via send mail step.
    2) In the Implicit Enhancement, Send the e-mail notification via standard function modules available... such as
       "SO_OBJECT_SEND", "SO_DOCUMENT_SEND_API1".........
    Would be grateful if someone can post the Advantages and Disadvantages in the above 2 ways of sending e-mail notifications..
    Regards,
    PR.

    Just to throw in some additional factors, consider exception handling:
    An event-based send mail step is decoupled and thus independent of your application. This means your exception handling is separate. It means you do not need to hold up the transaction if there is a failure. All this depends on how important the mail is. You could of course add validation code to ensure the mail address is valid and send it elsewhere if not.
    Regarding performance, consider how often this happens. If it's an infrequent occurrence then I wouldn't worry about performance. Hundreds or thousands a day is a different story.
    So the answer is:
    Workflow for low-volume scenarios (low performance impact) that are important (better error handling in WF),
    Direct mail for high volume and noncritical
    In between these, use whatever you like
    One more thing to perhaps consider the future. What are the chances of the mail being replaced by a work item in furture? Sometimes it's only by observing a process after go live that you can identify the best solution. e.g. you may decide to replace the mail with a "Please go fix this" work item because you need deadline monitoring

  • Workflow Agent Function Module

    I am trying to develop a workflow for the approval of CATS time entries. Users will enter their time data and specify a receiving maintenance work order (CATSD-RAUFNR). The approver of the CATS time entry should be the user ID identified in the Partner tab of the maintenance work order identified in the CATS record.
    I am trying to determine the agent in a workflow task based on a default rule for agent assignment. My idea was to capture the work order number (stored in table AUFK) from the CATS entry, then reference plant maintenance partners table (IHPA) to get the user id to use as the agent in the workflow.
    I have developed a function module that works when testing it in the function builder, but when I try to test it in the "Maintain Rule" transaction (PFAC_CHG), it does not work. Can anyone let me know how to make this code work in the Maintain Rule simulation?
    Here is my code for the function module:
    FUNCTION Z_GET_WO_PARTNER.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(ORDER_NUMBER) TYPE  AUFNR OPTIONAL
    *"  TABLES
    *"      ACTOR_TAB STRUCTURE  SWHACTOR
    *"      AC_CONTAINER STRUCTURE  SWCONT
    *"  EXCEPTIONS
    *"      NOBODY_FOUND
    *INCLUDE .
    TYPES:  BEGIN OF PLANT_MAINT,
              OBJECT     TYPE  IHPA-OBJNR,
              PARTFUNC   TYPE  IHPA-PARVW,
              PARTNER    TYPE  IHPA-PARNR,
            END OF PLANT_MAINT.
    TYPES:  BEGIN OF ORDER_MASTER,
              ORDER      TYPE  AUFK-AUFNR,
              OBJECTN    TYPE  AUFK-OBJNR,
            END OF ORDER_MASTER.
    DATA: WA_MAINT  TYPE  PLANT_MAINT.
    DATA: WA_ORDER  TYPE  ORDER_MASTER.
    DATA: ITABIHPA TYPE STANDARD TABLE OF PLANT_MAINT.
    DATA: ITABAUFK TYPE STANDARD TABLE OF ORDER_MASTER.
    DATA: PARTNERVAR  TYPE  STRING.
    DATA: OBJN TYPE STRING.
    Get object number from order master
    SWC_GET_ELEMENT AC_CONTAINER 'OrderNumber' ORDER_NUMBER.
    CLEAR: ACTOR_TAB.
    REFRESH: ACTOR_TAB.
    SELECT SINGLE AUFNR OBJNR FROM AUFK INTO WA_ORDER
         WHERE AUFNR = ORDER_NUMBER.
    IF SY-SUBRC NE 0.
        RAISE nobody_found.
    ENDIF.
    OBJN = WA_ORDER-OBJECTN.
    *get Partner field (system user id) from Plant Maintenance: Partners table
    SELECT SINGLE OBJNR PARVW PARNR FROM IHPA INTO WA_MAINT
              WHERE OBJNR = OBJN AND PARVW = '§G'.
    IF SY-SUBRC NE 0.
        RAISE nobody_found.
        ELSE.
            ACTOR_TAB-OTYPE  =  'US'.
            ACTOR_TAB-OBJID  =  WA_MAINT-PARTNER.
            APPEND ACTOR_TAB.
    ENDIF.
    ENDFUNCTION.
    (sorry about the poor ABAP code...)

    To my guess, the function module interface is incorrect. The function module should contain only the following interface:
    ""Local Interface:
    *"  TABLES
    *"      ACTOR_TAB STRUCTURE  SWHACTOR
    *"      AC_CONTAINER STRUCTURE  SWCONT
    *"  EXCEPTIONS
    *"      NOAGENT_FOUND
    You seem to be passing an order number. you need pass container elements using the table AC_Container and cannot send it directly. For further information, look at the following tutorial:
    http://www.****************/Tutorials/Workflow/Rules/Create.htm
    Hope this helps
    SS

  • Steps To create workflow for HR module

    hi experts,
         i have a requirment in HR module to create a workflow, requirment is when an employee is transferred to any other stores or departments automatically a mail has to be trigeered to xxxx mail id. as im new to workflow can any one kindly help me in solving this requ.

    You can also do this with the help of exits.
    Use exit PBAS0001
    In EXIT_SAPFP50M_002 first you can capture employee details
    during transfer and then create a ztable to maintain the mail ids and use
    function module to send mail for the same.

  • Workflow of Service module

    Hi
    According to my client requirement two things are needed in service module:
    1. Free Service (after sales)
    2. Paid Service.
    Please explain the workflow of service.
    How this can be managed in service module?
    tHANKS

    Hi Malhotra,
    Creation of Warrenty Template
    Administratio->Service->Contract Template
    In that Contract template fill the necessary field like
    1.Name(Ex : 24 Months,12Months etc..)
    2.Type
    3.Duration  etc..
    Link the Contract Template in Item Master Data
    1.  In Item Master Data->General Tab->Choose Manage Item by Serial Number
    2. In Item Mastr Data->General Tab->Link the Warrenty Templates.
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

  • Implementing Workflow without HR module

    Hi everybody!
    I have to implement workflow in a company there is implementing SAP now. The problem is that the company will not install HR module.
    The question is:
    - How can I work with organizacional structure in the workflow?
    I never attended a implementation of workflow before, only some developments e maintenace, what are the main steps to have a sucess implementation? With or Without HR
    Tks!

    Create an approver table and assign the user ids of various approvers to it
    Later on use this table to determine who the approver is.
    Ex:
    If suppose you have created a workflow for release of parked doc and it shud first go to Vp , then to Chairman and then to MD.
    So create a table with company code , fiscal year , level , amount and user id.
    1000 2009 1 amount < 1000  USabcd(user id of chairman)
    1000 2009  2 amount >1001 and amount <2000 usabcdef(user id of VP)

  • Is it possble to disable email/workflows at EBS module level

    We just implemented the workflow mailer on our site. Its cool that emails are being sent out from finance/HR/SSHR/iRec modules. But for some modules e.g OLM, we don't emails being sent out.
    Is it possible to just disable OLM from sending out emails, or do we have to modify every olm workflow that includes a notification/email, one by one?

    As of now there is no mechanism to stop sending emails for particular types of workflows. What is the EBS code line?
    But you can implement the below steps to get this functionality.
    1. Create dedicated mailers for each workflow itemtype that Customer wants to receive e-mail from.
    2. Set the dedicated mailer correlation id as workflow itemtype that Customer wants to receive e-mail from
    3. Shut down the seeded mailer "Workflow Notification Mailer"
    4. Now the dedicated Mailers will process the notifications corresponding to its correlation id

  • Difference between HR workflows and other module workflows

    Hi,
    I would like to know the major differences between HR related WF and that of other modules.
    Please lemme know.
    himanshu.

    Hi,
    There is not really any difference. Both use the same Business Workflow engine/framework. The actual difference comes from the business content itself. For example in HR you need to be familiar with the infotypes & org. structure etc., and if you know them and you know WF development in general, you should not have too much difficulties developing HR workflows.
    Your question is a bit like what is the difference between ABAP and HR ABAP. Well, they are not different, BUT there are some tricks, techniques and knowledge that you should have if you want to be a good HR ABAP developer.
    Regards,
    Karri

  • Delegation of Approvals (Approval Workflow in Purchasing Module)

    Hi,
    I am using AME(Approval Management Engine) to generate the list of approvers for all the requisitions.
    My requirement is:
    If a requisiton requires approval of 'ABC'. But ABC is not able to approve it because he is on leave. So the workflow should automatically be delegated to another approver.
    This situation also comes when ABC didn't approve the requisition for a fixed time. After that time limit it will be delegated.
    Regards,
    Sambit

    Sam wrote:
    ABC is not able to approve it because he is on leave. So the workflow should automatically be delegated to another approver.Setup vacation rule for the leave period to delegate the approval notification to someone else.
    This situation also comes when ABC didn't approve the requisition for a fixed time. After that time limit it will be delegated.Setup timeout in the workflow.
    Thanks,
    PS.

  • TRIGGER WORKFLOW IN  HR MODULE FOR TERMINATION OF AN EMPLOYEE

    Hi all
    i have an employee terminated in my organisation and
    i have to trigger the workflow at the background
    to inform through mail the line manager and the finince dept.to clear all his dues or to make a final settlement.
    As soon as i fill the bank details (infotype 9) of the corressponding employee and say save the workflow should trigger at the background to inform through mail.
    i will main the information like this below
    PERSONALAREA   PERSSUBAREA  EMPGROUP  EMPSUBGROUP IDOFTHE PERSONTOBEINFORMED.
    the information has to be sent to the id maintained above in the table

    Hi Jyothi,
    I feel that you can make use of dymanic actions(V_T588Z) instead of workflow for the same. The mail can be triggered when you do the leaving action for the employee in actions infotype and as well can be triggered when you the save the records in infotype 9.
    Regards,
    Rajeev

  • When executing Finance Module, I am getting error in Workflow

    Hi,
    When I started workflow for financial module, It gets stuck at SILOS:SIL_InsertRowInRunTable workflow. I dont know what is the problem actually. I try to change user name for integration services but it wont work.
    Please help me out in this problem as i am new to OBIA and Informatica.
    This is the log file for my error...
    +2010-06-30 12:05:08.939 INFORMATICA TASK:SILOS:SIL_InsertRowInRunTable:(Source : FULL Target : FULL) has started.+
    ANOMALY INFO::: Error while executing : INFORMATICA TASK:SILOS:SIL_InsertRowInRunTable:(Source : FULL Target : FULL)
    MESSAGE:::
    Irrecoverable Error
    Request to start workflow : 'SIL_InsertRowInRunTable' has completed with error code 7
    Error Message : You used an invalid username or password.
    Command Used: pmcmd startworkflow -sv BIAPPS_INT -d Domain_BIDPOOLW42S0004 -u Administrator -p **** -f SILOS  -lpf C:\Informatica\PowerCenter8.6.0\server\infa_shared\SrcFiles\FlatFileConnection.DataWarehouse.SILOS.SIL_InsertRowInRunTable.txt SIL_InsertRowInRunTable
    Workflow Message:
    +=====================================+
    STD OUTPUT
    +=====================================+
    Informatica(r) PMCMD, version [8.6.0], build [178.0613], Windows 32-bit
    Copyright (c) Informatica Corporation 1994 - 2008
    All Rights Reserved.
    Invoked at Wed Jun 30 12:05:13 2010
    +ERROR: Failed to authenticate login. [PCSF_10342] [PCSF_10342] Exception occurred: [[AUTHEN_10000] The Service Manager failed to authenticate user [Administrator] in security domain [Native].].+
    Disconnecting from Integration Service
    Completed at Wed Jun 30 12:05:13 2010
    +=====================================+
    ERROR OUTPUT
    +=====================================+
    EXCEPTION CLASS::: com.siebel.analytics.etl.etltask.IrrecoverableException
    com.siebel.analytics.etl.etltask.InformaticaTask.doExecute(InformaticaTask.java:179)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:410)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:306)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:213)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.run(GenericTaskImpl.java:585)
    com.siebel.analytics.etl.taskmanager.XCallable.call(XCallable.java:63)
    java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    java.util.concurrent.FutureTask.run(FutureTask.java:138)
    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    java.util.concurrent.FutureTask.run(FutureTask.java:138)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    java.lang.Thread.run(Thread.java:619)
    +(Number of retries : 1)+
    pmcmd startworkflow -sv BIAPPS_INT -d Domain_BIDPOOLW42S0004 -u Administrator -p **** -f SILOS  -lpf C:\Informatica\PowerCenter8.6.0\server\infa_shared\SrcFiles\FlatFileConnection.DataWarehouse.SILOS.SIL_InsertRowInRunTable.txt SIL_InsertRowInRunTable
    +2010-06-30 12:05:13.548 INFORMATICA TASK:SILOS:SIL_InsertRowInRunTable:(Source : FULL Target : FULL) has finished execution with Failed status+

    Looks like invalid Informatica credentials.
    Try to issue a pmrep connect with the same credentials that you have entered in DAC.
    HTH,
    AW

  • WOrkflow related table and zfunction modules used in a particular workflow

    hi gurus,
                  we need to develop a tool to findout the custom WF, custom BOR and workflow related Zfunction modules used in a particular workflows in the client system.
    Eg-
          I have a custom workflow i need to find the list of all zfunction modules , z includes used in that Workflow.
    please suggest us  the table names which stores ZFunction module or z includes used in particular workflow
    Regards,
    Hari

    The only way to do this is to read through the source code of all the objects accessed within workflow and look for the relevant ABAP statements that access Z tables or function modules.
    [This wiki|https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/utilitytosearchABAPsourcecodeandTextelementsfora+string] should get you started on that part.
    As far as the objects are concerned, this is another story altogether. Something as simple as using an SAP standard object attribute in work item text could actually be a delegated subtypes with a redefined virtual attribute.
    So you need to scan everything: all tasks in a workflow and methods, as well as all container elements of each step. You will also need to navigate the object hierarchy to deal with delegation and subtypes. Then you need to consider propagation, what about Zfunction modules called by Zfunction modules in workflow? What if the method submits a report - you would need to scan that report and everything else that it calls and so on.
    This could be a fiendish challenge but sounds like a fun project. Good luck!

  • Maintenance order workflow (in plant maintenance module)

    Hi,
    I'm looking into implementing maintenance order workflow within PM module. Found the workflow ws2000021, but is this workflow integrated with enterprise portal. That means when a work order is created, can this work order be route to UWL (EP) of another supervisor for release and signoff, instead of going into IW32 and release the work order?
    Is any of the logisitics workflow(like Purchase order) available and can be used in the enterprise portal? Just like leave and overtime application in the HR module which are currently available for use in the portal.

    Hi,
    To get to know info about mySAP ERP 2004 - MM Workflows,please check in this link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/1d/ea9d9c7aca11d194b70000e82dec10/frameset.htm
    Well, if there is a workflow that works with EP, you can find them in the above link itself.
    I dont think Workflows comes with BUSINESS PACK.
    Regards,
    <i><b>Raja Sekhar</b></i>

Maybe you are looking for

  • Understanding Flexconnect - Local vs Central Switching, and WLC failover scenario ??

    Hello Experts We have one WLC 5508 in Building1, few 2700 Series AP in Building1, and one 1252AG in Building2. The LAN subnet is same for both Buildings connected via a dark fiber. My requirement is to have Central Switching in Building1 since WLC is

  • Add field

    Hi all, My task is like this. I have to include FI reference in report ME80FN. Actually the ebusiness needs to see the vendor invoice number (FI reference field) in the PO history report ME80FN. actually it is said that the query has to be replicate

  • Employee Address updatas after approved

    Hi frds Im Working on the PA30 for infotype - 6(Address Change).My Requirement is when the employee update the address and click the save button ,workflow should trigger and the address should not update in the database table(SE11-PA0006) .. Workitem

  • Linux on Parallels, worth trying?

    I have the standard 17" 2.0 Ghz Core 2 Duo 1 gb iMac. I'm interested in trying to use some Linux apps in Parallels desktop, but I'd really appreciate some advice before I dive into something that may be over my head! 1) Do I need to upgrade to 2 Gigs

  • HT201210 Ipod restored on it's own, and now, it will not even restore...

    Can someone help me with this thing? I shut my iPod off one night, and then I turn it on the next morning and the thing somehow restored itself. Now I have no choice but to restore it, BUT when I tried to, I wasted an hour waiting for the thing to up