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

declare object dynamically

Former Member
0 Likes
316

Hello All,

I am taking class name from user. I have to declare a object for this class.

if i use

DATA: obj_ref type ref to (p_input),

i am getting error '(p_input) is unknown'

Please let me know how can i acheive this?

1 ACCEPTED SOLUTION
Read only

gerd_rother
Active Participant
0 Likes
285

Hi,

You can use "type ref to object" and later "create object obj_ref type (p_input).".

Regards, Gerd Rother

1 REPLY 1
Read only

gerd_rother
Active Participant
0 Likes
286

Hi,

You can use "type ref to object" and later "create object obj_ref type (p_input).".

Regards, Gerd Rother