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 ABAP code generation

Former Member
0 Likes
897

Hi,

Can I create global ABAP classes and Function groups dynamically?

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
840

Hi

What do you really need to do?

Max

6 REPLIES 6
Read only

Former Member
0 Likes
841

Hi

What do you really need to do?

Max

Read only

0 Likes
840

Hi max,

I have the metadata of an object (name, attributes, methods) or a function group(function modules, includes) even some of them include some ABAP code which I generate dynamically (e.g. the code of one method or any include in the FG). I just need to store the object or FG in ABAP using that metadata

Regards

Read only

0 Likes
840

Hi

I don't know if it's possible to do it, probably yes, but it means to know all internal comand to do it.

I know it's possible to create a report using statament INSERT REPORT, but class and function group are complex object so it can be very hard.

Try to see the SAP HELP for Dynamic Program Development

Good luck

Max

Read only

0 Likes
840

You could try researching the way SAPLink works to import that kind of objects, it creates those (and other) kinds of objects based on data in XML files (nuggets and slinkees). You could adapt it to create them based on your kind of input instead.

A word of caution though, I'm not sure it uses only SAP approved methods / APIs to achieve that. For instance, I know (from Thomas Jung's comments in other threads) that the APIs used in SAPLink to import Web Dynpro components are SAP internal and not intended to be used by customer developers; however to date there was no public API to do that.

SAPLink's site: http://saplink.org/

Regards

Edited by: Alejandro Bindi on Aug 11, 2009 6:54 PM

Read only

0 Likes
840

Thanks Alejandro, that was what I need

Read only

Former Member
0 Likes
840

CREATING GLOBAL CLASSES

<< Cut and paste without attribution removed. >>

Edited by: Rob Burbank on Aug 11, 2009 1:28 PM

Edited by: Rob Burbank on Aug 11, 2009 1:29 PM