cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically generating screen layout.

Former Member
0 Kudos

Hi,

I need to create a module program dynamically along with the screen layout dynamically. i.e i need to add text fileds and input fields dynamically. I've found that we can acheive this by the command generate dynpro.

But i donot know what to fill in the internal table which holds the element list. If anybody has worked on similar thing, kindly guide me with some example code.

Chaitanya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anand,

I have seen the structure of the internal table but i

don't know how to fill that table. Could you give me an example as to what should be filled if i need an input field with name 'tab-field1' at line 10 column 10.

I've used an already existing screen and imported its element list by command import dynpro. I've similarly filled it and given the command generate dynpro. But it has given a short dump with no error analysis.

Krishna Chaitanya.

Former Member
0 Kudos

Hi Chaitanya,

You should pass an internal table for the list of all the fields that you would like to have on your dynamically generated screen. the sturcture of this internal table should be based on the standard Dictionary strucutre D021S.

The best thing is for you to start off writing a test program and get back with any errors that you might encounter.

Regards,

Anand Mandalika.