I did a check and got the warning that I should not assign a table rows unless I want to change that row. I then check the code and find that the entire purpose of reading the rows into a field symbol was to change a value. I presume the check looks at the field symbol to see ...
call function 'DDIF_FIELDINFO_GET' exporting tabname = query_table * FIELDNAME = ' ' * LANGU = SY-LANGU * LFIELDNAME = ' ' * ALL_TYPES = ' ' * GROUP_NAMES = ' ' importing * X030L_WA = ddobjtype = table_type * DFIES_WA = * LINES_DESCR = tables dfies_tab = table_str...
* assign COMPONENT 'SEL' OF STRUCTURE <LS_X> TO FIELD-SYMBOL(<LV_SEL>). * IF SY-SUBRC = 0. * <LV_SEL> = 'X'. * ENDIF. * endif. ENDLOOP. SORT gt_modi BY row_id fieldname. DELETE ADJACENT DUPLICATES FROM gt_modi COMPARING row_id fieldname. EXPORT lv_save = lv_save gt_m...
assign work to <w_itab> casting type (query_table). * 准备select data: select type table of edpline, sublist type edpline. loop at fields_int. sublist = fields_int-fieldname && ','. append sublist to select. endloop. assign select[ lines( select ) ] to field-symbol(<lastselect>...
READ TABLE itab ASSIGNING FIELD-SYMBOL( ). 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 2.2 获得内表行数 Before: DATA: lv_rows TYPE i. LV_ROWS = LINES( ITAB) After: DATA(lv_rows) = LINES( itab ). ...
DATA: ITAB2 LIKE TABLE OF ITAB WITH HEADER LINE.DATA: ITAB3 LIKE TABLE OF ITAB WITH HEADER LINE.LOOP AT ITAB.READ TABLE ITAB2 WITH KEY COL1 = ITAB-COL1 COL2 = ITAB-COL2.IF SY-SUBRC <> 0.APPEND ITAB TO ITAB2.ELSE.APPEND ITAB TO ITAB3.READ TABLE ITAB3 ...
*& 使用FIELD SYMBOL 功能设置字段显示背景颜色 *& DATA: LIGHT TYPE C. 信号灯。 *& COLORING ROWS: 颜色行 *& CellBtn 单元格按钮 *&---* REPORT Z15_23. TYPE-POOLS: icon. "" 声明图标 *& 内表结构类型 :开始 TYPES: BEGIN OF t_str. INCLUDE STRUCTURE sflight . TYPES: company type c ...
ASSIGN COMPONENT ls_sval-fieldname OF STRUCTURE ls_var TO FIELD-SYMBOL(<lv_value>). IF sy-subrc = 0. <lv_value> = ls_sval-value. ENDIF. ENDLOOP. DATA: lv_updkz(1). SELECT SINGLE * FROM ztsel_variant INTO ls_var_read WHERE varid = ls_var-varid ...
使用field symbol 通过一个内表 定义一个 结构体 作为 指针 Read table itab [index n / key ] assigning <fs>. Write: / <fs>-field_1. 直接修改 <fs> 的值 会怎么样? Change 修改内表 Transporting 的 传输方向 通过field symbol 直接修改 内表 ...
12、正确地使用inner joinLet us take an example of 2 tables, zairln and zflight. The table zairln has the field airln, which is the airline code and the field lnnam, which is the name of the airline. The table zflight has the field airln, the airline code and other fields which...