TYPES:
BEGIN OF ty_zx02924,
/bic/zx02924 TYPE /bic/oizx02924,
END OF ty_zx02924.
DATA:
lt_zx02924 TYPE HASHED TABLE OF /bic/azx02pa102-/bic/zx02924
WITH UNIQUE DEFAULT KEY.
Можно так:
LOOP AT result_package ASSIGNING <result_fields>.
INSERT CONV #( <result_fields>-/bic/zx02014 )
INTO TABLE lt_zx02924.
ENDLOOP.
А можно так:
lt_zx02924 = VALUE #(
FOR GROUPS <gr1> OF <line> IN RESULT_PACKAGE
GROUP BY (
/bic/zx02924 = <line>-/bic/zx02014
) (
conv #( <gr1>-/bic/zx02924 )
)
).
Статья.
BEGIN OF ty_zx02924,
/bic/zx02924 TYPE /bic/oizx02924,
END OF ty_zx02924.
DATA:
lt_zx02924 TYPE HASHED TABLE OF /bic/azx02pa102-/bic/zx02924
WITH UNIQUE DEFAULT KEY.
Можно так:
LOOP AT result_package ASSIGNING <result_fields>.
INSERT CONV #( <result_fields>-/bic/zx02014 )
INTO TABLE lt_zx02924.
ENDLOOP.
А можно так:
lt_zx02924 = VALUE #(
FOR GROUPS <gr1> OF <line> IN RESULT_PACKAGE
GROUP BY (
/bic/zx02924 = <line>-/bic/zx02014
) (
conv #( <gr1>-/bic/zx02924 )
)
).
Статья.
Комментариев нет:
Отправить комментарий