cancel
Showing results for 
Search instead for 
Did you mean: 

FUNCTION MODULE

Former Member
0 Kudos

I WOULD LIKE TO CREATE A USER DEFINED FUNCTION MODULE .

MAY I KNOW THE PROCESS TO CREATE OUR OWN THE FUNCTION MODULE??

AND WHAT FIELDS ARE MANDATORY WHILE CREATING THE FUNCTION MODULE LIKE EXPORTING ETC...

IS THERE ANY T-CODE TO CREATE OUR OWN FUNCTION MODULE ??

ELSE SHOULD I USE CALL FUNCTION 'FUNCTION_MOD_NAME' ??

Accepted Solutions (1)

Accepted Solutions (1)

Vijay
Active Contributor
0 Kudos

hi

to cerate YOUR FM follow following steps.

1. goto transaction se37.

2. enter the fm name and press create.

3. in import tab specify the fields you want to pass as input to fm and can make field optional as well by pressing optional checkbox.

4.under export tab specify fields you want fm to return.

5. under tables specify tables u want to use or change.

6. under source code write code for your fm.

7. activate .

regards

vijay

reward points if helpful

Answers (4)

Answers (4)

Former Member
0 Kudos

hi,

follow this steps.

1.Goto transaction SE37. On the menu bar, click on GOTO Function Group  Create Group. Create a function group of your choice. Skip this step if you want to assign the function module to an existing function group.

2.Give the name of the new function group you want to create (must begin with z), and a meaningful short text.

3.Save the function group assigning a development class

.4Enter the name of the function module you wish to create. Click on CREATE

5.Enter the name of the Function group with which you wish to associate the function module. Click on SAVE

6.The function module has been saved. Enter the interface parameters in IMPORT, EXPORT, USING and CHANGING tabs. The function module has to be activated before using it in any program.

7.While activating, care needs to be taken that the REPS elements of the function group are selected for activation, alongwith the function module. This step is to be done when creating a new function group and attaching a new function module to it. If you have attached your function module to an existing function group, you may activate the unction module only.

8.Now that the function module is activated, you can write the code between FUNCTION and ENDFUNCTION .

reward if its useful

Former Member
0 Kudos

WE CREATE A USER DEFINED FUNCTION MODULE .

TO CREATE OUR OWN THE FUNCTION MODULE??,, WE USE se37

BEFORE THAT U MUST CRAETE A FUNCTION GROUP IN SE80

AND WHAT FIELDS ARE MANDATORY WHILE CREATING THE FUNCTION MODULE LIKE EXPORTING ETC...

IT DEPEND ON UR REQUIREMENT

IS THERE ANY T-CODE TO CREATE OUR OWN FUNCTION MODULE ?? SE37

REWARD IF USEFUL

Former Member
0 Kudos

Hi,

goto SE37 give a name and create..........it ll ask for a func group.....create a new group.....and continue....

Former Member
0 Kudos

Function Module Creation:

First Go to transaction code SE 37.

Then create. Function group.

Goto --> Function Groups --> Create Group

under Function Group we create Function Module

After Create Function Group Give Function Module Name click on create

then we have Import, Export, Tables, Change, Exception, Source Code tabs .

Press on Import tab. then give import parameters.

Use TYPE instead of LIKE in typing..

Let me know if have any doubt.