2005 Mar 04 7:37 AM
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.
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.
2005 Mar 04 7:44 AM
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
2005 Mar 04 7:49 AM
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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |