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: 

Changing of method source

markus_theilen
Participant
0 Kudos

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

LucianoBentiveg
Active Contributor
0 Kudos

See FMs of function group SEOP.

Regards.

3 REPLIES 3

LucianoBentiveg
Active Contributor
0 Kudos

See FMs of function group SEOP.

Regards.

0 Kudos

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.

Former Member
0 Kudos

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