‎2008 Nov 11 6:30 PM
Hi All,
I am getting following error while saving text. Can someone please help me.
Thanks,
Veni.
I/O error for text VBBK Period Start 0021 EN
Diagnosis
You want to read a text from the database, delete it, or save it to the database.
System Response
An error occurred when the database was accessed.
Procedure
Try repeating the procedure. If the error recurs, contact your system administrator.
WHEN 'E1EDK03'.
ZXVBAK = DXVBAK.
MOVE SEGMENT-SDATA TO E1EDK03.
IF E1EDK03-IDDAT = '004'.
WRITE E1EDK03-DATUM TO PSDATE.
CLEAR: wa_thead, itline.
REFRESH: itline.
wa_thead-tdname = 'Period Start'.
wa_thead-tdobject = 'VBBK'.
wa_thead-tdid = '0021'.
wa_thead-tdspras = sy-langu.
itline-tdformat = '*'.
itline-tdline = PSDATE.
APPEND itline.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = wa_thead
insert = 'X'
savemode_direct = 'X'
TABLES
lines = itline.
‎2008 Nov 11 6:42 PM
Hi,
Use the Two FM's in Sync:
CALL FUNCTION 'INIT_TEXT'
EXPORTING
ID = 'ST'
LANGUAGE = sy-langu
NAME = TEXTHEAD-TDNAME
OBJECT = 'TEXT'
IMPORTING
HEADER = TEXTHEAD
TABLES
LINES = TEXTTAB
EXCEPTIONS
OTHERS = 5.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = TEXTHEAD
SAVEMODE_DIRECT = 'X'
TABLES
LINES = TEXTTAB
EXCEPTIONS
OTHERS = 5.
ENDFORM
‎2008 Nov 11 6:42 PM
Hi,
Use the Two FM's in Sync:
CALL FUNCTION 'INIT_TEXT'
EXPORTING
ID = 'ST'
LANGUAGE = sy-langu
NAME = TEXTHEAD-TDNAME
OBJECT = 'TEXT'
IMPORTING
HEADER = TEXTHEAD
TABLES
LINES = TEXTTAB
EXCEPTIONS
OTHERS = 5.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = TEXTHEAD
SAVEMODE_DIRECT = 'X'
TABLES
LINES = TEXTTAB
EXCEPTIONS
OTHERS = 5.
ENDFORM
‎2008 Nov 11 9:11 PM
Hi Amit,
Thank you. I used the include ZXVEDU06 and wrote the code there and was able to display the texton the order header texts.
Regards,
Veni.
‎2008 Nov 11 9:36 PM