Code: Alles auswählen.
Methods:
get_zterm importing iv_zterm TYPE t052-zterm optional returning Value (rv_zterm) type ttext.
Method get_zterm.
Data : lt_text type table of ttext,
Lv_string type String.
CALL FUNCTION 'FI_PRINT_ZTERM'
EXPORTING
i_zterm = iv_zterm
i_langu = sy-lang
* I_XT052U = ' '
* I_T052 =
TABLES
t_ztext = lt_ztext
* EXCEPTIONS
* ZTERM_NOT_FOUND = 1
* OTHERS = 2.
IF sy-subrc = 0.
LOOP AT lt_ztext INTO DATA(ls_ztext) WHERE text1 IS NOT INITIAL.
CONCATENATION lv_string ls_ztext-text1 into lv_string separated by space
* rv_zterm = ls_ztext-text1.
ENDLOOP.
rv_zterm = lv_string.
ENDIF.
Endmethod.
Code: Alles auswählen.
lt_ztext : aassssghsshhshshjj frggthhhvh
hdzshshsshdhdsjdb frggthhhvh
lv_string : aassssghsshhshshjj frggthhhvh
ls_ztext : hdzshshsshdhdsjdb frggthhhvh
rv_zterm:aassssghsshhshshjj frggthhhvh hd