Application Development and Automation 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: 
Read only

Error with Save_Text

Former Member
0 Likes
1,686

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.

1 ACCEPTED SOLUTION
Read only

Former Member
1,034

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

3 REPLIES 3
Read only

Former Member
1,035

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

Read only

0 Likes
1,034

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.

Read only

0 Likes
1,034

>

> Hi Amit,

Amit is here

He is Ajay.

Cheers.