‎2008 Apr 06 5:45 PM
In work flow how to provide substitution when approval person (ex:manager ) is not present ? please tell me path to set substitution?*
‎2008 Apr 06 7:50 PM
The person self can set a substitution. There is no function for a WF-administrator. You will have to make a small ABAP which calls function module RH_SUBSTITUTES_LIST (maintenance flag = X).
Tip: you can call this FM also directly in SE37 ofcourse.
CALL FUNCTION 'RH_SUBSTITUTES_LIST'
EXPORTING
US_TYPE = 'US'
US_ID = userid
ACT_PLVAR = '01'
ACT_BEGDA = SY-DATUM
ACT_ENDDA = '99991231'
MAINTAINANCE_FLAG = 'X'
ACT_MODE = 'A'
EXCEPTIONS
NO_ACTIVE_WF_PLVAR = 1
OTYPE_NOT_VALID = 2
OBJECT_NOT_VALID = 3
OTHERS = 4
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.