cancel
Showing results for 
Search instead for 
Did you mean: 

BOR Object Method Result ' ' not transferred

D054632
Product and Topic Expert
Product and Topic Expert
0 Kudos
597

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

View Entire Topic
former_member185167
Active Contributor
0 Kudos

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

D054632
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

former_member185167
Active Contributor
0 Kudos

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

D054632
Product and Topic Expert
Product and Topic Expert
0 Kudos

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