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: 

append

Former Member
0 Kudos

hi

after i do

move wa-objid to ztable

do i need to do append ?

ami

1 ACCEPTED SOLUTION

former_member404244
Active Contributor
0 Kudos

Hi,

Append is only used for internal table not for data base table..

Use either update or modify......

Regards,

Nagaraj

9 REPLIES 9

Former Member
0 Kudos

No, you need not. APPEND is used in internal table only. It is not used in DATABASE TABLE.

former_member404244
Active Contributor
0 Kudos

Hi,

Append is only used for internal table not for data base table..

Use either update or modify......

Regards,

Nagaraj

Former Member
0 Kudos

sorry but there is no answer possible since your requirement is very unclear.

does your ztable have header line?

do you want to append entries or do you update?

plz clarify some thing or post a bit of your code.

Former Member
0 Kudos

what is ztable?

if its a internal table than

wa-field = 'abc'.

Append wa to ztable.

append the work area not the field.

With luck,

Pritam.

Former Member
0 Kudos

hiii

you can not use move with ztable .it will only work with internal table ...and with internal table while using MOVE you dont need to use append statement..it will automatically append data to destination table.

regards

twinkal

Former Member
0 Kudos

hi ami.

if there are more than one records which u need to move into final internal table than u need to append inside the loop.

loop at itab into wa_itab.

wa_itab_final-f1 = wa_itab-f1.

append wa_itab-final to itab-final.

clear wa_itab-final.

endloop.

here itab-final is final internal table where u actually want data.

for single record no need to append.

abdul_hakim
Active Contributor
0 Kudos

hi

if ztable is a work area then you should use APPEND to add

the record from ztable to the internal table.YOu need to do this even if ztable is an internal table with header line.

Cheers,

Hakim

Former Member
0 Kudos

If Z-table means a database table then you need to use INSERT command to add a record in that table.

If its an internal table you need to use APPEND command to add a record in it

Former Member
0 Kudos

Hi Ami,

You cannot use Append for Database tables. It is only used fot internal tables.

Regards,

Chandra Sekhar