Maximun number of columns in ALV

Hi
I am making an ALV with Approximately 200 columns but when i am downloading in excel, this archive is wrong, is not generating all the columns of the ALV in the file.
What can i do for solve this problem??
how much is the maximun numbers of columns for generate a file in alv???
Regards
Gregory

I dont think there is any such limitation. Excel by itself supports 256 colums. Maybe there is an issue somewhere else.  Are you using the SAP Excel Inplace functionality?
Did you try the List ->Export -> Spreadsheet option?

Similar Messages

  • Max number of columns in Alv grid display.

    Is there any limitation on number of fields that can be displayed using alv grid display.
    Please tell how i can display 199 fields using ALV.
    Thanks in advance.

    I am not sure of the maximum of columns possible.
    If you see the col_pos field in the field catalog table it can have only 2 digits. so i would assume it would be only 99 columns, but not sure.
    Would get you more information soon.
    Thanks,
    Balaji

  • Varying number of columns in ALV report

    Hi Experts,
    I have N lines (only 1 column) in itab, now i want to generate a list with N no of columns showing these N values of itab. means column in report may vary depending on the content in itab. its urgent
    Regards
    Nikhil

    This is the code..
    TABLES    : ekpo,MAKT, t001w.
    TYPE-POOLS: slis.
    DATA : thread  LIKE thead.
    DATA : l_index LIKE sy-tabix.
    DATA : p_index TYPE n.
    DATA: BEGIN OF INT_OUT OCCURS 0,
            MATNR LIKE  MAKT-MATNR,
            MAKTX LIKE MAKT-MAKTX,
            TDLINE1 LIKE TLINE-TDLINE,
            TDLINE2 LIKE TLINE-TDLINE,
            TDLINE3 LIKE TLINE-TDLINE,
            TDLINE4 LIKE TLINE-TDLINE,
            TDLINE5 LIKE TLINE-TDLINE,
            TDLINE6 LIKE TLINE-TDLINE,
            TDLINE7 LIKE TLINE-TDLINE,
            TDLINE8 LIKE TLINE-TDLINE,
            TDLINE9 LIKE TLINE-TDLINE,
            TDLINE10 LIKE TLINE-TDLINE,
            WERKS LIKE EKPO-WERKS,
          END OF INT_OUT.
    DATA: BEGIN OF INT_OUT_new OCCURS 0,
            MATNR LIKE  MAKT-MATNR,
            MAKTX LIKE MAKT-MAKTX,
           TDLINE1 LIKE TLINE-TDLINE,
           TDLINE2 LIKE TLINE-TDLINE,
           TDLINE3 LIKE TLINE-TDLINE,
           TDLINE4 LIKE TLINE-TDLINE,
           TDLINE5 LIKE TLINE-TDLINE,
           TDLINE6 LIKE TLINE-TDLINE,
           TDLINE7 LIKE TLINE-TDLINE,
           TDLINE8 LIKE TLINE-TDLINE,
           TDLINE9 LIKE TLINE-TDLINE,
           TDLINE10 LIKE TLINE-TDLINE,
            tline like tline occurs 0,
            WERKS LIKE EKPO-WERKS,
          END OF INT_OUT_new.
    DATA: it_tlines  LIKE tline OCCURS 10 WITH HEADER LINE.
    ****ALV list definintion
    DATA: ws_cat TYPE slis_fieldcat_alv ,
          int_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DATA: g_container TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',
          g_custom_container TYPE REF TO cl_gui_custom_container.
    DATA : it_heading       TYPE slis_t_listheader   WITH HEADER LINE.
    *DATA : it_fcat          TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DATA : lay              TYPE slis_layout_alv.
    DATA : it_sort_subtotal TYPE slis_t_sortinfo_alv WITH HEADER LINE.
    DATA : it_event         TYPE slis_t_event        WITH HEADER LINE.
    DATA:  v_repid LIKE sy-repid.
    DATA : v_fieldname LIKE int_fcat-fieldname.
    FIELD-SYMBOLS: <fs>  TYPE ANY.
    *selection-screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: S_WERKS  FOR EKPO-WERKS OBLIGATORY .
    SELECT-OPTIONS: S_MATNR FOR MAKT-MATNR  OBLIGATORY .
    SELECTION-SCREEN END OF BLOCK b1.
    *SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002 .
    *PARAMETERS : r1 RADIOBUTTON GROUP g1 DEFAULT 'X' .
    *PARAMETERS : r2 RADIOBUTTON GROUP g1 .
    *PARAMETERS : r3 RADIOBUTTON GROUP g1 .
    *SELECTION-SCREEN END OF BLOCK b2.
    INITIALIZATION.
    AT SELECTION-SCREEN.
      SELECT SINGLE * FROM t001w WHERE werks IN S_WERKS.
      IF sy-subrc NE 0.
        MESSAGE e001(319) WITH 'Plant does not Exist!'.
      ENDIF.
      SELECT SINGLE * FROM makt WHERE matnr IN s_matnr.
      IF sy-subrc <> 0.
        MESSAGE e001(319) WITH 'Material does not Exist!'.
      ENDIF.
    START-OF-SELECTION.
    BREAK-POINT.
      PERFORM get_data.
    PERFORM field_catalog.
    PERFORM display_data.
    END-OF-SELECTION.
    *FORM GET_DATA.
    form get_data.
    DATA: l_index LIKE sy-tabix.
    *To Fetch Data From Makt.
    SELECT b~werks a~MATNR a~MAKTX
    INTO CORRESPONDING FIELDS OF TABLE int_out
    FROM MAKT AS a INNER JOIN marc AS b ON a~matnr = b~matnr
    WHERE a~MATNR IN S_MATNR
    AND b~werks IN S_WERKS.
    LOOP AT int_out.
    l_index = sy-tabix.
    read table int_out_new with key matnr = int_out-matnr.
        int_out_new-werks = int_out-werks.
        int_out_new-matnr = int_out-matnr.
        int_out_new-maktx = int_out-maktx.
        thread-tdname = int_out-matnr.
    CALL FUNCTION 'READ_TEXT'
            EXPORTING
                  client = sy-mandt
                  id = 'BEST'
                  language = sy-langu
                  name = thread-tdname
                  object = 'MATERIAL'
                  TABLES
                  lines = it_tlines
            EXCEPTIONS
                  id = 1
                  language = 2
                  name = 3
                  not_found = 4
                  object = 5
                  reference_check = 6
                  wrong_access_to_archive = 7
                  OTHERS = 8.
    *Loop on it_tlines where long text is coming .
    loop at it_tlines.
       IF sy-subrc = 0.
        p_index = sy-tabix.
    concatenate 'int_out_new-tdline' p_index into v_fieldname.
    condense v_fieldname.
    v_fieldname = it_tlines-tdline.
    endloop.
    ENDLOOP.

  • Maximum Number of Columns in OOPs ALV / Normal ALV Grid

    Hi Experts ,
    We got Stuck in Displaying the 150 Columns in the ALV Display .
    Need to Confirm how many Columns can be displayed in ALV - 60/90/99/1023  Or 1023 characters in ALv Display
    1. How It can be achieved to display 150 Columns in ALV .
    2. By Which way it should be More Efficient Using OOPs ALV or Normal ALV Grid.
    We had check almost all the forums Post but didnt get any satisfactory answer for the same .
    Thanks in advance
    Regards,
    Saurabh Goel

    Hello,
    If you are preparing your field catalog by using the function module REUSE_ALV_FIELDCAT_MERGE, then you can display a
    maximum of something around 70 to 82 fields.
    But if you are creating your field catalog manually, then you can display N number of columns in ALV grid.
    Check the point of fieldcat preparation.
    Hope this helps
    Cheers!
    Mishra

  • ALV report shows fixed number of columns for a user ?

    Hello,
    I have an issue wherein I have created an ABAP ALV grid display in a WD ABAP application and hosted it onto portal. Now, all the users can see the correct number of columns for the report which are determined dynamically. But just for one user, irrespective of which report she launches it shows her only 4 columns.
    Can anybody suggest why this kind of behavior.
    Appreciate your help.
    Regards,
    Samta.

    Hi,
    Right, click the button "manage layout" or "save layout" and remove any default user settings...
    added: didn't read carefully sorry ;)... better check user settings in SU01 if no ALV parameter is used.
    Kr,
    m.
    Edited by: Manu D'Haeyer on Oct 21, 2011 8:53 PM

  • Alv report with varying number of columns

    hi all,
    I am new to abap. I am writing this to get a brief idea of what i wanted to do in system.
    I have to do a report using alv.  The format of the report looks like this.
    acc no     acc. name     amt_sum_april   amt_sum_may   amt_sum_june. ............. total_months
    the colum amt_sum_ depends on user input period(month interval).
    if the user selects 4 to 6 = 3 columns ,if the user selects 4 to 10 = 7 columns
    so on.......
    Anyone have idea how to do it, because in the
    initial structure or itab, the number of columns depends on the user input.. i am stucking here ...
    pls help.
    thanks and regards
    jose

    Hi friend,
    It's very complicated to do that, I'm sure there's a way to do it but I really don't know it. Once I had a similar requirement and I did something else that solved my problem without making a fussy complicated code. I added a colum MONTH or PERIOD (depending on your requirement) and then I make a subtotal by that column. So you need:
    acc no acc. name amt_sum_april amt_sum_may amt_sum_june. ............. total_months
    Now you would have:
    acc no acc. name    month     amount
    In the SORT table, in the sorting condition by MONTH you specify SUBTOTAL = 'X'. So the output will be:
    acc no acc. name    month     amount
    123123        John      2            100.00
    123124        Paul      2            200.00
    Month  2                                300.00
    123123        John      3            300.00
    123124        Paul      3            400.00
    123125        Jane      3            100.00
    Month  3                                 800.00
    123123        John      4            123.54
    Month   4                                123.54
    Total                                      1223.54
    You can change the subtotal text for a more adequate one (if you want). Also if you only need the subtotals you can specify in the layout that only those lines are to be output.
    I hope I've helped, I you have any question let me know!
    Regards,
    Pablo

  • How to find number of columns used in a ALV variant

    I need to know how many column is active ( will be shown in the ALV report ) related to a specific ALV Variant.
    Example :
    The structure of my internal table has 147 columns.
    The user in a specific ALV variant has chosen 25 columns of those 147 colums, so I need to know that this ALV variant will show 25 columns.
    Thanks!   Jo  

    Hi Max,
    Thanks for hints.
    Finnally I did the verification at the beginning of my process.
    Because I need the information before getting the data, so I called the METHOD with a "dummy" table,
    and I received the info of what I need, the number of column related to a specific ALV Variant.
    I used :
      ls_variant-report    = sy-repid.
      ls_variant-variant   = p_alvvar.   "<<<  Select-option field for AVL Variant
      ls_variant-log_group = 'L01'.
        CALL METHOD lo_grid1->set_table_for_first_display
          EXPORTING
            i_structure_name     = 'MY_STRUCTURE'
            is_variant          = ls_variant
            is_layout           = ls_layout
            i_save               = 'A'
            i_default            = 'X'
            I_BYPASSING_BUFFER   = 'X'
          CHANGING
            it_fieldcatalog     = LT_FIELDCATALOG
            it_outtab            = lt_dummy[].      
        CALL METHOD lo_grid1->GET_FRONTEND_FIELDCATALOG
          IMPORTING
            ET_FIELDCATALOG =  LT_FIELDCATALOG.
      loop at LT_FIELDCATALOG into ls_FIELDCATALOG where no_out = space.
              add 1 to LV_NB_COLUMNS.
      endloop.
    Jo  

  • Maximum number of columns in an alv

    Hi,
    I have searched sdn for this query, but answers include 99, 90, 255, 1023 ?
    Not sure, what is the correct answer ?
    I am working on ECC 6.0. Also, If number of columns are exceeded, then is the line break introduced or rest of the columns are truncated ?
    Regards,
    Chitwanjit Singh

    Hi,
    In ALV List  display  maximum number of columns is 90 and column width is 255.  After the line width exceeds a line break will be introduced and displays in next row which will look ugly.  ALV Grid can have more number of columns.
    Even though maximum number of columns in list display is 90., I faced an issue that even for 86 columns it displayed in next row. It is because of line width.
    Hope this helps u.,
    Thanks & Regards
    Kiran

  • Maximum number of character we can print in a column uing ALV grid display

    Hi frnds,
    My requirment is to print 500 charcter data in a column using ALV grid display.
    Could any body tell me is it possible and the maximum character it can i print in a column using ALV grid dispaly.
    Regards,
    Sandipan

    Hi Sandipan,
    refer notes 857823, 910300 and 959775. All these say there is a limitation of 128 characters.
    857823 - ALV grid: Strings with a maximum of 128 characters
    Symptom
    Entries in cells of the type CHAR or string are truncated after 128
    characters in the SAP GUI.
    also refer,
    ALV Grid Control (cl_gui_alv_grid), function module (Full-screen) Grid
    (Reuse_alv_grid_display, SAPLSLVC_FULLSCREEN), SAPGUI, back end, front end
    Cause and Prerequisites
    The data table that is sent to the front end only allows character values
    with the length 128.
    Solution
    This is the standard system behavior and cannot be changed.

  • How to avoid max number of column alv grid (kkblo_header).

    Hi,
    I need display more than 100 columns in alv grid. How can I do this? In structure kkblo_header is max. 100 col.
    Thanks, zd.

    Hi Zdenek,
    Have you tried to create a structure (via SE11 transaction) and assign it as the base structure to form the field catalog for your ALV Report?
    I hope I had helped you.
    Regards,
    Daniel Carvalho.

  • Maximum Columns in ALV in Display and Hidden?

    Hi,
    Do anyone know how many number of columns that able to show in ALV report and also how many columns that ALV able to hide it?
    As did i search and I found:
    Re: columns in alv
    but some said max is 90 and other max 254 columns?
    Is there any document on this ALV function on max of columns in hide and displaying?
    Cheers,
    Aish

    hi,
    there is no such documnet.
    but the maximun no.of.columns that an alv report can show is 90.
    \[removed by moderator\]
    Reddy.
    Edited by: Jan Stallkamp on Sep 3, 2008 6:17 PM

  • Hide a Column in ALV Grid Output

    Hi,
    I want to hide a column in ALV Grid Output through program.
    I am using   lwa_fieldcat-NO_OUT = 'X'. to hide the column in output but it is not working, column in not hided in the output.
    Kindly suggest.

    It should work..
    see the code :
    d_fieldcat_wa-fieldname = 'MATNR'.
    d_fieldcat_wa-seltext_l = 'material number'.
    d_fieldcat_wa-no_out = 'X'. * hide particular field
    append d_fieldcat_wa to d_fieldcat.
    clear d_fieldcat_wa.
    if not please paste your code here.
    Thanks
    Seshu

  • Display multiple values in a column in ALV

    I need to display plant order number from AFPO and PLAF table in reference to Goods Recepient(WEMPF) field.
    now in final internal table I assign AFPO--> Plant number value to PLNUM column of ALV.
    how do I add value to same column based on WEMPF common value for both table and append value to PLNUM column below value fetched from AFPO table.
    code for getting value from PLAF table.
    SELECT WEMPF PLNUM
    FROM PLAF
    INTO TABLE IST_PLAF
    FOR ALL ENTRIES IN IST_AFPO
    WHERE PLNNO = IST_AFPO-WEMPF
    AND  ......
    Point is for some WEMPF field entried their will be number of entries in AFPO and PLAF table (in PLNUM column)  so how I do displaying entries from both tables in single row??

    Hi Ankitkumar Dineshkumar Gautam,
    SAP would say: "This is a consulting issue". I would say: What's your problem? Look at some samle programs.
    Regards,
    Clemens

  • Columns in alv

    Can someone tell me the maximum number of columns that can be displayed using ALV?

    Hi,
    It depend on available memory.
    ALV-Grid does about triple the memory usage of the internal table before displaying it, so this may well stop your application server if you're trying to display a million records.
    Thanks
    --Pradeep

  • How to insert the checkbox as a separate column  in alv grid display

    Hi
    How to insert the checkboxes as a separate column  in alv grid display with using the reuse_alv_fieldcatlog_mege.
    example
    matnr    maktx  ersda                 checkbox
    10        books  28/03/2009          checkbox
    Thanks
    chinnu

    Hi,
        Check the following code.
    TYPE-POOLS: slis.
    TYPES:
          BEGIN OF ty_output,
          chk TYPE c,
          number TYPE i,
          name(20) TYPE c,
          END OF ty_output.
    DATA: gt_output TYPE STANDARD TABLE OF ty_output,
          gs_output TYPE ty_output.
    DATA: wa_layout           TYPE slis_layout_alv.
    DATA: it_fieldcatalog TYPE slis_t_fieldcat_alv,
    After you populate the data, build the field catlog like shown below.
    wa_fieldcatalog TYPE slis_fieldcat_alv.
    wa_fieldcatalog-fieldname = 'CHK'.
      wa_fieldcatalog-outputlen = '3'.
      wa_fieldcatalog-col_pos = '1'.
      wa_fieldcatalog-seltext_m   = 'CHK'.
      wa_fieldcatalog-checkbox = 'X'.
      wa_fieldcatalog-edit = 'X'.
      APPEND  wa_fieldcatalog TO it_fieldcatalog.
    wa_fieldcatalog-fieldname = 'NUMBER'.
      wa_fieldcatalog-outputlen = '10'.
      wa_fieldcatalog-col_pos = '2'.
      wa_fieldcatalog-seltext_m   = 'NUMBER'.
      APPEND  wa_fieldcatalog TO it_fieldcatalog.
      CLEAR  wa_fieldcatalog.
      wa_fieldcatalog-fieldname = 'NAME'.
      wa_fieldcatalog-outputlen = '10'.
      wa_fieldcatalog-col_pos = '3'.
      wa_fieldcatalog-seltext_m   = 'NAME'.
      APPEND  wa_fieldcatalog TO it_fieldcatalog.
      CLEAR  wa_fieldcatalog.
      wa_layout-box_fieldname     = 'CHK' .
      wa_layout-box_tabname       = 'GT_OUTPUT' .
    Now call the FM
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
    *   I_INTERFACE_CHECK                 = ' '
    *   I_BYPASSING_BUFFER                = ' '
    *   I_BUFFER_ACTIVE                   = ' '
          i_callback_program                = sy-repid
          i_callback_pf_status_set          = 'PF_STATUS'
          i_callback_user_command           = 'USER_COMMAND_GRID'
    *   I_CALLBACK_TOP_OF_PAGE            = ' '
    *   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    *   I_CALLBACK_HTML_END_OF_LIST       = ' '
    *   I_STRUCTURE_NAME                  =
    *   I_BACKGROUND_ID                   = ' '
    *   I_GRID_TITLE                      =
    *   I_GRID_SETTINGS                   =
          is_layout                         = wa_layout
          it_fieldcat                       = it_fieldcatalog
    *   IT_EXCLUDING                      =
    *   IT_SPECIAL_GROUPS                 =
    *   IT_SORT                           =
    *   IT_FILTER                         =
    *   IS_SEL_HIDE                       =
    *   I_DEFAULT                         = 'X'
    *   I_SAVE                            = ' '
    *   IS_VARIANT                        =
    *   IT_EVENTS                         =
    *   IT_EVENT_EXIT                     =
    *   IS_PRINT                          =
    *   IS_REPREP_ID                      =
    *   I_SCREEN_START_COLUMN             = 0
    *   I_SCREEN_START_LINE               = 0
    *   I_SCREEN_END_COLUMN               = 0
    *   I_SCREEN_END_LINE                 = 0
    *   IT_ALV_GRAPHICS                   =
    *   IT_HYPERLINK                      =
    *   IT_ADD_FIELDCAT                   =
    *   IT_EXCEPT_QINFO                   =
    *   I_HTML_HEIGHT_TOP                 =
    *   I_HTML_HEIGHT_END                 =
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER           =
    *   ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = gt_output
    * EXCEPTIONS
    *   PROGRAM_ERROR                     = 1
    *   OTHERS                            = 2
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

Maybe you are looking for

  • Error 401--Unauthorized when deployed on WL Managed server (10.3.3)

    Hi, I created & started a WL-Managed server on my window desktop machine. I deployed to this Managed server, an application which is running without problem on Admin Server. (The managed server is created in the same Domain as that of Admin Server) H

  • 9i jdbc driver change causes problems

    Hello all, I was wondering if anyone had any problems with jdbc when migrating to oracle 9i. We are using timestamps from java which were mapped to dates. In oracle there is a function which takes a date. Now this won't work anymore as the mapping ch

  • SMTP transient error

    Sometimes I get the following error message. ORA-29278 which means (SMTP transient error: string Cause: An SMTP transient error occurred. Action: Correct the error and retry the SMTP operation.) My problem is this does not happen all the time. If the

  • Client trying to prepare DV project ahead of FCP edit with me

    Hi, I've tried to search for answers in the forum but I'm getting mixed up. My client has several (number unknown) DV tapes he's shooting for a little six-minute community project he's doing. He would like to give me a preformatted project. I define

  • When I send a mail using pages on my iPad, it sends as a PDF(attachment).

    Is there any way I can send it as a normal mail ?