Skip to Content
0
Former Member
Apr 24, 2007 at 09:39 AM

enable save button with function TEXT_EDIT

55 Views

Hi,

I have a problem with TEXT-EDIT function.

I call to this function two times for two diferents objects (EKKO and VBBK).

I insert such parameters but when i call with object 'EKKO' the button 'SAVE' is not enabled.

This is the code:

  • With the object EKKO

e_head-tdobject = 'EKKO'.

e_head-tdname = lv_ebeln.

e_head-tdid = 'F01'.

e_head-tdspras = sy-langu.

CALL FUNCTION 'TEXT_EDIT'

EXPORTING

I_HEADER = e_head

TABLES

T_LINES = i_lines

.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

HEADER = e_head

savemode_direct = c_marcado

TABLES

LINES = i_lines

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

OBJECT = 4

OTHERS = 5

.

  • With the object VBBK

e_head-tdobject = 'VBBK'.

e_head-tdname = i_vbeln-vbeln.

e_head-tdid = 'Z001'.

e_head-tdspras = sy-langu.

CALL FUNCTION 'TEXT_EDIT'

EXPORTING

I_HEADER = e_head

TABLES

T_LINES = i_lines

.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

HEADER = e_head

savemode_direct = c_marcado

TABLES

LINES = i_lines

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

OBJECT = 4

OTHERS = 5

.

Somebody knows so that it can be?

Thanks and regards