Skip to Content
author's profile photo Former Member
Former Member

Custom method not returning value on execution of workflow task

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 16, 2012 at 04:15 PM

    is the binding between task container and workflow container correct?

    is the newest version active?

    is the variable defined correctly in the task step?

    regards,

    m.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 19, 2012 at 01:28 AM

    Hi,

    Did you manage to get it working, or do you need some more advice?

    cheers

    Paul

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.