Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Field Symbol that is an internal table

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

raymond_giuseppi
Active Contributor
0 Kudos

Define your first field symbols for internal table as TYPE ANY TABLE.

Regards,
Raymond

Former Member
0 Kudos

Declare field symbol as type any table instead of type any. Hope this solves your problem