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: 

function module

Former Member
0 Kudos

hi

i created a function module with import parameter let's say "IM_BUKRS"


FUNCTION f_function1.

perform f_bukrs.


ENDFUNCTION.

form f_bukrs.
// here when i try to access im_burks it doesn't recognise the im_burks

endform.

please advise

1 ACCEPTED SOLUTION

sachin_mathapati
Contributor
0 Kudos

Hi ..

Try this..


FUNCTION f_function1.
 
perform f_bukrs using im_bukrs.
 
 
ENDFUNCTION.
 
form f_bukrs using im_bukrs.
 
endform.

Regards,

Sachin M M

8 REPLIES 8

former_member181995
Active Contributor
0 Kudos

Newbie,

have you define im_burks type bukrs in import tab?

Amit.

Former Member
0 Kudos

The form need not be created in the main FM body.

Double click on the Perform and create it in the new system defined include.

This should appr=ear in teh Function Pool list.

Thanks

sachin_mathapati
Contributor
0 Kudos

Hi ..

Try this..


FUNCTION f_function1.
 
perform f_bukrs using im_bukrs.
 
 
ENDFUNCTION.
 
form f_bukrs using im_bukrs.
 
endform.

Regards,

Sachin M M

Former Member
0 Kudos

Hi,

yes it wont recognize there, because u r writing that perform in other program i think. if it is external subroutine then u should paas it using changing parameters.

if it is local subroutine then it will recognize it....

regards

Sunil Kumar Mutyala

Former Member
0 Kudos

hiii

you only need to pass that parameter with perform ...

refer with USING CHANGING parameters of subroutine.here you need to pas that parameter with USING statement.

regards

twinkal

sukhbold_altanbat
Active Participant
0 Kudos

Hi,

You need to globalize parameters. if you check attributes tab, there is checkbox called Global. In order to tick it do this.

Edit - > Interface -> globalize parameters.

Regards,

Sukhbold

Edited by: Sukhbold Altanbat on Jul 23, 2008 12:13 PM

0 Kudos

i tried the globalized parameters and i have the following error message

"Use of global interface parameters is obsolete."

Former Member
0 Kudos

declare IM_BUKRS in top include of ur function group.

this may solve ur problem.