2009 Aug 31 8:16 AM
Hello experts,
I am to develop the Release strategy type configuration for VA01 tcode ( SD). For which i have added fields in table vbak. These are checkboxes (the ones that i have added in the Table VBAK). So in the layout have not assigned any function code for them .I have created 2 authorization objects and asigned users to them creating roles in PFCG.everything related to my code is going fine. But i am getting a Standard Error when i tick on the checkbox . Message class V0 and Msg No. 104.This is my code Please help me out.
IF sy-tcode = 'VA02'.
BREAK-POINT.
if vbak-zzchk1 = 'X'.
AUTHORITY-CHECK OBJECT 'ZOBJ1' ID 'ACTVT' FIELD '39'.
AUTHORITY-CHECK OBJECT 'ZLEVEL1' ID 'ACTVT' FIELD '39'.
IF SY-SUBRC <> 0.
MESSAGE 'You Are Not Authorized To Use This Transaction' TYPE 'E'.
MESSAGE E999(ZM) WITH 'You Are Not Authorized To Use This Transaction'.
clear vbak-zzchk11.
vbak-zzchk11 = 'Level 1 - Approved'.
else.
clear vbak-zzchk11.
vbak-zzchk11 = 'Level 1 - Approved'.
MESSAGE 'Successful' TYPE 'I'.
ENDIF.
ENDIF.
*BREAK-POINT.
IF VBAK-zzchk2 = 'X'.
if vbak-zzchk11 <> 'Level 1 - Approved'.
clear vbak-zzchk2.
MESSAGE 'Level 1 Should be approved first' TYPE 'S'.
endif.
AUTHORITY-CHECK OBJECT 'ZOBJ2' ID 'ACTVT' FIELD '39'.
IF SY-SUBRC <> 0.
MESSAGE 'You Are Not Authorized To Use This Transaction' TYPE 'E'.
ELSE.
clear vbak-zzchk22.
vbak-zzchk22 = 'Level 2 - Approved'.
MESSAGE 'Successful' TYPE 'I'.
ENDIF.
ENDIF.
ENDIF.
2009 Aug 31 8:25 AM
Hi,
I feel that you will have to make an entry for your checkboxes in one or few of the tables mentioned below:
T185
T185D
T185E
T185F
T185T
T185V
T185W
KR Jaideep,
Hello experts,
I am to develop the Release strategy type configuration for VA01 tcode ( SD). For which i have added fields in table vbak. These are checkboxes (the ones that i have added in the Table VBAK). So in the layout have not assigned any function code for them .I have created 2 authorization objects and asigned users to them creating roles in PFCG.everything related to my code is going fine. But i am getting a Standard Error when i tick on the checkbox . Message class V0 and Msg No. 104.This is my code Please help me out.
IF sy-tcode = 'VA02'.
BREAK-POINT.
if vbak-zzchk1 = 'X'.
AUTHORITY-CHECK OBJECT 'ZOBJ1' ID 'ACTVT' FIELD '39'.
AUTHORITY-CHECK OBJECT 'ZLEVEL1' ID 'ACTVT' FIELD '39'.
IF SY-SUBRC <> 0.
MESSAGE 'You Are Not Authorized To Use This Transaction' TYPE 'E'.
MESSAGE E999(ZM) WITH 'You Are Not Authorized To Use This Transaction'.
clear vbak-zzchk11.
vbak-zzchk11 = 'Level 1 - Approved'.
else.
clear vbak-zzchk11.
vbak-zzchk11 = 'Level 1 - Approved'.
MESSAGE 'Successful' TYPE 'I'.
ENDIF.
ENDIF.
*BREAK-POINT.
IF VBAK-zzchk2 = 'X'.
if vbak-zzchk11 <> 'Level 1 - Approved'.
clear vbak-zzchk2.
MESSAGE 'Level 1 Should be approved first' TYPE 'S'.
endif.
AUTHORITY-CHECK OBJECT 'ZOBJ2' ID 'ACTVT' FIELD '39'.
IF SY-SUBRC <> 0.
MESSAGE 'You Are Not Authorized To Use This Transaction' TYPE 'E'.
ELSE.
clear vbak-zzchk22.
vbak-zzchk22 = 'Level 2 - Approved'.
MESSAGE 'Successful' TYPE 'I'.
ENDIF.
ENDIF.
ENDIF.
2009 Aug 31 8:25 AM
Hi,
I feel that you will have to make an entry for your checkboxes in one or few of the tables mentioned below:
T185
T185D
T185E
T185F
T185T
T185V
T185W
KR Jaideep,
2009 Aug 31 9:39 AM
Hi Jaideep,
Thanks for your Suggetion but can you please tell me why and how can i make these entries. I mean how will i identify the relevant table. These checkboxes are included in my table VBAK in the form of an append structure.
2009 Aug 31 10:01 AM
Hi Jaideep,
Thanks for your Suggestion . But can u please tell me how can i search the relevant tables into which i am to insert values (FCTcodes) for my checkboxes. In my Vbak table these checkboxes are appended by using a z append structure
2009 Aug 31 10:05 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |