2014 Sep 30 9:32 PM
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.
2014 Oct 01 4:36 AM
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
2014 Oct 01 5:18 AM
I have never tried it but can you check with following syntax.
I_tab_standard[] = I_tab_hash[].
~Lokesh.
2014 Oct 01 5:53 AM
Hi, Venkat is right, only need this simple instruction. Regards.
2014 Oct 01 6:04 AM
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
2014 Oct 01 12:37 PM
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.
2014 Oct 01 12:51 PM
Okies, sorry I din see that...Did you try with the basic queries? What was the result?
Regards,
Satish
2014 Oct 01 1:25 PM
2014 Oct 01 3:38 PM
Probably I got lost in some point but If both tables had the same structure and no header, this should work standardtab = hashtab , right?
2014 Oct 01 4:58 PM
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.
2014 Oct 01 5:05 PM
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
2014 Oct 01 6:21 PM
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
2014 Oct 01 6:46 PM
In context, and following the other responses, it's clear it's an internal table of type standard that he's talking about.
2014 Oct 01 9:06 PM
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.
2014 Oct 01 9:49 PM
Sir, it is a standard database table. Sorry for the confusion.
2014 Oct 02 6:30 AM
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.
2014 Oct 02 6:31 AM
Updating a database table from any internal table is basic abap programming. Refer to your course notes, or the ABAP keyword documentation.
Thread locked.