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

Changing of method source

markus_theilen
Participant
0 Likes
802

Hi!

I have a small question concerning the source code of methods.

I want to read the source of a specified method (class and method name), transform it somehow and save and activate it. Now, for the first part, I found the function SEO_METHOD_GET_SOURCE, which fits perfectly. The wanted transformation is also no big deal, but I am somehow unsure about the "correct" way to save the source back.

Anyone know of a simple, sure and prooven way to do this ?

Thank you in advance,

Markus

1 ACCEPTED SOLUTION
Read only

LucianoBentiveg
Active Contributor
0 Likes
755

See FMs of function group SEOP.

Regards.

Hi!

I have a small question concerning the source code of methods.

I want to read the source of a specified method (class and method name), transform it somehow and save and activate it. Now, for the first part, I found the function SEO_METHOD_GET_SOURCE, which fits perfectly. The wanted transformation is also no big deal, but I am somehow unsure about the "correct" way to save the source back.

Anyone know of a simple, sure and prooven way to do this ?

Thank you in advance,

Markus

3 REPLIES 3
Read only

LucianoBentiveg
Active Contributor
0 Likes
756

See FMs of function group SEOP.

Regards.

Read only

0 Likes
755

Hi!

FM SEOP contains the function "SEO_METHOD_GENERATE_INCLUDE", which seems to be usefull to save changed source code. But the "GENERATE" part of the functions name is IMHO somehow misleading, because I don't want to generate a new include, but save a changed but existing one. I whished there were a function named "SEO_METHOD_SAVE_SOURCE".

Anyway, I will try it. Thank you for your answers.

Read only

Former Member
0 Likes
755

Hi,

Copy the FM using se80 transaction. First retrieve SEOP Function Group. Select your FM and use right-button menu "Copy". It will ask for the new names...

Regards,

Mireia