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

Former Member
0 Likes
448

Hi

Can any one tel abt my requirement

i have a i/p field if give 1 in that one push button should be displayed and if i give 2 two push buttons should be displayed and if 3 three push buttons should be displayed

can any one help me.

Thread will be locked in future, if you don't use proper subject.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
431

Declare three push buttons on the screen.

Based on entered value you can display or hide them

LOOP AT SCREEN.

IF SCREEN-NAME = 'BUT1'.

SCREEN-INVISIBLE = 1.

SCREEN-ACTIVE = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

3 REPLIES 3
Read only

Former Member
0 Likes
432

Declare three push buttons on the screen.

Based on entered value you can display or hide them

LOOP AT SCREEN.

IF SCREEN-NAME = 'BUT1'.

SCREEN-INVISIBLE = 1.

SCREEN-ACTIVE = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Read only

Former Member
0 Likes
431

Hi,

In the PBO write the code...


LOOP AT SCREEN.
   CASE SCREEN-NAME.
      WHEN <BUTTON1>.
         IF VAL = 1 OR VAL = 2 OR VAL = 3.
            SCREEN-ACTIVE = 1.
         ELSE.
            SCREEN-ACTIVE = 0.
         ENDIF.
      WHEN <BUTTON1>.
         IF VAL = 1 OR VAL = 2 .
            SCREEN-ACTIVE = 1.
         ELSE.
            SCREEN-ACTIVE = 0.
         ENDIF.
      WHEN <BUTTON1>.
         IF VAL = 1.
            SCREEN-ACTIVE = 1.
         ELSE.
            SCREEN-ACTIVE = 0.
         ENDIF.
   ENDCASE.
ENDLOOP.

Read only

Former Member
0 Likes
431

Hi,

Create screen with 3 push buttons.

At PBO event, call a module in which use LOOP AT SCREEN

to control how many push buttons to be displayed.

Regards,

Vishal