10-08-2007 9:31 AM
i have some code to be written in FM
but it contains subroutines and if i declare the definitions below code only then FM gives error
it asks for some include program
if i create some function group then it creates some include prog also but on activation gives error
how can i write a code with sub routines in FM
10-08-2007 9:40 AM
10-08-2007 9:46 AM
Hi,
Please check whether you have activated the function module group (ie) where you have written the subroutine definition. Then try to activate the FM. Error will come only if the include or function group is inactive which containes the subroutine.
Thanks,
Muthu.
10-08-2007 9:46 AM
Hi,
Create Include in the corresponding Function group of the function module and add the code.
10-08-2007 9:50 AM
Hi Karan,
After save the function module you need to <b>activate your function Group</b>.
Check whether Function group is activated or not.
If it is not activated means activate Function group and then activate the function module.
Thanks,
Reward If Helpful.
10-08-2007 9:57 AM
i created a FM
with function grp Z_VALIDATE
the following include got created lz_validatetop, lz_validateu01,lz_validateuxx
i moved sub routine def from Z_VALIDATE to lz_validatetop but on activating it is showing error of the fields in definition that they do not exist
10-08-2007 10:02 AM
Hi,
Just write the code as if you are writing the report in lz_vlaidateu01. Later move the declarations to include top,if needed. Only thing you need to take care is when passing parameters.
10-08-2007 10:02 AM