04-24-2007 10:39 AM
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
04-24-2007 10:41 AM
Hi Gorka,
Use the FM: EDIT_TEXT instead of TEXT_EDIT.
Regards,
Ravi
04-24-2007 10:49 AM
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