Application Development and Automation 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: 
Read only

Module pool Screen fields input at different level

Former Member
0 Likes
606

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

4 REPLIES 4
Read only

Former Member
0 Likes
572

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

Read only

Former Member
0 Likes
572

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

Read only

Former Member
0 Likes
572

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..

Read only

former_member188282
Active Participant
0 Likes
572

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