WS14000109 and BBP_WFL_APPROV_BADI

Hi
We are using workflow [SLAPPROVER]. In the scenario when approver substitutes to a person who is also a requester [has manager role] then the requester becomes the approver. In this case he is able to approve his own SC. In standard WS Wf_initator check is also there but somehow it is not working.
SAP has asked to use BADI BBP_WFL_APPROV_BADI but our requirement is to stop the approval and not to build the custom logic to derive the approvers.
Is there any other way to do this? Can this BADI be used for this purpose?
Alok

Hi,
If the version for the PO is created,thats means the PO has been changed.You can get the version details using the FM "BBP_PD_PO_GETDETAIL".
BR,
Disha.

Similar Messages

  • Agent Assignment

    Hi Guys,
    I'm using WS14000109 workflow (N-step SC Spending limit approval). I need to restrict the approvers by the Manager role. I think the task involved here is TS 10008126.
    So I tried the following:
    1. Assigned the manager role in the WS14000109. Untick the general task. When user click on 'Add Approver' button and assign an employee (without manager role), system route the SC to the employee. When user click on 'Add Approver' button and assign an employee ( with manager role), system route the SC to the employee.
    But it should not route to non-manager employee
    2. Assigned the Manager role in WS14000109 and TS10008126 both. Now when I add a employee with Manager role, system DOES NOT route to the manager.
    3. Assigned the Manager role only in TS10008126 but DON'T assign in WS14000109. Now SC DOES NOT goto the additional approver who has Manager role. Now SC DOES NOT goto the additional approver who does not have Manager role.
    Can anybody assist me here.
    My Query again: I want when a employee click on the Add Approver button in SC, system should only add those employee who has Manager Role
    Thanks
    Deb

    Hi
    Which SRM version are you using ?
    <u>Please be sure that your workflow settings are correct. Are you using Item level workflow or stnadard Shopping cart level workflow. ?</u>
    <u>Refer to the links as well, they might help you out.</u>
    Back to basics.
    <b>http://help.sap.com/saphelp_srm50/helpdata/en/8b/4fa9585db211d2b404006094b92d37/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/2c/e68d406b305537e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/5a/af5f1185d011d2b42d006094b92d37/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/0b/247440116fd279e10000000a114b1d/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/ee/277e3c281f1817e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/a3/a6a34098022a54e10000000a1550b0/frameset.htm</b>
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • BADI for forwarding SC approval.

    Hi All,
    I have  a scenario like,when I need to forward the approval of a SC,a workflow 14000133 gets triggered and we want to find the BADIs that are getting called inorder to implement our scenario.
    We need to implement a BADI that does the restriction and selection of approvers which have a spend limit equivalent to the approver who is forwarding the shopping cart.We are trying on BADIs BBP_OFFLINE_APP_BADI  and BBP_WFL_APPROV_BADI.Will the debugging of workflow help?
    Can anyone please post some useful links on debugging a workflow??Is it possible??
    Thanks in advance.
    Regards,
    Gowthami.

    Hi,
    I feel setting the parameter BBP_WFL_SECURITY  for the Approver should do the trick.i.e. Restart the workflow adn the same approval process should be followed again.So plese adjust the value of this parameter for the Approver role in trascn PFCG.Also if you want to overwrite the settings of this paramtere(as maintained in PFCG),you can implement the BADI "BBP_WFL_SECUR_BADI".
    For  more info,refer  the foll links:
    http://help.sap.com/saphelp_srm50/helpdata/en/37/830b3b7e7ef74de10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/f7/a6a3415e34b05fe10000000a1550b0/frameset.htm
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • WS14000133 and WS14000109 restarts

    Hello,
    compared to WS14500015(item absed n level SC workfow) where wf restart is not possible could you pl give info on whether WS14000133 and WS14000109 restarts when change is done during approval process ?
    though it is mentioned in the saphelp that these two are back and forth workflows, i need to confirm if the restart option is available.
    this is where they say that the two wfs are back and forth but they havent mentioned that restart is  not possible as explicitly as they have repeatedly mentioned for ws14500015.
    http://help.sap.com/saphelp_srm50/helpdata/en/6b/eca441eea7ef0be10000000a1550b0/frameset.htm
    thanks
    bhakti

    Hello Mr Noteboom,
    The 133 indeed restarts. I have made a matrix with combination of low and high levels security levels of shopper and approvers to record when it restarts. whenever there is a change made in certain selected fields by an agent with low security level, the workflow goes through all the approvers from the start.
    Could you kindly give a clue about how to configure medium security level ?
    I have posted a thread on the same. I really need to figure out the use of medium security level for which I need some assistance.
    How to use medium security level ? (bbp_wfl_security)
    thank you very much for your help.

  • Error with workflow approval BADI- BBP_WFL_APPROV_BADI

    Hi All,
    We are running SRM 5.5 Classic Scenario.
    We have activated "BBP_WFL_APPROV_BADI" for n-step approval process of shopping carts. From a certain period of time I am facing the following problem: when a user, with defined output limit in the extended attributes, creates shopping cart below this limit, the shopping cart instead to be ordered immediately stays in status u201CIn your inboxu201D and there is a message in the field "notes for approval" that the user WF-BATCH is not assigned in the organizational structure, and the item status is u201Cawaiting approvalu201D. Although, if you go to approval preview, the message is that no approval is required, the shopping cat is sent for approving to the manager.
    It is very strange, because workflow user has never been assigned to the organizational structure and the other strange thing is that this problem exists in all SRM systems (development, quality and training).
    We tried to debug the BADI, and we couldn't find any problem. The BADI first checks the spent limit of the user (which is the set output limit in the extended attributes of that user) and because the validation is ok (the value of the shopping cart is below the spent limit) the process stops. But at the same time the shopping cart is sent for approving to the first manager.
    Has anybody of you faced this problem?
    Thank you in advance!
    Desislava

    Hi Masa,
    Yes, this is my issue, that the shopping cart is sent to the manager for approving! And at the same time when the user is checking the status of the shopping cart -the status is"In your inbox" and the status of the item is "awaiting approval". When you go to item details-> to additional specification tab(field),  a system message is generated in the field "notes for approval" and the message is "Cannot find org unit for user WF-BATCH". In my opinion that means that the system is searching for WF-batch as approver. Let me briefly tell you how the BADi works, first validates the spent limit of the user if the value of the shopping cart is below then the shopping cart should be sent directly to r/3 system and a PO should be created. If the value is above, the system start checking to which organizational unit the users belongs, and after that determines the first approver!
    Hope it is more clear for you!
    Thanks
    Desislava

  • BBP_WFL_APPROV_BADI  error scenario

    Hi,
    SRM 5.0
    I have activated N-Step BADI BBP_WFL_APPROV_BADI  and it works well (good scenario cases) as per the customization.
    In the customization, many tables are accessed. Due to some reasons if the record is not available, how do I error out ?
    I want the user to see the error in the "approval preview" as well.
    Is it possible ?
    Pranav

    Hi
    Thanks
    In my case, if there is an error (say no record), the work item has not been sent to the approver. When I check the SC (in approval preview), it shows "approver...." BLANK.
    The reason is that the custom program can't get the record as it doesn't exist.
    Do you mean in this scenario I can use BBP_DOC_CHECK_BADI ?
    -Pranav

  • Using BBP_WFL_APPROV_BADI for a user defined WF

    Hi SRM Workflow Gurus,
    May I know if it is possible to use BADI BBP_WFL_APPROV_BADI for a custom workflow aside from the standard WS14000145? If yes, how do we differentiate (ABAP code) in the BADI?
    What I want is to have different starting conditions based on the GOODS RECIPIENT's org unit. I don't know if you can use the org unit as a criteria in your BADI since from the samples, it is purely PO header fields that are used...I'm not too sure. Is there a better alternative to creating a new workflow?
    Regards,
    Marvin

    The Badi is there to provide a means of creating your own approval behaviour of SC's and PO's.
    The examples of the badi implementations are not used as guidelines.
    Just create your own custom logic in the Badi, which can be based on anything..
    Kind regards, Rob Dielemans

  • N Step Approval BADI - BBP_WFL_APPROV_BADI

    We have implemented this BADI and are having problems with the agent determination.
    When creating and ordering the cart the approval preview shows the correct approval agents.
    When clicking the 'Agents' button within the workflow log via SWI1, the message 'No selected agents' (Message no. WL795) is shown.
    The buffers have been refreshed via SWU_OBUF and the indexes and organisational environment have been refreshed.
    Has anyone had this problem before, and if so what steps did you have to undertake to cure it ?
    Thanks
    Keith

    Hi
    <b>Please specify the SRM version(Support packs) details in next reply.</b>
    <u>Meanwhile, please go through the following SAP OSS Notes, which will definitely help -></u>
    Note 798295 BADI workflow: SRM 3.0 upgrade to 4.0 approver list -> main
    Note 748655 SC APPROVAL GRAPHIC PREVIEW NOT CORRECT FOR BADI APPROVERS
    Note 843636 PO BADI WORKFLOW does not assign correct approvers
    Note 861147 BAdI workflow: Adjusting step name to runtime
    Note 883207 BBP_WFL_DIN_APPR_BY_RULE_GET: if BAdI not implemented
    Note 713567 SRM-EBP-WFL: Limit is ignored in WS14000109
    Note 923463 BAdI n-step approval - Container inconsistent for 1st step
    Note 901068 BAdI Workflows: Enhancement of Note 896556
    Note 898768 BADI Workflow: Determining current approvers
    Note 861147 BAdI workflow: Adjusting step name to runtime
    Note 688724 BADI workflow: Problems with substitute
    Note 788584 BADI Workflow: empty WI_ID in approver table
    Note 780021 BADI Workflow: subsequent approvers after rejection
    Do let me know.
    Regards
    - Atul

  • Approval_history_table of BADI BBP_WFL_APPROV_BADI

    Hi all,
    Can anybudy tell me what all entries will come in runtime for the table approval_history_table of BADI BBP_WFL_APPROV_BADI.
    Will it contain all the approving agents populated in previous BADI calls? And what does flag "type" in the table brings?
    Thanks
    Sangharsh

    Hi Sunil,
    I don't think you need to code with the actual_approval_index.
    We don't use the actual_approval_index, but just add approvers and levels to the export-table as needed.
    Suppose you would need the follwing scenario:
    - total value <= 100   : no approval
    - total value > 100 : 1-step approval
    - total value > 1000 : 2-step approval
    - total value > 10000 : 3-step approval
    CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
    EXPORTING
    i_guid = lv_guid
    i_object_id = object_id
    IMPORTING
    e_header = ls_header.
    IF ls_header-total_value le 100.
      no_further_approval_needed = 'X'.
    endif.
    IF ls_header-total_value > 100.
      ls_approver-approval_index = 1.
      ls_approver-approval_agent = 'US 146296'.
      ls_approver-name = 'SA'.
      ls_approver-approval_description = 'First approval step'.
      APPEND ls_approver TO approval_table.
    endif.
    if  ls_header-total_value > 1000.
      ls_approver-approval_index = 2.
      ls_approver-approval_agent = 'US 146720'.
      ls_approver-name = 'BA'.
      ls_approver-approval_description = 'Second approval step1'.
      APPEND ls_approver TO approval_table.
    endif.
    if  ls_header-total_value > 10000.
      ls_approver-approval_index = 3.
      ls_approver-approval_agent = 'US 146474'.
      ls_approver-name = 'SU'.
      ls_approver-approval_description = 'Third approval step1'.
      APPEND ls_approver TO approval_table.
    endif.
    regards,
    Hendrik-Jan Bosma

  • BAPI BBP_WFL_APPROV_BADI

    Hi Experts,
    I want to know that in an n-step approval workflow WS14000133, at which point exactly is the BADI BBP_WFL_APPROV_BADI triggered ?
    Can anyone help ???
    Regards,
    Radhika.

    Its becuase the task which the method is useing to determine the agent is a background task and if you want to debug it you need to modify make it fore ground and then insert a break point in the badi.
    we can debug  workflow task's only if they are foreground other wise even after inserting a break point  the control won't stop.
    so now its upto you whether you want to make the task fore ground or not.?

  • Cannot find workflow WS14000109 in Define Conditions for Starting Workflows

    Hi All,
    I have a query regarding workflow in SRM 50. I am not able to find the WS14000109 workflow  in the SPRO setting ->Define Conditions for Starting Workflows.
    There is thread ->
    Activating workflow  with a similar issue, but it has not solved my problem.
    Regards
    Sam

    Hi,
      In the SPRO setting ->Define Conditions for Starting Workflows,in the selection criteria "BUSINESS OBJECT",select the BOR "BUS2121" (Shopping cart) and then see whether you can see the WF in the list.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Multiple Implementation For BBP_WFL_APPROV_BADI

    hi,
       is it possible to have multiple an implementations for BBP_WFL_APPROV_BADI definition badi. because my opinion is instead of using same implementations for all n-step workflow why don't use different implementations for each and every workflow separately using that single BBP_WFL_APPROV_BADI definition.
        I know we can have n number of implementations, but those are all should be active not inactive stage.
    i hope you understand my question .
    thank you,
    John.

    hi smita,
        the answer which you were giving , was my question.
       why do we have each implementation for each workflow rather than single implementation for all workflows.
      say for example WS13000133 and WS14500015. again i have specified my question here,
      as i have specifed above WFs  we have to use BBP_WFL_APPROV_BADI definition.
      the above Badi defition has only one method , for this method even if you implement two implementations , any one of the implementations can be active . we can't active both implementatios right . but my scenario is i have to active both implementations. is it possible to have both implementatios for above defition?
    please give me some hints.
    regards,
    john.

  • WF N-Steps for Purchase and Contracts.

    Hi Experts! I need you help! I'm trying to activate the WF for SRM in extend classic scenario.
    I need to activate the WF (WS14000148 and WS14000145) for contracts and PO's.  Is there a WF configuration guide to make this activations? or a document learning how i doing this?
    I was looking in help of SAP, but there isnt informations about configuration in WF N-steps.
    http://help.sap.com/saphelp_srm50/helpdata/en/58/c14e3c59bfe747e10000000a11402f/frameset.htm
    Thanks,
    Kristin

    Hi,
    There is basic workflow configuration steps in the standard configuration guide.
    [http://service.sap.com/ibc-srm|http://service.sap.com/ibc-srm]
    For N-step workflow, plese execute following 3 steps.
    1. Activate event for the WF template - Transaction SWB_PROCUREMENT
    2. Set start condition - Transaction SWB_PROCUREMENT
    3. Implement BBP_WFL_APPROV_BADI
    Regards,
    Masa

  • No work item found for workflow WS14000109 Urgent

    Hi,
    I am using Extended classic scenario, I have created a PO in SRM having a PO value of 100000 INR and the work flow which is triggered is WS14000109 i.e. spending limit worlflow.
    My approval limit is 25000 INR and I have three approver
    Approver A has approval limit 50000 INR
    Approver B has approval limit 75000 INR
    Approver C has approval limit 12500 INR
    Now the problem is that the PO has the status " Awaiting Approval" and when I checked the PO in transaction BBP_PD, I got the  message that no work item is found for all the three approver.
    I am not able to understand why the workitem is not being sent to appover A and later on to B and C
    Please help me out as this is really urgent
    Regards,
    Yatendra

    Hi Yetendra,
    You approval workflow task should be a general task.
    Make it a general task and you will work items flying around.
    Please reward few points if you feel this answer is helpful.
    Regards
    Pras Durafe

  • ADD approver when WS14000109 is active.

    Hey,
    I have a special requirement, to add an additional approver in the shopping cart.
    WS14000109 is active and working fine.
    The buttons ADD APPROVER & ADD REVIEWER are existing on the screen, but not enabled.
    Tried changing the security settings (0/1/2/3/4) no luck..
    I have read through the posts here ......nothing works.
    Did anyone resolve this.
    I donot want to implement N- Step BADI...workflow.
    regs

    Hi,
    Work flow WS14000109  which is activated in your system is a work flow
    "Approval n-step over Value Limit".
    In this work flow no "Adhoc Anchor" step is configuared that is why ADD approval & Add reviewer functionality is missing .
    If you analyze the Workflow WS10000031 which is two step approval standard workflow in workflow builder you will find that Adhoc Anchor step.
    I hope this will clarify your doubt. Do remember to award points

Maybe you are looking for

  • Report to show Number of sent and received messages

    Hi, We are on PI 7.1 EHP 1. I'm wondering if there is a way to set up a daily report that will output the number of inbound and outbound messages by message type? I know this can be done manually in the RWB but is there a way to automate it? Thanks,

  • Header files  not being included in JNI

    I've written a java program which interfaces with some C code.In the c code i use certain functions which are defined in a header file that i include in the same c file.The problem i have ,is that the compiler shows an error when it comes across one

  • How to make a block as invisible at SSCRN Output ?

    Hello All,         I have 3 Blocks on my SSCRN and  I have 2 Radio Buttons. I want to make 2 Blocks as Invisible when one of the radio button is selected. Can any one tell me how to do so ? Regards, Deepu.K

  • Working with items from different tables

    I have a form with item P1_A whose source is from database column that is from database table A. How do create another item P1_B whose source is from another database column that is from database table B? This item P1_B is on the same form where P1_A

  • Can't see Shared Libraraies on Network

    iTunes latest upgrade. Where has the ability to see who is listening to my library, or for me to see other librararies? It is all gone now, and no where to be found under preferences. I know somebody is listening to my iTunes, but i can't see them, a