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: 

Modify screen in VA41 : How to hide field in userexit_field_modification

Former Member
0 Kudos
243

Hello,

How to hide field at item level only (User should not be able to edit this field) in userexit_field_modification, instead of hiding the complete column.

If I use

FORM USEREXIT_FIELD_MODIFICATION.

IF screen-name = 'RV45A-MABNR'. " Material

SCREEN-required = 0.

ENDIF.

ENDFORM

the complete material column will be greyed out. I want to grey out only for some items.

Thanks,

AP

1 ACCEPTED SOLUTION

former_member320332
Contributor
0 Kudos
130

Hi AP,

You havent given MODIFY SCREEN after screen-required = 0.

Please try it abd check.

FORM USEREXIT_FIELD_MODIFICATION.
IF screen-name = 'RV45A-MABNR'. " Material
SCREEN-required = 0.
MODIFY SCREEN.
ENDIF.
ENDFORM

Regards,

Pawan

3 REPLIES 3

former_member195402
Active Contributor
0 Kudos
130

Hi,

I think this is not possible in this userexit.

USEREXIT_FIELD_MODIFICATION is called from PBO module FELDAUSWAHL at PBO of several screens, but you can not change field attributes for specified items, but only for the whole screen.

Regards,

Klaus

0 Kudos
130

Is there anyother user exit I can use?

Thanks,

AP

former_member320332
Contributor
0 Kudos
131

Hi AP,

You havent given MODIFY SCREEN after screen-required = 0.

Please try it abd check.

FORM USEREXIT_FIELD_MODIFICATION.
IF screen-name = 'RV45A-MABNR'. " Material
SCREEN-required = 0.
MODIFY SCREEN.
ENDIF.
ENDFORM

Regards,

Pawan