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

Dynamic changes in the module pool screen

Former Member
0 Likes
2,182

Hi Experts,

I am working on a custom module pool screen. In the initial screen user has to enter some intial values and when click on create button it has to show some other screen in that screen he will enter the data and create the record finally.

Now the problem is in the initial screen user can give 4 types of values suppose W, X, Y, Z are the 4 types.

If he selects W and click on create one screen will display with 10 fields

and if he selects X and press on create button the new screen will have 15 fields now.

if he selects Y and click on create button the next screen will have 13 fields now

and finally if he selects Z and press on create button the next screen will have 10 fields again.

in all the screens first 10 fields are common. the extra fields 5 and 3 for X and Y types i have to show dynamically based on the selection.

Please help me in this regards. If requirement is not clear please feel free to ask me.

Thanks

Naidu.

3 REPLIES 3
Read only

Former Member
0 Likes
1,087

Hi Naidu,

In the Second Screen first Create all 15 Fields.

in PBO of Second Screen.

module STATUS_100.

In Program

Module status_100.
case FIELD_VALUE.
when 'X'.
loop at screen.
if screen-name = 'SCREEN_NAME' " The Field which you dont want.
screen-invisible = 1.
screen-active = 0.
modify screen.
endif. " Similary process for other Values aswell.
endloop.
endmodule.

Just you need to do little bit more work since this gives a clear Idea as how to proceed.

CHeerz

Ram

Read only

Former Member
0 Likes
1,087

Hi,

You can create a screen with all the fields.

In the PBO of the second screen


case type.
  when 'W'.
     loop at screen.
      if screen-name = 'field'.
        screen-active = '0'.
        modify screen.
     endif.
    endloop.
endcase.

Read only

Former Member
0 Likes
1,087

Hi,

If the dynamically displaying fields are character fields,u can have all the fields in the same screen and dynamically change the screen values in PBO with loop at screen fields 'invisible' based on the selection.

But In any case , if the fields are like currency fields, integer fields u cannot make it invisible u can make only output only fields since there will be a default value '00.

In that case one other option is make a subscreen area in ur first screen, n create seperate screens for each selection.Call each subscreen based on ur selection.