cancel
Showing results for 
Search instead for 
Did you mean: 

Forwarding mail through SWW_WI_FORWARD

Former Member
0 Kudos
140

Hi guys

i am trying to forward SAP mail through this function SWW_WI_FORWARD but i encounter a forwarding error=2

source codes below.  Can anyone be able to advise where goes wrong or what kind of authorisation required?

==================

source codes:=======

CALL FUNCTION 'SWW_WI_FORWARD'

EXPORTING

current_user = f_userid

wi_id = f_wild

do_commit= 'X'

preconditions_checked = 'X'

TABLES

new_agents = iuser

EXCEPTIONS

invalid_status=1

update_failed=2

invalid_type = 3

OTHERS=4

i also realised myid is captured in table SWWVEAGENT (excluded agents of work items), how can i get myid as agents of work items?

thank you.

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

JasonLax
Product and Topic Expert
Product and Topic Expert
0 Kudos

About SCN is for general SAP Community Network related discussions only.

To get a quick (or any) response, create your new discussion in a space related to your query.  This way it will be visible to topic experts who will then see and reply to it.  The SCN Site Index contains a full listing of all SCN spaces.

Where does this thread belong?