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

SCREEN VALIDATIONS

Former Member
0 Likes
334

HI ALL,

iam facing a problem in screen painter(se51).i want to know how to deactivate a field for particular validation.i will tell u the exact problem.i should check whether the employee experience is greater than 5 years.if it is lesser than 5 years then one of the field present in my screen should be deactivated(non-editable).how to do this.can anyone help on this.

thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
309

In the PBO of this screen, loop on the SCREEN table, and set the property of the particular field to input-only (if the condition is true).

In abap editor do an F1 on keyword 'SCREEN' and read the help, it talks about setting the screen field properties dynamically.

cheers,

Ajay

Read only

athavanraja
Active Contributor
0 Likes
309

In your PBO based on the condition set the screen field attribute like below.

loop at screen .

if screen-name = <screen field name> .

screen-input = '0'. (0-no input allowed,1-input allowed)

modify screen.

endif.

endloop.

For more info look at ABAP key word documentation for loop at screen,

Regards

Raja