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

Quick append

Former Member
0 Likes
597

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

4 REPLIES 4
Read only

Former Member
0 Likes
569

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.

Read only

Former Member
0 Likes
569

Not one statement but may be two statements!!

I_MVBAK[] = I_VBAK[].

DELETE I_MVBAK WHERE VBTYP <> 'H'.

Read only

0 Likes
569

assuming they have the same structure

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
569

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.