cancel
Showing results for 
Search instead for 
Did you mean: 

Result parameter using ABAP OO

morten_nielsen
Active Contributor
0 Kudos

Hi

I'm working in a workflow project, based on ABAP OO instead of BOR.

I have created an ABAP OO method "Handling required", with a returning parameter, based on a data element/domain with two values "Handling Required" and "Handling Not Required".

Now it would like to "convert" these values to a result parameter, using the "add returned element" in the task container. This gives me the element WIRESULT, but somehow it won’t give me the two outcomes that I need.

Any suggestions / help on this?

Regards

Morten Nielsen

Accepted Solutions (0)

Answers (1)

Answers (1)

pokrakam
Active Contributor
0 Kudos

Hi Morten,

See my comments on result parameters in .

In short: No joy, unless they've updated things in a recent SP. If it does become available, the logical place where one might find such a thing would involve declaring it as a returning parameter on a method.

Cheers,

Mike

morten_nielsen
Active Contributor
0 Kudos

Hi Mike

Thanks for your very quick reply (This is exactly why the SDN is the greatest invention since snote and the wheel ).

Normally I'll prefer to keep my workflows as slim as possible, i order to simplify the workflow support/administration task, that is I prefer resultparameters to additional condition steps. But I guess we all have our own preferred approach.

But if ABAP OO doesn't support result parameters for workflow, a container element and a condition step will do the trick

Anyway Thanks for your input

Regards

Morten Nielsen

pokrakam
Active Contributor
0 Kudos

I agree on the simplification principle, workflows should represent mostly business logic. But then again someone may come along and add a third state of "Unknown" to your domain without your knowledge and WF falls over due to unhandled outcomes. This happened more than once (granted, it was on larger sites with many developers).

Also, this is all just based on my own tests which may have failed due to a bug. If you're on NW04s it might be worthwhile asking OSS for an official response on whether it is supposed to work... (let us know if you do)

Cheers,

Mike

morten_nielsen
Active Contributor
0 Kudos

Hi Mike

Yeah I think I'll go through the official channels with this one - I'll post the answer here when they come back on the OSS

Regards

Morten