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

Validate user for ztable access

Former Member
0 Likes
867

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

7 REPLIES 7
Read only

Former Member
0 Likes
831

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.

Read only

0 Likes
831

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....

Read only

0 Likes
831

Use this FM - AUTHORITY_CHECK

Regards,

Amit

Reward all helpful reply

Read only

Former Member
0 Likes
831

Select the data from Table USR04 Table do the validation

Read only

0 Likes
831

Can you please explain what i need to check from this table

I need to check if user is in authorization group for ztable.

Read only

0 Likes
831

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

Read only

0 Likes
831

also check the usr07 table