2007 Apr 01 5:21 AM
Hai Friends....
How to store the Data From Internal Table to DataBase Structure.....
Please Reply me....
BalajeeKannan
2007 Apr 01 5:35 AM
hi
there are many threads available in the forum related to your question...please search the forum before posting a question...thanks
sample code...
loop at itab.
ztable-field1 = itab-field1.
ztable-field2 = itab-field2.
ztable-field3 = itab-field3.
.
.
.
.
insert ztable.
endloop.
if helpful, reward
Sathish. R
Hai Friends....
How to store the Data From Internal Table to DataBase Structure.....
Please Reply me....
BalajeeKannan
2007 Apr 01 5:35 AM
hi
there are many threads available in the forum related to your question...please search the forum before posting a question...thanks
sample code...
loop at itab.
ztable-field1 = itab-field1.
ztable-field2 = itab-field2.
ztable-field3 = itab-field3.
.
.
.
.
insert ztable.
endloop.
if helpful, reward
Sathish. R
2007 Apr 01 6:20 AM
sorry i am bnot enough clear but if you want to sve the data in database level then you can not enter any data in structure because structure can not contain any data in database level .. you can only assign the value to a structure at runtime and that is only one row...
but if you want to do that in program to assign the value at run time then do like this...
like
afrud-aufnr = itab-aufnr.
regards
shiba dutta
null
2007 Apr 01 6:43 AM
Hai Shiba dutta...
Can You Explain Briefly about this Please......
I am Waiting For Your Reply....
<i><b>BalajeeKannan</b></i>
2007 Apr 01 7:10 AM
You can not store data in database by structure as we are doing for table. suppose i have a transparent table and i want to insert data in that here we can use
<b>insert dbtab from table itab.</b>
it will update the data in database which you can fetch by select query from database ..so we can store data permanently in that table in database and we can proceed further with that data.
But in the case of structure we can not insert data for the structure because it does not contain data at datbase. It can only take data temporarily at program run time and you can process the data on ly in that program. so you can not access or store data in structure for further use..
regards
shiba dutta
2007 Apr 01 7:23 AM
just go through this links..
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fcc358411d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fcc358411d1829f0000e829fbfe/content.htm</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm</a>
regards
shiba dutta
2007 Apr 01 7:37 AM
Hai Shiba dutta...
Thank You VeryMuch For Your Answer......
It helps me.....
<i><b>BalajeeKannan</b></i>
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |