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

Table Types

Former Member
0 Likes
1,846

Hello, I have an internal table declared as hash and i want to update a standard table. Is it at all possible? if yes, can you share the syntax please?

Thanks.

16 REPLIES 16
Read only

0 Likes
1,815

Hi Venkat,

          Can you share more detail like which standard table you need to update and what is the structure for the internal table?

Thanks

Hock Lin

Read only

Former Member
0 Likes
1,815

I have never tried it but can you check with following syntax.

I_tab_standard[] = I_tab_hash[].

~Lokesh.

Read only

fcorodriguezl
Contributor
0 Likes
1,815

Hi, Venkat is right, only need this simple instruction. Regards.

Read only

former_member1716
Active Contributor
0 Likes
1,815

Hi,

Yes it is possible simple queries will do it. Please follow the below discussion it will give you the result:)

http://scn.sap.com/thread/719551

Regards,

Satish

Read only

0 Likes
1,815

See the discussion is about from standard table to standard table. when ever i try to use MOdiify or Update statements it says the they are not compatible.

My internal table is declared as hashed and i have all my data in that table then i want to dump this all data into a standard database table.

Thanks.

Read only

0 Likes
1,815

Okies, sorry I din see that...Did you try with the basic queries? What was the result?

Regards,

Satish

Read only

0 Likes
1,815

INSERT LINES OF hashed_table INTO TABLE standard_table

Read only

0 Likes
1,815

Probably I got lost in some point but If both tables had the same structure and no header, this should work standardtab = hashtab , right?

Read only

0 Likes
1,815

Moving a hashed table to standard table directly is unlikely to work (I've not tried it), because you also pass the hash information at the same time, and the standard table won't know what to do with it.

Read only

0 Likes
1,815

I agree, that is a clearer approach the insert lines, I assume the standard table just ignore the hash information, if you try it works

Read only

0 Likes
1,815

Hi ,

In each of your posts you are mentioning about standard table,standard database table...What is it exactly....is it an internal table of type standard or a DB table ?

Please be more precise .

Kesav

Read only

0 Likes
1,815

In context, and following the other responses, it's clear it's an internal table of type standard that he's talking about.

Read only

0 Likes
1,815

Hello Matt,

I am still not sure about that. You can see that OP has responded only once and has the following statements.

when ever i try to use Modiify or Update

My internal table is declared as hashed and i have all my data in that table then i want to dump this all data into a standard database table.

It does not give much clarity for me 🙂 . Let me wait for his response.

Read only

0 Likes
1,815

Sir, it is a standard database table. Sorry for the confusion.

Read only

0 Likes
1,815

Kesavadas Thekkillath wrote:

Hello Matt,

I am still not sure about that. You can see that OP has responded only once and has the following statements.

when ever i try to use Modiify or Update

My internal table is declared as hashed and i have all my data in that table then i want to dump this all data into a standard database table.

It does not give much clarity for me :-) . Let me wait for his response.

And you were right!

It is a very basic question. I'll leave the discussion as it is reasonably interesting.

Read only

0 Likes
1,815

Updating a database table from any internal table is basic abap programming. Refer to your course notes, or the ABAP keyword documentation.

Thread locked.