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

Internal table display problem

Former Member
0 Likes
1,219

Hi, everyone !

When i use ALV display data of ITAB occurs a problem !

My ITAB hava hundred field. but only displayed 90 field.

Please help me !

Thanks Advanced !

11 REPLIES 11
Read only

Former Member
0 Likes
1,177

hi,

create fieldcatalog for 100 fields.

Read only

0 Likes
1,177

No way! No way! No way! No way! No way!

Read only

0 Likes
1,177

hi,

then how are you getting output for 90 fields.

is it coming without creating fieldcatalog?

Read only

Former Member
0 Likes
1,177
Read only

Former Member
0 Likes
1,177

hi

Dispalyed the fields in the output doesn't depend on the fields present in the internal table..

it come from the structure you are passing to ur function module to create an alv or ur class method..

so your structure might be having only 90 fields that u are seeing in the display...

and this is way to enhance your field catalogue....

merging the new 10 fields and old 90 that this with you in a structure...

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = 'SFLIGHT

CHANGING

ct_fieldcat = lt_fieldcat.

DESCRIBE TABLE lt_fieldcat LINES lv_fieldcat_rows.

ls_fieldcat-col_pos = ( lv_fieldcat_rows + 1 ).

ls_fieldcat-fieldname = text-l14.

ls_fieldcat-seltext_l = text-l07.

ls_fieldcat-seltext_m = text-l06.

ls_fieldcat-seltext_s = text-l06.

ls_fieldcat-datatype = 'CHAR'.

ls_fieldcat-ref_tabname = 'KOMWBHK_LIST_DISPLAY'.

APPEND ls_fieldcat TO lt_fieldcat.

CLEAR: ls_fieldcat.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' "TC List

EXPORTING i_callback_program = g_my_name_is

i_callback_pf_status_set = 'PF_STATUS_SET'

i_callback_user_command = 'USER_COMMAND_TC'

it_fieldcat = lt_fieldcat

is_layout = l_layout

i_save = yes

is_variant = p_gs_disvariant

TABLES t_outtab = pt_komwbhk_list

Read only

dev_parbutteea
Active Contributor
0 Likes
1,177

Hi,

Have u defined a default layout for your report?

Dev.

Read only

tarangini_katta
Active Contributor
0 Likes
1,177

Hi ,

Specify u r itab with Occurs 1 or 2.

Then it ma ysolve problem.

I willsuggest you dont use occurs statement.

Thanks

Read only

former_member203501
Active Contributor
0 Likes
1,177

hi try this ...

REPORT ZALV_TEST.

data: it_mara type table of mara,

g_table type ref to cl_salv_table,

g_functions type ref to cl_salv_functions,

g_display type ref to cl_salv_display_settings.

start-of-selection.

Select * into table it_mara from mara up to 10 rows.

cl_salv_table=>factory( importing r_salv_table = g_table changing

t_table = it_mara ).

g_functions = g_table->get_functions( ).

g_functions->set_all( abap_true ).

g_table->display( ).

Read only

Former Member
0 Likes
1,177

Hi,

For Printing more than 90 fields in alv use NO_OUT of fieldcat field, if it is having value is 'X',then it will not display the field, so you need to modify fieldcat internal table by assigning SPACE all ways so that it will display all fields how many you want.

Ex: Loop at i_fieldcat into wa_fieldcat.

IF wa_fieldcat-no_out = 'X',

wa_fieldcat-no_out = ' '.

ENDIF.

modify i_fieldcat from wa_fieldcat transportinig no_out.

clear wa_fieldcat.

ENDLOOP.

after then you use,

CALL METHOD alv_grid->set_table_for_first_display

i think it will help you.

Read only

0 Likes
1,177

Thank you !

Read only

Former Member
0 Likes
1,177

create fieldcatalogs