cancel
Showing results for 
Search instead for 
Did you mean: 

overwrite sec level in order to restart workflow especially in parked SC

Former Member
0 Kudos

Dear Friends

how can you achieve generally the following requirement.

Generally in our company all user have the security level BBP_WFL_SECURITY= 4 in the personalization tab of TXN

SU01.

How to achieve that workflow is always restarted when changes are made in parked SC. After this changes are

made the user will order this SC.

Anyhow it is not possible to overwrite security level BBP_WFL_SECURITY= 4 which is set in the personalization.

Because after clicking Order button the privously determined agents are displayed as Approver.

Regards

Marco

Accepted Solutions (0)

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

How about implementing BBP_WFL_SECURITY BADI?

Former Member
0 Kudos

Hi,

did you mean BBP_WFL_SECUR_BADI ???

if so, sorry I forget to post our

implementation in this BADI due to which we have tried to achieve this req.

Regards

Marco

Z_EBP_WFL_SECUR_BADI -


our implementation

IF i_e_header-created_by =  actual_user.

 SELECT * FROM sww_wi2obj INTO TABLE lt_sww_wi2obj WHERE
    instid = object_id
    AND typeid = 'BUS2121'.
 
 
    LOOP AT lt_sww_wi2obj INTO ls_sww_wi2obj.
      SELECT * FROM swwwihead INTO TABLE iswwwihead WHERE
        wi_id = ls_sww_wi2obj-wi_id AND
        wi_stat = 'WAITING'.
      IF sy-subrc = 0.
        new_sec_level = 2.
        EXIT.
      ENDIF.
    ENDLOOP.

ENDIF.