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

How to post data into table

sreeramkumar_madisetty
Active Contributor
0 Likes
880

Hi Folks

can you please explaon me the step-by-step procedure how to post data into the ztable.

Regards,

Sree

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
857

Hi Sree,

You can insert data into a Z table or any sap table by looping through an internal table of the same type or a structure filled in the program but make sure that the primary keys of the Z Table are filled in each loop otherwise it does not allow to insert record into a database table.

Reward points if helpful.

Regards,

Johnny

6 REPLIES 6
Read only

Former Member
0 Likes
857

Either create a transaction with selection screen to post data in ztable, Based on screen value USE:

INSERT ZTABLE FROM TABLE ZTEST_TABLE

where ZTES_TABLE is internal table.

Or if maintenance is allowed then use sm30 to post data in your ztable.

Regards,

Shweta

Read only

Former Member
0 Likes
857

Hi,

Collect the data into a single internal table,

Use the insert command to move the data.

Regards,

Sriram

PS: Reward points if it is useful.

Read only

Former Member
0 Likes
857

Collect the Data into an internal table and then loop that internal tabel and use insert command to move the data from internal table to database table .

Loop at itab.

insert into ztable from itab.

endloop.

or else use modify command.

Read only

Former Member
0 Likes
857

you can also directly create entry in Ztable by

utilites-table content-create entries.

but for that in attributes you have to specify maintainence allowed with no restrictions.

regards,

Ruchika

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
857

answered

Read only

Former Member
0 Likes
858

Hi Sree,

You can insert data into a Z table or any sap table by looping through an internal table of the same type or a structure filled in the program but make sure that the primary keys of the Z Table are filled in each loop otherwise it does not allow to insert record into a database table.

Reward points if helpful.

Regards,

Johnny