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

How to create Dynamic class in abap programming.

ajay_rajareddy
Explorer
2,563

How to create Dynamic class in abap programming.

8 REPLIES 8
Read only

matt
Active Contributor
0 Likes
1,986

Why? What are you trying to achieve?

Read only

0 Likes
1,986

Dear Keller,

My question was , i would like create se24 class through abap programming.

Thanks in advance.

Read only

matt
Active Contributor
0 Likes
1,986

Did you read the help? It tells you how to create all kinds of ABAP programs dynamically. Creating a class is just an application of that.

Read only

ajay_rajareddy
Explorer
0 Likes
1,986

Simple thing, i have seen SAP gateway( SEGW)is generating classes dynamically. In future i may get any requirement to generate dynamic class.

Could you share , if you have reference.

Read only

matt
Active Contributor
0 Likes
1,986

Why not look how SEGW does it, and follow that? However, it's probably not worth pursuing. In 20 years I've had to create dynamic code only a handful of times, and since 7.4, there's not been a need. I can't think of any normal business scenario where you'd specifically need to create a class dynamically.

Read only

Former Member
1,986

Hi,

Dynamic programming usually leads to higher TCO due to way higher maintenance costs. In my 16 years of experience I had to resort to dynamic programming once.

It is not worth pursuing something that you'll probably never use in your career.

Kind regards, Rob Dielemans

Read only

matt
Active Contributor
1,986

But if the OP decides to go ahead and figures it out, he should write a blog, so no-one need ask again.