on 04-15-2016 7:04 AM
Hi Fiori Folks,
I have to enable Approve and Reject buttons for Shopping Carts in SAP Fiori My Inbox and I have already the following tasks, but still not able get the Approve Rejects for SC workflow items in My Inbox.
1) Maintain Task Names and Decision Options
2) Implemented the BADI '/IWWRK/BADI_WF_BEFORE_UPD_IB' based on information from the earlier blogs, but the external break-point is not getting triggered.
3) And the component versions we are in are
a) IW_PGW 100 008
b) UIX01CA1 100 005
c) UIX01SRM 100 007
d) GBSRM001 700 0016
e)SRMNXP01 100 0009
4) Workflow definition: WS4000001 and Task TS40007953.
Thanks in advance
Regards
Ramesh
Hi Ramesh, Have you worked through the Fiori My Inbox Extensibility Cookbook?
You can find it in note http://service.sap.com/sap/support/notes/2118812
We have actually successfully implemented Approve/Reject shopping carts as you can see in
Not sure why you are not hitting the breakpoint. Have you checked your debug and RFC authorizations in both Gateway and your SRM system?
However I can suggest that if it is not approving/rejecting it may be because you are not passing the correct parameters. Remember that shopping carts have multiple items - so all you can do in the BADI is approve all items or reject all items.
If you want to do item level approval then you need to work through all of the Extensibility Cookbook. It includes further details of the SC approval function module you need to call to submit your approve/reject in SRM.
Rgds
Jocelyn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jocelyn,
Thanks for your detailed reply with reference links. I went thru the 'Extensibility Cookbook' and found that, if the SC has item level approval, then only SEND is visible instead of Approve/Reject. Is there way we can still have the Approve/Reject for the above scenario like it is for approval on header level?
Regards
Ramesh
Hi Ramesh,
The problem here is that Shopping Carts are not usually approved or rejected as a whole - it's an item by item approval.
If you need Shopping Cart Item approval then the Extensibility cookbook shows exactly how to achieve that.
If you are happy to add Approve/Reject buttons that just approve/reject all items, then you can use the standard Decision Key configuration and place the update in the BADI /IWWRK/ES_WF_WI_BEFORE_UPD_IB.
What you need to do in the BADI is call the function module that performs the actual approve/reject in the shopping cart object itself. You can see this in the Extensibility Cookbook as function module ZCARTAPP_ITEMLEVEL_APPROVAL.
What we did is pass in the table of items with the same decision applied to all items.
One word of warning here... to save time we first installed the Fiori app for Approve Shopping Carts. That meant we could also use the underlying classes to do the approve/reject - even though we weren't intending to use the Approve Shopping Carts app itself.
You could either follow the same approach or ....
...identify an equivalent background routine for shopping cart approval in SRM - if there is one. It's been a long time since I worked in SRM myself so for that you would have to ask the SRM folk.
It's possibly a standard routine doesn't exist and this is why it's part of the Fiori Approve Shopping Carts package.
Good luck,
Jocelyn
Hi,
Can you post screen shots of the Maintain Task Names and Decision Options screen from the back end system? Where have done this configuration - in the ERP or the SRM system?
Regards,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Masa,
Thanks for your response. Yes, making the Approve/Reject buttons is the issue and my understanding is that we have to customize in case the workflow step is of type ACTIVITY instead of USER DECISION. I can see the WF items for shopping carts along with other in My Inbox. Please find attached the screenshots of shopping in My Inbox, Approve Shopping Carts App and F12 of My Inbox and let me know if you need any more details. I also leaned that, if the SC has item level approval, then only SEND is visible instead of Approve/Reject. Is there way we can still have the Approve/Reject for the above scenario like it is for approval on header level?
Regards
Ramesh
Hi Ramesh,
I see the 2nd screenshot is Approve My Shopping Cart, right?
And your issue is decision button display in My Inbox.
Your decision configuration looks OK.
The next step is applying UIX01CA1 SP06 and IW_PGW SP09. You can also set external break point at the method which reads decision button configuration and debug.
Regards,
Masa / SAP Technology RIG
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.