*在 MAPPING 语句中,需要注意两边的字段类型,以免类型不兼容而导致程序 dump * 使用DEEP处理深层结构数据,相当于MOVE CORRESPONDING [ EXPANDING NESTED TABLES ] *---------------------------------------------------------------------* *版权声明:本文为CSDN博主
Variant for Internal Tables 2.MOVE-CORRESPONDING[EXACT]itab1 TO itab2 [EXPANDING NESTED TABLES][KEEPING TARGET LINES]. The statementMOVE-CORRESPONDINGis used to assign components with the same name in structured data objects to each other. There are two variants of the statements, which can cal...
MOVE-CORRESPONDING struc1 TO struc2 EXPANDING NESTED TABLES. Example This example shows howMOVE-CORRESPONDINGis applied to two structures with the same typet_strand which are cast using field symbols with different types. The statement evaluates the names of the types of the field symbols, which ...
1.16 Internal Table:Processing Internal Tables Using Expressions 示例代码: "test7"表达式访问内表FORMf_test7.DATA:lt_spfliTYPETABLEOFspfliWITHNON-UNIQUE SORTED KEY k_sort COMPONENTS countryfr.DATA:ls_spfliLIKELINEOFlt_spfli.DATA:lv_countryfrTYPEspfli-countryfr.SELECT*FROMspfliINTOTABLElt_spfli."line...
MOVE-CORRESPONDING[EXACT]struc1TOstruc2[EXPANDINGNESTEDTABLES]. 语句MOVE-CORRESPONDING的此变体要求为 struc1 和 struc2 指定结构。 网格 - 作为语句 MOVE-CORRESPONDING 的操作数 - 以与普通结构相同的方式处理,也可以指定。 " Easy MoveDATA(ls_t001)=CORRESPONDINGt001(ls_data). ...
itab_nested2 = CORRESPONDING #( DEEP BASE ( itab_nested2 ) itab_nested1 ). MOVE-CORRESPONDING itab_nested1 TO itab_nested2 EXPANDING NESTED TABLES. MOVE-CORRESPONDING itab_nested1 TO itab_nested2 EXPANDING NESTED TABLES KEEPING TARGET LINES....
因此7.4引入了MOVE -CORRESPONDING EXPANDING NESTED TABLES,该语句赋值时,首先删除目标表的记录,然后赋值时会校验t_result内表结构字段,如果该字段不同则该字段将不赋值。MOVE-CORRESPONDING KEEPING TARGET LINES可以保留原内表的记录,类似于APPEND LIN ES OF table1 TO table2,MOVE -CORRESPONDING EXPANDING NESTED ...
You see also the names of internal tables in the measurement result. 8. Click on the top performance consumer and take a look at the source code. You'll find a nested loop over the table "l_objectlist" and it, a construction that can be expensive in terms of runtime. As you can ...
MOVE-CORRESPONDING itab1 TO itab2 EXPANDING NESTED TABLES KEEPING TARGET LINES. display_table2( ). out->display( ). ENDMETHOD. METHOD fill_tables. itab1 = VALUE #( ( col1 = 'a11' col2 = 'a12' col3 = VALUE #( ( col1 = 'a11' col2 = 'a12' ) ...
In structured and tabular components, the assignment is made in accordance with the rules of MOVE-CORRESPONDING with the addition EXPANDING NESTED TABLES. Identically named components can also be specified on the right and left side of the equals sign. This is a good idea in the following cases...