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: 

can we declare global data in function group

Former Member
0 Kudos

can we declare global data in function group

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Swati,

Yes we can declare the global data in function group's TOP include.

Regards,

Atish

4 REPLIES 4

Former Member
0 Kudos

go to se80 and give your fn grp name now click on include here you can find a top include just declare your variable and activate there it will be a global data for the fn modules of that fn grp.

regards

shiba dutta

Former Member
0 Kudos

Hi Swati,

Yes we can declare the global data in function group's TOP include.

Regards,

Atish

Former Member
0 Kudos

Hi Swati,

You can do it. Just go to the Main Program of Function Group.

I would suggest you to add your own customized include, You can copy SAP's created include for Top.

e.g. for group BTCH: INCLUDE LBTCHTOP make it to ZLBTCHTOP and then add your own fields.

Reward if useful!

0 Kudos

The normal / correct naming for a "Top Include" for a function group is "L" + function group name + "TOP" e.g. LZ_FG_001TOP for a function group called "Z_FG_001" (this is still in the customer name range).

If you are in the source code of the function module in SE37, you can use Goto > Global Data to get to it too.