My custom workflow is 90000007 ZPR_POAPROVL
Based on certain condition it is calling 2 subworkflows.
Condition 1 = TRUE:
Calling custom sub workflow is 90000008
(Copy of WS14000075)
Condition 1 = FALSE AND FLAG_CALL = X:
Calling custom sub workflow is 90000009
Copy of WS14000089)
All workflows are using the same BO(business object).
About FLAG_CALL
-
-
For FLAG_CALL, I need to check in certain SAP table and this information
is not available either by any method or attribute of the BO.
My approach 1
Created a copy (not subtype!) of the BO. Added a new method ZSET_FLAG_CALL (with export parameter FLAG_CALL) in the ZBO. The WS90000007 is now using ZBO.
Flaw:
But when I am trying to pass the ZBO to WS90000008 or WS90000009, I am getting a binding error as object mismatch. As WS90000008 and WS90000009 is modeled on BO and not ZBO. It is not possible for me to re-write the WS90000008 or WS90000009 using ZBO.
My approach 2
Create a subtype of BO as YBO. Delegate YBOs method ZSET_FLAG_CALL to the supertype that is BO. And then call it in
Flaw:
The document says to avaoid the Delegation.
Since I am new to workflow, its quite possible that I am getting it all wrong and both of my approaches are terrible. Please suggest.