‎2007 Jun 11 8:36 AM
Hi Folks
can you please explaon me the step-by-step procedure how to post data into the ztable.
Regards,
Sree
‎2007 Jun 11 11:02 AM
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
‎2007 Jun 11 8:39 AM
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
‎2007 Jun 11 8:41 AM
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.
‎2007 Jun 11 10:26 AM
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.
‎2007 Jun 11 10:46 AM
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
‎2007 Jun 11 11:01 AM
‎2007 Jun 11 11:02 AM
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