‎2005 Jul 20 12:24 PM
Hi,
I have a function. At the end of the function I have a subroutine ( Form ).
Instead of passing data to the form, is it possible to declare , some of my varibles in the function as Global so they are visible in the Form.
These variables, are Internal tables with header line.
If it is possible how do I declare them.
The type of internal tables I have are like the following:
data lt_itemdata TYPE TABLE OF bapi_incinv_create_item
WITH HEADER LINE.
thanks
‎2005 Jul 20 12:44 PM
You have to declare this variable in the main program.
When you create a function you have first to create function group. This function group have a global program with include. Create an include with global declaration.
Regards
Frédéric
‎2005 Jul 20 12:44 PM
You have to declare this variable in the main program.
When you create a function you have first to create function group. This function group have a global program with include. Create an include with global declaration.
Regards
Frédéric
‎2005 Jul 20 12:44 PM
Hi Sims,
you can certainly declare global data for the function module (or function group rather). There will be a <i>top include</i> for every function group which will enable you to write the data declarations. these will be global and visible across all the function modules of the function group.
From the function module code, use the menu option <i>Goto-->Global data</i>.
Regards,
Anand Mandalika.
‎2005 Jul 20 12:59 PM
Yes. you can do this by declaring the internal table as a global field.
‎2005 Sep 29 12:39 PM
Hi,
Here I have similar type of requirement.
I declared an internal table(say ITAB1) in the top include.Appending the values through FM1(function module).
I am using the same through FM2 (Tables ITAB1).
( Function group is same for both FM1 and FM2 )
but i am not getting the values in the ITAB1.
Can anyone help me....
Thanks in advance
KB
‎2005 Sep 29 12:48 PM
Bhavani,
please open new thread
else people who help you won't get any reward
regards