Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
AR_Mass Role Deletion

AR_Mass Role Deletion

Ratings:

4.5

(2)
|Views: 418 |Likes:
Published by api-26828082

More info:

Published by: api-26828082 on Oct 19, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

Mass Role deletion
Method 1:

New Report for mass deletion of Roles in system as
no standard Transaction or program available for
mass deletion of roles.
This report will be very useful to delete unwanted
old Roles or test Roles thus helping in time saving
as by using TACPFCG we can delete one Role at a
time only.

TAC: SE38
Please create new report using SE38 with name\u201dZ_DEL_AGR\u201d with following
Code and create and activate the new report.

REPORT Z_DEL_AGR .
*--------------------------------------------------------------*
* Version valid from 4.5b - 7.00

*
*--------------------------------------------------------------*
TABLES : AGR_DEFINE.
DATA: BEGIN OF ACTTAB OCCURS 0,

AGR_NAME LIKE AGR_DEFINE-AGR_NAME,
END OF ACTTAB.
SELECT-OPTIONS ACTGRP FOR AGR_DEFINE-AGR_NAME.
PARAMETERS: TEST(1) DEFAULT 'X'.
* F4 Hilfe f\u00fcr die Aktivit\u00e4sgruppe

AT SELECTION-SCREEN ON VALUE-REQUEST FOR ACTGRP-LOW.
DATA: SELECTED_VALUE LIKE AGR_DEFINE-AGR_NAME.
CALL FUNCTION 'PRGN_ACTIVITY_GROUPS_F4_HELP'

IMPORTING
SELECTED_VALUE
= SELECTED_VALUE

EXCEPTIONS
NO_ACTIVITY_GROUP_SELECTED = 1
OTHERS

= 2.
IF SY-SUBRC = 0.
ACTGRP-LOW = SELECTED_VALUE.
ENDIF.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR ACTGRP-HIGH.
DATA: SELECTED_VALUE LIKE AGR_DEFINE-AGR_NAME.
CALL FUNCTION 'PRGN_ACTIVITY_GROUPS_F4_HELP'

IMPORTING
SELECTED_VALUE
= SELECTED_VALUE

EXCEPTIONS
NO_ACTIVITY_GROUP_SELECTED = 1
OTHERS

= 2.
IF SY-SUBRC = 0.
ACTGRP-HIGH = SELECTED_VALUE.
ENDIF.
START-OF-SELECTION.

SELECT AGR_NAME FROM AGR_DEFINE
INTO CORRESPONDING FIELDS OF TABLE ACTTAB
WHERE AGR_NAME IN ACTGRP.

LOOP AT ACTTAB.
CALL FUNCTION 'PRGN_AUTH_ACTIVITY_GROUP'
EXPORTING
ACTIVITY_GROUP
= ACTTAB-AGR_NAME
ACTION_DELETE
= 'X'
*
MESSAGE_OUTPUT
= 'X'
EXCEPTIONS
NOT_AUTHORIZED
= 1
OTHERS
= 2.
IF SY-SUBRC EQ 0.

IF TEST EQ SPACE.
WRITE : / 'Delete : ', ACTTAB.
CALL FUNCTION 'PRGN_ACTIVITY_GROUP_DELETE'

EXPORTING
ACTIVITY_GROUP
= ACTTAB-AGR_NAME
show_dialog
= ' '
ENQUEUE_AND_TRANSPORT
= 'X'
EXCEPTIONS
NOT_AUTHORIZED
= 1
TRANSPORT_CHECK_PROBLEM

= 2 TRANSPORT_CANCELED_OR_PROBLEM = 3 ONE_OR_MORE_USERS_ENQUEUED

= 4
FOREIGN_LOCK
= 5
USER_CANCELS_ACTION
= 6
OTHERS
= 7.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
WRITE : / 'Test Delete : ', ACTTAB.
ENDIF.
ELSE.
WRITE : / 'Missing authorization for :', ACTTAB-AGR_NAME.
ENDIF.
ENDLOOP.
After Execution of Report \u201c
Please add the list of Roles and execute the report
All the role will get deleted in the System.

Activity (3)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
dnraod liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->