ALV user interface - hide details rows - show only sub-total rows

Is there a way using the ALV interface for a user after sub-totalling to hide all the detail rows and only show the sub-total and grand total rows?

Sure, you can force this in the code.  Please see the sample program.
report zrich_0004
       no standard page heading.
type-pools slis.
data: fieldcat type slis_t_fieldcat_alv.
data: sort     type slis_t_sortinfo_alv.
data: begin of ivbap occurs 0,
      vbeln type vbap-vbeln,
      kunnr type vbak-kunnr,
      vkorg type vbak-vkorg,
      netwr type vbap-netwr,
      end of ivbap.
* Selection Screen
start-of-selection.
  perform get_data.
  perform write_report.
*  Get_Data
form get_data.
  select vbak~vbeln vbak~kunnr vbak~vkorg vbap~netpr
              into table ivbap
                      from vbak
                         inner join vbap
                            on vbak~vbeln = vbap~vbeln
                                  up to 100 rows.
endform.
*  WRITE_REPORT
form write_report.
  data: layout type slis_layout_alv.
  layout-totals_only = 'X'.
  perform build_field_catalog.
  perform build_sort.
* CALL ABAP LIST VIEWER (ALV)
  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            it_sort     = sort
            is_layout   = layout
            it_fieldcat = fieldcat
       tables
            t_outtab    = ivbap.
endform.
* BUILD_FIELD_CATALOG
form build_field_catalog.
  data: fc_tmp type slis_fieldcat_alv .
  clear fieldcat. refresh fieldcat.
  clear fc_tmp.
  fc_tmp-reptext_ddic    = 'Sales Org'.
  fc_tmp-fieldname  = 'VKORG'.
  fc_tmp-tabname   = 'IVBAP'.
  fc_tmp-outputlen  = '4'.
  append fc_tmp to fieldcat.
  clear fc_tmp.
  fc_tmp-reptext_ddic    = 'Customer'.
  fc_tmp-fieldname  = 'KUNNR'.
  fc_tmp-tabname   = 'IVBAP'.
  fc_tmp-outputlen  = '10'.
  append fc_tmp to fieldcat.
  clear fc_tmp.
  fc_tmp-reptext_ddic    = 'SD DOC'.
  fc_tmp-fieldname  = 'VBELN'.
  fc_tmp-tabname   = 'IVBAP'.
  fc_tmp-outputlen  = '10'.
  append fc_tmp to fieldcat.
  clear fc_tmp.
  fc_tmp-reptext_ddic    = 'Net'.
  fc_tmp-fieldname  = 'NETWR'.
  fc_tmp-tabname   = 'IVBAP'.
  fc_tmp-outputlen  = '15'.
  fc_tmp-do_sum  = 'X'.
  fc_tmp-datatype = 'QUAN'.
  append fc_tmp to fieldcat.
endform.
*       FORM build_sort                                                *
form build_sort.
  data: tmp_sort type line of slis_t_sortinfo_alv.
  clear sort. refresh sort.
<b>
  clear tmp_sort.
  tmp_sort-fieldname = 'VKORG'.
  tmp_sort-tabname   = 'IALV'.
  tmp_sort-up        = 'X'.
  tmp_sort-subtot    = 'X'.
  tmp_sort-group     = 'X'.
  append tmp_sort to sort.
  clear tmp_sort.
  tmp_sort-fieldname = 'KUNNR'.
  tmp_sort-tabname   = 'IALV'.
  tmp_sort-up        = 'X'.
  tmp_sort-subtot    = 'X'.
  tmp_sort-group     = 'X'.
  tmp_sort-expa      = 'X'.
  append tmp_sort to sort.
  clear tmp_sort.
  tmp_sort-fieldname = 'VBELN'.
  tmp_sort-tabname   = 'IALV'.
  tmp_sort-up        = 'X'.
  tmp_sort-subtot    = 'X'.
  tmp_sort-group     = 'X'.
  tmp_sort-expa      = 'X'.
  append tmp_sort to sort.</b>
endform.
Regards,
Rich Heilman

Similar Messages

  • Show Only First N Rows in SAP Design Studio Chart/Table

    Hi,
    Is it possible to show only first N rows of data in SAP Design Studio Charts/Cross Tab ?
    Eg
    Bex Query Output
    Here If I mention First 2 rows, my chart looks like below
    If I mention First 4 rows, my chart looks like below
    Thanks
    Anil

    Hi Mustafa,
    Thanks for your reply.
    Actually our requirement is, we have one Bex Query where we are using Ranking Function.
    We have 15 customers, and we need to know the ranking based on some calculations.
    Whenever we execute the query with different time periods, the ranking of Customers will vary, for example if I execute query for year 2014, customer 1 can be Rank 1, If I execute for year 2013, Customer 7 can be Rank 1.
    From this Query I need to show only Top 5 Customers in Cross Tab/Chart.
    We tried to put condition on CY Ranking in Bex to show only Top 5, but the result was giving some diff customers and also for all Time periods we are getting same Customers In Top 5.
    To overcome this, we thought instead of putting condition on Bex side, we are trying to pick only first 5 rows from Bex Query and show them in Chart/Cross Tab, something like we will map only first 5 rows in Xcelcius.
    We would like to know is there any functionality in Design Studio to show only first 5 rows of data.
    Regards,
    Anil

  • Enable hide/show only for selected rows for table in table

    I have an advanced table with a detail table connected by a view link. This adds a "Details" column of Hide/Show links on the left of the table to expand the inner-table for each row of the outer-table. The goal is to have the hide/show in the outer table, only when there is data for the outer row in the detail region.
    Normally, hide/show appears for all rows in the outer table.
    Thanks!

    In the processRequest method of the controller execute the query of the Outer table region and check is there any row or not.
    If yes then do nothing else hide the bean i.e. hide/show bean. You need to do PPR for this.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Hide column result in pivot grand total row

    Hello
    Do you know if it is possible to hide the result of a particular column in a pivot grand total row?
    I have several columns to which makes sense use a grand total row (as in a sum) but for others (such as average) it does not make sense in the light of the client business rules.
    Any help on this matter is highly appreciated :)
    Thanks in advance,
    J Marques

    I have a measure that represents the average time according to the dimensions it uses - and that works properly.
    However, the grand total for that column shows me the average of the average times above. This is not correct that is why I want to hide it.As said by kishore, In pivot go to that time average time column -> Aggregation rule -> None, This won't affect the column avg value.
    The grant total value will not come.
    By setting this, are you getting wrong values?
    Thanks,
    Vino

  • Merge two rows & show in a single row in table results

    Hi, I need to merge 2 rows having 3 columns in a single row in table view
    The cols are currently shown as :
    Project NO-------(Current_Month) Revenue----------(Prior_Month) Revenue
    123123 10000
    20000
    Revenue is a single column with revenue for diffreent Period.
    10000 is for May
    20000 is for April
    Project NO for both are same, just the periods are different. if I am not displaying Period i need to merge the 2 rows & show as
    Project NO-------(Current_Month) Revenue----------(Prior_Month) Revenue
    123123 10000 20000
    Please let me know how we can acheive this??
    thanx
    Pankaj

    123123 is the project number..
    the above is not getting displayed properly....as the blank spaces are removed...
    Please consider this

  • Only sub total in alv report

    hi,
    I have a report on ALV with sub totals for some fields, it is working fine but my requirement is whether i can get only the sub totals of that report.
    regards,
    Prabhu

    HI
    refer this code.
    REPORT ZALV.
    TYPE-POOLS: SLIS.
    DATA: G_REPID LIKE SY-REPID,
    GS_PRINT            TYPE SLIS_PRINT_ALV,
    GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
    GT_EVENTS           TYPE SLIS_T_EVENT,
    GT_SORT             TYPE SLIS_T_SORTINFO_ALV,
    GS_LAYOUT           TYPE SLIS_LAYOUT_ALV,
    GT_FIELDCAT         TYPE SLIS_T_FIELDCAT_ALV,
    FIELDCAT_LN LIKE LINE OF GT_FIELDCAT,
    COL_POS TYPE I.
    DATA: BEGIN OF ITAB,
      FIELD1(5) TYPE C,
      FIELD2(5) TYPE C,
      FIELD3(5) TYPE P DECIMALS 2,
    END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0.
      INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB1.
    DATA: BEGIN OF ITAB_FIELDCAT OCCURS 0.
      INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB_FIELDCAT.
    Print Parameters
    PARAMETERS:
                P_PRINT  AS CHECKBOX DEFAULT ' ', "PRINT IMMEDIATE
                P_NOSINF AS CHECKBOX DEFAULT 'X', "NO SELECTION INFO
                P_NOCOVE AS CHECKBOX DEFAULT ' ', "NO COVER PAGE
                P_NONEWP AS CHECKBOX DEFAULT ' ', "NO NEW PAGE
                P_NOLINF AS CHECKBOX DEFAULT 'X', "NO PRINT LIST INFO
                P_RESERV TYPE I.                  "NO OF FOOTER LINE
    INITIALIZATION.
    G_REPID = SY-REPID.
    PERFORM PRINT_BUILD    USING GS_PRINT.      "Print PARAMETERS
    START-OF-SELECTION.
    TEST DATA
    MOVE 'TEST1' TO ITAB1-FIELD1.
    MOVE 'TEST1' TO ITAB1-FIELD2.
    MOVE '10.00' TO ITAB1-FIELD3.
    APPEND ITAB1.
    MOVE 'TEST2' TO ITAB1-FIELD1.
    MOVE 'TEST2' TO ITAB1-FIELD2.
    MOVE '20.00' TO ITAB1-FIELD3.
    APPEND ITAB1.
    DO 50 TIMES.
      APPEND ITAB1.
    ENDDO.
    END-OF-SELECTION.
    PERFORM BUILD.
    PERFORM EVENTTAB_BUILD CHANGING GT_EVENTS.
    PERFORM COMMENT_BUILD  CHANGING GT_LIST_TOP_OF_PAGE.
    PERFORM CALL_ALV.
    FORM BUILD.
    DATA FIELD CATALOG
    Explain Field Description to ALV
    DATA: FIELDCAT_IN TYPE SLIS_FIELDCAT_ALV.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME = 'FIELD1'.
    FIELDCAT_LN-TABNAME   = 'ITAB1'.
    *FIELDCAT_LN-NO_OUT    = 'X'.  "FIELD NOT DISPLAY, CHOOSE FROM LAYOUT
    FIELDCAT_LN-KEY       = ' '.   "SUBTOTAL KEY
    FIELDCAT_LN-NO_OUT    = ' '.
    FIELDCAT_LN-SELTEXT_L = 'HEAD1'.
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME = 'FIELD2'.
    FIELDCAT_LN-TABNAME   = 'ITAB1'.
    FIELDCAT_LN-NO_OUT    = 'X'.
    FIELDCAT_LN-SELTEXT_L = 'HEAD2'.
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME     = 'FIELD3'.
    FIELDCAT_LN-TABNAME       = 'ITAB1'.
    FIELDCAT_LN-REF_FIELDNAME = 'MENGE'. "<- REF FIELD IN THE DICTIONNARY
    FIELDCAT_LN-REF_TABNAME   = 'MSEG'.  "<- REF TABLE IN THE DICTIONNARY
    FIELDCAT_LN-NO_OUT        = ' '.
    FIELDCAT_LN-DO_SUM        = 'X'.   "SUM UPON DISPLAY
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    DATA SORTING AND SUBTOTAL
    DATA: GS_SORT TYPE SLIS_SORTINFO_ALV.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD1'.
    GS_SORT-SPOS      = 1.
    GS_SORT-UP        = 'X'.
    GS_SORT-SUBTOT    = 'X'.
    APPEND GS_SORT TO GT_SORT.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD2'.
    GS_SORT-SPOS      = 2.
    GS_SORT-UP        = 'X'.
    *GS_SORT-SUBTOT    = 'X'.
    APPEND GS_SORT TO GT_SORT.
    ENDFORM.
    FORM CALL_ALV.
    ABAP List Viewer
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = G_REPID
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
    I_STRUCTURE_NAME = 'ITAB1'
    IS_LAYOUT =  GS_LAYOUT
    IT_FIELDCAT = GT_FIELDCAT[]
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
      IT_SORT = GT_SORT[]
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
      IT_EVENTS = GT_EVENTS[]
    IT_EVENT_EXIT =
      IS_PRINT = GS_PRINT
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    T_OUTTAB = ITAB1
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2.
    ENDFORM.
    HEADER FORM
    FORM EVENTTAB_BUILD CHANGING LT_EVENTS TYPE SLIS_T_EVENT.
    CONSTANTS:
    GC_FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
    *GC_FORMNAME_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE'.
      DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                I_LIST_TYPE = 0
           IMPORTING
                ET_EVENTS   = LT_EVENTS.
      READ TABLE LT_EVENTS WITH KEY NAME =  SLIS_EV_TOP_OF_PAGE
                               INTO LS_EVENT.
      IF SY-SUBRC = 0.
        MOVE GC_FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
        APPEND LS_EVENT TO LT_EVENTS.
      ENDIF.
    define END_OF_PAGE event
    READ TABLE LT_EVENTS WITH KEY NAME =  SLIS_EV_END_OF_PAGE
                             INTO LS_EVENT.
    IF SY-SUBRC = 0.
      MOVE GC_FORMNAME_END_OF_PAGE TO LS_EVENT-FORM.
      APPEND LS_EVENT TO LT_EVENTS.
    ENDIF.
    ENDFORM.
    FORM COMMENT_BUILD CHANGING GT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
      DATA: GS_LINE TYPE SLIS_LISTHEADER.
      CLEAR GS_LINE.
      GS_LINE-TYP  = 'H'.
      GS_LINE-INFO = 'HEADER 1'.
      APPEND GS_LINE TO GT_TOP_OF_PAGE.
      CLEAR GS_LINE.
      GS_LINE-TYP  = 'S'.
      GS_LINE-KEY  = 'STATUS 1'.
      GS_LINE-INFO = 'INFO 1'.
      APPEND GS_LINE TO GT_TOP_OF_PAGE.
      GS_LINE-KEY  = 'STATUS 2'.
      GS_LINE-INFO = 'INFO 2'.
      APPEND GS_LINE TO GT_TOP_OF_PAGE.
    CLEAR GS_LINE.
    GS_LINE-TYP  = 'A'.
    GS_LINE-INFO = 'ACTION'.
    APPEND GS_LINE TO  GT_TOP_OF_PAGE.
    ENDFORM.
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
      WRITE: SY-DATUM, 'Page No', SY-PAGNO LEFT-JUSTIFIED.
    ENDFORM.
    FORM END_OF_PAGE.
      WRITE at (sy-linsz) sy-pagno CENTERED.
    ENDFORM.
    PRINT SETTINGS
    FORM PRINT_BUILD USING LS_PRINT TYPE SLIS_PRINT_ALV.
      LS_PRINT-PRINT              = P_PRINT.  "PRINT IMMEDIATE
      LS_PRINT-NO_PRINT_SELINFOS  = P_NOSINF. "NO SELECTION INFO
      LS_PRINT-NO_COVERPAGE       = P_NOCOVE. "NO COVER PAGE
      LS_PRINT-NO_NEW_PAGE        = P_NONEWP.
      LS_PRINT-NO_PRINT_LISTINFOS = P_NOLINF. "NO PRINT LIST INFO
      LS_PRINT-RESERVE_LINES      = P_RESERV.
    ENDFORM.
    *END OF ZALV PROGRAM
    Reward all helpfull answers.
    Regards.
    Jay

  • Color the sub-total row in an alv-grid

    Hi all.
    I work on SAP 4.7 WAS6.20 and output a table with the cl_gui_alv_grid. I´m able to color special rows (or columns) in the alv grid. But I want to color individually the sub-total lines (like the lines before) and don´t want the yellow color for all of the sub-total lines.
    Do you know how to color the sub-total-lines?
    Thanks a lot.
    Michael

    Hi,
    U can color an individula row see the link below
    Color a line
    The steps for coloring a line i the grid is much the same as making a traffic light.
    * To color a line the structure of the  table must include a  Char 4 field  for color properties
    TYPES: BEGIN OF st_sflight.
            INCLUDE STRUCTURE zsflight.
    *       Field for line color
    types:  line_color(4) type c.
    TYPES: END OF st_sflight.
    TYPES: tt_sflight TYPE STANDARD TABLE OF st_sflight.
    DATA: gi_sflight TYPE tt_sflight.
    * Loop trough the table to set the color properties of each line. The color properties field is
    * Char 4 and the characters is set as follows:
    * Char 1 = C = This is a color property
    * Char 2 = 6 = Color code (1 - 7)
    * Char 3 = Intensified on/of = 1 = on
    * Char 4 = Inverse display = 0 = of
         LOOP AT gi_sflight INTO g_wa_sflight.
          IF g_wa_sflight-paymentsum < 100000.
            g_wa_sflight-line_color    = 'C610'.
          ENDIF.
          MODIFY gi_sflight FROM g_wa_sflight.
        ENDLOOP.
    * Name of the color field
    gs_layout-info_fname = 'LINE_COLOR'.
    * Grid setup for first display
    CALL METHOD go_grid->set_table_for_first_display
          EXPORTING i_structure_name = 'SFLIGHT'
                                 is_layout                = gs_layout
          CHANGING  it_outtab                 = gi_sflight
    see the link
    http://www.sapgenie.com/abap/controls/alvgrid.htm

  • Get count with Scope to show only once against rows

    Hi I Have a matrix table with month on the rows and Year on the Columns
    The expression I am using for the data is
    =Count(Fields!data.Value,"Year")
    This shows like this
    2011_H1
    Month 1 256
    Month 2 256
    Month 3 256
    Month 4 256
    Month 5 256
    Month 6 256
    I only want to show the data value once so it looks like this
    2011_H1
    Month 1 256
    Month 2
    Month 3
    Month 4
    Month 5
    Month 6
    I have tried using in the text box visibilty
    =Iif(Previous(ReportItems!data.Value)=ReportItems!data.Value, true, false)
    But I get an error message about aggregate functions can only be used on report items
    How can achieve this?
    Regards

    Hi aivoryuk,
    Just as you said, the previous aggregate function couldn’t be used in a tablix cell in Reporting Services. After testing the issue in my local environment, we can refer to the following methods to work around the issue.
    Method1: Use RowNumber function to control the textbox visibility to only show the last value in the Year column.
    Right-click the cell which contains the expression “=Count(Fields!data.Value,"Year")” to open the Text Box Properties dialog box.
    Select Visibility tab, use the expression below to control the visibility:
    =iif(RowNumber("Year")=reportitems!Year.Value,false,true)
    The following screenshot is for your reference:
    Method2: Use custom code to get the previous value.
    Copy the custom code below and paste it to your report. (Right-click report>Report Properties>Code)
    Public Shared previous as string
    Public Shared current as string
    Public Shared Function GetCurrent(Item as string) as string
    previous=current
    current=Item
    return current
    End Function
    Public Shared Function GetPrevious()
    return previous
    End Function
    Replace the original expression
    =Count(Fields!data.Value,"Year")
    with
    =Code.GetCurrent(count(fields!data.Value,"Year"))
    Use the following expression to control the visibility of the textbox:
    =iif(Code.GetCurrent(count(fields!data.Value,"Year"))=Code.GetPrevious(),true,false)
    The following screenshot is for your reference:
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support
    Hi Katherine
    I tried Both solutions and neither worked for me.
    Solution 1 showed no values
    And Solution 2 all values were still present.
    Do you have any suggestions?

  • Interactive report showing only the aggregation rows

    I have an interactive report with three columns that can be selected for aggregation. When I select one of the aggregation columns, I get the break logic that summarizes the columns I selected. My question: Is there a way to select the aggregation column and see the summed values only?
    Example:
    Fields: Company, Division, Location, Employee Name, Employee Salary
    Aggregation on: Company, Division, Location.
    Company Division Location Emp Name Emp Salary
    Able 1 East Joe 100
    Able 1 East Tony 200
    Summary for Company Able, Division 1, Location East 300
    I want to be able to see everything, but when I select aggregation at the location level, I want to just see the Summary line.
    Thanks for any suggestions!

    Create a Row Count Measure, as the value being 1, in your Universe for the report. Add that Row Count into the query for the report, re-execute the query, highlight the entire report and then set a filter for that by dragging and dropping the Row Count Measure and filtering where the value > 1.
    Edited by: Dennis Scoville on Jul 27, 2009 11:29 AM

  • Can we display only sub totals on the alv grid output

    hi,
    can we display only the subtotals calculated on the grid display.it should display all the data it shpuld display only the subtotals of it.
    if yes can any one please give me the code for
    will be awarded with points.

    Hi Raju
    You can do that
    When you are doing fieldcatalog,comment ws_fieldcat-do_sum = 'x'.
    if you comment that it wont display totals.
    use sort
    i_sort type slis_alv...
    clear ws_sort.
    ws_sort1-spos = '1'<position of field>
    ws_sort-fieldname  = 'matnr'.
    ws_sort-up = 'x'.
    append ws_sort to i_sort.
    pass this i_sort to FM

  • Remove sub total text in ALV.

    Hello,
    How can I remove the text in sub total in ALV? I want to show only sub total values, not any explanation.
    Thanks.

    In my code;
    FIELDCATALOG-FIELDNAME   = 'SYSTEM_UNIQ_NO'.
    FIELDCATALOG-SELTEXT_L   = 'No'.
    FIELDCATALOG-DDICTXT     = 'L'.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    FIELDCATALOG-FIELDNAME   = 'QUANTITY'.
    FIELDCATALOG-SELTEXT_L   = 'Quantity'.
    FIELDCATALOG-DDICTXT     = 'L'.
    FIELDCATALOG-do_sum       = 'X'.
    FIELDCATALOG-QFIELDNAME  = 'QUNIT'.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    it_sort-spos      = 1.
    it_sort-fieldname = 'SYSTEM_UNIQ_NO'.
    it_sort-SUBTOT    = 'X'.
    it_sort-UP        = 'X'.
    GD_LAYOUT-NO_INPUT          = 'X'.
    GD_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    GD_LAYOUT-no_totalline      = 'X'.
    GD_LAYOUT-subtotals_text    = SPACE.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
             EXPORTING
                  I_CALLBACK_PROGRAM      = GD_REPID
                  I_CALLBACK_USER_COMMAND = 'USER_COMMAND' 
                  IS_LAYOUT               = GD_LAYOUT
                  IT_FIELDCAT             = FIELDCATALOG[]
                  I_SAVE                  = 'X'
                  IT_SORT                 = IT_SORT[]
             TABLES
                  T_OUTTAB                = ITAB
             EXCEPTIONS
                  PROGRAM_ERROR           = 1
                  OTHERS                  = 2.
    But, I am seeing the System Uniq No before sub totals. Also, I have assigned 'Test' to GD_LAYOUT-subtotals_text. But, I can not see 'Test' anywhere.

  • VIPCA showing only eth0 interface

    Hi all,
    I'm installing Oracle 10g R2 2 node RAC on RHEL4 U4 for R&D purpose. And i'm following the steps given in http://www.oracle.com/technology/pub/articles/hunter_rac10gr2.html article.
    While installing clusterware software asked me to run orainstRoot.sh and root.sh script on both nodes. On node1 both the scripts ran succesfully and on node2 root.sh script gave the following error..
    The given interface(s), "eth0" is not public. Public interfaces should be used to configure virtual IPs.
    It is given in the doc that, the above error can be resolved by running the VIPCA GUI utility on the node where this error is occurred.. when i ran VIPCA utility on Node2..in Network Interfaces section, it is showing only eth0 (public) and it is not showing eth1. But in the above given link, it is mentioned that we need to select both eth0 and eth1.
    Can anybody tell me what might be the problem?
    Thanks,
    Praveen

    Hi,
    Please upload/review your ifconfig -a output on both nodes. you should see 3 IPs on each node, one for the interconnect, one for the public and one for the virtual. These should be persistent after a reboot, and match. eth0 on one node should be eth0 on the second, etc.
    If this is done, you should not have an issue with VIPCA.
    Thanks,
    Idan.

  • Portal User's  Personal Details

    Hello,
    Im trying to get logged on user's Personal Details, and
    show them in my portlet.
    Im using PDK July on Portal Release 9.0.2.3.0 running on Linux.
    I used ProviderUser object's methods in order to get Personal Details.
    Using API calls i can get only
    portal username, userqualifiedname and usertostring values.
    All the other methods return null.
    Any suggestions for this problem
    Regards.
    I use following code in my jsp page.
    import="oracle.portal.provider.v2.*"
    PortletRenderRequest pReq = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    // These methods return null
    String userFullName = pReq.getUser().getFullName();
    String userDisplayName = pReq.getUser().getDisplayName();
    String userLastName = pReq.getUser().getLastName();
    String userFirstName = pReq.getUser().getFirstName();
    String userDN = pReq.getUser().getUserDN();
    String userEmail = m_ProviderUser.getEmail();
    //These methods work fine
    String userName = pReq.getUser().getName();
    String userToString = m_ProviderUser.toString();
    String userQualifiedName = pReq.getUser().getQualifiedName();

    Hi,
    I think that the user details are read from the OID by Portal. So if they do not exist on the OID, obviously Portal doesn't have them & so you are getting null values for the other attributes. Username being a mandatory parameter, you could retrieve its value. So just cross check if user profiles have been added & all details that you want are available for the logged in user.
    You could use the seeded portlets in the "Admistrator" tab to view the user profiles.
    Regards,
    Abhinav

  • Ifconfig shows only 1 out 3 SCAN ips

    Version: 11gR2
    Platform : AIX
    We have configured SCAN to resolve to 3 IPs in the DNS as per the oracle Doc. SCAN is working fine. I used nslookup several times to verify round robin . It is fine.
    The SCAN IPs are
    $ srvctl config scan
    SCAN name: scan-manh.galaxy.net, Network: 1/10.80.23.0/255.255.255.0/en11
    SCAN VIP name: scan1, IP: /scan-manh.galaxy.net/10.80.23.54
    SCAN VIP name: scan2, IP: /scan-manh.galaxy.net/10.80.23.52
    SCAN VIP name: scan3, IP: /scan-manh.galaxy.net/10.80.23.53Public IP of the server (Node1)
    $ host lshmprd49
    lshmprd49.galaxy.net is 10.80.23.49,  Aliases:  lshmprd49
    $ nslookup scan-manh.galaxy.net
    Server:         172.203.215.65
    Address:        172.203.215.65#53
    Non-authoritative answer:
    Name:   scan-manh.galaxy.net
    Address: 10.80.23.53
    Name:   scan-manh.galaxy.net
    Address: 10.80.23.54
    Name:   scan-manh.galaxy.net
    Address: 10.80.23.52But when i check the ifconfig output to see if the 3 IPs are plumbed to the public interface. It is showing only 1 out of 3 IPs registered for SCAN. Is this as expected? When i checked node2, it was displaying 2 of the 3 IPs of SCAN in the public interface.
    Public interface (en11) details from ifconfig output
    $ ifconfig -a
    en11: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
            inet 10.80.23.49 netmask 0xffffff00 broadcast 10.80.23.255  # -----------> This is the public IP
            inet 10.80.23.50 netmask 0xffffff00 broadcast 10.80.23.255  # -----------> This is VIP
            inet 10.80.23.54 netmask 0xffffff00 broadcast 10.80.23.255  # -----------> only 1 IP from SCAN ?
             tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0

    For HA and load balance purposes SCAN IPs can be distributed b/w nodes. So, it is valid expected behavior. As SCAN can have maximum of three scan IPs, so for three or more nodes cluster maximum of three nodes will have SCAN IPs running.
    887522.1, has details that it will run on three nodes.
    Thanks,
    Rohit Chandok
    http://www.rohitchandok.com

  • User interface threads

    Ok let's say you're writing a user interface and nothing involves
    special-resources like a daqcard so there's no constraints on using things
    at once. These are some kind of stupid questions and ideas but I'm really
    not sure how to write a quality app with user interface at the moment.
    My current design is bad, it is a mainVI which checks the menu and
    frontpanel buttons, decides which operation or calculation (if any) is
    selected, and sends that to a case structure to perform the operation.
    This is sloooow but the most common way in examples that I've seen. The
    major problem is that while processing the interface isn't checked and
    therefore mouseclicks might be lost. Let's say the processing takes like
    500ms on average, that is kind of slow between user-interface querys so it
    would feel unresponsive in the mean time.
    So here's my three ideas so far, I'd love some comments on what will be FAST
    and what would be worthwhile to spend my time on:
    1. Leave the app as-is, latch the booleans. However you can't latch
    mouse-clicks on a picture indicator that I knew of. I emailed NI before
    about this and they just suggested adjusting execution priorities. Anybody
    else messed around with this? Probably the worst option, but would take zero
    programming.
    2. Divorce the user interface and the processing. Create two parallel
    while-loops in the same VI, one checks the buttons/menu on the front panel
    the other processes the request or calculation. Let's say on average UI
    checking takes 1.2ms and processing takes about 500ms. Also in this case is
    the watch icon still really my best option (since checking buttons/menu only
    takes like 1.5ms on average) for not wasting time repeatedly checking when
    there's no input and dividing up cputime accordingly? Seems like there'd be
    some overhead in switching back and forth repeatedly.
    3. Going all-out and changing to somewhat of an object structure. That way
    the UI could create a new "execution" refnum, maintain some list of created
    objects, process, return values, destroy any object, so everything could be
    going on in parallel. That way one slow calculation won't bog down the rest
    of the things the UI requests. The idea is far too abstract to me at this
    point, but on a single CPU w98 system is it even worth my thinking about
    such a structure? I get the feeling I'd see zero performance change between
    the two, in fact maybe worse from any labview thread overhead!
    Thanks for any comments. I have seen DAQ intensive apps discussed often, but
    don't usually catch much on large user interface apps.
    -joey

    Hi Joey
    First check are you are not recalculating the values on ever iteration of the user interface loop but are you only recalculating
    on any change in the user interface values.
    Otherwise I would use idea No. 2 but with these changes.
    1. Only check the whole user interface every 200-300ms, 1.5ms loop time will unnecessarily load the CPU.
    2. Each user interaction could be given a string representation and then placed in a queue to wait for the calculation loop to
    have time to process it.(So the user instructions are not lost)
    3. Have separate loops for faster and slower calculations (or more) with each having their own queue.
    4. The extension to the idea's of having separate loops, is to have each loop in a separate independently running VI (see
    VIserver). Still use the queue's to pass the data. This method would allow the calculations and the user interface to run on
    separate threads and also lets you alter the execution priority for each VI to fine tune the execution times.
    Following these instructions you would produce a basic client-server architecture for your user interface, as long as the UI
    doesn't require too many slow calculation results before continuing then this should work well.
    If this is still not fast enough then, if you have used suggestion No.4, the calculations can be moved off the users computer to a
    faster server (using VIserver) also assuming they are networked.
    Hope this gives you some ideas.
    Tim S
    Joseph Oravec wrote:
    > Ok let's say you're writing a user interface and nothing involves
    > special-resources like a daqcard so there's no constraints on using things
    > at once. These are some kind of stupid questions and ideas but I'm really
    > not sure how to write a quality app with user interface at the moment.
    >
    > My current design is bad, it is a mainVI which checks the menu and
    > frontpanel buttons, decides which operation or calculation (if any) is
    > selected, and sends that to a case structure to perform the operation.
    >
    > This is sloooow but the most common way in examples that I've seen. The
    > major problem is that while processing the interface isn't checked and
    > therefore mouseclicks might be lost. Let's say the processing takes like
    > 500ms on average, that is kind of slow between user-interface querys so it
    > would feel unresponsive in the mean time.
    >
    > So here's my three ideas so far, I'd love some comments on what will be FAST
    > and what would be worthwhile to spend my time on:
    >
    > 1. Leave the app as-is, latch the booleans. However you can't latch
    > mouse-clicks on a picture indicator that I knew of. I emailed NI before
    > about this and they just suggested adjusting execution priorities. Anybody
    > else messed around with this? Probably the worst option, but would take zero
    > programming.
    >
    > 2. Divorce the user interface and the processing. Create two parallel
    > while-loops in the same VI, one checks the buttons/menu on the front panel
    > the other processes the request or calculation. Let's say on average UI
    > checking takes 1.2ms and processing takes about 500ms. Also in this case is
    > the watch icon still really my best option (since checking buttons/menu only
    > takes like 1.5ms on average) for not wasting time repeatedly checking when
    > there's no input and dividing up cputime accordingly? Seems like there'd be
    > some overhead in switching back and forth repeatedly.
    >
    > 3. Going all-out and changing to somewhat of an object structure. That way
    > the UI could create a new "execution" refnum, maintain some list of created
    > objects, process, return values, destroy any object, so everything could be
    > going on in parallel. That way one slow calculation won't bog down the rest
    > of the things the UI requests. The idea is far too abstract to me at this
    > point, but on a single CPU w98 system is it even worth my thinking about
    > such a structure? I get the feeling I'd see zero performance change between
    > the two, in fact maybe worse from any labview thread overhead!
    >
    > Thanks for any comments. I have seen DAQ intensive apps discussed often, but
    > don't usually catch much on large user interface apps.
    >
    > -joey

Maybe you are looking for

  • How to include Time delay in GUI enviroment

    hi all, i want to include time delay while drawing the shapes in the Canvas. I tried with Thread.sleep() and also delaying methods by making them to loop for large number of times.... but it affects the repainting of my Frame window like just previou

  • G5 iMac as a monitor?

    My non-Intel iMac G5 is showing its age. Though fully functional, I find a need for an Intel based system to take advantage of newer software and Snow Leopard. Is there a way to use the iMac as a monitor for use with a Mac mini?

  • Assignment of BTE to Function Modules

    Hi SAP guru's Please tell me Where can i assign the following. Assign the following BTE events to the corresponding function modules: BTE     Function module 1025     CREATE_DEFTAX_ITEM 1030     SET_DEFTAX_ITEM 1040     CREATE_DEFTAX_ITEM_REVERS 1050

  • 32-bit binary does not run on x86_64, ldd not a dynamic executable

    Hi, I switched from Ubuntu 8.10 x86_64 to arch linux x86_64 a short while ago and have an issue running 32-bit proprietary binary that dynamically links to some libraries. ldd insists "not a dynamic executable" How am I supposed to resolve the issue?

  • Exported mp4 movie bad quality, deleted imovie project! Help!

    Hello, My girlfrien exported an iMovie project using Quicktime in mp4 format, but forgot to check the quality. Now the quality is extremely poor and this has happened to all her videos. She deleted the original projects, including the iMovie clips. A