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: 

Delete Standard Text

Former Member
0 Kudos

Hi all,

I want to delete standard text through program.

I am using Delete_text FM but its not working, even if i use SAVEMODE_DIRECT = 'X'.

after the FM call in debuging mode, i check the SO10, but the text is still there.

Can anyone tell me how can we delete the standard text.

Thanks n Regards

6 REPLIES 6

suresh_datti
Active Contributor
0 Kudos

Just make sure you folow it up with a commit ie..

*.. commit text

call function 'COMMIT_TEXT'.

~Suresh

former_member585060
Active Contributor
0 Kudos

Have you provided the correct values for FM parameters, just check once

Former Member
0 Kudos

Hi,

You can delete it through tables, STXH and STXL,

by providing the SO10 name and language of the text.

like that:

delete from STXH where TDNAME eq 'ZDENEME' and TDSPRAS eq 'TR'.

delete from STXL where TDNAME eq 'ZDENEME' .

hope helps.

Deniz.

0 Kudos

HI all,

how to delete the standard text from memory.?

My problem is, I am creating standard text in my program for invoice printing.

When the script is run for a invoice its printing the standard text correctly. when other invoice is printed immediately even my program is creating a new standard text, but the include statement in the script is pulling standard text from memory.

Can anybody tell me how to delete/clear the standard text in memory.

I had used DELETE_TEXT and passed all the parameters correct i have used SAVEMODE_DIRECT = 'X' and TEXTMEMORY_ONLY = 'X' but none of the seems to work

even i have tried deleting entries from STXH & STXL tables, but this also didnt worked for me.

Thanks n Regards

Maruthi.

0 Kudos

See if FM INTTAB_DELETE_TEXT helps. It's documented.

Rob

0 Kudos

Even this is not working.

this is how i am using

In my subroutine pool program

CALL FUNCTION 'CREATE_TEXT'

EXPORTING

fid = lv_id

flanguage = lv_lang

fname = lv_name

fobject = lv_obj

save_direct = ' '

TABLES

flines = it_text.

NOTE: I am not using save_text to save the standard text.

include this text in script layout.

---

---

-


before ending main window i am calling another peform in the subroutine pool to delete the standard text, but its not working.

  • CALL FUNCTION 'DELETE_TEXT'

  • EXPORTING

    • CLIENT = SY-MANDT

  • id = lv_id

  • language = lv_lang

  • name = lv_name

  • object = lv_obj

  • savemode_direct = 'X'.

    • textmemory_only = 'X'.

even this is not working

CALL FUNCTION 'INTTAB_DELETE_TEXT'

EXPORTING

object = lv_obj

name = lv_name

id = lv_id

language = lv_lang

  • EXCEPTIONS

  • NOT_FOUND = 1

  • OTHERS = 2

Edited by: Mr A on Sep 8, 2008 8:31 PM