‎2009 Aug 19 10:11 AM
Sir,
I have created function group and function module. I have open se37 and choose tables tab button. I have insert itab in parameter Name Like in Type Spec and Kna1 in Associated Type.
I have got error "Tables Parameters are Obsolete"..
With Regards,
Baskaran
‎2009 Aug 19 11:02 AM
Hi Baskaran,
Table parameters are obsolete for normal function modules but have been retained to ensure
compatibility for function modules with other execution modes hence when you declare tables parameter in Function Module it gives warning.
The alternate way for this is create custom type in global declaration for table and use this type in changing parameters.
e.g
types: t_lfa1 type standard table of lfa1.
This declaration will go in your Top Include then u can create required table in your changing parameters.
Thanks & Regards,
Vaibhav Pendse
‎2009 Aug 19 10:18 AM
hi
use LIKE instead of type paramete
that is t_name like Kna1
with regards
anand kumar
‎2009 Aug 19 10:19 AM
hi that should be a warning. just enter and go
or
use table types and do it in import or export.
‎2009 Aug 19 10:24 AM
Hi,
Instead of directly assigning the table KNA1 as the table type, create a structure in SE11 consisting of the fields you require and assign it in the tables parameter.
Else Try assigning it as a CHANGING parameter
Regards,
Vik
‎2009 Aug 19 10:36 AM
hii baskaran,
Hello,
Just press enter several times it will be accepted. That is just a warning.
or
Goto SE80 and give your Function Group and then right click and Activate.
rgrds,
Shweta
‎2009 Aug 19 10:50 AM
Hello,
You care correct TABLES parameters are obsolete. So you need to use CHANGING instead of TABLES parameter
for passing tables to function modules.
Though it is just warning it is always good practice to avoid using obsolete things in SAP. This will keep code maintenance minimum in future.
Thanks,
Augustin.
‎2009 Aug 19 10:54 AM
you can pass the table in import parameters too.
just as in reuse_alv_grid_display we pass field catalog table in import parameter. right?
‎2009 Aug 19 11:02 AM
Hi Baskaran,
Table parameters are obsolete for normal function modules but have been retained to ensure
compatibility for function modules with other execution modes hence when you declare tables parameter in Function Module it gives warning.
The alternate way for this is create custom type in global declaration for table and use this type in changing parameters.
e.g
types: t_lfa1 type standard table of lfa1.
This declaration will go in your Top Include then u can create required table in your changing parameters.
Thanks & Regards,
Vaibhav Pendse
‎2009 Oct 02 7:43 PM
Hi guys, I have the same problem, I want to pass an internal table to my function, but i can't add it in tables, it says Obsolete, but when i Enter, nothing happens or I just press ESC, the system ask me to cancel the procedure.
Why i could do that before -1 hour ago- and now I can't do that? I mean, to add the table.
I would like to know what is the diference between adding the table in changing instead of being added in Tables TAB or IMPORT TAB, could you please explain me?
Thank you!
Gabriela
‎2009 Oct 02 8:00 PM
hi gpsoria,
In TABLES you can get the internal table as an output
where as in changing you use an internal table as an input as well output
with cheers
s.janagar
‎2009 Oct 02 8:43 PM
hi all, i'm a newbie with sap, and practicing with functions and modules, i have the following:
seeing this topic, y put my itab in CHANGING section, (t_vuelos type sflight), and trying to activate it, i got the "ti_vuelos is not an internal table - the "occurs n" specification is missing". Why??
thanks in advance!
‎2009 Oct 03 12:53 AM
Hi Baskaran,
although it's a warning only, you should follow it. Tables parameters are CHANGING parameters based on the old internal table with headerline concept. For IMPORTING and EXPORTING parameters you need TABLE TYPES, minimum TYPE TABLE.
Regards,
Clemens
‎2009 Oct 03 6:33 AM
search for a table type of KNA1.. not infront of SAP, so cant find it for you.
lets say its T_KNA1.
then in any import/export parameter tab, add the table as:
GT_KNA1 TYPE T_KNA1.
work done
‎2010 Jan 05 1:11 PM