Triggering Workflow Using BADI

Hi All,
can any one tel me how a workflow can be triggered using BADI??

Call function module SAP_WAPI_CREATE_EVENT (with COMMIT_WORK = space) to create an event, and use the event to start your workflow (triggering event). Alternatively, you can start the workflow directly using the corresponding SAP_WAPI function module for that purpose. My recommendation is that you normally don't start workflows directly as it is a less flexible solution (or you have to build that flexibility yourself instead of using what you get for free with triggering events).

Similar Messages

  • Triggering workflow using user-exits

    Hi all,
    can anyone tel me how a workflow can be triggered using user-exits??
    thanks in advance

    Call function module SAP_WAPI_CREATE_EVENT (with COMMIT_WORK = space) to create an event, and use the event to start your workflow (triggering event). Alternatively, you can start the workflow directly using the corresponding SAP_WAPI function module for that purpose. My recommendation is that you normally don't start workflows directly as it is a less flexible solution (or you have to build that flexibility yourself instead of using what you get for free with triggering events).
    However, why are you asking this question? I started wondering after seeing you ask an almost identical question in [another thread|Triggering Workflow Using BADI; here.

  • N-Step workflow using BADI.

    Dear Experts,
    I want to implement N-step workflow using Badi. I have already maintained the data in Z table for approvers and corresponding limits.
    Based on the shopping cart value, cost centre and plant i will pick the approver from the Ztable.
    I would apreciate if you can guide me step by step. I would appreciate if anyone send me the sample code for this.
    Thanks
    Ravi

    Hi,
    Determing the approvers for the SC using Z table would be the simplest method.
    You can store the combination of values(e.g. a/c assignment,plant fields etc) in the Z table and the corresponding approver names as well asl the approval levels (no of approvers) for those combinations.
    E.g. for SC with values between rs.1- rs.100,level approval would be 1 and the approver would be ABC.
    Maintaining Z table will be based on your requirement/fields for determing the approvers.In the BADI ,you will just need to determine the runtime values for the determing fields(e.g. a/c assignment,plant etc) and then fetch the approver names and approval levels from the Z table.
    For determing the runtime values for the determing fields(e.g. a/c assignment,plant etc),in the BADI,at the start,use the FM BBP_PD_SC_GETDETAIL to fetch the SC details such as a.c assignment,plant etc and then acc fetch the approver details from the Z table and pass to the export parameter APPROVAL_TABLE in the badi.For more details,refer the documentation of the badi:
    http://help.sap.com/saphelp_srm50/helpdata/en/58/c14e3c59bfe747e10000000a11402f/frameset.htm
    For sample code of N-Level Approver BADI - BBP_WFL_APPROV_BADI,
    Refer to this link ->
    how to code APPROVAL_ADMINISTRATORS in n-step WF?

  • Triggers workflow from badi

    In crm 2007 two installed bases are there. one is customer ibase  and the other is company ibase   when the customer wants to transfer the component from company ibase to customer ibase(he simply drags  the component from company ibase to his ibase) that needs to go for approval process. no event is triggering at this point. after he press save button 3 badis are triggering, i found one badi which suits me  the problem is i will trigger workflow from badi if  that approver approves that component should be saved in companys ibase if approver rejects that should not save   anyone please guide me how to handle  this ....

    Hi Sunil,
    To achieve this functionality, in t-code SE18 create a BADI implementation and add a function module call to SAP_WAPI_CREATE_EVENT. Trigger any BO event and associate the same event as the triggering event  of your workflow.
    Please note that direct workflow call is not an optimum approach so use BO events.
    Create a workflow using t-code SWDD. Add a 'User Decision' step to send workflow task to the approver.
    Add two branches in it one for 'Approve' other for 'Reject'. In the approve branch add the logic for saving the component in company ibase.
    Hope this helps!
    Regards,
    Saumya

  • Triggering workflow using error messages

    hi all,
    how can i trigger workflow from error messages?
    thanks in advance

    If this is a custom Error message put your code for triggering your Workflow just after that. Use FM SWE_EVENT_CREATE or SAP_WAPI_START_WORKFLOW.
    If it is a Standard message used in SAP Programs then look for User Exit.

  • Workflow and BADI

    Can workflow be enhanced by BADI? Any one has this exprience before? can you share your experience how to do it?

    Hi Jrockman,
    Please check these threads
    BADI for Workflow
    Triggering Workflow Using BADI
    Calling FM after Approval
    Hope this would help you to some extent..
    Good luck
    Narin

  • Relationship between the workflows what have been triggered frm parent workflow using container step

    Hi All,
    There is a scenario in CQ5.5 where "Workflow A" has container step to initiate another "Workflow B" from it. Now the requirement is to identity the Workflow A's instance ID in "Workflow B".
    Being quite unable to find any relationship between the workflows what have been triggered from parent workflow using container step.
    Could any one share the pointers for the same?
    Thanks in advanced.
    Regards,
    Saurav Jain
    7428081341

    Please do not keep reposting this.
    Those of us that answer questions here are volunteers ... not paid Oracle employees.
    If no one answered your question to your satisfaction it is either because they choose not to, don't know the answer, or because lacking a version number no one knows to what version you are referring.
    My recommendation is that you go to http://asktom.oracle.com where you will find extremely good explanations of cursor sharing.
    Thank you.

  • Can we trigger other workflow from BADI- PT_GEN_REQ

    Hi all,
    I would like to know , if we can trigger other ( custom) workflows, using the badi - PT_GEN_REQ - method start_wf, instead of the standard workflow
    ( WS12300111).
    Regards,
    NR

    Hi,
    In the existing custom workflow ( WS20000081) which was modified earlier with some addditional 27 activities in it.
    Now we are implementing EP7 , and in the standard leave request, uses standard WS12300111 worflow.
    Is it possible that we can use old WF get triggered instead of the new one by using this BADI?
    Regards,
    NR.

  • How to update agent list after triggering workflow?

    Hi Guys,
               Is there any function module to update the agent list after triggering the workflow? i mean after triggering workflow, the user is maintaining some approving officers in their table and they are expecting the workflow should route the workitem to  those newly maintained approving officers. So can any one help me to solve this issue.
    Regards,
    Safiq

    if any agent maintained in the customized table, how can I update
    those agent with existing available agent list.
    It sounds like updating the existing workitem container with the new updated values. right? You mean to say initially workflow is triggered and the agent list is populated in the workflow container. But after the workflow is triggered if the table is updated with some new entries, then these new entries must alos be included in the agent list container element in the workflow container.
    If this is the case the you have to modify the multiline container element of the workitem container. You can make use of the standard function module SAP_WAPI_WRITE_CONTAINER but this function module needs to be called each time when evenr a new entry is created and you have to check what are all the workitems that you want to update ,
    I think its a bit difficult to update all the workitems which are with reagrd to this scenario.. so you have to check out some other simple way. But on a whole what I can say is you can update an existing workitem container by using the FM mentioned above...

  • How to add new attribute for triggering workflow?

    Dear Expert,
    I want to create condition for triggering workflow.
    I am working on travel request workflow, using BUS2089.
    my requirement is to differentiate or make condition of triggering workflow based on trip activity type,
    but I can't find any attribute about trip activity type.
    how to add activity type to be available for create condition?
    thanks

    Hi,
      If am not wrong you are trying to raise event when ever there is a new travel request raised, so the BOR would be availbel in the workflow container to be more preciese it would be available in the event container, so you need to find out the right attribute in the BOR where the trip type is assigned and validate this in the start conditions i mean in the basic data of the workflow where you activate the event linkage.
    Regards
    Pavan

  • Details for triggering workflow on changing material

    Hi Experts ,
    I am triggering workflow BUS1001006 for creating/changing material .
    Is it possible to get the details that has been changed in the material using this ?
    Is there any other way to get the fields changed in MM02 for a material through
    workflow ?

    Hi
    Check the business object all the attributes in the log. If you get its fine if not create an attribute write your logic in that for changed material.
    Regards
    vijay

  • Using BAdI FTR_TAX_POSTING_TR

    Dear Masters,
    We want to make use BAdI FTR_TAX_POSTING_TR in our system (EA-FINSERV Release 604) but it seems it's not being triggered from transaction TBB1.
    We have ensured its BAdI implementation is active and so far we only 1 active implementation and no filter being defined (in fact it's not filter dependent BAdI)
    We have tried to populate table AT200 accordingly.
    And we have put a break point at the beginning of the method, but it does not reach there at all from TBB1.
    Is there anything we missed out?
    Any feedback is appreciated.
    Many thanks,
    Anung

    Hi Vela,
    take someone with programming experience. You can use data from the importing parameters (I_TAB_ACCHD, I_TAB_ACCIT etc.) and program how the tax should be calculated. Then programm to store the result in the changing C* tables. The result from the C* tables will be used later in posting interface.
    BR, Tomislav

  • [Enhancement in BW]: How to use BaDI : RSU5_SAPI_BADI

    Hi Everybody,
    Right now, could you kindly please tell me how to i use customer exit but using BADI, particularly for BADI : RSU5_SAPI_BADI.
    <b>I just wanna use the customer exit on variable (variable user-exit).</b>
    So far i've tried these steps (might you correct me/advise):
    1. tcode : SE18
    2. Enter the Badi Name : RSU5_SAPI_BADI
    3. (Toolbar) enhancement implementation -> Create
    4.  ... (After that i don't know what i've to do ..)
    Could you tell me step-by-step to make it ?
    Such as what i should fill-in for Implementation Name and any parameter should i fill in there and how to debug it ???
    Many-many thanks all for the attention.
    Hopefully i can make it :).
    Kind regards,
    Niel.

    Check out this link:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7</a>

  • SharePoint Approval Workflow using SharePoint Designer in SharePoint Foundation 2013

    I am unable to do SharePoint Designer workflow for approval process and I didnt get any Approval process in Actions in SharePoint designer Workflow also I don't find workflow features in Site collection features SharePoint 2013.
    Even I am not able to do simple Out of the box Approval Workflow.
    Kindly help me with this

    Unfortunately, Out of the box workflows are not available in SharePoint foundation 2013, you need at least the standard version of SharePoint 2013.
    You can still create .Net Workflows using the 2010 plateform.
    Take a look at this great comparative between the three versions of SharePoint 2013 :
    http://blog.blksthl.com/2013/01/14/sharepoint-2013-feature-comparison-chart-all-editions/

  • Custom Screen using BADI seen in ME23N, ME22N Display, but not in ME21N

    Hi,
    I have developed a custom screen for purchase order using badi ME_PROCESS_PO_CUST and ME_GUI_PO_CUST.
    But, its not visible in ME21N, whereas its dipalyed in ME23N, ME22N .
    Please advise.
    Thanks,
    Shivaa....

    In TC CMOD you can create a new proyect and use the component MEREQ001 with this component you can see adicional tab in those TC.

Maybe you are looking for