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

abap syntax difference

former_member391265
Participant
0 Likes
702

Hi all, I have a statement below - This is being asked in 1 of the interview. please clear my doubt.. both codes will bring same result... itab1, itab2 &itab3 declare with headerline. LOOP AT ltab1 WHERE  ABC  = ltab2-ABC                     AND XYZ = ltab2-XYZ.                        MOVE-CORRESPONDING ltab1 TO itab2.       MOVE itab2 TO itab3.       APPEND itab3. endllop. CAN I WRITE/OPTIMIZE above code itab1, itab2 &itab3. wa1, wa2 & wa3. LOOP AT ltab1 into wa1 WHERE  ABC  = wa2-ABC                     AND XYZ = wa2-XYZ.                        MOVE-CORRESPONDING wa1 TO wa2.       APPEND wa2 TO itab3 . endllop. is there any difference in above 2 statements..

4 REPLIES 4
Read only

former_member210541
Active Participant
Read only

0 Likes
664

Thats ok.. but my both codes will result same output or different output?

Read only

0 Likes
664

I hope both are same result. Not seen any difference.

Read only

0 Likes
664

looks same