09-08-2008 2:49 PM
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
09-08-2008 2:57 PM
Just make sure you folow it up with a commit ie..
*.. commit text
call function 'COMMIT_TEXT'.
~Suresh
09-08-2008 2:59 PM
Have you provided the correct values for FM parameters, just check once
09-08-2008 3:26 PM
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.
09-08-2008 6:46 PM
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.
09-08-2008 7:13 PM
09-08-2008 7:28 PM
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