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: 

ALV maximun column ?

Former Member
0 Kudos

Hi, Freinds.

I have problem.

In my program internal talble name itab has 120 fileds.

But my ALV can display whole fields, I think it should be problem in fieldcatalog but I can not find it by my self.

I used max_linesize, but it does not work.

Would help me urgently?

here i append relate coding from my program.

DATA: ls_fieldcat TYPE slis_fieldcat_alv.

  • Macro

DEFINE __fieldname.

ls_fieldcat-seltext_s = &1.

ls_fieldcat-seltext_l = &1.

ls_fieldcat-reptext_ddic = &1.

ls_fieldcat-seltext_m = &1.

  • ls_fieldcat-decimals_out = 0.

ls_fieldcat-just = 'R'.

ls_fieldcat-no_zero = 'X'.

END-OF-DEFINITION.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_program_name = g_program

i_internal_tabname = 'ITAB'

i_client_never_display = 'X'

i_bypassing_buffer = 'X'

i_inclname = g_program

CHANGING

ct_fieldcat = g_fieldcat_t

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3.

LOOP AT g_fieldcat_t INTO ls_fieldcat.

ls_fieldcat-tabname = 'ITAB'.

CASE ls_fieldcat-fieldname.

__fieldname 'Sales Doc.'.

ls_fieldcat-outputlen = 10.

WHEN 'POSNR'.

__fieldname 'item'.

ls_fieldcat-outputlen = 6.

WHEN 'AUART'.

__fieldname 'Type'.

ls_fieldcat-outputlen = 4.

.....

ENDCASE.

MODIFY g_fieldcat_t FROM ls_fieldcat.

ENDLOOP.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Go through the thread,

regards,

Azaz Ali.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Go through the thread,

regards,

Azaz Ali.

Former Member
0 Kudos

But you know you could see whole field when you run in SE16 for table BSEG.

I can not find the point. Actually my ALV can only display upto 90 fields not.

0 Kudos

http://help.sap.com/saphelp_nw04/helpdata/en/66/bc7b9543c211d182b30000e829fbfe/frameset.htm

You can change the number of coumns displayed by changing the layout in ALV. Explore the menu items in ALV grid.

regards

Vivek

Reward points for all the useful answers