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: 

Moving data of Z table to SAP tables

Former Member
0 Kudos

Hi Friends,

Is it possible to move data from Z* table to SAP Namespace tables ?

example: I created a table ZABC which has some data , now i want to move this data to a table in SAP namespace.

Thanks

Ankur

4 REPLIES 4

h_senden2
Active Contributor
0 Kudos

write an abap for it and you can do whatever you want.

regards,

Hans

Former Member
0 Kudos

Thanks Hans

Is this the only way to write an ABAP code ???Will this be efficient?

Also can u give me a sample code for the same.

Once again , Thanks a lot for your inputs

Regards

Ankur

h_senden2
Active Contributor
0 Kudos

first you have to read the relevant data from ZABC into an internal table.

SELECT * into table i_zabc

FROM ZABC

<where ....>.

If the layout of the internal table is equivalent to the layout of the SAP table, you can add all internal table entries very quickly.

MODIFY SAPtable FROM TABLE i_ZABC.

regards,

Hans

bettinasilveira
Participant
0 Kudos

I don't know how is where you work, but we are not allowed to modify data of a non Z table.

We have to do it with a Bapi or a Batch Input.