Skip to Content
0
Former Member
Jan 16, 2012 at 03:40 PM

Custom method not returning value on execution of workflow task

58 Views

Hi All,

Following is the code in method of custom bo.

When i instantiate and debug, i get value in ESMTPADDR.

CALL FUNCTION 'ZFI_VEN_EMAIL'

EXPORTING

I_USMD_CREQ_TYPE = IUSMDCREQTYPE

I_USMD_CREQ_STEP = IUSMDCREQSTEP

IMPORTING

E_SMTP_ADDR = ESMTPADDR

EXCEPTIONS

OTHERS = 01.

CASE SY-SUBRC.

WHEN 0. " OK

WHEN OTHERS. " to be implemented

ENDCASE.

SWC_SET_ELEMENT CONTAINER 'ESmtpAddr' ESMTPADDR.

But task execution through workflow doesnt return ESMTPADDR.

Kindly guide.