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

Function Module to activate objcts

Former Member
0 Likes
933

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
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
845

You can try the function module EDITOR_SYNTAX_CHECK.

Regards,

Rich Heilman

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
846

You can try the function module EDITOR_SYNTAX_CHECK.

Regards,

Rich Heilman

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
845

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

Regards,

Rich Heilman

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
845

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

Read only

0 Likes
845

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