on ‎2012 Jan 23 4:27 PM
HI All,
I need to use SAP standard rule 75700139 in my fucntion module for determininig user id and based on user id for task user details are fetched.
When the rule is executed from PFAC values are entered and a key is generated wirh fetches required agents.
But i want to use function modulwe in rule directly.
PArameters are -
TABLES
ACTOR_TAB STRUCTURE SWHACTOR
AC_CONTAINER STRUCTURE SWCONT
Can anybody guide how function module can be directly used and what and how values are to be filled in these parameters.
Thanks.
Request clarification before answering.
You say that you want to use a standard rule inside your function module. You can simply call function module RH_RESOLVE_RESPONSIBILITIES and pass the rule number along with the needed parameters and it will execute that rule for you. Keep in mind that this function module only works if the rule uses "responsbilities." If the rule itself uses a function module, then you can call the function module directly. The AC_CONTAINER internal table is similar to a name-value pair. Look inside function module USMD5_CREQUEST_ROLE_DET which is called from within the rule you need. Instead of the macro swc_get_element, just use swc_set_element to insert values into the internal table. Make sure you add the statement "INCLUDE <cntain>." at the beginning like that function module does. The other internal table ACTOR_TAB is a simple internal table in which the first field is an object type: O for org unit, US for user, P for personnel number, etc. The second field is the object key; so if the type is US then the key is the user ID you want to assign as an agent and if the type is O then the key is the org unit number you want to assign as an agent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.