Application Development 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: 

Function Module to activate objcts

Former Member
0 Kudos

Hi,

Is there any function module which will do a syntax check and activate objects, and return errors and status whether object was activated or not.

Any help would be appreciated.

Thanks in advance.

Mick

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can try the function module EDITOR_SYNTAX_CHECK.

Regards,

Rich Heilman

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can try the function module EDITOR_SYNTAX_CHECK.

Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Or maybe RS_SYNTAX_CHECK would be better, as it wraps the other function.

Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Activation is a little more complex I think. Depending on the object, there would be different implementations of the actviation process. For example, there is a function RS_FUNCTION_ACTIVATE which appears to activate a function, in the underlying code you can see that it deals heavily with the INSERT REPORT statement, which writes the source code in an active state, this is basically the way that regular programs are activated as well.

What object are you referring to specifically?

Regards,

Rich Heilman

0 Kudos

Thanks Rich.

I have found what I was looking for. The name of the function module is RS_WORKING_AREA_ACTIVATE, which internally calls FM RS_CHECK_SOURCE. In this FM there is class with the method longtext, which gives the error message in case of errors while activating or while doing a syntax check.

Regards,

Mick