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

Dialog Programming

Former Member
0 Likes
910

Hi Friends

I have to enable or disable (a user can enter value or not) Input/Output field at runtime in the PAI block who can i do this.

Regards

Pulkit Agrawal

1 ACCEPTED SOLUTION
Read only

Former Member
8 REPLIES 8
Read only

Former Member
Read only

0 Likes
876

Hi Ravi Kanth Talagana

Can we use it in our PAI module

Loop at screen.

Endloop.

Regards

Pulkit Agrawal

Read only

Former Member
0 Likes
876

Hi

Check out this program. In this program all dynamic modifications related to screen are there.

DEMO_DYNPRO_MODIFY_SCREEN

Regards

Haritha

Read only

Former Member
0 Likes
876

If condition eq <Some condition>.

loop at screen.

if screen-name = 'XYZ'.

screen-input = '0'.

endif.

modify screen.

endloop.

else.

loop at screen.

if screen-name = 'XYZ'.

screen-input = '1'.

endif.

modify screen.

endloop.

endif.

Read only

Former Member
0 Likes
876

hi,

Set a flag in the PAI event, after the user enters any value....subsequently in the PBO,

if flag = 'X'.

if screen-name = 'XXXXX'

loop at screen.

........

......

endloop.

Reward if helpful

Read only

Former Member
0 Likes
876

Hi,

use below logic

chain.

field itab-matnr

module validate.

endchain.

module validate.

if itab-matnr is initial.

mesage e000...

endif.

input filed will be disabled when value is initial.

Regards

Amole

Read only

Former Member
0 Likes
876

hi,

You have to do screenmodifications in PBO only.

In reports, we do selection screen modifications in at selection-screen output, similarly in dialog programming, we do in PBO.

You can set a flag variable in PAI.

Based on the flag variable, do screen modifications in PBO.

Regards,

Sailaja.

Read only

Former Member
0 Likes
876

Hello,

In the PAI event,

LOOP AT SCREEN.

IF SCREEN-NAME EQ 'XXX'.

SCREEN-INPUT = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Regs,

Venkat Ramanan N