Skip to Content
0
Former Member
Oct 15, 2009 at 09:24 AM

Enhancement of BUS200115 with Z-Method

15 Views

Hi WF-experts,

next problem i have to deal with:

I have a approval workflow. I enhanced the bus object 2000115 and made an subtype with a custom specific method. This method 1. calls a function module (which determines who is authorized for approval -> returns 1, 2, 3 or 4).

I have a workflow container KOMPETENZ; a method container KOMP and within the method the container is also KOMPETENZ. The method itself works fine and give me the right results (1, 2, 3 or 4 it depends on the price in the document).

BUT i dont get any result within my workflow... so it is not possible to do the next step which is a Condition and refers to the outcome (1,2,3 or 4) and goes to the next steps.

How do I receive the result from my method in the right container to work with it further in the workflow????

Thanks for help and best regards

Edited by: Natali Rubino on Oct 15, 2009 11:24 AM

My method call:

BEGIN_METHOD XXX CHANGING CONTAINER.

DATA:

KOMPETENZ type INT4,

lv_order_guid type CRMT_OBJECT_GUID.

SWC_GET_ELEMENT CONTAINER 'Kompetenz' KOMPETENZ.

*SET ORDER GUID

LV_ORDER_GUID = OBJECT-KEY-BUSINESSPROCESS.

*DETERMINE APPROVER WITH FUNCTION MODULE

CALL FUNCTION 'Z_GETCOMPETENCE'

EXPORTING

IV_OBJECT_GUID = lv_order_guid

IMPORTING

EV_EBENE = KOMPETENZ.

*SET CONTAINER

SWC_SET_ELEMENT CONTAINER 'Kompetenz' KOMPETENZ.

END_METHOD.