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

Storing long text in database table

Former Member
0 Likes
518

If the length of the text which is very long is not fixed, how can we store it in a database table?

3 REPLIES 3
Read only

Former Member
0 Likes
421

You can make use of CREATE_TEXT, SAVE_TEXT and READ_TEXT for the same,

http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/...

Regards

Kathirvel

Read only

anversha_s
Active Contributor
0 Likes
421

Hi

<b>no need for any FM</b>

You need to create a table have a filed longer than 512 char, so you should use a field with a domain with type LRAW or LCHR (it can be longer than 512 char):

see the data element PC03_DSATZ for example.

When you create your table, before this field you have to insert a field type INT4 where you'll indicate the lenght of your text.

So your table should be:

MANDT key

NAME (Text Name) key

ZLENG (Type INT4)

TEXT (type LCHR)

Rgds

Anver

Read only

0 Likes
421

Hi,

Even though, <b>PC03_DSATZ</b> hold only 2000 characters. It good to go for FM to incorporte this requirement.

Create a text objects using <b>SE75</b> transactions and use those Text Object ID, Text Id & etc.., thru FM's...<b>SAVE_TEXT, READ_TEXT</b>

I hope this might be useful to you.

Regards,

Ramki.