Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

enable save button with function TEXT_EDIT

Former Member
0 Kudos

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

2 REPLIES 2

former_member181962
Active Contributor
0 Kudos

Hi Gorka,

Use the FM: EDIT_TEXT instead of TEXT_EDIT.

Regards,

Ravi

Former Member
0 Kudos

Hi ,

Normally When you Read or Edit text in Purchase Order the SAve Button is not enabled. The text will be saved only when the PO is Saved.

But in Sales order it has Multiple texts in Header and the Save Button is enabled.

Regards

Rusidar