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

create/copy existing FM

Former Member
0 Likes
861

Hi,

I have problems when I want to copy a simple FM.

The copied FM can't be activated. The error mesage appears REPORT/PROGRAM statement missing, or program type is INCLUDE.

What is the problem.

The source FM works fine....

Thanks in advance

Sau0161

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
820

This usually appears when syntax checking the code of an include. Try activating it directly.

Thomas

This usually appears when syntax checking the code of an include. Try activating it directly.

Thomas

5 REPLIES 5
Read only

ThomasZloch
Active Contributor
0 Likes
821

This usually appears when syntax checking the code of an include. Try activating it directly.

Thomas

Read only

0 Likes
820

the same, what do you mean with directly?

br

saso

Read only

0 Likes
820

> what do you mean with directly?

CTRL-F3 (activate button) instead of first pressing CTRL-F2 (syntax check button). It could also be a problem of an incomplete copy process, as mentioned in the other reply.

Thomas

Read only

Former Member
0 Likes
820

hi,

to copy a standard FM either you have to copy it in the same function group or copy all the declarations required into this copied FM or else it will give you an error.

Read only

0 Likes
820

aha now I understend, but how I can find "all the declarations required"... Yes, i would like to copy an Z* FM, and chnge it, but it is true, it will be included in other function group.

BR

Saso