‎2008 Nov 26 7:04 AM
Subject changed by moderator. Please use a meaningful subject in future
Hi SAP-ABAP experts,
can i get get the information for the following error.
when i was giving *structure* name in tables parameter and gave the 'TYPE' as type in function module screen i was getting the error like this,
TABLES parameters are obsolete.
in 4.7e the function module got activated but in ecc 6.0 i am getting the error like that. can u please clarify the issue
will the type declaration be chaged according to versions of SAP ABAP.
Thanks,
Kavitha.P
Edited by: Matt on Nov 26, 2008 8:09 AM
‎2008 Nov 26 7:08 AM
‎2008 Nov 26 7:10 AM
Please use a meaningful subject in future
You can still use table parameters, but, unless you are using RFCs, you should use IMPORT, EXPORT or CHANGING parameters that are defined to a table type.
matt
‎2008 Nov 26 7:11 AM
1. Create a structure in SE11, this will include all the fields you want.
2. Create a Table type in SE11, referring the above structure as the row type.
3. Now, when you use this table type you would need to have a work area to process the data of the table. So, in the program declare a variable with ref to the structure created in Step 1.
Then you can use
LOOP AT T_ITAB INTO WA_ITAB.
ENDLOOP.
where T_ITAB is referring to table type and WA_ITAB is referring to structure.
Thanks
Saurabh
‎2008 Nov 26 7:12 AM
Hi Kavitha,
I tried it and I am getting a WARNING message only.
that means still you can use it though it is obsolate.
this is to best of my knowledge.
Regards
Ramchander Rao.K
‎2008 Nov 26 7:12 AM
Hi Kavitha,
Tables parameter is obsolete in ECC 6.0.
As a replacement, Create a table type in Se11 of the type internal table.
Now when you are decalring the internal table in Changing parameter give the reference of that table type.
Create another work area in the source code of function module.
Now loop the Internal table as usual.
Hope this will help.
Regards,
Nitin.