Skip to Content
author's profile photo Former Member
Former Member

enable save button with function TEXT_EDIT

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Apr 24, 2007 at 09:41 AM

    Hi Gorka,

    Use the FM: EDIT_TEXT instead of TEXT_EDIT.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 24, 2007 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.