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

declare variables in function module

Former Member
0 Likes
1,633

hi gurus,

i am making a function module in which i need to make some performs so as to do code reusability. but for that i need to declare variable globally. As i am working wth function modules for the fisrt time. can anyone please help me with that. i dnt want these variables in improt or export parameters.

regards

vibhor

1 ACCEPTED SOLUTION
Read only

Former Member
784

hi vibhor,

there is a tab "display object list" on the top of the sap screen when u r in dat function module. press that.

on the left side of ur screen there will complete lists of object used in fm. in includes there will a top include, declare all the variables u need globally in that top include. u can also create more includes for different performs if u want for modularizing ur program..

regards

palak

2 REPLIES 2
Read only

matt
Active Contributor
0 Likes
784

Declare in the top include. And next time post in the correct forum.

Read only

Former Member
785

hi vibhor,

there is a tab "display object list" on the top of the sap screen when u r in dat function module. press that.

on the left side of ur screen there will complete lists of object used in fm. in includes there will a top include, declare all the variables u need globally in that top include. u can also create more includes for different performs if u want for modularizing ur program..

regards

palak