ABAP 7.4 Syntax

Now syntax are there and they help in improving the speed of ABAP. Now one can use Move-corresponding with better performance,

Reading Lines or records of internal table.

TYPES : BEGIN OF LTY_VBRK,

FKART TYPE VBRK-FKART,

VBELN TYPE VBRK-VBELN,

*bill_no type char10,

END OF LTY_VBRK.

DATA : LT_VBRK_MC TYPE TABLE OF LTY_VBRK,

LT_VBRK_MCE TYPE TABLE OF LTY_VBRK.

SELECT * FROM VBRK INTO TABLE @DATA(LT_VBRK) UP TO 300 ROWS.

“Now we have declared the table with two field and different structure. We will use move corresponding

lt_vbrk_mc = CORRESPONDING #( LT_VBRK ) .

If while doing do you wish not to move particular field then use below

lt_vbrk_mce = corresponding #( lt_vbrk EXCEPT FKART ).

Suppose  you have a internal table field with different name and you wish to use move-corresponding

*lt_vbrk_mce = corresponding #( lt_vbrk MAPPING bill_no = vbeln ).

Leave a Reply

Your email address will not be published. Required fields are marked *