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: 

Problem in creating Function Module

Former Member
0 Kudos

Hi,

while creating a function (Z_SPELL_AMOUNT_INDIA) one error is coming . the error <b>'SPELL not declared</b> ' is coming. already the Function module is running correctly in different client(another client's place) i am just download the Function module from the existing implementation site and upload the function module in new client's place. both the Projects are mySAP ECC 5.0.

Here first i have created a function group and under the Function group itself i am uploading the FM.

How can i declare the SPELL?

is there any rules to be follow while creating the Function Group?

Thanks,

Neptune.M

4 REPLIES 4

Former Member
0 Kudos

Before you copy the function module check the following

1. Check the TOP include copied properly or not

2. Check any form routine (if existing) copied or not

3. In the Import, Export & tables if you are pointing to any DDIC structures, check whether they are copied or not.

      • While activating the function module CHOOSE ALL THE INCLUDES AND FUNCTION GROUP AT A TIME, AND THEN ACTIVATE ALL.

I hope this helps you.

- Raj

0 Kudos

Hi Raj,

Thanks for your reply. i didnot copy any top include program. May be this is a reason for this error.

plz explain in details.

First i have the Function Group as zfggrd.

activate the Function Group.

After that i have created the Function Module.

In function module also i have given the import , export and exceptions directly and at last i have uploaded the Source code of the Function Module from my Pc.

Plz tell , in which place i make a mistake?

Thanks,

Neptune.M

Former Member
0 Kudos

place the line(code line) where you are getting error

Former Member
0 Kudos

HI,

define all the includes of target FM into source

Fm and copy respective include source code.

Regards

Amole