SRM 7.0 Process-Controlled (BRF) Workflow -- Error message to Shopping Cart

I am modifying a BRF Expression used to calculate approval levels.  During this calculation, I may run into error conditions (e.g. Currency tranlsation not found) that I want to display to the user (in the Shopping Cart).
I have tried raising the following exceptions:
/sapsrm/CX_WF_RULE_ERROR.
/sapsrm/CX_WF_RULE_ABORT.
Raising these exceptions do result in SLG1 log entries being written, but the User is not informed of the error (ie. at top of shopping cart where other messages display).
I can probably jump out of the Webdynrpo to read logs, but thought there MUST be some standard way of passing error conditions from the BRF, back to WF, and then back to the Webdynpro Window.
Anybody raise error messages back to the online user from Process-Controlled Workflow?
Thanks,
- Tim

>
Saravanan Dharmaraj wrote:
> Hi Tim,
>
>    I am not sure about your business requirement, but if you want to display custom error message while user create a SC, SAP has provided a standard BADI - BBP_DOC_CHECK_BADI. You can implement this Badi to raise a custom error,warning message. You can build your brf logic in the BADI implementation..
>
>
> Best Regards,
> Saravanan Dharmaraj.
Hi Saravanan,
I am actually modifying the Approval Limit Checks (for multi-currency translations) that you recently coded in Maryland.  It can occur that errors occur in determining limits (new Currency translation I just added), or during the lookup of agents (ie user config is inconsistent).
In these cases, I can make the shopping cart Dump, by raising untrapped error messages, or assertions.   However, I would like to raise exceptions that get trapped (such as the ones I identified in original post), and then make their way to the shopping cart.
Unless I am missing something, I don't think the WF BADIs, or BRF are gonna communicate errors back to the shopping cart, even though these components are called during cart creation and checks.
I realize that I can recode the Agent Determination BADIs,  BRF calls, or even read BRF logs within BBP_DOC_CHECK_BADI.  I mentioned this in my original posting as well.
Anyway, any help is appreciated.
Thanks,
- Tim

Similar Messages

  • How to display error message in Shopping Cart?

    How to display error message in Shopping Cart and stop the shopping cart for further processing? I try MESSAGE w001(zshop) or MESSAGE e001(zshop). But it is causing run-time error.

    Hi Paul,
    In the DOC_CHECK or DOC_SAVE BADI, you have a global internal table named et_messages. The structure of this table is 'bbp_smessages_badi'. You can append your error message here by inputting the message type, ID and number. The message type is either 'E' for error or 'W' for warning and the number would depend on your message class(ID). You will be able to see the error message on top of the screen, can be a red or yellow highlight depending on your appended message. I don't think creating the error message via the MESSAGE syntax will be successful, maybe this is why you are getting a runtime error.
    Regards,
    Noel

  • Error message during shopping cart approval

    Dear gurus,
    A user has encountered an error message when approving a shopping cart.
    The error message is "Shopping cart xxx (PReq. xxx): ME 020 Item category D not allowed with document type xxx".
    The PR is not created at the backend.
    Do anyone has encounter this error message before?
    Appreciate for your help.
    Thanks in advance.
    Regards,
    Santthi.

    Hi,
    Seems like your SC is trying to create service purchase requisition  with item category D for your PR doctype in the backend.
    Your PR doc type definition does not have item category D defined for it in MM backend.
    Best regards,
    Sridhar

  • Back and Forth Logic in process-controlled (BRF) workflows in SRM 7.0

    Hi all,
    I am using the process-controlled workflow in SRM 7.0.
    The approval itself works ok, but now I am trying to set up the back-and-forth functionality (similar to how it worked for the Badi in SRM 5.0) as default:
    This is what happens:
    Requester creates shopping cart.
    Shopping cart goes for approval.
    Approver rejects SC.
    Back at the requester the SC can only be displayed, but not changed.
    As far as I can tell this happens for any kind of decision set (as long as all items are rejected).
    This is what I am trying to set up.:
    Once the SC is back at the requester, he can either accept the rejection OR change the SC and 're-order' it ie send it back to approver again.
    I know if the requester checks the flag 'Work Item to Requester at Process End' this can be done, but I need the system to have this functionality automatically without setting a flag manually.
    I really appreciate any suggestions on this issue.
    Cheers
    Ulrike

    Dear Masa,
    thanks for your helpful answer. I have an better idea now, but I am still not quite able to set it up.
    I have applied note 1296209.
    When i tried to set up this step I did the following:
    level type of that step I used 'Approval with completion'.
    Created Expression of type SAP Formula Interpreter, with return type Boolean, and use formula:
    0V_WF_CURRENT_DECISI = 'REJECTED'
    linked the evaluation id to above expression.
    Task id for the step is: 40007994 - Accept Decision / Adjust Document
    When i do this and create a SC, my system dumps after clicking on describe requirement::
      The following error text was processed in the system SR7 :  The method could not be found at dynamic call.
    The error occurred on the application server SAP01_SR7_07 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
          Method: CALL_RFW of program /SAPSRM/CL_WF_RULE_CONTEXT====CP
          Function: /SAPSRM/WF_BRF_0EXP000 of program /SAPSRM/SAPLWF_BRF_DATA
          Method: PROCESS_SPECIFIC of program CL_CALL_FUNC_METHOD_BRF=======CP
          Method: IF_RULE_COMPONENT_BRF~PROCESS of program CL_EXPRESSION_BASE_BRF========CP
          Method: GET_RESULT of program CL_EXPRESSION_POOL_BRF========CP
          Method: IF_EXPRESSION_BRF~GET_SUBEXPRESSION of program CL_EXPRESSION_BASE_BRF========CP
          Method: IF_FOEV_CONNECTOR~EVALUATE of program CL_FORMULA_BRF================CP
          Method: EVALUATE of program CL_FOEV_FORMULA===============CP
          Method: EVALUATE of program CL_FOEV_FORMULA===============CP
          Method: EVALUATE of program CL_FOEV_FORMULA===============CP
    What I don't understand about your explanation is what you mean by "Acceptance by Contact person". I don't have that option anywhere in my BRF? Is that supposed to show up under Resp. Resolver Name (like RR_MANAGER)?
    Also where did you add that step in Process level configuration? I have 2 approval steps (just approval, without completion) and then i wanted to enter this step after those levels before the automatic system decision.  But i wasn't able as the system doesn't allow you to add a completion step after a 'normal' approval step.
    Cheers for your help
    Ulrike

  • Vendor not released warning as an error message in shopping cart

    Hi,
    When we are creating a Purchase order in SRM R/3 system, If we select a vendor which is not released then we get the Error message saying Vendor is not released and processing stops there.
    Similarly while creating a Shopping cart with the same vendor it just gives a warning message instead of error. Is there any way of converting the warning message in case of Shopping Cart to an error message ? Is there any BADI available ?
    Thanks,
    Sreekanth

    Yes when we are creating any shopping cart or any PO , for validations we are using one check badi.
    Try this Badi :
    BBP_DOC_CHECK_BADI.
    Hope It helps......

  • Dead Line Monitoring for Shopping cart approval(SRM 7.0 Process controlled)

    Hi Friends,
    I am using SRM 7.0 Process controlled Workflow. I need to do below.
    Dead Line Monitoring details are given below.
    If the approval workitem is not addressed in 3 business days by Approver, the approver would get reminder email notification. If approval Workitem is not addressed in 5 business days by the approver, then an email notification is sent to requester,approver and the workflow administrator.
    How to obtain this. Please help me.
    Thanks,
    Balaji.T.

    Hi Masa,
              Thank you for your input.
    You mean, shall we use BADI  BBP_ALERTING for deadline monitoring.?
    Infact, i have used
    SRM Server->Cross-Application Basic Settings=>Event and Event Schema for Alert Management->Define Event Schema
    In that i specified
    WF_COMPL_LATEST_END->Message(low)->APPROVAL_DEADL_NOTIFIC_NEW  : 24 hours.
    But it is not triggering for dead line Monitoring(24 hours Later).
    If any body faces this same problem, Please let me know.
    Thanks,
    Balaji.T.

  • I had a problem installing icloud on windows 8.1. What should I do? At the end of the installation process there is a error message.

    I had a problem installing icloud on windows 8.1. At the end of the installation process there is a error message.What should I do? 

    I'm guessing that you have checked and complied with the system requirements?
    System Requirements
    Microsoft Windows 7 or 8
    Microsoft Outlook 2007 or later or an up-to-date browser (for Mail, Contacts, Calendars)
    Internet Explorer 9 or later, Firefox 22 or later, or Google Chrome 28 or later (for Bookmarks)
    Broadband Internet access
    Note: If you are upgrading from iCloud Control Panel 1.1 or earlier, you will need to sign out of iCloud Control Panel and uninstall it before downloading iCloud Control Panel 3.1

  • Modifying workflow error message

    Dear all,
    i have a requirement where i need to modify the workflow error and i need to enter additional information like customer number and customer purchase order number in workflow error message and error description during inbound Idoc processing.
    can anybody explain me how it can be achieved?
    thanking you in anticipation
    Ashvin Patel
    Edited by: Ashvin Patel on Dec 25, 2008 8:09 AM

    Dear Krupa,
    Thnx for the reply, but can you pls elaborate it. as i need to write a FS for this but i don't know how to put this in technical terms.
    Regards
    Ashvin Patel

  • HT5052 hi , i cant update mi ipod touch software, a soon as the download process in finished an error message appears

    hi , i cant update mi ipod touch software, a soon as the download process in finished an error message appears :" session time has expired" something like that

    Disabling the computer's security software during the download and update usually resolves a network timeout error.

  • Error while creating  shopping cart. in SRM 7.0

    HI experts,
                         while creating a shopping cart  in SRM 7.00 we r getting following error messages.
    Exception Data
    Date:     17.08.2010
    Time:     13:36:11
    Short Text of the Message:     An exception occurred
    URL:     http://hpsrm.iscodom.com:8001/sap/bc/webdynpro/sapsrm/wda_l_fpm_oif/
    Path:     /sap/bc/webdynpro/sapsrm/wda_l_fpm_oif/
    Message ID:     
    Message Type:     
    Message No.:     
    Message Variable 1:     
    Message Variable 2:     
    Message Variable 3:     
    Message Variable 4:     
    Error Code:     558
    Error Text:     RABAX_STATE
    Runtime Error:     UNCAUGHT_EXCEPTION
    ABAP Call Stack
    : Method:  ABORT of program /SAPPSSRM/SAPLBO_BASE
    Method:  /SAPPSSRM/IF_BADI_WRAPPER~CHANGE of program /SAPPSSRM/SAPLBO_BASE
    Method:  /SAPPSSRM/IF_BADI_WRAPPER~START of program /SAPPSSRM/SAPLBO_BASE
    Method:  HANDLE_PD_START_EVENT of program /SAPPSSRM/CL_BADI_WRAPPER=====CPForm: PROCDOC_CREATE of program SAPLBBP_PDFunction: BBP_PROCDOC_CREATE of program SAPLBBP_PD
    Method:  CREATE_SC_INT of program /SAPSRM/CL_PDO_FACTORY_SC_ADV=CP
    Method:  CREATE_NEW_INSTANCE of program /SAPSRM/CL_PDO_FACTORY_SC_ADV=CP
    Method:  CONSTRUCTOR of program /SAPSRM/CL_CH_WD_BOM_SC=======CP
    Method:  /SAPSRM/IF_CH_WD_MAP_FACTORY~CREATE_SC_MAPPER of program /SAPSRM/CL_CH_WD_MAP_FACTORY==CP
    Regards,
    vijay/nitin

    Hi NITIN KHAIRNAR  Masayuki Sekihara
    We are also facing the same issue.
    Can you help us out in identifying which BADI is active.
    Please help us in solving the issue as we are getting many short dumps on daily basis because of this.
    Thanks,
    Ramakrishnan

  • Workflow Error Message: System Account - The Workflow could not set Content Approval Status

    This is the first time I try an approval workflow. I am using a template in MS Word and assigned an approval workflow to it. The approval workflow is only going to one person in this case.
    When I start the work flow the following 3 error messages show up:
    Workflow Error Message: System Account - The Workflow could not set Content Approval Status. Enable content moderation for this list and run the workflow again.
    Workflow Error Message: System Account - The e-mail message cannot be sent. Make sure the e-mail has a valid recipient.
    Workflow Error Message: System Account - The e-mail message cannot be sent. Make sure the outgoing e-mail settings for the server are configured correctly.
    Thank you for your kind guidance.

    Hi,
    For the first error: Did you set Content Approval in the workflow?  If so, see if you have it in the versioning settings of the list settings.
    For the second error: double check your recipient is set up as being valid.  Did you type in the email address or is it referring to a people picker field?  also, make sure that in the workflow for the email that you actually populated it in the
    To: field.
    for the third error: I suspect that either your farm is not configured for email.  Or, this error is a knock on from the second error.  If you get the second error rectified it may clear this error.  If not then double check the email settings
    for your farm.
    Johnathan Lightfoot

  • Indesign CC packaging process fails with the error message "Unable to copy necessary file(s)"

    When I try to package a file with a lot of links, the Indesign CC packaging process fails with the error message "Unable to copy necessary file(s)". I am able to make a PDF of the same file, but when packaking the process fails every time. The app does not crash, just gives an error message. What gives?
    (I'm using a MacBook Pro Retina Display with 16 GB RAM, running OS 10.9 and all CC 9.1 updated with the latest patches).

    @John – that's really strange… the thing with the file names depending on the file type. That could eleminate Mavericks a bit from the equation and put the weight more on InDesign CC.
    Provided:
    1. You give it a go with InDesign CS6 v8.0.2 and tests are showing it will work fine in this regard.
    2. The same composite characters are present in both file types, the ai files and the PhotoShop ones. On a Mac OSX characters for files and folders can consist of "composite" components:
    ü for example is a two component one: the u and the two dots above the u. On a machine with MS Windows, this is not the case…
    InDesign CC was programmed from scratch for a 64 bit architecture. So it could be a severe bug in InDesign CC.
    Maybe other readers in this forum could test for these cases…
    Uwe

  • Change public template BBPSC06 (Error in system; shopping cart cannot be pr

    Hi,
    I am in SRM_SERVER 5 (SRM 4) SP 14.
    I have dome my standard templates without problems, but when I try to change I get this error when I go to transaction BBPSC06 (with same user).
    Error in system; shopping cart cannot be processed further
    does anybody know why is appearing this error?
    thanks
    Best regards

    HI
    THIS TRANSACTION CAN BE USED BY PURCHASER
    BBPSC05 and BBPSC06 How to create / change public template?
    is he  purchaser?
    BR
    MUTHU

  • Send backend error notification to shopping cart creator/requestor

    Hi Gurus,
    We are currently using SRM7.0 classic scenario. In RZ20 transaction code, errors on the shopping cart appeared. We have a requirement for the ff:
    Send a notification to user informing them about the backend application error,
    Download and store the error in file server or a custom table
    and Delete the error from the application monitor
    Please advice if you have encountered any of these.
    Thanks.

    Hi Gerhard!
    Did you check DC30 in the backend to have the type of file used in the attachment?
    We had a similar problem after the last patching and SAP advised to change the file format in DC30 in the backend to show for example: instead of *.xls change to  .
    I hope this helps.
    Regards,
    Elisabeta

  • Error 1011 in shopping cart - HELP

    I selected The Postal Service "Give Up" album. iTunes will not let me purchase it, or remove it from the list. It will also not let me purchase anything else while it is on the list - and I can't remove it. When I try to purchase I get the message "Your shopping cart's content has changed. Please review your shopping cart and click Buy Now."
    When I try to remove the album, I get the "Could not remove an item from your cart. An unknown error occurred (1011)"
    Help me out here - I can't do anything!

    Ok so I admit it I have been using it as a wishlist and its big...
    I can modify my behavior to the wishlist.
    But that doesn't solve the current problem that I get this error and I can't do anything with the cart. Acesss, buy, delete... nothing.
    BTW I'm a proud cube owner.

Maybe you are looking for

  • How can I copy a link when the site address doesn't show up in my address bar?

    When I click a link within my email, I am taken directly there but the links address doesn't pop up in the site address bar so I'm not able to copy and share it.

  • Problem with blocking of the stock by the contract

    Hello, Can you please tell me, why the line 20 in my Contract 12505100 is still blocking the stock, while we cancelled this line?? It is visible in the transaction MD04. how can I remove it from the MRP ? Thanks in advance!

  • Serialization and the JTable

    Hello! I'm having some trouble to serialize my JTable.. The first time I click the SaveAs button, it save without problems, but the second time I click the SaveAs, even saving with another name, it throws the exception: java.io.NotSerializableExcepti

  • Designing Labels using Adobe Interactive Forms

    Is anyone out there using Adobe Interactive Forms to design packaging labels?  If so, I'd be interested in hearing about your experiences with this.  In particular, I'd like to know if you evaluated third-party label design software and did a compara

  • Weblogic 10.3 and OWSM

    Hi I am working with SOA Suite 11g How can I install OWSM on weblogic 10.3 server? Also, where can I find OWSM installation guide for installing OWSM on WebLogic 10.3?