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

Active objects by abap code.

Former Member
0 Likes
1,107

Hi all!

I have a problem but don't have way to resolve yet. I can active objects in abap dictionary by abap code(I call function module).

But I don't find any function module to active a program (smart form, function group,...).

Can you give me solutions please!

Thanks & Regard

huandv

1 ACCEPTED SOLUTION
Read only

_IvanFemia_
Active Contributor
0 Likes
759

Hi,

This is an example http://goo.gl/Y24c

Ivan

4 REPLIES 4
Read only

_IvanFemia_
Active Contributor
0 Likes
760

Hi,

This is an example http://goo.gl/Y24c

Ivan

Read only

0 Likes
759

Hi!

Thank for you answer. Your answer is so good. But It only active program that haven't got any include, screen. My program have screens, includes.

Can you give me the way to resolve this case. (I'm writing a program that active others, for example: program, smart form,...)

Thanks & Regard

Huandv

Read only

0 Likes
759

Hi!

don't worry: Includes are part of the program. You can not activate the include without (at least one) program where it is included.

If you activate a program, it will activate all includes of the program as well.

Called functions or used classes are NOT activated implicitly.

Regards,

Clemens

Read only

Clemenss
Active Contributor
0 Likes
759

Hi huandy,

try transaction SGEN.

In a SAP system, objects are activated 'on demand', that is when used. The run time system determines if any used dictionary objects used in the generated code have changed since last activation and will then automatically re-generate the code when used.

Using this strategy, the system saves a lot of development time (no re-generation of all objects where a changed object is used) and disk storage space for generated objects that are never used.

Sometimes it is helpful to run SGEN in the test and/or production system after changes have been imported. This avoids lots of annoying and time-consuming generation/activation messages in status line.

Regards,

Clemens