Ex4 Lines (VALUE…) TYPES: tt_mara TYPE TABLE OF mara WITH EMPTY KEY.ĭATA(count) = lines( VALUE tt_mara( FOR line IN lt_mara WHERE ( matnr = 'XXX' ) ( line ) ) ). SELECT * UP TO 1000 ROWS FROM marc INTO TABLE i_marc.ĮNDIF. Ex3 LOOP AT TYPES: BEGIN OF x_count,ĭATA: i_marc TYPE STANDARD TABLE OF marc, Ex2 describe table append lines of itab to itab1.įree itab1. WRITE: / matkl_group->matkl, matkl_group->size.ĮNDLOOP. GROUP BY ( matkl = ls_materials-matkl size = GROUP SIZE ) LOOP AT lt_materials INTO DATA(ls_materials) ![]() * Simply get the unique material groups, use WITHOUT MEMBERS After 7.40 DATA(lv_lines) = REDUCE i( INIT x = 0 FOR wa IN gt_itabĭATA(lv_count) = REDUCE i( INIT i = 0 FOR wa IN lt_mara WHERE ( aenam EQ 'MARSLAN' ) NEXT i = i + 1 ).ĭATA: lt_materials TYPE STANDARD TABLE OF ty_material. LOOP AT gt_itab INTO ls_itab where F1 = ‘XYZ’.ĮNDLOOP. ![]() Source: Before 7.40 DATA: lv_lines TYPE i. with UNTIL or WHILE for conditional iterations.You can use all kinds of FOR expressions in REDUCE: While VALUE and NEW expressions can include FOR expressions, REDUCE must include at least one FOR expression.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |