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

Module Pool Showing Push Button based on T-Code

Former Member
0 Likes
678

Hi Expert,

I have created Module Pool Program, I am having 7 Push Button  on Layout Screen, and i created T-Code for that Program, 2 T-Code, 1 for Admin, 1 for User.

My requirement  is  based on T-Code i have to show Push Button.

IF Admin  all  7 Push Button have to show.

IF User  only 2 Push Button  have to show.

can anybody help me on my this problem.  

Thanks in Advance.

Suresh

Moderator message : Not enough re-search before posting, discussion locked.

Message was edited by: Vinod Kumar

5 REPLIES 5
Read only

bharat_rathod2
Active Participant
0 Likes
631

Dear,

Please make MODULE Initialization in PBO and put your logic on that.

Read only

Former Member
0 Likes
631

Hi

in PBO based on the user write the if condition display the push buttons, for which you have to do grouping. group push buttons. call the push buttons based on the group and based on if condition of user and it will work for you.

Read only

chundru_ravindra
Participant
0 Likes
631

Hi Suresh,

In PBO Module,  use the following logic

IF  YOUR CONDITION." Check against login user

   LOOP AT SCREEN.    

     IF SCREEN-NAME = 'ur button name'.

       SCREEN-ACTIVE = 0.

       SCREEN-INVISIBLE = 1.

       MODIFY SCREEN.

     ENDIF.

   ENDLOOP.

ENDIF.

Regards,

Ravindra.

Read only

0 Likes
631

Hi

you can use the code given by chandru, i think grouping is needed to display multiple push buttons, check once.

Read only

0 Likes
631

Hi

you can use the code given by chandru, i think grouping is needed to display multiple push buttons, check once.