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.