‎2005 Aug 03 4:15 PM
Hi every body
i have created a new function module but while activating it showing an error like.. it should be an report or include program. could you please tell me how to activate the f.m. The code is starting with (function )and closing with end function.
cheers
srikanth
‎2005 Aug 04 1:19 PM
hi,
Use SE80, Select the Function Group from the List box. Give the function group name and select the Activate by clicking the right mouse button.
‎2005 Aug 03 4:18 PM
‎2005 Aug 04 1:13 PM
Hi Rich,
below mentioned is the code
Function Z_rm_document.
local interfaces
*importing
*----
*data decalration
data: rm_itab_escr like bapiret
call function 'bapi_srm_doc_getlist
endfunction.
above mentioned is not complete code, while activating the error is 'it is not an report/program or should be INCLUDE.
could you please tell how to activate the function group and function module.
Regards
srikanth
‎2005 Aug 04 1:16 PM
‎2005 Aug 04 1:39 PM
Hi Srikanth,
it seems that problem is not in function module but it is in function group. you can Click Goto->Main program to see the Function group. check whether this program is active or not. there will be At least 2 include programs one for global data and one for function modules. check those programs if they are not active, activate them also.
After that try to activate your function module.
Regards,
Komal.
‎2005 Aug 03 4:26 PM
Hi Srikanth,
First activate the function group and then activate the function module.
Thanks
Lakshman
‎2005 Aug 04 1:19 PM
hi,
Use SE80, Select the Function Group from the List box. Give the function group name and select the Activate by clicking the right mouse button.
‎2005 Aug 04 1:50 PM
STEP1: ONCE YOU CREATED THE FUNCTION GROUP AND FUNCTION MODULE.
STEP2: BEFORE TRY TO ACTIVATE IMPORT, EXPORT PARAMETERS
IN THE FUNCTION GROUP SCREEN .
STEP 3: UTLITIES FROM THE MENUBAR U WIL HAVE INACTIVE OBJECTS
STEP 4: CLICK THE INACTIVE OBJECTS U WIL SEE NODE STRUCTURE
STEP 5: IN THAT CHOOSE FUNCTION GROUP AND PLACE THE CURSOR ON YOUR CREATED FUNCTION GROUP AND CLICK ACTIVATE BUTTON
I HOPE IT WORKS OUT.