Skip to Content
author's profile photo Former Member
Former Member

issue with insert into table statement..

Hi,

I have declared a hashed table as follows:

DATA vbrk TYPE HASHED TABLE OF t_vbrk

WITH HEADER LINE

WITH UNIQUE KEY vbeln.

Another internal table as follows:

DATA vbrktab2 TYPE TABLE OF t_vbrk WITH HEADER LINE.

I fetch data and populate vbrktab2. No issues, i am able to see the data in this while debugging.

Then I do as follows:

INSERT vbrktab2 INTO TABLE vbrk.

But I dont see the records added in vbrk !!

What could be the issue ? I even tried doing a COMMIT WORK after that, still the records are not added to vbrk. VBELN are unique, and hence that is also not an issue !!

Any suggestions ?

thks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2008 at 05:59 PM

    hi,

    Actual format for inserting is ...

    INSERT dbtab [CLIENT SPECIFIED] FROM TABLE itab.

    So your statement has to be in the below way ...

    INSERT vbrk from table vbrktab2 .

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2008 at 07:58 PM

    Hi,

    Try to use MODIFY statement....I hope it should work.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2008 at 08:34 PM

    vbrk$& = vbrktab2$&.

    Substitute the "left bracket" for the "$" and a "right bracket" for the '&' . "[]"

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.