ALV max no of columns

Dear All,
I have scenario to print more than 99 columns in alv report output. Currently when I am trying to do that I am getting a dump. From SDN I learn that we can display only 99 cols only. In my report the no of columns in output is dynamic. So how to handle this case? Normally when the column count is more than 99 how to display them in output?
Kind Regards,
Bharath

Hi Bharath,
I test with this code and worked for me
REPORT zteste_raul1.
TYPE-POOLS: slis.
DATA: count        TYPE char10,
      itab         TYPE TABLE OF mara WITH HEADER LINE,
      wa_fcat      TYPE slis_t_fieldcat_alv,
      wa_fcat_aux  LIKE LINE OF wa_fcat.
DO 999 TIMES.
  ADD 1 TO count.
  wa_fcat_aux-col_pos = 0.
  wa_fcat_aux-fieldname = 'MATNR'.
  wa_fcat_aux-tabname = 'ITAB'.
  wa_fcat_aux-seltext_l = count.
  wa_fcat_aux-outputlen = 20.
  APPEND wa_fcat_aux TO wa_fcat.
  CLEAR wa_fcat_aux.
ENDDO.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    it_fieldcat        = wa_fcat[]
    i_grid_title       = 'Test'
    i_callback_program = sy-repid
  TABLES
    t_outtab           = itab.
Edited by: Raul Natu on Feb 21, 2011 3:54 PM

Similar Messages

  • At max how many columns is advisable to create in a table/view

    Hi All,
    I have two transaction table from which i want to create a simple view or materialized view. But the number of columns is about 200. So i want to know at max how many columns is advisable from the performance point of view.
    Even though i will create 200 columns in a view , for a perticular client installation i may not use all the columns.
    one more thing i will never use 200 columns in the select statement . At a time i will use only 4/5 columns.
    It may happen from this four column one column will be the 1st and 2nd column will be the 200th one.
    I want to know how it affects the performance and in which scenario . Please help if any body knows or already faced this kind of scenario.
    I am using oracle 10g .

    Annapurna Nayak wrote:
    thanks for ur reply .
    We are going to use this view in a report , so if i will create it as simple view it will affect report performance. because the view script is too long ...so every time quring to a view will decrease the performance.
    Are you asking me if it will? I think it probably won't but of course you have the means to test it to be sure, right?
    As u said MV should be done with minimum possible column . what can be the maximum column in MV ..??It would be defined by the limits on:
    * The maximum number of columns that a table can contain
    * The size of the query needed to define the select statement
    * Limitations on queries needed to maintain the data
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/limits003.htm#i288032

  • ALV List only 80 Columns when runinning as background job

    Hello Guys,
    I have a Problem with an ALV List.
    We use the FM REUSE_ALV_HIERSEQ_LIST_DISPLAY for a Document Journal.
    When I run it in foreground it works fine. But when I view the spool in background the list makes a break at excactly 80 signs, but the line size should be about 120.
    In the report the Line-Size is set correctly, even the print parameters seem to be ok. We are running it with X_65_255.
    I saw that there are some SAP Notes to this topic, but on our release (SAP_BASIS 700) the notes are already implemented.
    Has anyone a solution to this topic?
    Thanks and regards
    Roland

    Try this.
    [ALV List only 80 Columns when running in background job|https://forums.sdn.sap.com/click.jspa?searchID=25735042&messageID=5686003]

  • Max number of columns in a Webi report

    In a worst-case scenario test, I requested about 1700 columns in a Webi report, but only a little more than 300 appeared in the SQL; a TOAD request for the same 1700 columns was successful. Is there an upper limit for the number of objects that can appear in a Webi report? Is there a parameter that could increase the limit?

    My eyes read the first half and my brian assumed the second half.
    I dont think there is a limitaion on the number of objects that a WebI report can pull.
    The only limitation I know of is the maximum number of column that you can display in the report panel; the max number is 100,000.
    With the limit on the max number of column diplay in a WebI report can be translated into the max number of columns in the query panel.
    This setting is in CMC> Applications>Web Intelligence-->Quick Display mode

  • Max No. of columns returned in Query Template

    Hi All,
    Is there any limit to the max number of columns that can be returned for a sql query using the Query Template?
    Regards,
    Arijeet

    Hi Rick,
    I am basically querying a database table which has a large number of columns. Of which I need only a few. Unfortunately though some of the columns I need are not in those that are shown by default when I do a SELECT * or in the list of columns that show up in the Query Template. I am using UDS to connect to the other system and when I try to SELECT the columns which are of interest to me the connection is reset and the UDS Instance for that connection stops. I could access all the columns in the BLS so I am presently using a work around by running an xacute query to show me the data.
    Regards,
    Arijeet

  • In ALV how to make column heading in two lines ?

    In ALV if one the column heading is say for example "Purchase Order", if i want to display it as "Purchase" and "Order" below the "Purchase". Is it possible? if so how?
    Thanks in advance.
    Sounder

    Hi Sounder,
         It is highly impossible... If u tell your requirement clearly... we will try for solution..
    thanks and regards
    sk
    Rewards if helpful

  • Planning Layout error K9162 - max number of columns in planning layout rest

    Hello collegues,
    our client would like to have 34 columns in planning layout costs activity inputs of TA KP67. But error message K9162 - max. number of columns is restricted to 30. So I tried to switch of the message with TA OBA5 application area K9 - msg number 162. But this does not work as the error comes up again even though the message is switched off.
    Do you have some ideas?
    Thanks and regards,
    Christian

    Hello,
    thanks for your response. I have maintaine in OBMSG:
    K9     162     WE     E    switch off selected
    then in OBA5 for dialog and batch I have maintained  -
    but the error is upcoming again. So I think that this sort of message cannot be switched off as the planning layout is restricted to 30 columns by design maybe?
    thanks and regards,
    Christian

  • What's the max number of columns a table can have on 32 bit OS & 64 bit OS

    What is the max number of columns a table can have on 32 bit OS & 64 bit OS ?
    Edited by: sameer naik on 02-Jul-2010 02:11

    For TimesTen 7.0 and 11.2.1 releases the limit on the number of columns per table is 1000 for both 32 and 64 bit TimesTen. This can be found in the documentation under System Limits.
    Regards,
    Chris

  • ALV Tree/Grid: maximum columns

    Hello.
    How many columns can have a maximum of ALV Tree/Grid?
    Thanks.
    P.S. Sorry, self-solved: OO ALV : Maximum number of columns, Daixiong Jiang.

    Hello Emir
    Call the static method <b>cl_gui_cfw=>set_new_okcode</b> with your required ok-code. The short description of this methods says <i>"Be careful: This sets a new Fcode in Eventhandler for PAI",</i> exactly what you want.
    Regards
       Uwe

  • Teststand SQL reuest get MAX of a Column

    Spoiler (Highlight to read)
    Hello,
    In Teststand 3.1, I try to get the MAX of a column called  Col1 in the table myTAB.
    To do that; I have writen in the Open Statement the following request
    SELECT MAX(myTAB.Col1) FROM myTAB" Thanks. Correct execution in teststand
    Question : How do I get the result with the SQL Action Step
    Thank you by advance for your help
    Solved!
    Go to Solution.

    Hello Rodéric,
    Thank you very much for the answer.
    I tried your suggestion as it is but unfortunatelly Teststand gives back an error because it can't manage correctly the locals.max in the request.
    However I tried other may your idea of using the key word "as" :
    First I use :
    Open Statement : SELECT MAX(myTAB.Col1) as MAXI FROM myTAB
    I don't know how teststand manage the "variable" MAXI.
    But when I secondly add the step
    SQL Action : Get - Retrive Values from record with as Column/Parameter Values:
    Name/Number : "MAXI"
    Values : Locals.Max
    It works correctly
    Thank you a lot
    Ham

  • How to get ALV Display with First column alone in sort

    How to get ALV Display with First column alone in sort

    HI,
    You can build Internal Table and send this to the parameter "IT_SORT".
    eg:
    "the sorting Internal Table structure is as whown below.
    DATA:  t_sort_info type slis_t_sortinfo_alv.
    "Build the Sort Internal Table
      t_sort_info-fieldname = 'CARRID'.
      t_sort_info-subtot = 'X'.
      append t_sort_info.
      t_sort_info-fieldname = 'FLDATE'.
      t_sort_info-subtot = 'X'.
      append t_sort_info.
    Then pass this "IT_SORT_INFO" table to the Function module "Reuse_alv_*". (Note send the body of the Internal table only like "<b>IT_SORT = IT_SORT_INFO[]</b>".
    Here i am making ALV output sorted on CARRID & FLDATE.
    You can specify only the First Column name for sorting.
    Regards,
    Manju
    Message was edited by:
            MANJUNATHA KS

  • 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.

  • Max. no of columns in ALV Excel download

    I've a problem regarding the download of data from alv report's that have more than 99 columns.
    I have searched the forum but couldn't find a right answer.
    It is being done by standard option and not by custom functionality is there any way where we can increase this limitation.

    I don't know if there is a way it for more columns using that function.     But I suggest you to use excel inplace tool. With excel inplace users directly display and maintain values in SAP screen and they can save final document without any limits I think. Just go to change layout-> view and choose microsoft excel. To be able to display excel using this option macro security in installed MS Excel should be in low and VB script execution must be on.

  • 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

  • Field not displaying in ALV but going in column-set...

    Hello Gurus,
    I am facing a strange issue in ALV.  I am specifying the column position when I create the field list.
    But when I execute the ALV, that field goes out of ALV. I have to goto ALV layout setting to move that feild from column set to be dispalyed on ALV. I am not sure why this is happening ? Can someone please help ?
    Regards,
    Tushar.

    Hi,  Please check the how the fieldcatalouge is built.
    Also check whether there is any default layout assigned in alv layout management.

Maybe you are looking for

  • How to find out the number of threads created under java vm at runtime

    our application seems to have hit the max number of threads that can be created under vm and the vm will just hang after that. that behavior seems to be consistent from an article that I read earlier. I wonder any way that java app can find out the n

  • Include attachments in PO_SOURCING_XSLFO

    Is there way to embed the actual content of the attachment (if it a Word Doc or a Text file) in the report? ie...is there syntax in xsl-fo that will allow us to specify a file name and will embed the text of the attachments for the Sourcing Style She

  • RAC resources problem

    hi all, before installing ASM instance i had the resources as follows:- C:\oracle\102\crs\BIN>crs_stat -t -v Name Type R/RA F/FT Target State Host ora....c11.gsd application 0/5 0/0 ONLINE ONLINE vmrac11 ora....c11.ons application 0/3 0/0 ONLINE ONLI

  • User not receiving emails regarding approval notifications

    Hi, SRM system has been upgraded to 5.0. User is not receiving emails regarding Approval notifications. However, the user is able to view the SCs pending for his approval in his approval list. I checked the transmission of the emails, the approval no

  • Cant get the reference of the main window of component 1 into component 2

    Hi All, I am using Component 2 as reusable component in Component 1in webdynpro-ABAP. I am not able to get the reference of the main window of component 1 in component 2 . Pls help. Thanks, Akshatha