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
851

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
Read only

sachin_mathapati
Contributor
0 Likes
729

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
Read only

Former Member
0 Likes
729

Newbie,

have you define im_burks type bukrs in import tab?

Amit.

Read only

Former Member
0 Likes
729

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

Read only

sachin_mathapati
Contributor
0 Likes
730

Hi ..

Try this..


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

Regards,

Sachin M M

Read only

Former Member
0 Likes
729

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

Read only

Former Member
0 Likes
729

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

Read only

sukhbold_altanbat
Active Participant
0 Likes
729

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

Read only

0 Likes
729

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

"Use of global interface parameters is obsolete."

Read only

Former Member
0 Likes
729

declare IM_BUKRS in top include of ur function group.

this may solve ur problem.