Problem with subtotal, and the total icon is not displayed at the toolbar

Hi all,
I'm currentlyhaving difficulties working with the subtotal and the grandtotal. I have the code in the right place like the sort table
  CLEAR k_sort.
  ADD 1 TO k_sort-spos.
  k_sort-fieldname = pv_fieldname.
  k_sort-up        = c_x.
  k_sort-subtot    = pv_subtot.
  APPEND k_sort TO i_sort.
and the fieldcatalog
  CLEAR k_fieldcat.
  add 1 to k_fieldcat-col_pos.
  k_fieldcat-fieldname  = pv_fieldname.
  k_fieldcat-tabname    = c_tabname.
  k_fieldcat-seltext_l  = pv_seltext.
  k_fieldcat-outputlen  = pv_outputlen.
  k_fieldcat-datatype   = pv_datatype.
  k_fieldcat-do_sum     = pv_dosum.
  APPEND k_fieldcat TO i_fieldcat.
but it didn't seems to show both the total and subtotal. Even the icon is not displayed at the ALV toolbar. The field which I need the total is a currency field. I even try other fields (interger fields) but with no luck. I'm using REUSE_ALV. Any help is greatly appreciated.

hi,
In field catalog for the particular column which you want to sum make that as 'X'.
say
WHEN'MATNR'.
it_fcat-do_sum = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_callback_program     = report_id
            i_grid_title           = ws_title
*            i_callback_top_of_page = 'TOP-OF-PAGE'
            is_layout              = wa_layout
            it_fieldcat            = i_fieldcat[]
            it_sort                = i_sortcat
            i_save                 = 'A'
            it_events              = i_events
       TABLES
            t_outtab               = i_reportdata1
       EXCEPTIONS
            program_error          = 1
            OTHERS                 = 2.
  IF sy-subrc <> 0.
This will enable.

Similar Messages

  • I have just updated to ISO 8 and my app icons are not displaying the correct icon but just a generic icon. Anyone had a similar problem?

    I have just updated to ISO 8 and my app icons are not displaying the correct icon but just a generic icon. Anyone had a similar problem?

    That happened to me for a short period of time after I updated. It didn't do it with all apps, but it did it with a few here and there. Try a few basic standard troubleshooting steps. Close all apps and reset the iPad.
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    You can also try resetting all settings. You will not lose any data, but most of the device settings will have to be entered in the settings app again. Settings>General>Reset>Reset all Settings.
    Hopefully it will be something simple, but don't rule out restoring the iOS software, if nothing else works, but start with this easy stuff first.

  • I'm having problems with iPhoto and the facebook set-up.  Every time I attempt to do so it says an error has occured and try again later.  I have not seen a solution posted.  Therefore, how does one contact Apple to solve the problem?  I'm new to the worl

    I'm having problems with iPhoto and the facebook set-up.  Every time I attempt to do so it says an error has occured and try again later.  I have not seen a solution posted.  Therefore, how does one contact Apple to solve the problem?  I'm new to the world of iMac but I find it a bit frustrating trying to solve basic issues/problems:(

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • Mountain Lion fails to install saying it cannot create the recovery; I had a similar problem with Lion and the Apple Store that helped me resolve it gave me an installable version of Mountain Lion on a flash drive for my inconvenience....

    Mountain Lion fails to install saying it cannot create the recovery; I had a similar problem with Lion and the Apple Store that helped me resolve it gave me an installable version of Mountain Lion on a flash drive for my inconvenience....is there some trick I am missing or do I need to make an appointment with a genius...

    I have the MacIntosh volume and the Boot Camp partition only.  I know that when I installed Lion, I had to go through a whole back-up and recovery of Windows and then re-format the drive. 
    The tech at the Apple Store had a previous life as a MSCE and was very helpful.  I believe he even said that I should not have htis problem with Mountain Lion which is why they gave me the flash with it onboard.  I was in the process of starting a new job when I went to Lion, so I have waited to do this next and probably last upgrade to this old MBP since I doubt Apple will support this MBP in Maverick. 
    I do not have another installation, so that is not an option.  I will try to create an external, I have plenty of hard drives around and see if I can get it done that way.  It might take me a week or two to get back to it, but I will comment back upon completion of that effort.  Thanks for your help....Dave Iverson

  • I purchased 2 weeks before i phone 5 but there is problem with sleep and wake up button its not responding can anyone help me in this issue.

    i purchased 2 weeks before i phone 5 but there is problem with sleep and wake up button its not responding can anyone help me in this issue.

    You have a one-year hardware warranty & 90 days of free phone support. Take advantage of it, make an appointment at an Apple store or call AppleCare.

  • Problems with updates and the App

    Hi all
    I'm new to the Creative Cloud, and while I'm enjoying all it has to offer I am having some problems. Every time I use the app to update any software, I can't 'update all' I have to update one, quit the app and then re-launch it to run the next software update. As you can imagine this is frustrating and time consuming.
    Has anyone else had this problem, or is a common issue? Any advice or a point in the right direction would be welcome. I've done searches but havn't found what I'm looking for.
    Many thanks.
    Neil

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • I am have problems with firefox 5& 6. It does not display correctly. I have tried the no squint and the internal zoom. Some pages load ok, others like yahoomail, load tiny unless I zoom and then other pages have problems. Why? What else can I be doing?

    I am frustrated. With the no squint, which has a mind of its own, then some pages are fine, in others the type is too big or too small for the frames. If I use the default Firefox zoom that is no better. I have to set things for like 130 percent and am constantly having to click on the zoom and change things. I never had that with previous versions? Why can't Firefox just go back to displaying text in the correct frames at a decent size?

    I have played with all the options in no squint and the default zoom thing. My email list in yahoo remains tiny tiny, other things do not. If I enlarge that, then other things are too big. I never had this problem with older versions of firefox. I never had used any zoom features, it all sized itself correctly.
    To troubleshoot, I tried to open the same things with chrome, and it had much less of a problem sizing the type etc.
    I am kind of at my wits end here.

  • Are there any known problems with Macs and the mp3 playback in Adobe Connect ?

    One user using an Apple Mac has complained of not being able to hear the mp3 sound playback in a meeting.
    Is this a problem with Apple Mac and mp3 compatibility or is it an individual soundcard issue ?

    I use several Macs with Adobe Connect and I have even created MP3 files for playback in the room. Works fine on all my macs. It's basic Flash. Suggest they clear their browser cache, replace their host-add-in if using one. Run the audio wizard as well to make sure sound is working in Connect.
    All of the Adobe Connect Government engineers use Macs all the time so we've never had an issue with MP3's.

  • Problems with Whatsapp and the iOS 8.1.2

    Hi
    I have had many problems using whatsapp with my iPhone since I update the iPhone iOS to 8.1.2.
    Whatsapp gets locked frequently and I have to erase it and download again, loosing the last conversations.
    What is happening? What could I do?
    Thanks
    Jorge

    Check with Whatsapp support. If you have downloaded a new one and it is still acting up, there could be something wrong with it and their support should be able to answer your question. That is not an Apple application.

  • Having problems with InDesign6 and the new OSX Mavericks

    I just downloaded the new OSX and now my Id6 won't open. It starts initializing and the I get the message "InDesign quit unexpectedly." I am in the middle of publishing a book for someone using the "export to kindle" plug-in which isn't compatible with IdCC. Has anyone else had this problem?

    I have just run into the same issue. New Macbook Pro running Maverick and I have Vectorworks 2011. Appple support recommends against partitioning the hard drive on a new MacBook Pro running Maverick. (The first call the apple person suggested it. On a follow up call they strongly recommend against doing it because it can screw up the firmware.) How did doing the downgrade work for you, and how did you do it, external drive, partition? I hate to drop $1300 on Vectorworks when I don't yet need it.

  • Problems with VISA and the serial port

    Hello,
    i have a little problem with the serial port and VISA. I have changed an existing LabView- Software in that way that I have replaced the serial- module by the VISA- module. The function of the program is to communicate with different devices by RS232. After changing the modules to VISA the software doesn't work probably. The problem is, that when I try to communicate with one of the devices first I get no answer. When I try it a second time after some seconds the communication works perfect. After about a minute I send another message to my device but there is no answer again. I have to send the message again.
    I hope someone in this forum can help me with my problem
    cu Marco

    Marco,
    this sounds very much like a problem with the termination of your messages. You may have to tell VISA to add a termination character. Please follow the instructions in this document.
    Best regards,
    Jochen
    National Instruments Germany

  • Problems with links and the "advanced" field

    Has anyone else had problems with the advanced field when
    making a new link? It seems I have to edit it three or four times
    before it will actually take the link I put in ("
    http://www.blah.com/" instead of
    "../../"). Anyone else?

    I am having the same problem... although I am only trying to link between "One of My Pages" i.e navigation menus.
    It is pretty random which links work and which don't as far as I can tell anyway.
    The links work fine when I activate hyperlinks in iWeb but as soon as I publish to a folder some of them don't.
    I will post if I find a solution, but I have read and tried just about everything.
    Best
    PowerBook G4   Mac OS X (10.4.9)   1.25 GB RAM

  • After having installed Mavericks I have problems with PSCS5 and the RAW converter. The glider for Exposure goes back to zero, when I use the fill in glider.

    When I use PSCS5 after having upgraded to Mavericks I have problems when I use the RAW converter. The glider for  exposure goes back to sero, hven I use the glider for fill in light, that means that my PSCS5 program not can be used. What do I do?

    Single click on the Home button. Then double click on the Home button. In the recently used row, touch and hold the Contact app till they start to wiggle and then tap the minus sing by the contacts app.
    Also make sure the Contact program on your computer is closed.

  • Problems with ADE and the Nook

    I've encountered an interesting issue with the ADE and the Nook.  ADE dumps the titles in the root directory, which the Nook is unable to see.  I have to manually move the "Digital Editions" folder as a subfolder into the Nook's "my documents" folder.  It's more of an annoyance than anything else, but is there a workaround so that when one drags and drops the book title, it is copied into the right directory?

    Only if you can find the book!!!!!  ADE has 300+ of my books.....too bad I can't even get the from any library on ADE.

  • Sub total icon is not displaying in alv report output

    Hi friends ,
    In alv report display on menu bar the icon : subtotals is not displaying at the output , I should not give subtotal in each field catalog .
    Plz give me solution, points will be rewarded.
    with regards,
    prasad.

    Hi,
    I think u r using PF-STATUS parameter in function module,
    if u use this parameter, you sholud give the icon name etc..
    otherwise by default it will appear.
    Check your code again.
    Give me exact requirement, if possible paste the code.
    Regards,
    Chandu

Maybe you are looking for

  • ITunes not playing full songs before going to the next

    Like, I have a song here that is 5:49 minutes long. It plays until 3:21 then suddenly skips to the next. This has been happenning to a lot of the songs on my library - not the ones I added a long time ago, but the ones I've added recently. I first no

  • Event firing at item added and item updated in event receiver?

    Hi All, I have created event receiver on item added & item updated on document library. 1) On Item Added i am updating document library Title column with document Name and i have metadata for the file. 2) On Item Updated i am move that file with meta

  • RENTED HD MOVIE NOT PLAYING

    I bought an Apple TV last week, and updated to the latest software. I rented an HD movie today with Apple TV, waited until it said "ready to view", then tried to play it. All I get is a white screen. I fast forward, and still nothing but a white scre

  • How can i edit a photo to a specific height & with . Using photoshop elements 4.0

    how can i edit a photo to be a specific height & width using photo shop elements 4.0

  • Data Plans

    Here's the question: Verizon Wireless requires a data plan for the Samsung Omnia 2, but Best Buy gives me the option of not having a Data Plan for the SAME PHONE. Since it is not required for Best Buy, and I choose to order it from Best Buy, when I a