‎2010 Mar 18 12:36 PM
Hello Experts,
I have created one class which contains a method having one import parameter and one export parameter.Export parameter is of type table, say iTab
In the code of the method, i called one RFC which has one table parameter. Ex.-
method get_data.
call function z_test
Exporting
name = 'AAA'
Tables
list = iTab.
endmethod.
But when I compile the method, it is showing me the error that "iTab is not a internal table, occurs specification is missing".
Then I Used another internal table instead of iTab. Error was not came, but I am not understanding how to assign this new internal table to export parameter of a method.
Thanks in Advance,
Prashant Jagdale
‎2010 Mar 18 1:38 PM
Hi
How did you declare your internal table itab[]. In Methods, its better declare type table of.
Regards
Praveen
‎2010 Mar 18 1:22 PM
‎2010 Mar 18 1:38 PM
Hi
How did you declare your internal table itab[]. In Methods, its better declare type table of.
Regards
Praveen
‎2010 Mar 19 4:35 AM
Hi Praveen,
I have declared my iTab in my method as "type table of"
Thanks,
Prashant
‎2010 Mar 18 1:45 PM
Just create a table type and use it in the method signature.
Then while passing to the fm, either change the tables parameter of fm to export parameter referd to table type.
or pass it like
tables
tab = it[].
‎2010 Mar 18 1:48 PM
Hi Keshav
declare the itab as follow.
data iTab type AAA OCCURS 0.
BEST REGARDS
Marco
‎2010 Mar 19 4:33 AM
Hello Menegazzo,
When i add occurs 0 in declaration, it give me a error that "OCCURS is no longer supported on OO Context"
Thanks,
Prashant
‎2010 Mar 19 4:42 AM
Hi Keshav,
I tried using iTab type <Table_Name> in method signature and used
TABLES
LIST = ItAB[]
But no success....Again Error - "iTab is not a internal table, occurs n specification is missing"
when i declare another internal table inside method using type table of and assigned to list. No error comes but I am not understanding how to pass these values of newly created internal table to method's export parameter.
Any help??
Thanks in Advance,
Prashant
‎2010 Mar 24 6:54 AM