DATA ZTEXTLINES TYPE TABLE OF TEXTLINES WITH HEADER LINE.
CALL FUNCTION 'TERM_CONTROL_EDIT'
EXPORTING
TITEL = '请输入长文本:'
LANGU = SY-LANGU
TABLES
TEXTLINES = ZTEXTLINES
EXCEPTIONS
USER_CANCELLED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
LOOP AT ZTEXTLINES.
WRITE : / ZTEXTLINES-LINE1,ZTEXTLINES-LINE2,ZTEXTLINES-LINE3,ZTEXTLINES-LINE4.
ENDLOOP.