Skip to Content
0
Former Member
Aug 20, 2007 at 11:37 AM

SAVE_TEXT

18 Views

Hi,

I am using SAVE_TEXT function module to insert the Text in STO(ME22N).

My Req is to insert the new Text in the new line, But the existing Text is

getting overwritten.

Pl find my code as follows:-

thead-tdid = 'F01'.

thead-tdspras = sy-langu.

thead-tdobject = 'EKPO'.

MOVE wg_open-vbeln TO thead-tdname.

MOVE wg_open-posnr1(5) TO thead-tdname10(5).

ttab-tdformat = '/*'.

ttab-tdline = p_lv_comments.

APPEND ttab.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

header = thead

insert = 'X'

savemode_direct = 'X'

TABLES

lines = ttab

EXCEPTIONS

id = 1

language = 2

name = 3

object = 4

OTHERS = 5.

Is there some system constraint or Coding bug? Pl suggest some solution...

Regards,

Rushikesh