‎2008 Mar 18 3:31 PM
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 ..
‎2008 Mar 18 3:39 PM
May be this way
DATA: WA_ZAAR type ZAAR.
WA_ZAAR-A = "A".
WA_ZAAR-B = "B".
MODIFY ZAAR FROM WA_ZAAR
a®
‎2008 Mar 18 3:34 PM
You can only append to an internal table.
What you want to do is INSERT, the SQL statement
‎2008 Mar 18 3:34 PM
‎2008 Mar 18 3:35 PM
hi use like this..
DATA: WA_ZAAR LIKE ZAAR.
WA_ZAAR-A = "A".
WA_ZAAR-B = "B".
APPEND WA_ZAAR TO ZAAR.
regards,
venkat.
‎2008 Mar 18 3:39 PM
May be this way
DATA: WA_ZAAR type ZAAR.
WA_ZAAR-A = "A".
WA_ZAAR-B = "B".
MODIFY ZAAR FROM WA_ZAAR
a®
‎2008 Mar 19 2:03 PM