‎2008 Jun 25 4:23 PM
Hi All,
I am trying to declare an Internal table like the import parameter defined in the method signature. The parameter lt_results is defined of the type Any Table.
I need to loop around this table. for this i need to declare a work area of type lt_results. But not able to proceed by declaring a work area wa_results of type lt_results.
Any work around for this issue.
Thanks,
udaya
‎2008 Jun 25 4:31 PM
Hi,
try this
FIELD-SYMBOLS <wa> TYPE ANY.
...
LOOP AT lt_result ASSIGNING <wa>. "CASTING...
...
P.S. Be carefull if lt_result belongs to a search help - always use function modules F4UT* to modify this table. Otherwise line allocations might be wrong....
Kind regards,
HP
‎2008 Jun 25 4:26 PM
Try
data: wa_results like line of lt_results.
Hope that helps,
Michael
‎2008 Jun 25 4:31 PM
Hi,
try this
FIELD-SYMBOLS <wa> TYPE ANY.
...
LOOP AT lt_result ASSIGNING <wa>. "CASTING...
...
P.S. Be carefull if lt_result belongs to a search help - always use function modules F4UT* to modify this table. Otherwise line allocations might be wrong....
Kind regards,
HP
‎2008 Jun 25 4:56 PM
Try this piece of code.
DATA: vo_ref TYPE REF TO data.
FIELD-SYMBOLS: <fs> TYPE ANY.
CREATE DATA vo_ref LIKE LINE OF itab.
ASSIGN vo_ref->* TO <fs>.<fs> will be the work area of internal table itab.
Hope it helps.
Thanks
Romit