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
596

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

Accepted Solutions (0)

Answers (2)

Answers (2)

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

suresh_subramanian2
Active Contributor
0 Kudos

Hello !

Whether the workflow interprets provided the method returns 'X' ? You can check this in workflow log.

If so, it would interpret ' ' too.If it is not interpreting 'X', check the binding from task container to workflow container for populating 'X' or ' '.

I suggest you to make changes in the method such that it returns Z or Y instead of ' '.

Regards,

S.Suresh.

D054632
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear S.Suresh.

Thank you very much for your answer.

I have tested my workflow with result 'X'. But this result 'X'

was transferred successfully, as I saw in the workflow log:

I took a look to the task container in the technical work item

display (after the task's execution), and there I could see that

elements WIRESULT and _RESULT got the value 'X', as expected. And

the workflow step took the right outcome for value 'X' as well.

However, if my method finishes with result ' ', the

elements WIRESULT and _RESULT do not have any value - the task

container display shows to me "< Not Set >" instead of a value. And I

suppose that this is the cause of my problem. The workflow step then

does not choose the outcome for ' ' but some other default outcome.

Did you ever had similar problems?

Best regards,

Holger Merkel

suresh_subramanian2
Active Contributor
0 Kudos

Hello Holger Merkel !

If your method returns ' ', the workflow log would show "< Not Set >" only.

So, please change your method to return either 'Z' or 'Y' instead of ' '.

Regards,

S.Suresh.