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

Store the Data From Internal Table to DB Structure

Former Member
0 Likes
1,119

Hai Friends....

How to store the Data From Internal Table to DataBase Structure.....

Please Reply me....

BalajeeKannan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
896

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

6 REPLIES 6
Read only

Former Member
0 Likes
897

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

Read only

Former Member
0 Likes
896

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

Read only

0 Likes
896

Hai Shiba dutta...

Can You Explain Briefly about this Please......

I am Waiting For Your Reply....

<i><b>BalajeeKannan</b></i>

Read only

Former Member
0 Likes
896

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

Read only

Former Member
0 Likes
896

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

Read only

0 Likes
896

Hai Shiba dutta...

Thank You VeryMuch For Your Answer......

It helps me.....

<i><b>BalajeeKannan</b></i>