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

Include in FM?

Former Member
0 Likes
1,495

Hi,

I put some includes into the source code section of a custom FM but there pops up a syntax error: "Incorrect nesting: Before the statement "Class", the structure introduced by "FUNCTION" must be concluded with "ENDFUNCTION".

These includes ARE between FUNCTION and ENDFUNCTION !

What is going wrong?

Thanks for your help in advance!

Zaya

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
911

That's the problem, the includes must not be inside the function module. Normally includes are inserted at function group level, so go to the frame program of the function group and insert the includes in the appropriate place. Look at the many examples that are available.

Thomas

2 REPLIES 2
Read only

ThomasZloch
Active Contributor
0 Likes
912

That's the problem, the includes must not be inside the function module. Normally includes are inserted at function group level, so go to the frame program of the function group and insert the includes in the appropriate place. Look at the many examples that are available.

Thomas

Read only

0 Likes
911

Thank you Thomas,

that solved my problem!

Best Regards

Zaya