08-01-2007 4:35 PM
Hi All,
I am using the function module SAVE_TEXT to save header text for a shipment. When I call the FM it throws an error "I/O error for text VTTK 0005002156 0003 EN". The following are the parameters I am passing to the function module :
HEADER-TDOBJECT = 'VTTK'.
HEADER-TDNAME = Shipment Number or 0005002156.
HEADER-TDID = '0003'.
HEADER-TDSPRAS = 'E'.
The parameter LINES has the text that I am trying to update. Did anyone have a similar problem, if so would appreciate if you can share how you could resolve it.
Thanks
Sunil Achyut
08-01-2007 4:47 PM
hELLO Sunil...
Can you check on table STHX, if the text exists. Maybe that is happening
bye
Gabriel
08-01-2007 4:45 PM
Hi,
Try to use this way, it's works for me.
DATA: TLINE LIKE TLINE OCCURS 10 WITH HEADER LINE.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
HEADER = THEADER
INSERT = ' ' "<-- put here 'X' => New text or ' ' => Update
SAVEMODE_DIRECT = 'X'
OWNER_SPECIFIED = 'X'
TABLES
LINES = TLINE "<-- Must be a TLINE type
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
Regards.
Marcelo Ramos
08-01-2007 4:47 PM
hELLO Sunil...
Can you check on table STHX, if the text exists. Maybe that is happening
bye
Gabriel
08-01-2007 6:14 PM
Marcelo
I am already using the flag for insert and update. One thing that I am confused about insert/update flag is, when is it considered an insert/update. From what I found insert is the first time a text is being added and an update is if text is already there. Sometimes the Subrc equals 0 but still the text is not getting updated, even when I have COMMIT_TEXT when the subrc equals 0.
Gabriel
Where do I check for the table STHX, is it an internal table in the SAVE_TEXT or a DB table.
Thanks
Sunil Achyut
08-01-2007 7:34 PM
Hello,
Sorry I gave you the wrong table, It is STXH, and it´s BD Table.
Bye
Gabriel
08-01-2007 7:38 PM
This is very unusual error that typically comes up when your file system is full. I think since texts are actually stored in the file system or in clusters on the database, check with your basis team for table space and/or file system space.
08-02-2007 9:00 PM
All,
Thanks all for your replies. When I use space for the <b>insert</b> parameter of the SAVE_TEXT it works fine. There is another problem, I have written a wrapper for the SAVE_TEXT and am remotely calling the wrapper FM. When the wrapper FM is called from SE37 everything works perfectly but, when its remotely called it doesnt update the header text.
Did anyone have similar issue, if so would appreciate if you could share how you resolved the same.
Thanks
Sunil Achyut