‎2007 May 17 5:57 AM
Hi,
I have a program to upload data to ztable from excel.
In my selection screen, i need to validate if the user is authorized for ztable maintennace.
Please send me some code, if any one has.
Thanks in advance
‎2007 May 17 6:01 AM
Hi
The following actions are subject to authorization checks that are performed before the start of a program or table maintenance and which the SAP applications cannot avoid:
Table maintenance with generic tools (S_TABU_DIS)
You can also assign authorization groups to tables to avoid users accessing tables using general access tools (such as transaction SE16). A user requires not only authorization to execute the tool, but must also have authorization to be permitted to access tables with the relevant group assignments. For this case, we deliver tables with predefined assignments to authorization groups. The assignments are defined in table TDDAT; the checked authorization object is S_TABU_DIS.
rgds
Deepak.
‎2007 May 17 2:36 PM
I have to validate the users, before i run the upload program.
Please send me some code to check if the user is valid user inside the authorization group of that table
i need some checking like this
select username from table in authorization group....
‎2007 May 17 2:42 PM
Use this FM - AUTHORITY_CHECK
Regards,
Amit
Reward all helpful reply
‎2007 May 17 2:44 PM
‎2007 May 17 6:23 PM
Can you please explain what i need to check from this table
I need to check if user is in authorization group for ztable.
‎2007 May 17 6:43 PM
select * from usr04 into usr04
where bname = sy-uname
and PROFS = 'Profle'.
if sy-subrc ne 0.
message 'no authrization'
endif.
Reward Points if it is helpful
Thanks
Seshu
‎2007 May 17 7:11 PM