‎2007 Apr 19 1:24 PM
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
‎2007 Apr 19 1:27 PM
in order to use in tables tab, you should create a structure in se11.
regards,
ravi
‎2007 Apr 19 1:28 PM
‎2007 Apr 19 1:29 PM
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
‎2007 Apr 19 1:29 PM
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)
‎2007 Apr 19 1:29 PM
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
‎2007 Apr 19 1:38 PM
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