Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

I can not edit long text using function "edit_text"

Dear All

I can not edit text using Function "edit_text" ,Below is a simple test.

It work fine if I remove below threr rows. I don`t know why. Please give me hand. Thanks

As the following three rows is necessary for me.

MOVE '>' to tltxt-TDFORMAT.

MOVE '+++ 20100414 112428 TANGCHER 6510' to tltxt-tdline.

append TLTXT.

Pls guide. Thanks.

-


REPORT ZTEST.

DATA: IT_TLINE LIKE TLINE OCCURS 0 WITH HEADER LINE.

DATA: TIT_HTXT LIKE THEAD,

W_UFLAG,

TLTXT LIKE IT_TLINE OCCURS 0 WITH HEADER LINE.

DATA: L_CONTROL LIKE ITCED.

CLEAR: TIT_HTXT, W_UFLAG.

TIT_HTXT-TDOBJECT = 'KNKK'.

TIT_HTXT-TDID = '0003'.

TIT_HTXT-TDSPRAS = SY-LANGU.

TIT_HTXT-TDLINESIZE = '072'.

TIT_HTXT-TDNAME(10) = 'XXXXXXXXXX'.

TIT_HTXT-TDNAME+10 = '6510'.

MOVE '>' to tltxt-TDFORMAT.

MOVE '+++ 20100414 112428 TANGCHER 6510' to tltxt-tdline.

append TLTXT.

MOVE '*' to tltxt-TDFORMAT.

MOVE 'test text edit' to tltxt-tdline.

append TLTXT.

CALL FUNCTION 'EDIT_TEXT'

EXPORTING

HEADER = TIT_HTXT

DISPLAY = ' '

SAVE = ' '

EDITOR_TITLE = 'TEST'

" CONTROL =

IMPORTING

FUNCTION = W_UFLAG

TABLES

LINES = TLTXT

EXCEPTIONS

ID = 1 .

AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'

ID 'BUKRS' FIELD TVKO-VKORG

ID 'ACTVT' FIELD '03'.

AUTHORITY-CHECK OBJECT 'ZOJS_SALOF'

ID 'VKORG' FIELD TVKO-VKORG

ID 'ACTVT' FIELD '03'.

Former Member
Not what you were looking for? View more on this topic or Ask a question