SRM ProcCtrl WF - Display Item details of current Decision Set (current Workitem)

Joe Toledo joe_toledo at capgroup.com
Tue Jul 17 11:52:04 EDT 2018


Hi there Mark,

Yes, this is possible.  There are two types of approval tasks:  Completion (TS40007952) and Approval (TS40007953).   Both of these have a container element called BOR_OBJECT (BUS2121) which is what is being used to display the total cart value.   Via SRM configuration you can use a different task (i.e TS9#######) to be used for these approvals.  You could then add “Z” attributes to a ZBUS2121 (Delegated from BUS2121) and have it display any additional details you need.

The configuration to specify a different task can be found at “Process Level Configuration”  (SPRO > Supplier Relationship Management > SRM Server > Cross-Application Basic Settings > Business Workflow > Process-Controlled Workflow > Business Process Configuration > Define Process Levels”)

Let me know if you have any problems.

Regards,

Joe

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Mark Pyc
Sent: Monday, July 16, 2018 9:16 PM
To: WUG <sap-wug at mit.edu>
Subject: SRM ProcCtrl WF - Display Item details of current Decision Set (current Workitem)

G'day Wuggers,

Within SRM 7.0 Process Controlled WF at Item Level for Shopping Carts there is config and BAdIs to define Item Bundles with associated Approvers. This done using the Responsibility Resolver and Area class concept.

Is it possible within the Long Text of the Workitem to show details of the Cart Items associated current Decision Set? There is a linkage between Work Item, Decision Set, Area and Cart Items but within the constricts of a predefined framework Workflow I can't see any way to access this.

If I could access the current Work Item number within BUS2121 then I could establish the linkage (Work Item into table /SAPSRM/D_WF_013 ​gives Decision Set  and can then read /SAPSRM/D_WF_005 to get the Area GUID from which I could invoke my own class methods).

None of the methods I've found reference to work in SRM because they rely on Events being raised but SRM doesn't use events. So FM SWO_QUERY_REQUESTER doesn't work, nor does method cl_swf_evt_requester=>get_workitem.

Is there anyway to programmatically determine the Cart Items that relate to the current Work Item so that details of just those Items can be shown in the Work Item long text??

Without opening the Shopping Cart screen the user wants to know which Items they are responsible for and what the total value of those are.
Many thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20180717/5137c02f/attachment.html


More information about the SAP-WUG mailing list