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

function module

Former Member
0 Likes
702

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
673

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.

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
673

Please post your code and exactly the error message that is being thrown.

Regards,

Rich Heilman

Read only

0 Likes
673

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

Read only

0 Likes
673

Did you use se37 - Function builder ?

Svetlin

Read only

0 Likes
673

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.

Read only

Lakshmant1
Active Contributor
0 Likes
673

Hi Srikanth,

First activate the function group and then activate the function module.

Thanks

Lakshman

Read only

Former Member
0 Likes
674

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.

Read only

Former Member
0 Likes
673

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.