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

how to copy a function module

Former Member
0 Likes
3,593

hi,

how to copy a standard function module to Z version.

regards

Mave

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,530

Open se37, enter the FM name, now on the toolbar , there is a double-square ICON, click on this..and rest is easy.

cheers

12 REPLIES 12
Read only

Former Member
0 Likes
2,531

Open se37, enter the FM name, now on the toolbar , there is a double-square ICON, click on this..and rest is easy.

cheers

Read only

0 Likes
2,530

please tell me the full procedure , i tried but did not get it.

Regards

Mave

Read only

0 Likes
2,530

anid you are right

I was seraching inside th e funtion module.

Any way thanks I have given you 10 points

Read only

0 Likes
2,530

OK, first of all you must know to which function group(FG) your r copying the FM, that is in which FG your z-fm will be residing.

now se37-> enter the FM (original one) -> click on the copy icon (a square on another square, third from left)->now you will have a pop up-> "from" input box(leave it as it is)

and "to" input box : here you write your z FM name,

in Function group box: you enter the FG name where your z-FM should belong.

click on copy..thats it.

plz reward point if it helps you.

Read only

0 Likes
2,530

thanks

Read only

0 Likes
2,530

Hi Mave

You can't copy only fm, but it'd be better you copied th function group too:

- run the transaction SE80 and choose function group option;

- insert the function group of your fm std and choose COPY option by right button of the mouse;

- after copying function group the system'll ask you which fm you want to copy: choose your function.

Max

Read only

0 Likes
2,530

Hi

when I am activating the funtion module a error is prompting saying report program is missing.

Regards

Mave

Read only

0 Likes
2,530

Did you copy Function to an existing group??

If you created a new group then you need to activate all the objects. When you activate you get a list , select all and then activate.

Cheers.

Read only

0 Likes
2,530

That means the FM uses some declaration of variable or internal-tables, thats is declared in the global inclde of the original Function group. You got find that out.

This problem should not have persisited if the FG is same or there is no dependency.

Read only

0 Likes
2,530

You have to create a new function group where you insert your new fm.

You should copy the original function group and the fm you need.

Max

Read only

Former Member
0 Likes
2,530

Hi,

another solution to copy a standard FM...

goto se37 type the FM you want then <b>ctrl+f5</b> or click the right button on your mouse and choose copy and the type the name what you want and choose the function group.

reward points for helpfull answers and close the thread if your question is solved.

regards,

venu.

Read only

Former Member
0 Likes
2,530

Function Modules are heavilly dependant on Function Group for data declaration in TOP include or subroutines.

Which standard function module are you trying to copy .

In SE37 try to find the main program it will be SAPL.....

You should copy the whole function group to a Z group.

In SE38 give the program name as SAPL... ( as found above ) . Click on Copy . Next screen give the function group name in Z* namespace. This will copy the main program (Function Group ) and includes to new function group . Next you will be prompted to copy function modules . Give a name for each of the FMs ( or one FM which you want to copy) in Z* namesapce.

Cheers.

Sanjay