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

Former Member
0 Likes
1,014

hi

after i do

move wa-objid to ztable

do i need to do append ?

ami

1 ACCEPTED SOLUTION
Read only

former_member404244
Active Contributor
0 Likes
990

Hi,

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

Use either update or modify......

Regards,

Nagaraj

9 REPLIES 9
Read only

Former Member
0 Likes
990

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

Read only

former_member404244
Active Contributor
0 Likes
991

Hi,

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

Use either update or modify......

Regards,

Nagaraj

Read only

Former Member
0 Likes
990

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.

Read only

Former Member
0 Likes
990

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.

Read only

Former Member
0 Likes
990

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

Read only

Former Member
0 Likes
990

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.

Read only

abdul_hakim
Active Contributor
0 Likes
990

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

Read only

Former Member
0 Likes
990

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

Read only

Former Member
0 Likes
990

Hi Ami,

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

Regards,

Chandra Sekhar