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

Similar Messages

  • Urgent help on SC approval BADI BBP_WFL_APPROV_BADI

    Hello SRM Gurus,
       I am working on the BADI BBP_WFL_APPROV_BADI for SC Approval.I need some clarifications on the foll points  before I can proceed with the development...
    My requirement is
    1>The no of levels of Approval depends on the total Value fo SC and the Product Category  of the Items(i.e. the Whole  shopping cart since all the Items will be  of the same Product category as  well  as  same  cost centre).
       Based on the combination of these 2 values,I will have to set the approval_index field.
    2>Also after this,based on the combination of the  value for the fields Product Category + Cost centre,the  approvers  have  to be  determined.
    Now  for the  deteremination of  Approvers,either a  custom table can be   maintained  or  they ca be  retrieved  form teh Org structure  itself.
    But now  here,for getting the Approvers,if I have to get the apporvers from the Table(database  table bbpt_wfl_lia_def),I can only maintain the combination of values for the fields  Cost center  and Prod category and the corresponding agent and not the approval level.How  do I link the approval index and the approvers???
      Also, if i ma  getting the approvers  form the Org structure how is the link between Cost centre+Prod cat and Corresponding approver maintained????Or in case of  getting the approvers for the Org structure,I just need to get the Chief/manager of the Person who is creating the Shopping cart(Since  cost centre will be  maintained at the User level)???
    3>Also since  my  approval is  purely at the Header level,whcih of the example implementations given with the std BADI will be usitable  for my reqt(particularly for the APprovers  part)????
      Also  since mine is Header level approval(since  cost center+Prod  cat will necessarily be same the whole of the SC,do I need to activate  only the workflow  14000133(and  no other wfs i.e.WS14500015,WS10000031,WS10000060,WS10000129 )?
      Also,Please correct me if i have gone wrong in any of my understanding.Any help on this is highly appreciated.
    Regards,
    Disha.

    Though i think this was posted long back, but still:
    You need to do a BRF configration which will take care of ur approval levels and the corresponding approvers.
    You need to define the schemas there.
    Thanks
    Nitin

  • OIM 11g R2 - SOA error with Auto Approval

    Hi,
    I am trying to provision a resource through catalog wizard as an end user .I have created both Operational Level and Request level approval policies with Auto Approval Enabled.The RequestID is getting generated but I am getting the following error in screen
    [Security:090304]Authentication Failed: User SOAAdminPassword javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User SOAAdminPassword denied
    May I know where should I go and change the SOAAdmin Password ?.Thanks.

    I've run into the same error with oim 11gr2 bp04:
    <Mar 18, 2013 11:07:09 AM CDT> <Notice> <Stdout> <BEA-000000> <<Mar 18, 2013 11:07:09 AM CDT> <Error> <oracle.soa.services.identity>
    <BEA-000000> <<oracle.tip.pc.services.identity.jps.AuthenticationServiceImpl.authenticateUser()> authentication FAILED>>
    <Mar 18, 2013 11:07:09 AM CDT> <Notice> <Stdout> <BEA-000000> <<Mar 18, 2013 11:07:09 AM CDT> <Error> <oracle.soa.services.identity>
    <BEA-000000> <<.> Identity Service Authentication failure.
    Identity Service Authentication failure.
    Either the user name or password is incorrect. Check the error stack and fix the cause of the error. Contact Oracle Support Services if error is not fixable.
    ORABPEL-10528
    Identity Service Authentication failure.
    Identity Service Authentication failure.
    Either the user name or password is incorrect. Check the error stack and fix the cause of the error. Contact Oracle Support Services if error is not fixable.
         at oracle.tip.pc.services.identity.jps.JpsProvider.authenticateUser(JpsProvider.java:2337)
    Caused By: javax.security.auth.login.LoginException: [Security:090304]Authentication Failed: User SOAAdminPassword javax.security.auth.login.FailedLoginException:
    [Security:090302]Authentication Failed: User SOAAdminPassword denied
         at oracle.security.jps.internal.jaas.module.authentication.JpsUserAuthenticationLoginModule.login(JpsUserAuthenticationLoginModule.java:71)
         ...Did you find what the issue is? I'm finding scant information about this user named "SOAAdminPassword" (who makes up these usernames :-/).

  • Error  with WF :  Approval workflow is ambiguous

    Hi, I have actived the WF 14000044 Completion of shopping cart by purchaser (requester view) AND the  WF  14000109 Approval n-step over Value Limit and a I got error message:  Approval workflow is ambiguous
    thanks
    Dayana

    Hi,
         It seems for a particular condition,both the workflows are getting triggered for the event "SC CREATED"..Hence the message...
        Please check the start conditions for both the WF's.They should be unique.i.e. Under which case the corresponding worklfow should be triggered should be definate.
    HTH.
    BR,
    Disha.
    Pls reward points for useful answers.

  • 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

  • Error with workflow service all over

    First i noticed an error message coming in sharepoint 2013 powershell after i open it.
    Method 'Upgrade' in type 'Microsoft.SharePoint.WorkflowServices.WorkflowServiceA
    pplicationProxy' from assembly 'Microsoft.SharePoint.WorkflowServices, Version=1
    5.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' does not have an impl
    ementation.
    Then i noticed same is coming all over
    1)when i go to manage service application link in the central admini
    2)open up any site in browser
    3)on start of powershell window
    Then i tried to install March PU 2013 and August CU 2013 and ran config wizard and it keeps failing with the same above error.
    Any clue will be apreciated. I checked few other similar post but their solution is not working for me.
    Please mark as helpful if it is really helpful

    Hi,
    According to your post, my understanding is that you wanted to solve this error when you opened the SharePoint Management Shell.
    This error message probably appears in the SharePoint Management Shell when it is opened, if you previously have installed Foundation SP1 on Server.
    I recommend that you can follow the steps to check and solve this issue.
    1. Navigate to Log folder and check whether any helpful logs are there or not.
    The default location for the log files is in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOG.
    2. Restart timer jobs which are related to the Workflow and check event viewer see whether it helps.
    3. I suggest that you can apply the correct SP1 to the farm, restart the system and
    run as administrator on the SharePoint 2013 Products Configuration Wizard one more time.
    Here are some similar threads for your reference:
    http://www.tuicool.com/articles/VBbiAz
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/ee5c9cee-2b8c-473a-adc6-05d74aac9511/error-after-update-installation-method-method-upgrade-in-type-?forum=sharepointadmin
    http://social.msdn.microsoft.com/Forums/en-US/f5adb6c2-fea0-494b-8e49-d8cbca9fcfd9/method-upgrade-in-type-microsoftsharepointworkflowservicesworkflowserviceapplicationproxy?forum=sharepointgeneral
    If this issue still exists, could you please provide more error messages in the ULS log for further research?
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • MSS - PCR-Pdf error at workflow approve

    Hello,
    When I try to show a form pdf based in UWL for approve process, an error occurs :
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "Render" operation.
    com.adobe.ProcessingError: File not found error writing stream: <Render><Template><Name> "http://ecc03.fer.sa.dir.bunge.com:8103/webdynpro/dispatcher/sap.com/pcui_gpisr/IsrFormApprove/wd_key15_1150728935669/unknown.pdf
    java.io.FileNotFoundException: IO error detected while opening HTTP/HTTPS connection: http://ecc03.fer.sa.dir.bunge.com:8103/webdynpro/dispatcher/sap.com/pcui_gpisr/IsrFormApprove/wd_key15_1150728935669/unknown.pdf
    java.io.FileNotFoundException: HTTP Status-code: 500 Internal Server Error - connecting to http://ecc03.fer.sa.dir.bunge.com:8103/webdynpro/dispatcher/sap.com/pcui_gpisr/IsrFormApprove/wd_key15_1150728935669/unknown.pdf
    I am using SPPM mss/pcr scenario.
    Thanks in advance for any help.
    Renato.

    Hi Renato,
    When you are using PCRs/ISRs the form data is read from the XML data attached to the R/3 Notification object.
    ISRFormApprove in particular expects that this XML dat already exists and is correctly attached to the R/3 Notification object.
    So:
    1) Check your UWL is connecting ok to your SAP system - which I presume it is otherwise you wouldn't be getting the work item.
    2) Check the system alias from the system landscape used for your UWL system connection - make sure that its the right one and has the webdynpro host/port/path details defined.  Use the Connection Test options in the Portal Content Directory to check it.
    3) Check you have passed in a valid R/3 notification number - i.e. you should be able to display the notification in transaction IQS3 in the backend SAP system.
    4) Check the XML data is correctly linked to the form. The easiest way is probably to use transaction SE37 test option against function module ISR_SPECIAL_DATA_GET.
    It should return a list of all your PCR characterstics and their values.
    If all that's working and its still not happening for you, check you have the latest fixes as per SAP notes, and then raise an SAP message.
    Regards,
    Jocelyn

  • MSS for e-recruiting - error with workflow user since no candidate exists

    Hi all!
    We are trying to set up the requisition request in MSS based on the new standard WF templates specified in SAP note 949625.
    I can create a requisition request but the WF failes to create the e-recruiting requisition (NB) because our workflow system user does not have a candidate defined (No candidate could be found for US WF-BATCH).
    How can we address this issue?
    Thanks in advance and best regards,
    Mathias

    Hi Experts-
    Im pretty much going through the same scenario now. On registration external candidate does not receive verification email. I am thinking this has got to do with WF-BATCH not behaving. Plz guide me through this. What values do we need to use in the report. RCF_CREATE_USER. I am giving the following values and not able to proceed further. I am using an exisiting PERNR and getting a msg
    'A candidate already exists for the employee number'
    First name : workflow
    Last name : batch
    User name : wf-batch
    Personnel number : existing PERNR (75481235)
    Position : above PERNRs position number (2184)
    E-mail address : as maintained on wf-batch user ([email protected])
    Alternatively if i give a candidate number in the place of personnel number its giving another msg;
    'Enter a value for field langugage according to ISO 639. Not sure if some config needs to be maintained somewhere on this but entries on T002TX seems alrite.
    Appreciate your time!!
    Thx in advance
    Roopa Reddy

  • New material creation with workflow approval

    the scenario is when the new material master(mm01) is being created, the request will sent to manager for approval. so the manager can either approve or reject it. if it were rejected, is it possiable to resubmit this material master for approve after the amendement? any information on this config will be appreciated!

    You can put your approval in a loop and loop till it is approved. In rejection branch put a dialog step for creator of material and give to person who is responsible to changeing and call MM02 or something from that step and yes also give an option here where creator of approver can choose to abondone the material totaly which will bring it out of loop and completes teh workflow, which will other wise complete only on approval.
    Warm Regards,
    Anuj Nagpal.

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

  • Error in PO approval

    Can anyone help us with this, our Purchase Orders are not getting approved, we are getting this error:
    An Error occurred in the following Workflow.
    Item Type = POAPPRV
    Item Key = 4069-3251
    User Key =64
    Error Name = WFENG_ITEM_ATTR
    Error Message = 3103: Attribute 'DOCUMENT_ID' does not exist for item 'POAPPRV/4069-3251'.
    Error Stack =
    PO_REQAPPROVAL_INIT1.InsertActionHistSubmit(006)
    PO_REQAPPROVAL_INIT1.Ins_actionhist_submit(PO_REQAPPROVAL_INIT1.Ins_actionhist_submit: 01)
    Wf_Engine.GetItemAttrNumber(POAPPRV, 4069-3251, DOCUMENT_ID)
    Wf_Engine_Util.Function_Call(PO_REQAPPROVAL_INIT1.INS_ACTIONHIST_SUBMIT, POAPPRV, 4069-3251, 133211, RUN)
    Activity Id = 133211
    Activity Label = VERIFY_PO:RECORD_IN_ACTION_HISTORY
    Result Code = #EXCEPTION
    Notification Id =
    Assigned User =
    Regards

    Please see these docs.
    R12.1 - Cannot Approve Purchase Orders Due to Failure at "Get PO Attributes" Activity - WFENG_ITEM_ATTR OLD_PO_REVISION_NUM 3103: Attribute 'DOCUMENT_ID' Does not Exist [ID 1150224.1]
    PO Approval Workflow Fails at "Get PO Attributes" Activity - WFENG_ITEM_ATTR OLD_PO_REVISION_NUM 3103: Attribute 'DOCUMENT_ID' Does not Exist for POAPPRV [ID 1072073.1]
    Approving Revised Blanket Purchase Agreement Fails Under GET_PO_ATTRIBUTES Activity [ID 460332.1]
    All Purchase Orders Complete With Error In Workflow Approval On "Email Po Yes No" Action [ID 1314221.1]
    PO Approval Errors When Display Name Of User Is Greater Than 100 Characters [ID 955163.1]
    12: Approving Federal Requisition Or Purchase Order Results In Error Psa_bc_xla_pub.Budgetary_control [ID 1339009.1]
    Thanks,
    Hussein

  • Error in RZ20 : No administrator defined in approval BAdI

    Hi All,
    We are working on SRM 5.0 extended classic scenario.
    I got the error in RZ20 like shown below under the starting conditions like
    Object BUS2121 <shopping cart number>: No administrator defined in approval BAdI.
    and also one more error under the other errors
    Error during setting of status for contract <contract number> to 'Approved'
    I tried in checking BBP_PD but did not find anything.
    can you please let me know how and where to check to find the root cause for this error.
    Thank you
    Regards
    Jay

    Hi Jay,
    Your screen shot shows "Release Rejected", which is bit confusing.
    Suspect some issue with BBP_WFL_APPROV_BADI implementation. Are you using this BADI?
    Please wait replies from other experts.
    Meanwhile you may refer,
    http://scn.sap.com/thread/443102
    http://scn.sap.com/thread/695465
    Regards,
    Ganapathi

  • Process Controlled Workflow - PO approval badi implementaion missing

    Hi  ,
    We are working in Purchase Order approval Workflow  (WS40000014). This is the given scenario 
    After each approval, total dollar amount of purchase order will be compared with Approval limit of approver maintained in the Position in the SRM Org Structure.  If the spend limit of approver was less than total dollar amount of purchase order, workflow will route the purchase orders to next approver in the chain with higher Approval limit authority. Workflow will continue to route purchase order for approval, until an approver with Approval limit higher than total dollar amount of purchase order approves.
    In the help.sap.com\SRM , we found a badi implemenation "/SAPSRM/BD_WF_PO_RR_SL " will be used for this purpose .In our SRM system we cant find any implementation like this .  please help in solving this issue ...

    Hi,
    Go to SE19 transaction and find Enhancement Implementation /SAPSRM/BD_WF_AGENTS_PO. You see the BADI Implementation /SAPSRM/BD_WF_PO_RR_SL.
    Regards,
    Masa

  • Payables Error for Invoice Approval in Oracle Workflow

    Hi
    Product Oracle Payables
    Product Version 11.5.10.2 (VISION Instance)
    We need to implement the AP workflow/approvals in Payables,have set-up Approvals Management(AME) for AP invoice approval in the vision instance.
    Create a invoice Payables and initiated approval process found the below error in wf_notifications
    Error in Workflow APINV/63401_1 ORA-01403: no data found ORA-01403: no data found
    checked the notifications in the sysadmin responsibility, do find the errors
    An Error occurred in the following Workflow.
    Item Type = APINV
    Item Key = 63401_1
    User Key =
    Error Name = 100
    Error Message = ORA-01403: no data found
    ORA-01403: no data found
    Error Stack =
    AME_ENGINE.doWeakHeaderRuleEvaluation(12732)
    AME_ENGINE.evaluateRules(12733)
    AME_ENGINE.updateTransactionState(12734)
    AME_API2.getNextApprovers4(12735)
    AME_API.getNextApprover(12736)
    APINV.Get_Approver(APINV, 63401_1, 536104)
    Wf_Engine_Util.Function_Call(AP_WFAPPROVAL_PKG.get_approver, APINV, 63401_1, 536104, RUN)
    Activity Id = 536104
    Activity Label = APINV_M:APINV_IA
    Result Code = #EXCEPTION
    Notification Id =
    Assigned User =
    Regards
    Yram

    Please see these docs.
    APINV Errors with Ora-01403 in AP_WFAPPROVAL_PKG.get_approver [ID 413840.1]
    Invoices Getting Stuck Intermittently In Invoice Approval Workflow With No Data Found Error [ID 1201053.1]
    Intermittent Error "3835: ORA-20002: 2018: Unable to Generate the Notification Xml" when Notification is Reassigned through a Vacation Rule [ID 1305504.1]
    Thanks,
    Hussein

  • Error in workflow while linking goods receipt document with parked invoice

    Hi All,
    I parked document using Tcode MIRO, when WF has been executed and goods receipt document has been created.At the time that we tried to link this goods receipt to parked invoice document in the workflow,The problem happens with work item saying the status as Error. See the below error.
    MIRO Invoice: 801061193 2010 Item: 000001     13.09.2010     09:24:58     Error     AP Workflow for MIRO/MIRA Parked Invoice
    Can anyone advice why it is coming so?
    Thanks in advance.

    Hi
    In SWEL go to workflow trace and see what exactly is the error. This error description is too generic to arrive at soln.

Maybe you are looking for

  • Problem with FileItem of File Upload?

    Hi Everybody, I wrote a mail program using JSP as the front end and Servlet at the backend and inorder to upload the files from the client machine to the server machine i used the FileItem and DiskFileUpload interfaces... But i am getting a problem .

  • IOS 7.0.2 Upgrade on iPad4

    After upgrading to iOS 7.02 the iPad is a loop and never gets out of Config. questions. It was rebuild on last Backup on iTunes (latest release) on an iMac. No error messages at all, also rebuild looks fine. When rebooting the iPad, always starts wit

  • Transferring iweb site from 1 mobileme account to another

    i need to transfer my iweb site from one mobile me account to another, but i dont want to buy it in HOPES that i can do it. I want to make sure i actually can. anybody have experience in this?

  • At new Functionality

    At new is not functionig. where i was wrong in this code. LOOP AT itab WHERE zuonr+0(1) EQ 'S'.     AT NEW zuonr.         READ TABLE it_prin WITH KEY bukrs = itab-bukrs                                     gsber = itab-gsber                           

  • Sound over rdesktop error periodic - heres the error message

    i am having problems getting sound over my LAN rdesktop to a win machine periodically, heres the error message rdesktop -g 1600x1000 -r sound:local *netbiosname* Autoselected keyboard map en-us WARNING: Remote desktop does not support colour depth 24