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

Long Text

Former Member
0 Likes
1,098

Hi Gurus,

am facing a problem that for long text it is taking 20 characters only. How to make the long text to 40 characters?

Points will be awarded

Thanks in advance

Ravi

10 REPLIES 10
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,026

Hi

Use RAW or LRAW type for that while the declaration.

Regards,

Sreeram

Read only

kiran_k8
Active Contributor
0 Likes
1,026

Ravi,

Change the data element to the one which is having 40 char length.

K.Kiran.

Read only

Former Member
0 Likes
1,026

hi,

u can use the data elemnt

CHAR40

for the above field.

Regards

Reshma

Read only

Former Member
0 Likes
1,026

Hi

You have to declare the long text field as

TLINE-TDLINE which is 132 char

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
1,026

hi,

Adding to above 1 more sugestion.

u can use a field with a domain with type LRAW or LCHR (it can be longer than 512 char):

Rgds

Reshma

Read only

Former Member
0 Likes
1,026

Hi ravi,

U can declare like this

PROGRAM zdemo.
DATA text1  TYPE c LENGTH 20.
DATA text2  TYPE string.
DATA number TYPE i.

text1 = 'The number'.
number = 100.
text2 = 'is an integer.'.

WRITE: text1, number, text2.

u can refer this

http://www.sapdb.org/7.4/htmhelp/bd/f4ca5a0822a943bcd5a717703c94c4/content.htm

Rewards if helpfull,

Regards,

Pavan

Read only

Former Member
0 Likes
1,026

Sorry declare 20 in place of 40 or any number int hat place

Regards,

Pavan

Read only

Former Member
0 Likes
1,026

Hi Ravi,

use ur long text field as ,

TLINE-TDLINE which is 132 char

data : long_text like TLINE-TDLINE .

Reward points if helpful.

Regards,

Hemant

Read only

Former Member
0 Likes
1,026

Hi Guys,

Thanks for quick replies. I dont need this programatically. Am entering the long text using the standard transaction. While am checking that data element its length is 20. So it is taking only 20 characters. I need to make this data element into 40 characters. How can I change the standard data element?

Please give me reply

Points will be awarded

Thanks

Ravi

Read only

0 Likes
1,026

Hi Ravi,

What is the transaction code u have entered

Regards,

Pavan