Code: Alles auswählen.
TABLES: vbep.
DATA: v_char TYPE char2048,
t_char TYPE TABLE OF char2048.
SELECT-OPTIONS: so_bel FOR vbep-vbeln.
SELECT * INTO TABLE @DATA(t_vbep)
FROM vbep
WHERE vbeln IN @so_bel.
LOOP AT t_vbep ASSIGNING FIELD-SYMBOL(<s_vbep>).
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE <s_vbep> TO FIELD-SYMBOL(<v_field>).
IF sy-subrc EQ 0.
v_char = v_char && CONV string( <v_field> ).
ELSE.
APPEND v_char TO t_char.
CLEAR v_char.
EXIT.
ENDIF.
ENDDO.
ENDLOOP.
Code: Alles auswählen.
LOOP AT t_vbep ASSIGNING FIELD-SYMBOL(<s_vbep>).
v_char = <s_vbep>.
APPEND v_char TO t_char.
ENDLOOP.
Code: Alles auswählen.
LOOP AT t_vbep ASSIGNING FIELD-SYMBOL(<s_vbep>).
APPEND conv char2048 ( <s_vbep> ) TO t_char.
ENDLOOP.
Code: Alles auswählen.
TABLES: vbep.
DATA: v_char TYPE char2048,
t_char TYPE TABLE OF char2048,
t_vbep TYPE TABLE OF vbep,
v_conv TYPE string.
FIELD-SYMBOLS: <s_vbep> TYPE vbep,
<v_field> TYPE any.
SELECT-OPTIONS: so_bel FOR vbep-vbeln.
SELECT * INTO TABLE t_vbep
FROM vbep
WHERE vbeln IN so_bel.
LOOP AT t_vbep ASSIGNING <s_vbep>.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE <s_vbep> TO <v_field>.
IF sy-subrc EQ 0.
v_conv = <v_field>.
* oder
* WRITE <v_field> to v_conv. "dann v_conv umtypisieren auf char!!
CONCATENATE v_char v_conv INTO v_char.
ELSE.
APPEND v_char TO t_char.
CLEAR v_char.
EXIT.
ENDIF.
ENDDO.
ENDLOOP.