点击此处---> 群内免费提供SAP练习系统(在群公告中)
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
REPORT ytest_for_data. DATA:itab1 TYPE TABLE OF t001, itab2 TYPE TABLE OF t001. DATA:wa1 LIKE LINE OF itab1. DATA:wa2 LIKE LINE OF itab2. DATA(lv_wa) = 'WA1'. DATA:lv_tabname TYPE char30. DATA(lv_where) = 'bukrs = 0001 '. FIELD-SYMBOLS:<fs_itab> TYPE STANDARD TABLE. FIELD-SYMBOLS:<fs_wa> TYPE any. lv_tabname = 'ITAB1'. ASSIGN (lv_tabname) TO <fs_itab>. ASSIGN (lv_wa) TO <fs_wa>. READ TABLE <fs_itab> INTO <fs_wa> WITH KEY lv_where. LOOP AT <fs_itab> INTO <fs_wa> WHERE (lv_where) . ENDLOOP.