03-08-2013 9:44 PM
Hello fellow ABAPers,
Here is my current source code abbreviated..
data: ausp_itab(50) value '(SAPLCLFM)ALLAUSP[]
field-symbols: <fs_ausp> type any,
<wa_ausp> type any.
assign (ausp_itab) to <fs_ausp>.
After this I cannot syntactically get a READ or a LOOP to work to extract this data in the field symbol.
The system thinks the <fs_ausp> is a DB table and gives the error on the read statement, when you try the LOOP the system says that it isn't an internal table.
Not quiet sure what to do here! Any help would be appreciated, thanks.
03-09-2013 2:46 AM
Hello,
You can use this option:
Working with a temporary table and then re-assigned to the field. I give an example:
DATA: lt_temp type standard table of rmclausp.
/ / Assign the value of the field to the temporary table
lt_temp = <fs_ausp>.
/ / Here you can work with the table lt_temp for example a loop
...
/ / Assign the temporary table to the field again
<fs_ausp> = lt_temp.
Hope this helps.
Best regards,
Jose.
03-09-2013 7:23 AM
Define your first field symbols for internal table as TYPE ANY TABLE.
Regards,
Raymond
03-10-2013 6:32 AM
Declare field symbol as type any table instead of type any. Hope this solves your problem