Quantcast
Channel: SCN : Discussion List - SAP Business Workflow
Viewing all articles
Browse latest Browse all 1026

New feature: ABAP OO-Workflow Task with fixed domain values

$
0
0

Dear friends,

 

with BOR methods, you could specifiy a method with a "Returning" parameter. If that was related to a Data element --> Domain --> with fixed values, the Workflow Builder created you separate outcomes for each of the values.

If you like that design ... or not (... Hi Mike :-) ) ... this feature wasn't provided with the ABAP Objects Workflow, so you had to store the result into a separate container element with a CASE-step right afterwards.

 

So... this has change now, how I've just found out. At least with SAPKB 702 SP 17...

this has become available, and it just works nicely.

 

What you need:

- Create a functional method

- I just gave a simple name for the parameter, e.g. RV_<method_name> ... now fancy stuff like a definition of _WI_RESULT is required and I would recommend not to use such a returning name.

- Refer the data element to a domain with fixed values

- Create a task, based on that based

- You do NOT need to make anything special about the binding task<->method

- When you enter that task in the Workflow builder it will generate you the appropriate outcomes

 

Don't forget to check that the returning element is ALWAYS filled with (at least) a default value, otherwise you receive message SWP 009 (Error in CASE / outcome of a step) and the Workflow runs into an unrecoverable error.

 

Cheers

   Florin

 

That entry is not really worth a blog, but if you like it, feel free to "like" it, too :-)


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>