Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

workflow

Former Member
0 Likes
315

In work flow how to provide substitution when approval person (ex:manager ) is not present ? please tell me path to set substitution?*

1 REPLY 1
Read only

b_deterd2
Active Contributor
0 Likes
283

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.