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

Table Copy

Former Member
0 Likes
585

Sir,

I would like to copy sflight table to zsflight with data on same client.

How can I do that, please explain me.

Thanks

Manoj.

4 REPLIES 4
Read only

Former Member
0 Likes
551

Hi Manoj,

SE11-> Table Name-> Ctrl + F5.

Regards,

Pulokesh

Read only

awin_prabhu
Active Contributor
0 Likes
551

Hi Manoj,

For creating table ZSFLIGHT, follow what Pulokesh has said.

To copy data from SFLIGHT to ZSFLIGHT write a small program like below,

TABLES zsflight.

DATA: itab TYPE STANDARD TABLE OF sflight.

SELECT * FROM sflight INTO TABLE itab. " Get data from SFLIGHT

IF NOT itab[] IS INITIAL.

INSERT zsflight FROM TABLE itab. " Insert data into ZSFLIGHT

ENDIF.

Note: By default current client will get filled in 'MANDT' field.

Thanks,

Read only

Former Member
0 Likes
551

SE11 --> dictionary object --> Copy

And write a report program to copy the records of existing table to new table.

Hope you get it.

Read only

Former Member
0 Likes
551

Hi,

To copy a table goto SE11 --> Write the table name ---> dictionary object > Copy-> give new table name -


> press the ok button.

To copy the contains of table to the new table a new code need to write.

DATA: itab TYPE STANDARD TABLE OF sflight.

SELECT * FROM sflight INTO TABLE it_sflight.

IF NOT itab[] IS INITIAL.

INSERT zsflight FROM TABLE it_sflight.

ENDIF.

Thanks,

Suman