Skip to Content

ALV GRID background showing only 99 columns

Hi All,

ALV GRID background showing only 99 column. Foreground showing all columns. How can I increase columns in background?

Below is my code. I also tried with REUSE_ALV_GRID_DISPLAY, REUSE_ALV_LIST_DISPLAY.

REPORT z.

PARAMETERS: t(2) TYPE c.

DATA:lr_ref TYPE REF TO data.

DATA:cn(3) TYPE n.

DATA:fcat TYPE lvc_t_fcat,

lv_lvc_s_glay TYPE lvc_s_glay,

ls_f LIKE LINE OF fcat.

FIELD-SYMBOLS:<fs_tab> TYPE table.

lv_lvc_s_glay-no_colwopt = 'X'.

DO 500 TIMES.

cn = sy-index.

CONCATENATE 'C' cn INTO ls_f-fieldname.

ls_f-datatype = 'CHAR'.

ls_f-reptext = cn.

ls_f-intlen = ls_f-outputlen = '15'.

APPEND ls_f TO fcat.

ENDDO.

CALL METHOD cl_alv_table_create=>create_dynamic_table

EXPORTING

it_fieldcatalog = fcat

IMPORTING

ep_table = lr_ref.

ASSIGN lr_ref->* TO <fs_tab>.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'

EXPORTING

i_callback_program = sy-repid

it_fieldcat_lvc = fcat

i_grid_settings = lv_lvc_s_glay

TABLES

t_outtab = <fs_tab>.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 16, 2014 at 11:22 AM

    Have you already checked the printer parameters (especially the width of the page format) when submitting the background job? Possibly, it has nothing to do with the grid itself but with the page format.

    Regards,

    Ulrich

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2014 at 11:36 AM

    Hi,

    When executing in background, you might be giving LOCL or LP01 as your Local Printer.

    Check this printer setting and check the maximum characters allowed.

    While you enter printer name, Check by clicking Properties Button for diffetent current settings.

    Regards,

    Ganesh Lathi.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 16, 2014 at 11:40 AM

    Hi

    Because there is limitaion in Alv Display.

    You can break your table into two parts.

    OR

    Please Pass this in Your code

    data : iprint type slis_print_alv.

    iprint-no_change_print_params = 'X'.

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    I_CALLBACK_PROGRAM = repid

    I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'

    IS_LAYOUT = gt_layout

    IT_FIELDCAT = gt_fieldcat

    IT_SORT = lt_sort

    I_DEFAULT = 'X'

    I_SAVE = 'X'

    IT_EVENTS = it_events[]

    IS_PRINT = printalv

    TABLES

    T_OUTABab = it_output

    Regards

    Ashraf Usmani

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.