ABAP 7.40: Internal Tabloyu, RANGE İçine Atma

Abap 7.40 ile internal tabloyu range içine atma kodu ve range`i internal tabloya atma kodu.

****ITAB to RANGE

DATA: r_arbpl TYPE RANGE OF crhd-objid.

 

REFRESH: r_arbpl[].

IF s_arbpl[] IS NOT INITIAL.

SELECT objid, arbpl FROM crhd INTO TABLE @DATA(lt_arbpl)

  WHERE objty EQ `A`

      AND arbpl IN @s_arbpl.

 

r_arbpl = VALUE #( FOR wa1 IN lt_arbpl ( sign = |I|

                                                          option = |EQ|

                                                              low = wa1-objid ) ).

ENDIF.

 

 

****RANGE to ITAB

lt_tab = CORRESPONDING #( lt_rng_tab MAPPING field = low ).