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

Table Maintenance - field based authorization.

Former Member
0 Likes
660

Hi,

I have created a ztable and generated a table maintenance for the same.

There are a few fields that have to be input enabled or disabled, based on authorization objects; some users should be able to enter values and some, not.

Need some direction, kindly advise.

Thanks,

Sheldon

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
624

Hi Sheldon,

You can achieve the above mentioned functionality by checking the AUTHORIZATION assigned to the user. You have to check the AUTH OBJECT in the PBO Module and then you have to make the Screen Fields Input enable or disabled.

But, in the generated screens, you have to do your own module pool programming and you have to do the same in your own set of INCLUDE Programs. The INCLUDE Programs generated by the TMG as READ ONLY and hence you cannot modify them. Also, make sure that you take a complete backup of your code as any change and modification will lead to regeneration of the screens and hence will delete all the user code.

Hope this helps.

Thanks,

Samantak.

4 REPLIES 4
Read only

Former Member
0 Likes
624

Hi,

This can be achived you need to check authorization on the object in the PBO and then you can make a field active or inactive based on this.

You have to do this when you loop on screen.

Hope you get it.

Read only

Former Member
0 Likes
625

Hi Sheldon,

You can achieve the above mentioned functionality by checking the AUTHORIZATION assigned to the user. You have to check the AUTH OBJECT in the PBO Module and then you have to make the Screen Fields Input enable or disabled.

But, in the generated screens, you have to do your own module pool programming and you have to do the same in your own set of INCLUDE Programs. The INCLUDE Programs generated by the TMG as READ ONLY and hence you cannot modify them. Also, make sure that you take a complete backup of your code as any change and modification will lead to regeneration of the screens and hence will delete all the user code.

Hope this helps.

Thanks,

Samantak.

Read only

0 Likes
624

Thanks Samantak, Harsh and Saifur for your help, it works perfectly !!!

Read only

Former Member
0 Likes
624