Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ABOUT PUSH BUTTON IN DIALOG SCREEN

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.

Tags:
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question