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: 

Using ABAP instrution to change screen field properties

Former Member
0 Kudos

Hi,

I've a screen (SE51) and i need to change field properties using an ABAP instrution.

I need to do this... if variable LV_NDEP_IN is not initial, user can't change field content.

I've tried this...

IF lv_ndep_in IS INITIAL.

SET CURSOR FIELD 'LV_NDEP_IN'.

ELSEIF lv_ndep_in IS NOT INITIAL.

screen-input = ' '.

MODIFY SCREEN.

ENDIF.

but doesn't work.

Can somebody help me ?

Thanks,

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

You should have searched in SDN before posting.

This has been discussed many times.

3 REPLIES 3

Sandeep_Kumar
Advisor
Advisor
0 Kudos

try this:

loop at screen.

screen-name = ''.

if.

endif.

modify screen.

endloop.

kesavadas_thekkillath
Active Contributor
0 Kudos

You should have searched in SDN before posting.

This has been discussed many times.

Former Member
0 Kudos

Moderator message - Please do not ask or answer basic questions Points unassigned and thread locked Rob