Can I change the subtotal text in "REUSE_ALV_GRID_DISPLAY_LVC" ?

Hi,
I need to change the subtotoal text in ALV report.
Now, I use function "REUSE_ALV_GRID_DISPLAY_LVC" not "REUSE_ALV_GRID_DISPLAY".
Because I need some feature from "REUSE_ALV_GRID_DISPLAY_LVC".
How can I do this?
Thank you

HI,
try ths,
*************INTERNAL TABLE FR SORTING***********************
DATA: it_sort TYPE slis_t_sortinfo_alv.
******** WORK AREA FR FIELD CATALOG *************************
DATA: wa_sort TYPE slis_sortinfo_alv.
wa_sort-spos = '1'.
  wa_sort-fieldname = 'EBELN'.
  wa_sort-tabname = 'ITTAB'.
  wa_sort-up = 'X'.
  wa_sort-subtot ='X'.
  APPEND wa_sort TO it_sort.
******************* call ths function module***********************
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
{*************uncomment it_sort*******************
it_sort                           = it_sort
hope ths help u
Regards,
Ritesh Jha

Similar Messages

  • How can we change the Subtotal text in alv  , urgent.

    hi,
    i want to maintain the text at subtotal level in an ALV.here i am using standard alv.not abap oops. i tried with the event subtotal_text but the form was not triggering in the progam.please provide some sample code.

    Hi,
    See This code .
    Reward if its usefull.
    Regards,
    Durgaprasad.
    *& Report  ZALV1
    REPORT  ZALV1.
    TABLES : vbak.
    TYPE-POOLS: slis.                      " ALV Global types
    SELECT-OPTIONS :
      s_vkorg FOR vbak-vkorg,              " Sales organization
      s_kunnr FOR vbak-kunnr,              " Sold-to party
      s_vbeln FOR vbak-vbeln.              " Sales document
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
    PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    DATA:
      BEGIN OF gt_vbak OCCURS 0,
        vkorg LIKE vbak-vkorg,             " Sales organization
        kunnr LIKE vbak-kunnr,             " Sold-to party
        vbeln LIKE vbak-vbeln,             " Sales document
        netwr LIKE vbak-netwr,             " Net Value of the Sales Order
        waerk LIKE vbak-waerk,             " Document currency
      END OF gt_vbak.
    INITIALIZATION.
      v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
      PERFORM f_read_data.
      PERFORM f_display_data.
         Form  f_read_data
    FORM f_read_data.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
               FROM vbak
                 UP TO p_max ROWS
              WHERE kunnr IN s_kunnr
                AND vbeln IN s_vbeln
                AND vkorg IN s_vkorg.
    ENDFORM.                               " F_READ_DATA
         Form  f_display_data
    FORM f_display_data.
      DEFINE m_fieldcat.
        add 1 to ls_fieldcat-col_pos.
        ls_fieldcat-fieldname   = &1.
        ls_fieldcat-ref_tabname = 'VBAK'.
        ls_fieldcat-do_sum      = &2.
        ls_fieldcat-cfieldname  = &3.
        append ls_fieldcat to lt_fieldcat.
      END-OF-DEFINITION.
      DEFINE m_sort.
        add 1 to ls_sort-spos.
        ls_sort-fieldname = &1.
        ls_sort-up        = 'X'.
        ls_sort-subtot    = &2.
        append ls_sort to lt_sort.
      END-OF-DEFINITION.
      DATA:
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv,
        lt_sort     TYPE slis_t_sortinfo_alv,
        ls_sort     TYPE slis_sortinfo_alv,
        ls_layout   TYPE slis_layout_alv.
      m_fieldcat 'VKORG' ''  ''.
      m_fieldcat 'KUNNR' ''  ''.
      m_fieldcat 'VBELN' ''  ''.
      m_fieldcat 'NETWR' 'X' 'WAERK'.
      m_fieldcat 'WAERK' ''  ''.
      m_sort 'VKORG' 'X'.                  " Sort by vkorg and subtotal
      m_sort 'KUNNR' 'X'.                  " Sort by kunnr and subtotal
      m_sort 'VBELN' ''.                   " Sort by vbeln
      ls_layout-cell_merge = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                is_layout   = ls_layout
                it_fieldcat = lt_fieldcat
                it_sort     = lt_sort
           TABLES
                t_outtab    = gt_vbak.
    ENDFORM.                               " F_DISPLAY_DATA

  • Can't change the lable text

    I found some problem to change label text in the prender method , I create a label on the form and type "Customer" on the properties text .
    I want to change label from "Customer" to "Supplier" in the prerender method , I found some strange behaviour.
    If I type something on the properties text , I can't change the label text on the prerender method for the first time to load the form. If I submit the form , the label text can be changed.
    If I do not type anything on the properties text, I can change the lable text on the prerendner method without any problem , no matter it is first load or submit .
    Anyone can help me to solve this problem ?
    Thanks

    This is a tough one to explain. Here is one explanation from the Delving Into Components tutorial:
    As with the JavaServer Pages implementation, when the server constructs a page from JSP source, the tag attribute settings in the JSP source take precedence over runtime settings. For example, if you set the text property for a Static Text component to "moon," the IDE adds text="moon" to the Static Text component's tag in the JSP file. Even if the page's prerender method has a staticText1.setText("sun") statement, the Static Text component shows "moon" when the application renders the page. If the page is rerendered, the staticText1.setText("sun") statement takes affect and the Static Text component shows "sun." If you visit another page and come back, the server once again constructs the page from the JSP source, the values set in the JSP tag attributes take precedence, and the page displays "moon."

  • How can I change the default text color (black to blue) in Mail on Mountain Lion

    How can I change the default text color (black to blue) in Mail on out going email with Mountain Lion

    There really aren't default outgoing font settings. They are only there for viewing. A workaround I have seen mentioned is to start you signature with the font style you want to use. When you start your message, click in that first part of your signature.
    Something like
    defaults
    Signature

  • How can i change the default text "Query by Example"

    Studio Edition Version 11.1.1.3.0
    how can i change the default text *"Query by Example"* in a Panel Collection
    Thx

    Hi thieto,
    The label you are looking for is af_panelCollection.LABEL_MENUITEM_QBE*
    I'm currently writing a blogpost on this issue. In short, you will have to create a skin resource bundle.
    In the skin definition, refer to this bundle class.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <skins xmlns="http://myfaces.apache.org/trinidad/skin">
      <skin>
        <id>mySkin.desktop</id>
        <family>MySkin</family>
        <extends>blafplus-rich.desktop</extends>
        <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
        <style-sheet-name>skins/MySkin.css</style-sheet-name>
        <bundle-name>com.blogspot.lucbors.view.bundles.MySkinBundle </bundle-name>
      </skin>
    </skins>In this class, adjust the label text to your needs.
    package com.blogspot.lucbors.view.bundles;
    import java.util.ListResourceBundle;
    public class MySkinBundle extends ListResourceBundle {
      public MySkinBundle() {
        super();
    @Override
      public Object[][] getContents() {
        return _CONTENTS;
    static private final Object[][] _CONTENTS = {
         {"af_panelCollection.LABEL_MENUITEM_QBE","the text that you want"}
    }More in the blogpost
    Good luck
    Luc Bors
    Edited by: lucbors on Jul 26, 2010 11:39 AM (blogpost finished - URL added)

  • Can't change the label text for the first time of  loading

    I have some problem to change the label text in the prerender method.
    I put a label on the form and set the text value to "Customer" on the text properities , and I would like to change the lable text to "Supplier" in the prerender method, I found some strange behaviour.
    If I type nothing on the label text of the properties , I can change the lable text on the prerender method on the first time of the form load .
    If I put something on the label text of the properties , the text label can't be changed on the first time of form loaded, the lable can be changed if I refresh the form or reload the form.
    Could anyone help me to solve this kinds of problem ?
    Thanks

    This is a tough one to explain. Here is one explanation from the Delving Into Components tutorial:
    As with the JavaServer Pages implementation, when the server constructs a page from JSP source, the tag attribute settings in the JSP source take precedence over runtime settings. For example, if you set the text property for a Static Text component to "moon," the IDE adds text="moon" to the Static Text component's tag in the JSP file. Even if the page's prerender method has a staticText1.setText("sun") statement, the Static Text component shows "moon" when the application renders the page. If the page is rerendered, the staticText1.setText("sun") statement takes affect and the Static Text component shows "sun." If you visit another page and come back, the server once again constructs the page from the JSP source, the values set in the JSP tag attributes take precedence, and the page displays "moon."

  • Can I change the standard text for web item 'INFO_FIELD_ITEM'?

    Hello experts.
    I made a WAD template using web item 'INFO_FIELD_ITEM'.  In data binding, I used the 'Last refresh' of general text elements.   As a result, in the web browser I can see the last update date & time. (e.g. 'Last refresh: 2007.01.17 17:34:44') Then our customer want to change the default text "Last refresh" as "Working time".
    How can I change this?
    I tried to change the text symbols for program SAPLRRSV. But it worked only in Bex Analyzer not in the web.
    Our server version is Netweaver 2004s and SP10.
    Best regards.
    JY Park.

    Hello,
    I had the same problem - just wanted to display the values of a variable in an info-field, but not the caption.
    I found out, that there's a tag for Info-Field Item called ONLY_VALUES (it's the checkbox under the headers visible checkbox in the properties dialog of the Info-Field Item; in my WAD version, there's no label assigned to this checkbox, so it was not easy to find out what it should be),
    You have to set it to 'X' (check it) ; then you get the unformatted value of the variable (no caption anymore).
    <bi:INFO_FIELD_ITEM name="INFO_FIELD_ITEM_1" designheight="500" designwidth="350" >  <bi:WIDTH value="350" />
    <bi:HEIGHT value="500" />
    <bi:DATA_PROVIDER_REF value="DP_1" />
    <bi:HEADERS_VISIBLE value="" />
    <bi:ONLY_VALUES value="X" />
    You have to insert the info-field item between span tags so that you can define your own formatting values.
    The ONLY_VALUES tag works the same as the tag 'RENDER_AS_TEXT' you have with the text item , see
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    There's only one disadvantage: If you have chosen a lot of variable values (multiple selection), the variable string gets very long and no line break is performed, because all blanks in the string are replaced by nbsp's. I solved this with a little Java Script, replacing the appropriate nbsp-s with br tags.
    Hope it helps
    Beate

  • How can i change the undisclosed text of Detail Disclosure in a table

    Hi.
    I have a new OAF page, with an advanced table.
    The table has a Detail Disclosure (a row-level Hide/Show in a table).
    By default, the prompt is "Show" or "Hide" for disclosed/undisclosed state.
    I need to change this text to another text, like"payment".
    How can i change the text of the table Detail Disclosure?
    Please help...

    I found this reference in the guide:
    In accordance with BLAF guidelines, the Detail column header text for the detail disclosure column and the Show/Hide link texts within the cells of the detail disclosure column can not be modified.
    I guess it is currently not possible.
    Regards,
    LC

  • Why can I change the callout text font in some documents and not others?

    By experimenting I have determined that some documents that will allow me to add callouts also let me change the text font to a different font or font size.  Other documents that will let me add callouts will not allow me to change the text font. A specific example is that I can add callouts and change the callout's font in pdf's I create by printing from Word, but a datasheet I have from a manufacturer I use will allow me to add callouts but not change the callout font.  Why can't I change the font in callouts I add to the datasheet?  I am using Acrobat 9.5.2.  Thanks for the help.

    Thanks Bob, I didn't think of that, I suppose that would work.  Basically I would just like to have more text sizes to choose from in the drop down menu, I guess its more an issue of laziness on my part than anything else.  I could make a character style for it, but then I'd probably have 10 different character styles just to change the size of my text when it would be less hassle just to type in the size I need.  I was just looking for a quick fix default option that I was used to having at my old job.

  • Why can't change the comment text Colour in version 11.0.10?

    Why can't I change the colour of the text "the comment fuction" in version 11.0.10, but I can do so in the older version 11.0.09?
    Please fix this, thanks!

    What exactly means "can't"; what happens when you try?
    What is your operating system?

  • Can I change the default text/bullet indents?

    Hi
    I'm familiar with the idea of creating a template with the formatting that I prefer, but I can't figure out a way to include the indent values that I like to use when I create a list.
    When you go into the inspector and select Text / List / Text Bullets the default indents come up as 0 cm. You can obviously change these values for the list you are working on at the time, but as soon as you start a new list elsewhere in your document it's back to zero. So I can't see how you could ever set it as a default in a templete.
    Any ideas? Am I missing something?
    Thanks!

    yes, you have to create a paragraph style with the formatting you want. Read about Styles in chapter 6 of the Pages User Guide. you can choose it from the Pages Help menu. I presume you are using Pages 09

  • How can I change the firefox text find color?

    When you press CTRL+F in Firefox to bring up the text search and you search for a word, the word is highlighted in this neon green color. Is there a way to change the color of this? The green color is hardly visible.

    Hi Pino76,
    You should take a look at:
    http://kb.mozillazine.org/About%3Aconfig_entries#UI.
    Just type ''about:config'' into your browser
    ui.textSelectBackgroundAttention is the entry you want to modify. Just add the hex value of the color you want.
    If that entry isn't there, you can create it.
    Hopefully this helps!

  • How can I change the default text on my homepage tab?

    When my homepage displays it has some kind of weird garbled text in the page tab at the top. Is it just a placeholder? How do I change it?

    It's not "some kind of weird garbled text". It's called Latin, an ancient language. Learned people still speak it. And it's taught in institutes of higher learning.
    It's also used as placeholder text in printing :
    http://www.lipsum.com/
    See the image below where the text originates.
    But you have some issues on your page that can be solved by simply paying attention to what you do.
    First there's an image covering the links. Old Toad referred to that. Move it down, or change the dimensions :
    And that "some kind of weird garbled text" is hidden behind your brochure :
    Read this to learn how iWeb creates the title in the titlebar :
    iWeb uses the textbox in the Header layer of an iWeb page as the title in the browserwindow.
    Do not remove the original textbox, as you cannot replace it other than by selecting another theme and then change it back to the original theme again. Ruining the layout in the process.
    If the textbox in the Header is missing, iWeb uses a textbox down the page in the Content layer. If that textbox is also missing, it uses another textbox. If that fails it uses the pagename in the Sidebar.
    Sometimes you may want a different text in the titlebar and not display it on the page itself. Or not display it at all.
    So use that textbox in the Header layer. Type your text. Then select the textbox. In the Inspector choose T, click a color to open the color palette and drag the opacity slider to 0 (zero).
    Do Command-T to open the font palette and make the font smaller. (Or do Command--(minus)) Also use a font that doesn't change to an image. Arial is a good font. Perhaps do it first before making the text invisble.
    Resize the textbox. You may want to change the height of the Header layer.
    Do Command-Shift-B to move the textbox to the back, possibly behind other objects.
    Next add a optional second textbox to the Header layer and use that one to display text on the page.
    If you want to move the textbox to the front again to make changes, but can't remember the location on the page, drag the area with the mouse to select the objects.
    Deselect objects you do not want to move forward by Command-dragging the mouse over these objects.
    Next do Command-Shift-F to move the textbox to the front. Repeat the steps in reverse order to make the text visible.
    Practice.

  • In Acrobat 8 Professional, how can I change the typewriter text color?

    I tried selecting the text then pressing Ctrl-E but the text properties toolbar that appears says, "No current selection." I tried this method another user suggested:
    "1. Use the text box tool to type some text, then select the text
    2. Use the properties bar, ctrl-E, or View > Toolbars > Properties Bar, to change the color of the font
    3. Highlight the text, not the text box and copy the text.
    4. Click on the typewriter tool and type some text.
    5. Click on the comments menu and select "Show Comments List", in the comments list you should see the typewriter entry from step 4 above.
    6. Highlight the typewriter text in the comments window then paste the copied text from step 3 above.  It should paste with the color selected in the properties bar.
    7. Right click an area of the typewriter entry in the comments list, and choose properties.
    8. On the General tab check the "Make Properties Default" Check box and click OK.
    All new typewriter entries should now use this new font color. "
    But when I get to STEP #2 the text properties toolbar that appears has all the options to edit the text shaded so I cannot select the option to change the text color. Any help would be appreciated!

    There really aren't default outgoing font settings. They are only there for viewing. A workaround I have seen mentioned is to start you signature with the font style you want to use. When you start your message, click in that first part of your signature.
    Something like
    defaults
    Signature

  • Hi! How can I change the header text direction to vertical?

    I have many columns with big names, but I need small space for body cells, and I want to check all the table at a view ...  So I want to change the direction of the header texts to "left vertical" or "right vertical".

    There are a couple discussion threads on this already.  Fundamentally it is not a feature that Numbers supports.  There are several work arounds but non of theeem are great:
    Please see this thread:
    https://discussions.apple.com/message/15240103#15240103

Maybe you are looking for

  • BAPI/Function module for production version tab data of  MRP4 view(MM01).

    Hi, I have to upload production version tab data of  MRP4 view(MM01).Please suggest a function  moduleor bapi  for the same. Thanks. Edited by: sanu debu on May 6, 2009 3:24 PM

  • Save as Excel going very slowly

    I have a client using Desktop Intelligence in an BO XI R2 environment who is experiencing severe delays when trying to export the output of a report from InfoView to Excel. The report is built across 4 tabs, each with about 18000 rows on each. When t

  • How can I copy and paste images' file?

    I need to duplicate images' files (.jpeg or .gif) from a directory to another one. How can I do? Is there any method to do that?(with jdk1.3.1) Thanks for your help.

  • Imagee besides  title of a frame

    How do you get an image besides the title of a frame?Please help?

  • After loading itunes 8 music is not authorized

    I loaded iTunes 8 and activated the "Genius" and now it will not allow me to play previously purchased music. iTunes states, "This computer is not authorized", I enter the password and then iTunes states, "This machine is already authorized" and then