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

import local class from program programmatically in abap

dmitry_yudin
Participant
0 Likes
1,047

Hi, gurus.

I have a question regarding the functionality of se24 transaction. Here we have an option to import local class into global class (see blog http://zevolving.com/2011/09/class-editor-convert-local-to-global/ for more information).

My question is - how can i do the same via code? I currently have an generated class that i would like to import into global class via programm. Could you give me an advice of FM\Class i could potentially use?

Regards,

Dmitry Yudin

<removed by moderator>

Message was edited by: Thomas Zloch

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
666

Hi Dmitry,

All i can see after debugging SE24 is the FM 'OO_IMPORT_FROM_PROGRAM', which takes in the program name as a parameter. This gives you the popup that you would get in SE24 to  choose the class and perform the import.

If you want a pure backend processing, I hate to say this and I really hate to tell this - You might have to do some BDC programming to simulate it. However the BDC recording size is very small.

This is to my knowledge, if there is any other FM / Utitlity classes that could be used, it would be great.

Thanks,

Venkat.

2 REPLIES 2
Read only

Former Member
0 Likes
666

I would suggest to follow the process defined in SE24 and implement the same.

Read only

Former Member
0 Likes
667

Hi Dmitry,

All i can see after debugging SE24 is the FM 'OO_IMPORT_FROM_PROGRAM', which takes in the program name as a parameter. This gives you the popup that you would get in SE24 to  choose the class and perform the import.

If you want a pure backend processing, I hate to say this and I really hate to tell this - You might have to do some BDC programming to simulate it. However the BDC recording size is very small.

This is to my knowledge, if there is any other FM / Utitlity classes that could be used, it would be great.

Thanks,

Venkat.