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: 

dynamic number of fields on module pool screen.

prav_kr
Participant
0 Kudos
375

Hello,

I wish to create a dynamic module poll screen..

the scenario is like :
on screen 1. I will choose some fields.

Based on the chosen fields I wish to develop screen 2 where all the fields from screen 1 appear as select options and a text field corresponding to each select option.

selOpt 1                     TxtFld 1
selOpt 2                     TxtFld 2

.

.

.

.


selOpt n                      TxtFld n.

the database selection will then be passed to Screen1 back.

is it possible ? any leads to achieve this ?

Thanks.

Regards.
Praveen Nenawa

2 REPLIES 2

deepak_sharma_sap
Active Participant
0 Kudos
132

Hi,

You can create screen 2 with all the fields that can be selected on screen 1.

After selecting fields on screen 1 , in PBO of screen 2 , loop at screen 2 and make the fields invisible that have not been selected on screen 1.

Just out of curiosity, why don't you create select options for all fields on screen 1 and then whatsoever input is provided , use that for selection.

Thanks

Deepak

0 Kudos
132

Hi Deepak,

Thanks for sharing your thoughts.

1 . The fields to choose at screen1 comes from a custom customizing table. The fields can be changed at any time. cant do hard code kind of thing here. so PBO, loop at screen . screen-active = 0. will not work.

2. screen 1 is just to choose layout. based on these fields data is selected and mapped back to each field. I need txtFld just to define the mapping, if user want to change.

Thanks.

BR,

Praveen Nenawa