‎2008 Aug 20 6:25 PM
Hi Guys,
I new to insert data in the Ztable, can any one provide coding for this.
Table doesn't have the Table maintainence and it is not possible in SE16 directly also
Thanks,
Gourisankar.
‎2008 Aug 20 6:27 PM
HI,
Check the help on command INSERT
Eg:
INSERT INTO TABLE ZTABLE FROM WORKAREA.
Bhupal
‎2008 Aug 20 7:01 PM
Hi,
Try the following code to insert data into ztable.
{}data: itab type <ZTABLE>.
ITAB-Field1 = <some value>.
ITAB-Field2 = <some value>.
insert <ztable> from itab.
if sy-subrc = 0.
endif.{}
Regards
Kiran Sure
‎2008 Aug 20 8:17 PM
Hi,
<copy&paste_removed_by_moderator>
Regards,
Bhaskar
Edited by: Julius Bussche on Aug 20, 2008 7:56 PM
‎2008 Aug 20 8:43 PM
Lets say you have all your data in an internal table ITAB.
Now code this..
LOOP AT ITAB.
ZTABLE- FIELD1 = ITAB-FIELD1.
ZTABLE- FIELD2 = ITAB-FIELD2.
ZTABLE- FIELD3 = ITAB-FIELD3.
modify ZTABLE.
endloop.
‎2008 Aug 20 8:46 PM
use fm SE16N_INTERFACE after giving table name & import paramter I_EDIT = 'X'.
a®
‎2008 Aug 20 9:00 PM
Hi,
Refer to this link
After getting records into you internal table you do even like this..
Insert Ztable from Table <itab>
just check the help if necessary..
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm
Hope this would solve your issue.
Good luck
Narin
‎2008 Aug 21 6:22 AM
‎2008 Aug 21 6:33 AM
Hi,
plz try this way :
data: itab type table of ztable with header line.
itab-fld1 = 'A'.
itab-fld2 = 'B.
itab-fld3 = 'C'.
append itab.
itab-fld1 = 'D'.
itab-fld2 = 'E.
itab-fld3 = 'F'.
append itab.
insert ztable from table itab.
hope this helps.
thanx,
dhanashri.
Edited by: Dhanashri Pawar on Aug 21, 2008 7:38 AM
‎2008 Aug 21 6:47 AM
HI shankar,
First create an internal table with the data you require to insert in the z-table.
If this is the first time you are entering data in the z-table use APPEND and if the records have to be inserted based on some condition use INSERT <dbatab> .In this way you can insert the records in the z-table.
Best of luck,
Bhumika
‎2008 Aug 21 7:20 AM
Hi gouri,
For inserting data into z table you need to write the following...
First create an internal table with work area having all those type of fields of z table.
data: begin of itab occurs 0,
nit1 type ztab-field1,
nit2 type ztab-field2,
....
....
end of itab.
itab-field1 = 12.
itab-field2 = 23.
MOVE-CORRESPONDING itab TO ztab.
MODIFY ztab.
Hope it will work.
Thanks.
Nitesh
‎2008 Aug 22 9:11 AM