How to incrase number of columns in layout

hi all,
i am new to business intelligence my problem is
how to insert number of columns in report layout
i am not able to more than 5 or 6 columns then
a pop-up is appearing as "cannot insert column because there not enough space"
plz give solution
thanks

To get IColumnPrefs assuming you have an IDocument I use
InterfacePtr<IColumnPrefs> colPrefs(document->GetDocWorkSpace(), UseDefaultIID());
int32 columnCount = colPrefs->GetNumColumns();
Mike

Similar Messages

  • How to count number of columns in cross-tab report

    I have created a cross-tab report and have managed to get the data out as below:
                 Jan     Feb     Mar....(display of months will auto expand) Avg/Mo  Total
    UserA     4          3        4                                                                         11
    UserB     6          1        1                                                                          8
    UserC     5          5        5                                                                         15
    Total       15        9        10                                                                        33 
    I want to insert a calculated column (Avg/Mo) into the cross-tab report based on the formula: Total/Number of Months. I used this calculation formula  for Avg.Mo column:
    (GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/GetNumColumns)
    However, I get the wrong average since GetNumColumns count the total number of columns including the column of Avg/Mo and Total.
    How do i get the number of columns, excluding the Avg/Mo calculated column and Total column?
    PS: I can't use hardcode since the number of months/columns will auto expand the months progress...
    Edited by: jutamind on May 26, 2010 9:27 AM

    ok managed to solve this by slightly changing the formula:
    GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/(GetNumColumns-2)

  • 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  

  • How to restrict number of column exposed by xsoData service at runtime

    Hi All,
    I have created one xsoData service over calculation view (imported one BW cube).
    I want to expose few characteristics of cube and a key figure.
    I want to decide this key figure at run time,means if i have say three key figures say quantity, cost and revenue apart of my characteristics.
    when i run this service, i should be able to pass key figure name for which i want to see data.
    Can i have a variable for column name for this purpose and how i can pass it its value ?
    Please suggest.
    Regards,
    Rohit

    Hi Thomas,
    Thanks for the reply.
    I have already used to restrict the number of columns using 'WITH' keyword.
    Say there are 10 characteristics and 10 keyfigures in my calculation view.
    Out of which i have exposed 3 chars and 3 KFs using 'WITH' keyword, for keyfigures i want to have one variable or placeholder in my xS ODATA  service whose value i want to pass from UI( through XS service URL).
    So my service should fetch 3 Characteristics and a keyfigure say qty or cost or revenue.
    Please let me know if anything is still not clear.
    Regards,
    Rohit

  • How to know number of columns used in a cursor

    Hi,
    I am using some query in a cursor.
    I want to know the number of columns used in that query.
    Please let me how to do ?
    This is required because I want to export an oracle report into MS Excel.
    For this I need to know, upto which column I should write in excel cell.
    I am using Oracle 9i
    I hope, I am clear in my requirement.
    Regards
    Surendra

    You could use DBMS_SQL.DESCRIBE_COLUMNS :
    SQL> CREATE OR REPLACE
      2    FUNCTION column_count(
      3                          p_stmt VARCHAR2
      4                         )
      5      RETURN NUMBER
      6      IS
      7          v_cur     NUMBER;
      8          v_cnt     NUMBER;
      9          v_rec_tab DBMS_SQL.DESC_TAB;
    10      BEGIN
    11          v_cur := DBMS_SQL.OPEN_CURSOR;
    12          DBMS_SQL.PARSE(v_cur,p_stmt,DBMS_SQL.NATIVE);
    13          DBMS_SQL.DESCRIBE_COLUMNS(v_cur,v_cnt,v_rec_tab);
    14          DBMS_SQL.CLOSE_CURSOR(v_cur);
    15          RETURN v_cnt;
    16  END;
    17  /
    Function created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC DBMS_OUTPUT.PUT_LINE('column_count is ' || column_count('select * from emp'))
    column_count is 8
    PL/SQL procedure successfully completed.
    SQL> EXEC DBMS_OUTPUT.PUT_LINE('column_count is ' || column_count('select min(sal),max(sal) from emp'))
    column_count is 2
    PL/SQL procedure successfully completed.
    SQL> SY.
    Edited by: Solomon Yakobson on Sep 20, 2008 4:54 AM

  • How to get Number of Column in Excel file

    Hi All,
                   My requirment is to get Number of Column in Excel file which i want to upload,
      so please suggest if there is any possible way to get this functionality.
    Thanks
    Anirudh

    Use FM "ALSM_EXCEL_TO_INTERNAL_TABLE".
    Adjust the values of i_begin_col & i_end_col parameters in this FM.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                      =
          I_BEGIN_COL                   =
          I_BEGIN_ROW                   =
          I_END_COL                     =
          I_END_ROW                     =
        TABLES
          INTERN                        =
      EXCEPTIONS
        INCONSISTENT_PARAMETERS       = 1
        UPLOAD_OLE                    = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards,
    BBR.

  • How to automatically number paragraphs columns?

    I am working on a storyboard and would like to number each paragraph column as shown on image (#)
    How can I go about doing this?
    I tried numbered lists but it only works in the paragraph text box.. I need to make it flow automatically for each columns..
    Thanks in advance.

    Well that really *****. But thanks for the reply. I guess I have to stick to Word for the time being. (Yuck.)

  • How can the number of columns be frozen?

    I'm entering data in a file where I'm satisfied with the current set of columns. I come to the last column and press the Return key. Despite the fact I've already "Frozen Header Columns" (Control click on the final desired column) the tab and return keys create an unwanted column. How can I prevent this action and go instead to the first column in the next row?
    Appreciated.

    Unfortunately, your "need" is not supported in iOS.
    ** Make use of "labels" in order to differentiate between the numbers of the same contact.

  • How to get Number of columns in a table?

    Hi all, just starting with database connectivity.
    I was wondering if there is any method where I can get the no. of cols in table at run time. I tried the ResultSet rs; but rs doesn't seem to have any method that will get the no. of columns.
    Any pointers to this is greatly appreciated?
    NJU

    You can use the getColumnCount() supplied by
    the ResultSetMetaData class, an instance of
    which can be obtained using the getMetaData()
    method of the ResultSet instance itself.
    I hope this will help.
    ByeThanks a lot for the quick input. It really helped me a lot to create tables based on the no of cols retrieved.
    Thanks again!!
    -NJU

  • Number pages in sapscript layout

    Hi experts,
    What type of variables normally used in sap script to output data? 
    How do you number pages in sapscript layout outputs? 
    Thanks and Regards,
    Logu.

    Hi,
    ·     &SAPSCRIPT-FORMPAGES&:
    This field contains a number representing the total number of pages of the currently formatted form (any output between START_FORM and END_FORM). The page counter mode (START, INC, HOLD) of the individual pages is ignored. You can use this symbol to formulate information like
    ‘Page x of y’ for your output.
    ·&SAPSCRIPT-JOBPAGES&:
    This field contains a number representing the total number of pages of all forms contained in the currently formatted print request, in other words, of all forms created using the OPEN_FORM, START_FORM.. ENDFORM, START_FORM.. END_FORM,..., CLOSE_FORM function modules.
    &PAGES& current page.
    Thanks,
    Arunprasad.P
    Reward if useful.

  • How do i change the number of columns within a text box?  I need to go from three columns to one.

    How do I change the number of columns within a text box?  I need to go from 3 columns to 1.  The insert column is highlighted and column break does not work for this.

    Pages '09 does not seem to allow layout breaks in Textboxes.
    Pages 5.2 has the same limitation.
    Use multiple linked Textboxes in Pages '09 to get the layout you want or create your layout in a Word Processing template in the document layer.
    Peter

  • How to make "two column & one column" mixed layout?

    When writing a review, I want the main article part to be "two column layout" while the topic and abstract to be "one column layout". How could I do that?
    THX

    Another possible, less elegant solution working in a Word Processing (text based) template, rather than a Page Layout template, is to insert the "Layout Break" function, which drops down from insert. That allows a new "section" to be set up. Each section can be formated for the number of columns you choose. This allows you to switch back and forth without going to a new page.
    If you are familiar with MS Word, this function is similar to the "section break" command in Word.

  • How to find the number of columns in an internal table DYNAMICALLY ?

    Hi,
    How to find the number of columns in an internal table DYNAMICALLY ?
    Thanks and Regards,
    saleem.

    Hi,
    you can find the number of columns and their order using
    the <b>'REUSE_ALV_FIELDCATALOG_MERGE'</b>
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       I_PROGRAM_NAME               = sy-repid
       I_INTERNAL_TABNAME           = 'ITAB'
       I_INCLNAME                   = sy-repid
      changing
        ct_fieldcat                  = IT_FIELDCAT
    EXCEPTIONS
       INCONSISTENT_INTERFACE       = 1
       PROGRAM_ERROR                = 2
       OTHERS                       = 3
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif
    now describe your fieldcat . and find no of columns.
    and their order also..
    regards
    vijay

  • How to add a new column (Project Number) in the action items table under NPD Module?

    There are two projects with same name and created by same person in NPD.
    So when it is displayed in "Action Items" table, It looks similar.
    To avoid this, I need one more column (Project Number) to be added in the "Action Items" table and " Strategic briefs and projects" table.
    So, How to add a new column (Project Number) in the "Action Items" table and " Strategic briefs and projects" table under NPD Module?
    Please do the needful.

    There is no out of the box configuration available to add columns to NPD action items.   As always we welcome enhancement requests. 
    Thanks
    Kelly

  • How to delete number (00) in a SQL Server column ?

    how to delete number (00) in a SQL Server column ?
    example :
    column :        Births       before                     Births 
        after                          
                       199900                            
            1999
                       198200                               
         1982
                       200400                               
        2004
    help query

    You use REPLACE function to selectively replace text inside a string in SQL Server. The REPLACE function is easy to use and very handy with an UPDATE statement.
    SELECT Replace(births, '00', '')
    or
    update .....
    Also you can use STUFF()
    This function can be used for delete a certain length of the string and insert a new string in the deleted place.
    Select STUFF ('199900', 5, 2, '')
    --result 1900,1982,....
    Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

Maybe you are looking for