Application Development 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: 

Diabling a field in the screen

Former Member
0 Kudos

Hi Friends,

I am developing a screen in SE51 (Screen Paiter). My requirement is that, on opending the screen, a particular field (Eg. Plant Field) should be in disabled mode. But, on entering some value in the other field (Eg. Company Code field), the disabled field should become enabled.

Kindly guide me as to how to do this.

TIA.

Regards,

Mark K

3 REPLIES 3

Former Member
0 Kudos

hi mark

put the fields in CHAIN ..................END CHAIN

IN A PARTICULAR WAY... CREATE A MODULE WITH IN THE CHAIN ........ENDCHAIN FOR VALIDATION OF THE PARTICULAR FIELD.........................

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Hi mark, try the following sample codig.

write the coding in PBO.

loop at screen.

if screen-name = 'comment_field'. "==> ur comment field.

screen-input = 0.

endif.

if screen-name = 'company_code' and company_code is not initial. "==> company *code field

screen-output = 1.

endif.

modify screen.

endloop.

Goodregards,

vallamuthu.M

Former Member
0 Kudos

HI,

TRY LIKE THIS,

PARAMETERS: P1(10) TYPE C,

P2(13) TYPE C.

IN PBO MODULE.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

IN PAI MODULE

AT SELECTION-SCREEN .

IF P1 IS NOT INITIAL AND .

LOOP AT SCREEN.

IF SCREEN-NAME = P2

SCREEN-INPUT = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

.

IF HELPFUL REWARD SOME POINTS.

WITH REGARDS,

SURESH ALURI.