DATA : lt_mseg TYPE SORTED TABLE OF mseg
WITH NON-UNIQUE KEY grund.
DATA : ls_mseg TYPE mseg.
" Below will trigger implicit Binary Search
ls_mseg = lt_mseg[ grund = '<Some value>' ].
" Class 1 - Method 1
DATA : ls_val TYPE bwart_range.
" ts_val - Public type in Class 1
ls_val = VALUE ts_val( low = 'ABC' ).
" Class 2 - Method 1
DATA : ls_val TYPE bwart_range.
" ts_val - Public type in Class 1
ls_val = VALUE Class1=>ts_val( low = 'ABC' ).
" --------------------------------------------------------
" Class 1 - Method 1
DATA : ls_val TYPE bwart_range.
" ts_val - Private type in Class 1
ls_val = VALUE ts_val( low = 'ABC' ).
" Class 2 - Method 1
DATA : ls_val TYPE bwart_range.
" ts_val - Private type in Class 1 so gives Syntax Error
ls_val = VALUE Class1=>ts_val( low = 'ABC' ).
DATA : lt_po_detail_sort TYPE SORTED TABLE OF ekpo
WITH NON-UNIQUE KEY ebeln, ebelp.
" Same as
DATA : lt_po_detail_sort TYPE SORTED TABLE OF ekpo
WITH NON-UNIQUE KEY ebeln.
DATA ebelp. " Declares a single character variable
DATA: ls_mara_proc TYPE zmara,
ls_mara TYPE zmara,
ls_admin_data TYPE zs_admindata.
" Combine the custom material header
" fields and admin data
" Point to note is component fields in
" structure zs_admindata are also in zmara
ls_mara_proc = CORRESPONDING
zmara( BASE ( ls_mara ) ls_admin_data ).
DATA: lt_quality TYPE ztt_quality,
lt_quality_db TYPE ztt_quality,
lt_mat_plant TYPE SORTED TABLE OF zs_mat_plant
WITH NON-UNIQUE KEY matnr.
" Map the selected materials and plants
lt_quality = VALUE ztt_quality(
FOR ls_quality
IN lt_quality_db
( matnr = ls_quality-matnr
werks = lt_mat_plant[ matnr = ls_quality-matnr ]-werks ) ).
LOOP AT ct_all_mat ASSIGNING FIELD-SYMBOL(<fs_all_mat>)
GROUP BY ( field1 = <fs_all_mat>-field1 )
ASCENDING ASSIGNING FIELD-SYMBOL(<fs_all_mat_grp_tab>).
" Prepare the sequence number as a running number
" irrespective of field1
LOOP AT GROUP <fs_all_mat_grp_tab>
ASSIGNING FIELD-SYMBOL(<fs_all_mat_grp_rec>).
" Processing for all item in a Group
ENDLOOP.
" Processing once for each matching group.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
13 | |
11 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 |