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

Quick append

Hi,

I have one internal table to loop using 'WHERE' statement combined with 'AT NEW' selection. Result of extended-code check shows error in 'problematic statement'. So I now want to quick append that internal table lets say I_VBAK to I_MVBAK where VBTYP = 'H' (to move data for return order).

What is the quick way to do that? I dont want to do loop again in I_VBAK and then move to I_MVBAK.

Many thanks.

Alia

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 Nov 18, 2005 at 02:55 AM

    Hi!

    There is no other option to copy internal table extract by some condition to another internal table without using "LOOP AT itab1 WHERE condition/APPEND itab2".

    You can improve "LOOP WHERE" performance by use of "ASSIGNING <fs>" construction.

    Regards,

    Maxim.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 18, 2005 at 03:21 AM

    Not one statement but may be two statements!!

    I_MVBAK[] = I_VBAK[].

    DELETE I_MVBAK WHERE VBTYP <> 'H'.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 18, 2005 at 04:59 AM

    Hi,

    Append lines of i_vbak to i_mvbak.

    Delete i_mvbak where vbtyp <> 'H'.

    But both i_vbak and i_mvbak should have same struture.

    Kindly reward points if it helps.

    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.