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 group

Former Member
0 Likes
877

when we declare some variables or tables in the top include of the function group, can we be able to access it in function module directly. i mean, say, if i declare a internal table in top-include, say ZITAB. can i use this in function module "TABLES" tab this way: table LIKE ZITAB??? if not like this, how can i use? i have to display the internal table through TABLES interface of the function module. how can i declare a table of the type which i want??

m a

6 REPLIES 6
Read only

Former Member
0 Likes
773

in order to use in tables tab, you should create a structure in se11.

regards,

ravi

Read only

Former Member
0 Likes
773

you can create ur own structure in SE11 and use that

Read only

Former Member
0 Likes
773

HI,

In your function module,

Goto--> global data ..

there you find a include..

double click it and declare your tables, types etc..

It will be global to all the funtion modules created in that function group..

Reward points if useful

regards,

nazeer

Read only

Former Member
0 Likes
773

You have to any Data Base Table or STructure for that purporse

in Function Modules TABLES parameters

t_tab type ZITAB (where ZITAB is a database table or structure)

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
773

I don't think you can use it in the interface of the function module, but it can be accessed by all function modules within the group, directly. If you want to declare a table in the TABLES section, you need to create your structure in the data dictionary, and then use this structure when defining your TABLES parameter. This will allow you to pass your table thru the interface.

Again, if you declare an internal table in the TOP, this allows it to be access by all function modules of the function group.

Regards,

RIch HEilman

Read only

Former Member
0 Likes
773

Hi,

You should have a table or structure of that type SE11, or else create a Type using Type pools in SE11 and include that in TOP include of that function module then you can use that with out defining any table in DataBase if Dictionary.

with regards,

Jay