on 07-23-2014 1:03 PM
Hi,
What do you mean by programmaticaly ?
One thing you can do is create one workflow containrr of type of BO BUS2012.
then get this container instantiated by calling method GENERICINSTAINTIATE of BO SYSTEM in an activity via task. You can pass OBJTYPE as BUS2012 and OBJKEY as PO number.
Finally bind instantiated workflow container to _adhoc_object container of workitem task.
Regards
ibrahim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
It doesnt require much efforts and BO knowledge to instantiate BO in workflow containrr.
you juat need to call the method in activity task as I mentioned above.
also like BO, I dont think there can be a concept of default method in classes. But you can give a try in your class constructor method to call transaction to display PO. then bind your workdlow container having class instance to _adhoc_object container of workitem task.
Regards
ibrahim
Hi Ibrahim,
I went ahead with your approach to solve my issue.
But while trying to bind workflow container of type "BUS2012" to "&OBJECTINSTANCE&" of workitem task I was getting a binding error: "An object compatible with '[BO.]' was expected as the source expression".
So directly I did binding of "_adhoc_object" with "&OBJECTINSTANCE&" and it worked.
Thanks & Regards,
Shailendra
Hello Shailendra,
Of course this this can be done completely in classes and don't let anyone tell you otherwise. Your object needs to implement IF_WORKFLOW, and the BI_OBJECT~EXECUTE_DEFAULT_METHOD method will be called when the hyperlink is clicked.
If you are not familiar with using classes in WF, you do need to Instantiate them correctly using the the two LPOR methods. I can recommend the WF book (3rd edition due any day now), or Jocelyn's excellent blogs found right here on SCN.
Regards,
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.