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

ABOUT PUSH BUTTON IN DIALOG SCREEN

Former Member
0 Likes
1,598

Dear experts:

This a dialog screen,there are two pushbuttons in it.The name as:but1,but2.

What I need is ,when I press but1,but2 must be not active or no usable.

How it can come true?

Thanks all.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,106

Hi,

Use the following logic.

DATA : GV_FLAG(1).

In PBO,

IF GV_FLAG = 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'BUT2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

CLEAR GV_FLAG.

ENDIF.

In PAI

CASE SY-UCOMM.

WHEN 'BUT1'.

GV_FLAG = 'X'.

WHEN 'BUT2'.

CLEAR GV_FLAG.

ENDCASE.

Thanks,

Jyothi

Dear experts:

This a dialog screen,there are two pushbuttons in it.The name as:but1,but2.

What I need is ,when I press but1,but2 must be not active or no usable.

How it can come true?

Thanks all.

6 REPLIES 6
Read only

Former Member
0 Likes
1,106

Hi,

Write the code in PBO where you check for the but1 and is selected then deactivate the but2.

Thanks,

Phani Diwakar.

Read only

0 Likes
1,106

Thanks for your answer,I have done it!

Read only

Former Member
0 Likes
1,107

Hi,

Use the following logic.

DATA : GV_FLAG(1).

In PBO,

IF GV_FLAG = 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'BUT2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

CLEAR GV_FLAG.

ENDIF.

In PAI

CASE SY-UCOMM.

WHEN 'BUT1'.

GV_FLAG = 'X'.

WHEN 'BUT2'.

CLEAR GV_FLAG.

ENDCASE.

Thanks,

Jyothi

Read only

0 Likes
1,106

Dear Jyothirmai :

Thanks a lot,I have done it.

Read only

Former Member
0 Likes
1,106

this is easy to do,but my question is: if you press button1, button2 is not active, then you want to press button2(button2 is not active, it can not press), can you do this?????

Read only

0 Likes
1,106

yeah,I can use this code,does it come true?

DATA : GV_FLAG(1).

In PBO,

IF GV_FLAG = 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'BUT2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

CLEAR GV_FLAG.

ENDIF.

In PAI

CASE SY-UCOMM.

WHEN 'BUT2'.

GV_FLAG = 'X'.