on 10-11-2007 12:17 PM
I'm trying to build workflow using ABAP Objects instead of BOR. I created custom object for sales order according to blog "Getting started with ABAP OO for Workflow using the IF_WORKFLOW interface". It works correctly in my workflow but I would like to attach link to "browse sales order" (VA03) to workflow step. When using BOR I can attach link my binding BOR objest to AdhocObjest step container element. The same way does not work for ABAP OO object. The error message is "The object categories 'CL' (source) and 'BO' (target) are not compatible".
Is there any way to add this link to attachments when sales order object is OO not BOR?
At least make sure that you have a default method 'browse' in your class. I mean that make a method for "displaying" or "browsing" or whatever you want to happen when you click the object, and make it default. OR actually if I remember correctly there is a default method existing already, but put your code to there.
Also try this:
-Create a container element of type 'sales order' into your task
-Bind the sales order object from workflow to the the task
Regards,
Karri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I follwoed the second hint:
1. made a copy of standard decision task
2. added my sales order ABAP object to container of task from 1.
3. bind my sales order ABAP object from workflow container to task container
This solved the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
WIOBJECT_ID is free in task container but nevertheless I cannot bind my ABAP OO object to it as I get the same error message "The object categories 'CL' (source) and 'BO' (target) are not compatible". My object has instance method which displays it and which is called from method BI_OBJECT~EXECUTE_DEFAULT_METHOD which causes it to be default in my opinion.
I'm trying bind them in SWDD - statically, not by any coding.
Is creating BOR object the only possible solution to "Display order" attachment problem? Couldn't it be done without BOR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may have to instantiate the BUS2032 object before binding it to AdhocObject, as its default method is <i>Display</i> it will serve your purpose unless of course if you can bind your OO object to WIOBJECT_ID if it is free. You need WIOBJECT_ID for instance methods but not static ones.
Let us know how you go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
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.