on 2011 Dec 07 8:41 AM
Dear colleagues.
I have a BOR object method (see transaction SWO1) with a
result parameter. This result parameter can have the values 'X'
(true) and ' ' (false) (these are the fix values of the corresponding
DDIC domain). In a workflow I have a step calling a
task, and that task is calling my BOR object method. The tab
"Outcomes" of my step is showing correctly two outcomes for ' ' and
'X'. However, if my BOR object method finishes with result ' ',
this is not transfered to the workflow step unfortunately. I suppose
that the workflow logic interprets ' ' as "nothing" and concludes
that there is no result to transfer at all.
Is there any possibility to transfer ' ' as result?
Best regards,
Holger Merkel
Hello,
Just test the result for X. X=true, the rest is false. So it doesn't matter what it gets set to.
regards
Rick Bakker
hanabi tehnology
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear S.Suresh and Rick Bakker.
Thank you for your answers.
Of course I could dump result values such 'X' and ' ' (for "True" and
"False") and choose something like 'Y' and 'N' (for "Yes" and "No")
instead of it. But I have many workflow steps in my application
having this problem and I want to avoid doing so many changes.
It's a problem that result ' ' is not transferred, because my
workflow steps do not only have outomes for 'X' and ' '; they also
have an additional outcome "Condition for 'Complete Work Item' is
true", because I have entered a condition at sub-tab "Complete Work
Item" of tab "Conditions" at all of my workflow steps. And if element
WIRESULT gets the wrong value "< Not Set >" instead of the right
value ' ', the workflow chooses this additional outcome. I Think it
chooses it because the outcomes for 'X' and ' ' don't match. (The
mentioned condition is false - as I have already checked.)
Best regards,
Holger Merkel
Hello,
"This result parameter can have the values 'X' (true) and ' ' (false)"
This is a boolean. It is either true or false. You know it's true when it's X, otherwise it is false.
Don't go testing for any other values. If you do, it's not a boolean.
The difference between '' and ' ' and NULL is problematic in many systems and languages so it should be avoided.
It's a pity if you have to change things but it sounds like they have been programmed incorrectly.
Wouldn't you rather have something that is guaranteed to work all the time instead of possibly breaking at the next upgrade?
regards
Rick Bakker
hanabi technology
Thank you.
The third outcome was inserted by the system automatically.
However, I have found out, that the problem's reason is the release
ERP 6.0 SAPKGPAD15 of my system. I have tested the same issue in
an EnhPack 6 system (system EE6.001, Workflow Pattern WS76200020).
But there the result value ' ' was transferred correctly and
everything works fine.
Best regards,
Holger Merkel
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.