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

Can I create class or report by code?

raffinkira
Participant
3,085

Normally, we use SE38 and SE24 to create reports and classes.

I am wondering if there is a coding way to do that.

7 REPLIES 7
Read only

muttepawar-2009
Active Participant
0 Likes
2,159

Hi

How to download source code from the class builder SE24

To download the source code , go to each method and double click the method .. it opens up .. then go to the menu utlities -> more utilities->download .. you need to download individual methods like this ...i don't think is there any way to download whole class at a time.

Regards

Prashant

Read only

0 Likes
2,159

Not that you're answering the question, but if you use the source-code based button in SE24, or Eclipse, you get all the methods in one go.

Read only

Sandra_Rossi
Active Contributor
2,159

There are several ways, like function modules SEO_CLIF_MULTI_IMPORT or SEO_CLASS_CREATE_COMPLETE for class pools, you may check in abapGit how they are used (it also creates any other kind of repository object, so just look at its code).

Read only

kammaje_cis
SAP Mentor
SAP Mentor
2,159

I believe you are talking about ABAP code generation. Yes, it is very much possible. Use class CL_CMP_COMPOSER and templates.

Check this example: https://help.sap.com/doc/saphelp_dbm800/8.0/en-US/f4/0f5f790d494ad7b101f6b04990cd5f/content.htm?no_c...

Read only

0 Likes
2,159

It's specific to BRF+. The question is for mimicking SE38/SE24 programmatically.

Read only

2,159

sandra.rossi

As mentioned in my post it is an example of code generation. CL_CMP_COMPOSER is the primary class for ABAP code generation (though it is SAP internal). CL_CMP_COMPOSER is used in the example link I posted. Just do a 'Where Used List' on class CL_CMP_COMPOSER and you will see all ABAP generation examples.

The link I posted though is specific to BRF+ it is an example of Code generation using templates.

Read only

keremkoseoglu
Contributor
0 Likes
2,159

Sounds like you want to generate ABAP code dynamically. I have done it multiple times, it is possible. Check the commands INSERT REPORT and INSERT TEXTPOOL.