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?

Similar Messages

  • 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).

  • Change Workstatus with BPF step completion using BADI

    Hi Experts,
    I have a requirement of changing Workstatus as soon as the user clicks on “Submit/Approve/Reject” button from the BPF.
    We are trying to implement the same by referring to the thread Automating Work status Change in BPF
    Now the thing is, we have written the BADI referring above thread which needs to be pass with some parameters(Owner & Context Members).
    Our concern is how to pass active context members to BADI, and how to trigger the same from the Submit/Approve/Reject button in BPF?
    Is it a manual invocation through script/DM, or is there any other way?
    Since I am new to BPC BADI’s and requirement is urgent, please help………
    Thanks in advance
    Priyanka Jagtap

    Hi Anjan,
    I referred to the below link for debug:
    Debugging BPC 10 for NetWeaver
    Followed following steps:
    1. Logged in to BPC client using user X.
    2. Went to the page where BPF step needs to be submitted.
    3. Logged in to SAP GUI and set a breakpoint in class CL_BPC_REST_RES at line 56 using same user X.
    I have created Enhancement Implementation for BADI UJ_BPC_BPF_SUBMIT.
    Filters provided are:
    APPL_ID = ABC
    APPSET_ID = XYZ
    DRV_DIM_MEM = 0166
    STEP_ORDER = 1.
    In "IF_UJ_BPF_SUBMIT_LOGIC_HANDLER~EXECUTE_SUBMIT_LOGIC" method i have written break-point.
    When i clicked on SUBMIT, error appears as
    I tried with and without filter as mentioned in Re: About bpc aprove badi question.
    Please help. I am not able to debug and move ahead.

  • Error in N step Workflow WS14000133

    Hi ,
    I implemented N-step workflow and BADI in SRM 5.5 SP07. It works good for approvals. If the cart is rejected by an approver, it comes back to the cart creator for editing. But when the creator deletes the cart, workflow errors out. I found that the task TS14907939 does not exist but is coded in one of the step in WS14900032 workflow. I checked Notes 989135 & 1029396 which are not relevant for our version.
    Please provide me with some suggestions to resolve the error in workflow.
    Thanks.
    Srini

    Hi
    <b>Please go through the SAP OSS Notes below -></b>
    Note 1029396 - WS14900032: Task TS14907939 is missing
    Note 989135 - Wrong languages in mail notifications
    This seems to work for you. Sure shot solution. )
    Do let me know.
    Regards
    - Atul

  • 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

  • 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.

  • Single step workflow with multiple approvers (without using a group)

    Hi,
    is it possible to have a single step workflow with multiple approvers without using a group? This is for a contract document.
    i want to add a number of users based on particular logic. The approvers are random and do not belong to any particular group.
    DO let me know if it is possible or if any of you have done that.
    thanks in advance.
    regards,
    rubio

    Hi Rubio,
    I believe the behavior would be, if individual users are added as approvers then the system would require each approver to approve the document. However, if you use the user group, you could set the role so that it would be either ALL or ANY.
    Regards,
    Vikram

  • 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.

  • N-Step workflow for invoice

    1. Is there a way to implement n-step (more than 2 )approvals for invoices? Can I use the same BADI for n-step approval for shoupping cart?
    2. If a vendor is not on supplier portal is there a way send a offline RFQ and get the bid somehow in the system without having vendor being created in the system?

    Hi
    <b>Please go through this -></b>
    <u>It is possible to copy the standard workflow and make you custom workflow acordingly.You just have to copy standards workflow and all subworkflow under this as well.You have to take care of attributes of workflow in same way as standard workflow.</u>
    <u>Implementing a BADI - BBP_WFL_APPROV_BADI using SE18 Transaction is also feasible solution.</u>
    Invoice rejected in the invoice workflow.
    Re: Invoice Workflow : Dialog work item created
    Re: Sample Code needed for N-step approval SC BADI
    Re: Invoice BUS2205 Workflow
    Approval workflow is ambiguious- for Invoice WF
    <b>Please refer to these links as well.</b>
    <u>N-step Approval workflow</u>
    http://help.sap.com/saphelp_srm40/helpdata/en/17/40a86c773d6c41801d78af1a34b90f/content.htm
    <u>N-step Dynamic approval</u>
    http://help.sap.com/saphelp_srm50/helpdata/en/17/40a86c773d6c41801d78af1a34b90f/frameset.htm
    <u>SRM Business Workflow</u>
    http://help.sap.com/saphelp_srm50/helpdata/en/8b/4fa9585db211d2b404006094b92d37/frameset.htm
    <u>Dynamic Modification - Workflow</u>
    http://help.sap.com/saphelp_srm50/helpdata/en/84/dda441e79ead5fe10000000a1550b0/frameset.htm
    <u>Item-based Approval for Shopping carts</u>
    http://help.sap.com/saphelp_srm50/helpdata/en/a3/a6a34098022a54e10000000a1550b0/frameset.htm
    <u>Business Add-Ins</u>
    http://help.sap.com/saphelp_srm50/helpdata/en/bc/6129383d5ec70ce10000009b38f8cf/frameset.htm
    Do let me know incase you face any issues in Design / coding of this N-level Approval workflow.
    <u>For the 2 point, it is not sure. I don't think there is any way to send offline RFQ.</u>
    Hope this will help.
    Regards
    - Atul

  • About N-Step workflow

    Hi,
    We are developing the workflow for our SRM. We are using the N-Step workflow. Could anyone please let me know how the N-Step workflow works or any links to know this.
    And also I have to send the notifications for all the approvers determined in N-Step workflow BADI when an workitem has sent to his inbox as part of approval. Please tell me how can we handle the notifications and Deadlines for N-Step workflow.
    Is there any specific way or steps to follow for sending notification emails and sepecifying the deadlines.
    Thanks,
    Murali.

    for sending notification emails and sepecifying the deadlines
    pl check the follow
    http://help.sap.com/saphelp_srm50/helpdata/en/42/c8aaddd9cc6bb3e10000000a1553f6/content.htm
    BR
    Dinesh

  • SRM SC 'N' step workflow - Approver list wrong approver determined

    Hi Team,
    I am facing a repetetive issue for a SRM shopping cart N-step approval workflow.
    Issue description:
    1. The approver list populated in 'Subworkflow for n-Level Approval SC' step is incorrect.
    2. The BADI for N-step determines correct approver (After running the BADI seperately)
    3. The cost assignment (WBS) determined is correct, so no chance of incorrect approver.
    Example:
    As per WBS (say) E.008.01.02, the correct approver is 'A'.
    The BADI when run separately gives 'A' as the approver - which is correct.
    But, when the workflow is triggered and the approver list populated in the Sub-workflow step it gives approver as 'B'.
    There is no link so as how this approver 'B' is determined.
    I am unable to find the step where this BADI is populating this value (Code) and what could be the reason.
    Appreciate your help as I am having a production emergency!
    Many thanks.
    Harsh Dave

    Hi Vinoth,
    The Task 14007989 deals after the approval list is populated.
    If you observe the workflow log of a SC/PO, the step N-step workflow (sub-workflow) itself determines the approval list and then comes the step 'Determine Next Approver' - TS14007989.
    I tried to where-used list and it just yielded two FM's - BBP_WFL_DIN_APPR_CONTAINER_GET & BBP_WFL_DIN_APPR_BY_RULE_GET.
    But the 1st one is to get only approvers which are already determined in container & 2nd one checks for further approval required (Flag = 'X', see the FM interface).
    This one doesn't help!
    Thanks for your help, Let me know if you have any more findings on this!

  • Adding escalation step to n step workflow

    hi,
    i did the steps for adding escalation step to the n step badi but still i think it does not work as expected. any hints for implementing the escalation process to the n step workflow WS14000133.
    i'm aware of the deadline procedure but not quite sure on where to have this added to this workflow and how to realise this implementation

    HI,
    I config my workflow for escalation process with a copy of the business object. Upon escalation trigger i am using the task TS10407969 (Shopping Cart Approval Deadline) but i see an error in the workflow log "Result of agent resolution does not agree with agents of task". Not sure what is the cause of it but if i use the task TS10008126 intead of TS10407969 i dont see the error and things seem to work okay. Any suggestion on this please?
    note: TS10407969 is categorized as "General Forwarding allowed" but not the other task

  • 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

  • [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>

  • Getting error while publishing workflow using SP designer for SharePoint 2013

    Hi,
    I am try to setup Workflow manager for our sharepoint applications.
    WF manager set ran without any issue.
    I registered the SPWorkflow service which succeeded as well. The Workflow service application shows "Workflow is connected"
    I am creating a workflow using sharepoint designer using my credential (not Service account). I am able to save it but while publishing, its prompting with an error.
    The error says "Errors were found while compiling the workflow.The workflow files were saved but cannot run." Clicking advanced button show
    "Microsoft.SharePoint.SPException: We're sorry, we weren't able to complete the operation, please try again in a few minutes. If you see this message repeatedly, contact your administrator.
       at Microsoft.SharePoint.SPScaleOutDatabaseMap.CreateSqlSession(ISPScaleOutDatabaseMapProvider mapProvider, Byte[] compositeKey, Guid forceRefreshVersion, Guid& version)
       at Microsoft.SharePoint.SPScaleOutDatabaseCommandExecutor.Execute(ExecuteDelegate operation, ISPScaleOutDatabaseMapProvider mapProvide"
    Any help would be highly appreciated
    Thanks,

    Hi,
    According to your post, my understanding is that you got error while publishing workflow using SharePoint designer for SharePoint 2013.
    Please check whether the Central Admin > Manage Service Application-> “App Management Service” is started.
    Please check whether the “Configure service application associations”,  ”App Management Service” is already associated.
    Then please check whether the “Manage Services on server” and the “App Management Service” is started.
    In addition, please try to re-register Workflow Service.
    If the issues still exists, please follow the steps in the
    Steps to Verify that Server Is Correctly Set Up. After you verified that the server is correctly set up, follow the steps in the
    Steps to Troubleshoot Workflow Management Service and
    Troubleshooting the Service Bus for Windows Server then retry your action related to publishing workflows
    More information:
    http://wp.ahcheng.com/2013/03/23/error-were-found-when-compiling-the-workflow-the-workflow-files-were-saved-but-cannot-be-run/
    http://sp2013.pro/2013/04/solution-errors-were-found-when-compiling-the-workflow-the-workflow-files-were-saved-but-cannot-be-run-cannot-set-unknown-member/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for

  • Filtering Images in the Catalog

    Hello, I am wondering how I might tell Lightroom to find all images that have a star rating in a specific folder and show them to me. I have used the "Rating" drop down menu but this only works if there are images that I have NOT edited in Photoshop

  • Problem is Module pool custom F4 help

    In module pool selection screen . I have defined vendor field as a select option and attached a custom search help to it . Now the problem is that when i press F4 on that field and select a value from the help , that value is not populated in the inp

  • HELP ME! Transfering Songs

    I have my iPod and I got all my songs on iTunes on my old computer. Well, I have around 400 songs on my iPod and I am going to only use the new computer. Everytime I try to load my iPod to the computer it asks if I want to load the songs on my iPod f

  • Transaction Logs in SQL Server

    Hi, the BW system has the following properties: BW 3.1C Patch 14 BASIS/ABA 6.20 Patch 38 BI_CONT 310 Patch 2 PI_BASIS Patch 2004_1_620 Windows 2000 Service Pack 4 SQL Server 2000 SP3 version 8.00.760 Database used space: 52 GB Database free space: 8.

  • Svrmgrl - disable password for connect internal

    I have installed Oracle 8.1.5. When I tried to create a database using svrmgrl manually, I entered the following: svrmgrl svrmgrl> connect internal; Password: Please advise how I can turn off the Password option for connect internal as in previous ve