on 07-21-2015 7:38 AM
Hi All,
I ahve created a public method in se24 in a custom class with IF_WORKFLOW as interface.
Now I used this class in workflow task and trying to use this method.But am getting error: Method is not Public.
Can anybody guide me how to proceed.Sreen shot attached.
Thanks.
Hello
Refer to following links for reference. Model your custom class on SAP delivered Class CL_SWF_FORMABSENC
Using ABAP OO methods in Workflow Tasks
Using ABAP OO attributes in workflows and tasks
Regards
Sandy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you please share the screenshot of the class.
What is the visibility of the method -Is it private or public? Please check and share.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
Just check again if your custom class has following interfaces included in Interface tab
BI_OBJECT
BI_PERSISTENT
IF_WORKFLOW
Just go in each of methods of above interfaces and activate. You dont have to code in anything in these methods if you are not using the Class as Workflow Object instance. Looks like your class is just a class that will be used for static methods for workflow
If so, just add a static Public method and activate the Class .
Regards
Sandy
Hello,
Check methods LPOR and FIND_BY_LPOR in your cvustom class to ensure that the class instance is generated properly.
Regards
Sandy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi JD,
I think you forgot to attach the screen shot.
Any class which is used in the workflow tasks has to implement the interface IF_WORFLOW.
Now you create you custom methods in this class (STATIC PUBLIC) and use those methods in your tasks.
Hope it helps.
Regards,
Vinay Mutt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.