‎2013 Oct 22 10:59 AM
Hi Gurus,
In my requirement I have 15 fields on screen and there are three levels.These fields are under screen enhancement.
For first level - 4 fields should be input enabled rest all in display mode
For second level - 5 fields should be input enabled rest all in display mode
For third level - 6 fields should be input enabled rest all in display mode
How to achieve this?
Regards,
Abhinav
‎2013 Oct 22 11:08 AM
Have you tried to use the field groups. A field can belong up to 4 groups.
In our PBO, have a control on your group based on level to put the fields in either input or output mode
‎2013 Oct 22 11:08 AM
Hi Abhinav,
what is mean by levels?..anyway i think , i think in the PBO of the screen
depending on the levels, you should loop the screen and may have to change SCREEN-INPUT = 0/1 based on SCREEN-NAME
‎2013 Oct 22 11:12 AM
hi abhinav,
could you please tell us how will you classify the levels in the screen (is there any specific logic).
if you were able to classify then you can change the attributes of the field using the below logic
loop at screen.
if screen-name = 'FIELD1'.
change screen attribute.
endif.
modify screen.
endloop.
for the list of screen attributes refer strucure "SCREEN" in SE12..
‎2013 Oct 22 11:21 AM
Hi Abhinav,
Created the Groups for ever field level - 4 fields in one group and level -5 fields in different group.
and in PBO event write the below sample logic.
LOOP AT SCREEN.
IF LEVEL IS 4 THEN.
CHECK SCREEN-GROUP1 = 'LEV4'.
SCREEN-OUTPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Try with this sample logic.
Regards,
Rajesh