... FOR wa|<fs> IN itab [INDEX INTO idx] [cond] [let_exp] ...
DATA:
lt_mara TYPE mara_tt,
lt_matnr TYPE table_matnr,
lv_timestamp_start TYPE timestampl,
lv_timestamp_end TYPE timestampl,
lv_timestamp TYPE timestampl.
SELECT * FROM mara INTO TABLE lt_mara.
GET TIME STAMP FIELD lv_timestamp_start.
DO 1000 TIMES.
lt_matnr = VALUE table_matnr( FOR ls_mara IN lt_mara ( ls_mara-matnr ) ).
ENDDO.
GET TIME STAMP FIELD lv_timestamp_end.
lv_timestamp = lv_timestamp_end - lv_timestamp_start.
WRITE / `Workarea: ` && lv_timestamp.
GET TIME STAMP FIELD lv_timestamp_start.
DO 1000 TIMES.
lt_matnr = VALUE table_matnr( FOR <ls_mara> IN lt_mara ( <ls_mara>-matnr ) ).
ENDDO.
GET TIME STAMP FIELD lv_timestamp_end.
lv_timestamp = lv_timestamp_end - lv_timestamp_start.
WRITE / `Field symbol: ` && lv_timestamp.
Test
Workarea: 1.6138080
Field symbol: 0.5876100
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
4 | |
3 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 |