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 structure

dominik_klaffke
Participant
0 Likes
606

Hi all,

I need to dynamically create a structure. The only thing I know is that the structure needs to contain n fields of type String.

Is this generally possible <b>whithout using the new generic types of WAS 6.40</b> and if yes - how would that work?

Thanks in advance!

Dominik

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
535

Hi,

Please check out https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1011. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] Hope it helps.

Regards

4 REPLIES 4
Read only

Former Member
0 Likes
536

Hi,

Please check out https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1011. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] Hope it helps.

Regards

Read only

0 Likes
535

This seems the solve my problem,

thanks a lot!

Regards

Read only

0 Likes
535

Can u close this message and reward the answers that helped you.

Read only

Former Member
0 Likes
535

Hi,

You can do so using dynamic programs or subroutines.

But the thing is: the subroutine itself is generated dynamically. so will the structure. and whateve you need to do with the structure, has to be part of the dynamic code.

You will not be able to access it outside in the main program.

Hope you got it.

For syntax, see...

Generate a program

- GENERATE REPORT prog.

- GENERATE SUBROUTINE POOL itab NAME name.

PP.