Skip to Content
0
Former Member
May 20, 2010 at 02:30 AM

Binding to method with returning parameter not accepted

30 Views

Hi,

I am creating an ABAP class to get the agent information form workflow. Though the static method has a public returning value,

CLASS-METHODS get_instance_from_wfagent

IMPORTING

!im_wfagent TYPE swhactor

RETURNING

value(re_user) TYPE REF TO zcl_user .

this method returns the following error when used in binding :

Method '[CL,ZCL_USER,GET_INSTANCE_FROM_WFAGENT]' does not have any export parameters.

The only funny that I see is that when I create an element for this class in the workflow container, it automatically creates elements for the methods but does not set the import / export flags for these correctly - which I assume is the reason. Any idea how i can edit these to correct it.

Thanks

Andre