Application Development 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: 

How can the ALV display more than 100 chars?

Former Member
0 Kudos

Hi,

I'm developing a ALV using ABAP Object, my problem is that I need that the ALV shows unless 1024 chars but it only shows 100.

I have the followind code to create the container and the ALV grid:

CREATE OBJECT v_o_container

EXPORTING

container_name = c_container

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5

OTHERS = 6.

CREATE OBJECT v_o_alvgrid

EXPORTING

i_parent = v_o_container

EXCEPTIONS

error_cntl_create = 1

error_cntl_init = 2

error_cntl_link = 3

error_dp_create = 4

OTHERS = 5.

CALL METHOD v_o_alvgrid->set_table_for_first_display

EXPORTING

i_structure_name = c_structure

is_layout = x_layout

CHANGING

it_outtab = i_alv_data

it_fieldcatalog = i_catalog

EXCEPTIONS

invalid_parameter_combination = 1

program_error = 2

too_many_lines = 3

OTHERS = 4.

Could anyone, please, tell me if I need anymore to show more char?

Thank you very much.

10 REPLIES 10

Former Member
0 Kudos

Hi

Where do you see only 100 char?

Max

0 Kudos

Hi,

I see these 100 chars on the screen, the problem is that there is a data with 1000 chars, but I only can see the first 100 chars and I would like to see unless the first 1023 chars.

Thanks

0 Kudos

Hi

U can try to set the output lenght by changing the attribute of catalog table before calling the method to display the data.

MAx

0 Kudos

Raul,

Please copy your data declaration for int table - i_alv_data.

And the logic that populates this 100 char field in that int table.

0 Kudos

Hi,

I have changed the in the field catalog the "Column width in characters" (outputlen) and the "Output length in character" (DD_OUTLEN) to 7255 and I have tried too to use the flag "cwidth_opt" of the layaout but it didn't work.

Thanks.

0 Kudos

DATA: BEGIN OF i_alv_data OCCURS 0,

pernr LIKE p0001-pernr, "personnel number

icnum LIKE p0185-icnum, "personal ID

vorna LIKE p0002-vorna, "First name

nachn LIKE p0002-nachn, "Last name

sachn LIKE t526-sachn, "PersAdmin

sachn2 LIKE t526-sachn, "Business Partner G

text_persg LIKE t501t-ptext, "Employee group

text_persk LIKE t503t-ptext, "Employee subgroup

stext2 LIKE hrp1000-stext, "position

stext1 LIKE hrp1000-stext, "department

text_werks LIKE t500p-name1, "Location

text_trfgb LIKE t510g-tgbtx, "PS type

trfgr LIKE p0008-trfgr, "diageo band

trfst LIKE p0008-trfst, "Local grade

lm_name LIKE p0001-ename, "line manager name

datfr LIKE sy-datum, "Validity from

datto LIKE sy-datum, "Validity to

comp_stat LIKE dd07t-ddtext, "Completion Status

mobilitx TYPE string, "mobility text

cab_continue TYPE string, "My Capab.and

cab_start TYPE string, "My Capab.and Be

nco1 TYPE string, "Posib next car op

nco2 TYPE string, "Posi next car opt

nco3 TYPE string, "Pos next carop

timing3 LIKE i_hap_t_body_cells-value_text,

epcm TYPE string, "Employee Commitme

mpcm TYPE string, "Manager commitmen

END OF i_alv_data.

0 Kudos

Raul,

Which field? Have you tried declaring the field like this:

data: fname(1000) TYPE C.

using a Type CHAR with a finite length.

0 Kudos

Hi

Try to replace the fields type <b>string</b> with fields as John said you

Max

0 Kudos

raul,

have you resolved your issue? if so, plz reward points and close the thread.

0 Kudos

Hi,

Sorry for no answer you, but yesterday I had to go to a very important mitting, and I finished very late.

Before declare the internal field of the table type string I had declared this fields type C with lengh 1023 but It didn't work.

Thanks