‎2015 Jan 23 8:43 AM
Hello People !!
I am new to sap ABAP World. while i am learning Function modules in SAP ABAP, i have got some doubts about tables tab in the function module.
I understood follwoing things
import tab : here we pass the input
source code : we put our logic to get the output here
export : output is stored in this varialbes
But i did not understand 'TABLES' Tab over here Properly. I read some documents about it ,but still not understood properly.
Can anyone help me in understanding this with the simple example ???
Regards,
Teja
‎2015 Jan 23 8:49 AM
Hi Teja,
Which used to declare internal table parameters for function module.
But it is now obsolete.
Regards
Sreekanth
‎2015 Jan 23 8:49 AM
Hi Teja,
Which used to declare internal table parameters for function module.
But it is now obsolete.
Regards
Sreekanth
‎2015 Jan 23 8:58 AM
‎2015 Jan 23 9:02 AM
‎2015 Jan 23 10:14 AM
‎2015 Jan 23 10:28 AM
Pass by value is not possible in formal parameters defined using TABLES.
Did u get this point?
we don't have an option to choose 'Pass by value' for Tables parameter.
Actual parameter- The variable passing to FM
Formal Parameter- The variable name defined in FM
Pass by value- Passing a copy of actual parameter to formal parameter
Pass by reference- Passing a reference(like pointer) to formal parameter.(So that the changes from FM will affect the actual parameter)
Since TABLES obsolete we can define a table parameter in Import or Export list.
Remember here we require a table type(can be created from se11) to define a table parameter.
‎2015 Jan 23 8:50 AM
If you want to pass select-option (via selection screen) to call a function module then TABLE tab is used to declare a variable.
Or you can pass internal table data to function module...
‎2015 Jan 23 8:57 AM
‎2015 Jan 23 9:00 AM
Hi Teja,
In FM.
If you want SET / GET inforamtion in TABLE tab.
Just pass the structure in Associated Type Field, the parameter itself work as a table in FM.
Regards.
Praveer.
‎2015 Jan 23 9:01 AM
Hi,
The IMPORT shall have single Import parameters,
EXPORT shall have single export parameters and
TABLES shall have multiple parameters .
Regards,
Vinodkumar.
‎2015 Jan 23 9:02 AM
Hi Teja,
if you want to pass multiple lines of data to your FM or your FM returns multiple lines of data then this TABLES tab is used.
For better understanding, you can execute standard FM's in se37 then you will get an idea how it works.
Thanks & Regards
Richa