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

Save long text field in DataBase

muhammad_sohail
Participant
0 Likes
759

Dear All,

I have 9 long text fields in my own smart form. I want to save every long text to my own table.

Following thead i m using.

FORM txt_edit .

thead-tdobject = 'QMEL'.

thead-tdname = zlt_name.

thead-tdid = 'LTXT'.

thead-tdspras = 'E'.

thead-tdlinesize = '40'.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = thead-tdid

language = thead-tdspras

name = thead-tdname

object = thead-tdobject

.....................

....................

.....................

Edit

commit

save

...............

How can i do that?

Thanks and Regards,

Sohail

Dear All,

I have 9 long text fields in my own smart form. I want to save every long text to my own table.

Following thead i m using.

FORM txt_edit .

thead-tdobject = 'QMEL'.

thead-tdname = zlt_name.

thead-tdid = 'LTXT'.

thead-tdspras = 'E'.

thead-tdlinesize = '40'.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = thead-tdid

language = thead-tdspras

name = thead-tdname

object = thead-tdobject

.....................

....................

.....................

Edit

commit

save

...............

How can i do that?

Thanks and Regards,

Sohail

4 REPLIES 4
Read only

Former Member
0 Likes
714

You can not save long text in the tables. For saving you need to use READ TEXT , SAVE TEXT Function modules and it will save in the Transaction Code : SE78. So you can save it with some numbers for reading later on.

Read only

Former Member
0 Likes
714

hi,

insted of READ_TEXT you use SAVE_TEXT or EDIT_TEXT

because EDIT_TEXT work like both read and save.

hope this hepls

Regards

RItesh J

Read only

Former Member
0 Likes
714

Hi,

You cannot directly save the long text to the database tables.

Instead you can use SAVE_TEXT function module to save your long text, after which in transaction SO10 the saved text can be viewed.

Use READ_TEXT to read the long text.

Thanks,

Sudagar Shanmugam

Read only

Former Member
0 Likes
714

Hi,

Use SAVE_TEXT Function module.

Regards,

Bhavana