Application Development and Automation 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: 
Read only

APPEND TO TABLE

Former Member
0 Likes
607

Good Day Folks ..

Hope you can help this novice ..

I've programatically created a standard table w/ header, it appears and is active in the DIC (SE11) but when I attempt to append data to the table, I error out, " Field ZAAR is unknown. It is neither one of the specified tables or defined by a DATA statement"

DATA: WA_ZAAR LIKE LINE OF ZAAR.

WA_ZAAR-A = "A".

WA_ZAAR-B = "B".

APPEND WA_ZAAR TO ZAAR.

Seems I've not grasped some basic concept .... THANKS in advance for your assist ..

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
579

May be this way


DATA: WA_ZAAR type ZAAR.
WA_ZAAR-A = "A".
WA_ZAAR-B = "B".
MODIFY ZAAR FROM WA_ZAAR

a®

5 REPLIES 5
Read only

Former Member
0 Likes
579

You can only append to an internal table.

What you want to do is INSERT, the SQL statement

Read only

Former Member
0 Likes
579

Declare as :

DATA: WA_ZAAR LIKE ZAAR.

Read only

Former Member
0 Likes
579

hi use like this..

DATA: WA_ZAAR LIKE ZAAR.

WA_ZAAR-A = "A".

WA_ZAAR-B = "B".

APPEND WA_ZAAR TO ZAAR.

regards,

venkat.

Read only

former_member194669
Active Contributor
0 Likes
580

May be this way


DATA: WA_ZAAR type ZAAR.
WA_ZAAR-A = "A".
WA_ZAAR-B = "B".
MODIFY ZAAR FROM WA_ZAAR

a®

Read only

Former Member
0 Likes
579

THANKS FOLKS !!!!

Over the hurdle ... appreciatte it !!!