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: 

Field symbol Runtime error

Former Member
0 Kudos

Hi,

I am usfng this but i am getitn this runtime error ?

how do i correct this ?

FIELD-SYMBOLS: <ITAB> TYPE STANDARD TABLE,

DATA: LT_TAB TYPE TABLE OF mara,

LS_TAB LIKE LINE OF LT_TAB.

LOOP AT <ITAB> INTO LS_TAB.

APPEND LS_TAB TO LT_TAB.

ENDLOOP.

I get a runtime error that, in unciode these two have to be of same structure.

I dont want to assign each and every component of field symbol to my structure

is there a direct way of doing it ?

2 REPLIES 2

Former Member
0 Kudos

Hi

Have you tried declaring <ITAB> as

FIELD-SYMBOLS: <ITAB> TYPE ANY TABLE

How are you assigning <ITAB>?

Regards

Shounak

Former Member
0 Kudos

Hello,

Try assigning valid values to <ITAB> beforte looping on it. In case you need to loop over it.

bye

Gabriel

Message was edited by:

Gabriel Fernando Pulido V.