cancel
Showing results for 
Search instead for 
Did you mean: 

MSMP workflow ABAP class based rule - not stopping at breakpoint

Former Member
0 Kudos

Hi Folks,

I have defined an ABAP class based rule to determine the agent as per note 1671150 as below:

I have set a hard breakpoint and all configurations are in place; but when i create access request it is not stopping at any of the methods, the access request is getting created successful. I am not able to figure out why it is not stopping at the instance method also. IF_GRFN_MSMP_RULE_INSTANTIABLE~GET_INSTANCE

PLease let me know if am missing something

1. Go to transaction SE24, Enter class name into Object Type field, for

example "ZCL_GRAC_WFA_MY_AGENT"

2. Click on Create button -> this will create new ABAP class with given

name. Specify all needed properties (description, etc.)

3. Goto Properties tab, click on Superclass button and specify class

CL_GRAC_RULEAPI_A_ACCREQ (agent root class from Access request

workflow type) as superclass of your newly defined class

ZCL_GRAC_WFA_MY_AGENT

4. (Optional) Redefine method P_VALIDATE, i.e. put following code to make

5. Redefine method P_PROCESS, put own business logic inside:

6. Save and activate all changes to the class ZCL_GRAC_WFA_MY_AGENT

7. This agent rule class implementation is now available to be used in

MSMP configuration.

a) 1st register this new class with ID ZCL_GRAC_WFA_MY_AGENT as an

agent rule type (implemented by ABAP class) for Access Request

b) Then you can create your own Agent - e.g. ID ZMYAGENT - with

approval purpose Notification (due to logic in method P_VALIDATE it

can be used only for notification purposes). Agent type is GRC API

Rules. Rule ID is from MSMP Rule registry - our class name

ZCL_GRAC_WFA_MY_AGENT and rule type ABAP Class.

c) From now on you can use this Agent ZMYAGENT in either process

specific notification settings or in stage specific notification

settings in Access request MSMP Process configuration. If you try

to use it as Approval Agent in stage configuration -> the code in

P_VALIDATE method will prevent you to be able to activate such

configuration.

Remark: Keep in mind that if you want to transport this new Agent with MSMP

configuration into another SAP system (e.g. QAS system) you need not only

to transport configuration of affected MSMP process but you have to make

sure that the class development object - ZCL_GRAC_WFA_MY_AGENT - is also

transported before you try to activate the MSMP configuration in QAS

system.

Thanks,

Archana

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This message was moderated.