ST05. Нажать активацию. Перейти к программе с запросом. Затем обратно на st05. Деактивировать и просмотреть.
FIELD-SYMBOLS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
*&---------------------------------------------------------------------* *& Report ZSELECT_AVTO *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zselect_avto. FIELD-SYMBOLS: <fs_value> TYPE ANY. FIELD-SYMBOLS: <fs_struc> TYPE ANY. DATA: field1 TYPE text30, structure TYPE mara, structure_name TYPE text30. SELECT SINGLE * INTO structure FROM mara. field1 = 'PARTHER'. structure_name = 'STRUCTURE'. ASSIGN (structure_name) TO <fs_struc>. ASSIGN COMPONENT field1 OF STRUCTURE structure TO <fs_value>. DO 300 TIMES. ASSIGN COMPONENT sy-index OF STRUCTURE structure TO <fs_value>. CHECK sy-subrc = 0. WRITE / <fs_value>. ENDDO. BREAK-POINT. |
NEW IN VERSION
1 |
DATA(dtv2) = new dtv( ). |
1 2 3 |
LOOP AT itab INTO DATA(wa). ... ENDLOOP. |