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

insert records

Former Member
0 Likes
855

I want to insert records to a table field whose length is more than 255, how can i achive this.?

good points will be rewarded..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
832

hi diana,

i think that field is decription using that field type char or tline use.

8 REPLIES 8
Read only

Former Member
0 Likes
833

hi diana,

i think that field is decription using that field type char or tline use.

Read only

Former Member
0 Likes
832

Hi Diana,

Sap provides a set of ALV (ABAP LIST VIEWER) function modules, which can be put into use to embellish the output of a report.

This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.

In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output. The report output can contain up to 90 columns in the display with the wide array of display options.

For more Details refer the following link.

http://sap-abapinfo.blogspot.com/2008/05/alv-documentation-complete.html

Or u can use the data type of the field as STRING

Regards,

Jagadish

Read only

Former Member
0 Likes
832

Hi,

use the data type of the field as STRING

Regads,

priya

Read only

Former Member
0 Likes
832
Read only

prasanth_kasturi
Active Contributor
0 Likes
832

hi,

in the dbtable

make the field domain of type string

(or)

take a domain of character type

and give the length as required

like below

data type : char

no. characters : 500 etc in domain

reward if helpful

prasanth

Read only

0 Likes
832

how can v change the data type of a predefined table......

I think we need access key to do that. I dont want to go to that extent .

My question is simple .

If i want to insert a record (whose length is more than 255 )such as Material Description to the field MAKTX in the table MAKT, how can i attain this?

Read only

0 Likes
832

Hi,

you can enter values in predefined table according to the domain length only,

maktx for example can hold only 40 characters not more than that,

so you can enter only 40 if you enter more than that they will be truncated

reward if helpful

prasanth

Read only

Former Member
0 Likes
832

Hi,

You can use domain 'TEXT1000' in your declaration of table field and program, it can allow you upto 1000 char's.

Rgds,

Bujji