Reuse_alv_list_display - unable to do my own calculation in subtotal

Hello experts,
  I am using reuse_alv_list_display in my report.   How can I apply a calculation formula in the subtotal for  Col D ?   I also need it display Col D on the same line as the Subtotal line.
No problem in totaling Col C using standard ALV.
For example:
   Col A,    B,   C,  D
    Pen ,    1,    2,   3
    Pen ,    5,    6,   7
Subtotal:         8     1.333    .
    Watch  3    1     2
     Watch 4    3    8
Subtotal :       4    0.57
Subtotal on   Col C is 8 (2 + 6)  which you can get from standard ALV
Subtotal on  Col D is    Total Col C / Total Col B.
  I am using event Before_line_output so i can do the calculation on subtotal for Col D.
The codes in the event are below.  THe calculation  is on v_gp%.
  loop at itab.
  case p_lineinfo-tabname.
    when ' ITAB'.
    when '  '.
       if p_lineinfo-sumindex = 1.
         tot_zcup = tot_zcup  + itab-s_zcup.
         tot_gp_amt = tot_gp_amt +  itab-s_grprofit.
       endif.
       if p_lineinfo-subtot = 'X'.
         v_gp% =   tot_gp_amt / tot_zcup .
          write:/ 'Amt ', tot_zcup, tot_gp_amt, v_gp%.
          modify it_s3_final index p_lineinfo-sumindex.
          clear: tot_zcup, tot_gp_amt.
       endif.
  endcase.
I get many AMT coming out in the report.    Pls provide guidance.
Thanks you so much,
Joyce

Hi joyce,
ALV Grand total text
Regards,
Sravanthi

Similar Messages

  • I am unable to open my own pdfs in Photoshop

    I am unable to open my own pdfs in my Photoshop (ones that I have created in same Photoshop). Can anyone advise?
    I get the message "This is not a valid Portable Document File (PDF) document. It cannot be opened."
    I have to keep recreating the art...ugh!! Is there a way to pull up history to replicate my artwork until I get this resolved??

    History (as indicated in the History Panel) is deleted when closing a file.
    Photoshop > Preferences > General > History Log could be used to get a list of performed steps, but this is not directly executable.
    ScriptingListener.plugin can be used to record operations, but not everything in Photoshop is recordable thusly.
    As for the issue with the pdfs:
    Which settings do you use exactly when saving pdfs?
    Is there a chance the drive you save to is faulty?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

  • Users are unable to see their own profile photo although everyone else can see it in Lync 2013 client

    We have Lync 2013, Exchange 2010 and several AD
    servers in mixed mode 2003/2008.
    All user are unable to see their own profile photo
    either in the main Lync window, in the settings or in a chat although other user can see that their photo is there and displaying. The user experiencing the issue can go open Outlook 2013 client and will see their photo displaying correctly in the file menu
    (and elsewhere) here.
    I have confirmed this happens with any new users I set up as well. We have gone through a fair amount of troubleshooting with other Lync photo issues and simple fixes such as deleting the SIP cache folder etc proves to be ineffective.
    Our Cs-ClientPolicy Global is set to websearchonly.
     We have "Replicate this attribute to the Global Catalog" set
    for the ThumbnailPhoto attribute in AD.
    We are also forcing photos from AD only (or no photo) by setting the following:
    "Set-CsClientPolicy -Identity PhotosControl -DisplayPhoto
    PhotosFromADOnly"  
    and finally we are importing the photo in ad using this PS command:
    "Import-RecipientDataProperty -Identity "Test User"
    -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\pictures\testuser.jpg" -Encoding Byte -ReadCount 0))"
    The pictures being uploaded are under 10KB in size.
    I have followed many threads and will provide any information I can to help find the problem. Thank you in advance.
    EDIT: I have also tried the following but with no success: https://knowledge.zomers.eu/misc/Pages/How-to-fix-your-photo-not-showing-up-in-the-Lync-client.aspx

    Hi Jdentremont,
    Lync client gets user photos by first querying the Address Book Web Query (ABWQ) service on the server, which is exposed through the Distribution List Expansion web service. The client receives
    the image file and then copies it to the user's cache to avoid downloading the image each time it needs to be displayed. The attribute values returned from the query are also stored in the cached Address Book Service entry for the user. The Address Book Service
    deletes all cached images every 24 hours, which means that it can take up to 24 hours for new user images to be updated in the cache on the server.
    To troubleshoot your problem, please follow the steps below:
    1.  Navigate to
     “X:\share\1-WebServices-1\ABfiles\000000000\000000000” folder. (ABS file share)
    You should see some photo files in this folder as the following screenshot.
    2. Delete all the files in this folder.
    3. On test PC, delete local cache files.
    %userprofile%\AppData\Local\Microsoft\Office\15.0\Lync\[email protected]
    4. Sign-in Lync with the test account.
    5. Go back to the ABS file share, check if there is any Photo file in the folder.
    Best regards,
    Eric
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • I've tried everything and still am unable to join my own wifi network from my iPhone 4s

    I have an AirPort Extreme running the latest software. I've tried everything and still am unable to join my own wifi network from my iPhone 4s, iPhone 3Gs, iPhone 3G, my girlfriend's iPhone 4. The only devices that will connect to the network are our MacBook Pros and iPads, (1 and 2). I have reset the airport to default settings, I've restored my iPhone, I've even disabled the password. I am still unable to join my open airport extreme wifi network. PLEASE HELP!

    Saying you tried everything isn't helpful. Perhaps describing in detail what you've done would allow people to better assist you.
    If you're ever experiencing strange problems connecting to any wifi point you can always try resetting your network settings on your iPhone itself. This solves the majority of wifi problems.
    To do this go to Settings > General > Reset > Reset Network Settings. This will clear all of your saved wifi hotspots and passwords, and hopefully solve your issue.
    Please try this and respond with your results.

  • System not booting, getting "unable to qualify my own domain name"

    Hi,
    System name : sun ultra 24
    version : solaris 10
    I am not able to login to the system. System is not booting completely. Getting below error at the boot time.
    sendmail (354) : My unqualified host name (india) unknown ; sleeping for retry
    sendmail (353) : unable to qualify my own domain name.
    Thanks in advance..

    Hi,
    please do the following in your /etc/hosts file
    find the line containing the hostname,
    and add your hostname again with a dot as a last char
    example for hostname india
    192.150.1.1 india india. loghost
    and restart the sendmail process : kill -1 <sendmail process num>
    Edited by: user8383840 on 15 sept. 2011 02:45

  • Can we get subtotal and grand total by own calculation in a hierarchy ALV?

    Can we get subtotal and grand total by own calculation in a hierarchy ALV? I can get them by setting DO_SUM = 'X' by standard summation, but now I need to do my own summation on subtotal and total, can I?

    Can we get subtotal and grand total by own calculation in a hierarchy ALV? I can get them by setting DO_SUM = 'X' by standard summation, but now I need to do my own summation on subtotal and total, can I?

  • I am unable to join my own wifi network with new iphone 5

    I am unable to join my own wifi network with new iphone 5.  It has the latest software downloaded too.  Keeps saying unable to join network after I type in the password.  All my other devices are able to join but just not the iphone.  I've called Verizon and my internet provider and they have been unable to help.  I had no problems with my iphone 4 with this very same issue.  Please help or I'll be forced to return this phone.  I have 13 days left.

    Try power-cycling your router (unplug for 15 seconds, then plug back in), then on your phone go to Settings>General>Reset and tap Reset Network Settings, and try joining your network again.  Note: resetting network settings will erase passwords for previously joined networks on your phone.

  • Error message unable to qualify my own domain name

    Hello
    I have two systems at a remote location. The user reports they see the following error message sometime after the login screen is displayed.
    "Unable to qualify my own domain name(prec7b12)--using short name"
    Unfortunately we lost our admin so I am trying to fill in and my Solaris experience is more advanced user than admin. If you could point me in the right direction on this I would appreciate it.
    Best Regards
    Robert

    Put the domain name in the /etc/defaultdomain and add the fully qualified domain name as an alias in the /etc/hosts file
    ex.
    /etc/hosts
    1.1.1.1 <hostname> <hostname.domain_name.com>
    also add the domain to the first line of the /etc/resolv.conf file.
    ex.
    /etc/resolv.conf
    domain <domain_name.com>
    [nameserver <IP of DNS Servers>]
    [] means it is optional
    The above is the correct way to set it up. Now the quick and dirty ways to fix the problem.
    Option 1. Ignore it, it is only need if you are doing internet e-mail from the local box.
    Option 2. Put the full qualified domain name in the /etc/hostname.hme0 file. Depending on your computer the hme0 may be different.
    Option 3. edit the file /etc/mail/sendmail.cf.
    Search for Dj just above it you should see the following.
    # my official domain name
    # ... define this only if sendmail cannot automatically determine your domain
    #Dj$w.Foo.COM
    Add the following line below it.
    Dj<hostname.domain_name.com>
    I have found that the $w does not always give you the desired results so just use you fully qualified domain name.

  • Unable to join my own network, can anyone help?

    My modem was disconnected from power for a few hours and when it was plugged back in I could get on the internet with my desktop but unable to connect on my iPad.... I get a message that says: Unable to join network... Does not even give option of submitting my password, etc.
    I called my internet provider and he said that it was a device issue that he could not help me... He said he could hook me up with thier SPECIAL ( my words, not his ) tech support for $9.95 per month and they can help with hand held devices... OR I could go to Apple support, before I put money out, I was hoping someone on here might be able to help me, PLEASE?
    Please and Thank you!!

    Go to ur router settings if u know how to and then get it a reset so all passwords and router name and ur ssid etc goes back to router factory settings
    then restart ur router change ur name by giving its factory password and change ur password too and ssis also then go to ipad find it and try joining it
    also u can change the things in ur computer to acceess net....
    do this only if u know what ur doing and can get it done by urself or else dont try it becoz anything going wrong will deprive u frm ur net use forever until any maintainance man is called
    I warn u again to do it on ur own risk and ONLY IF U KNOW WHAT UR DOING OK..... if u know it then it will definitely solve ur problem
    I hope I could be there for ur help near u but ........

  • I am unable to use my own network with my iphone for wi-fi.The message says "unable to join the network (my network). How do I configure the info in the phone to allow me access?

    How do I configure the setting in my iphone to allow me use of my own network?

    Thanks for the responses, they have been very illuminating!
    This is very disappointing from The Carphone Warehouse. If they had mentioned this when I went into their stores, I wouldn't have completed the purchases. I bought two phones at separate outlets and neither of them told me this.
    I have been in contact with T-Mobile already as I thought they had sneakily applied a software update that locked the phone. They have denied locking it and suggest that it is something that Apple do. Their solution was a factory reset.
    I have a call logged with Apple this afternoon, so will see what they suggest. Hopefully they will give me something that I can take to The Carphone Warehouse or T-Mobile.

  • Total in ALV List (own calculation)

    Hi All,
    do you know how to display total in ALV List which calculated by me ?
    Previously I am using Before Line Output event ?
    I dont know why it's not working now (see the code below)? Now it is always overrided by standard sum calculation. Please help me.
    Thank you in advance.
    Sandi
    FORM ALV_BEFORE_LINE_OUTPUT USING RS_LINEINFO TYPE SLIS_LINEINFO.
      IF RS_LINEINFO-endsum = 'X'.
        I_DATA-PERFORMANCE = L_AVG.
        "MODIFY I_DATA INDEX RS_LINEINFO-SUMINDEX.
      ENDIF.
    ENDFORM.

    Hi All,
    do you know how to display total in ALV List which calculated by me ?
    Previously I am using Before Line Output event ?
    I dont know why it's not working now (see the code below)? Now it is always overrided by standard sum calculation. Please help me.
    Thank you in advance.
    Sandi
    FORM ALV_BEFORE_LINE_OUTPUT USING RS_LINEINFO TYPE SLIS_LINEINFO.
      IF RS_LINEINFO-endsum = 'X'.
        I_DATA-PERFORMANCE = L_AVG.
        "MODIFY I_DATA INDEX RS_LINEINFO-SUMINDEX.
      ENDIF.
    ENDFORM.

  • Shared contact - unable to trace who owns it or connect to it.

    We have a client running Exchange 2007. Users connect to a shared contact list called "Rolodex". however I am trying to setup an outlook client (2003) and am unable to connect to this shared calendar since I have no idea where it is
    located. Is there any way to find this out?

    I do not fully understand what you are referring to. Apologies, I am not very fluent with in-house Exchange.
    Are you saying to look at something within a working users outlook profile?
    Also this is a shared contact list, I mis-posted and put shared calendar.

  • Solaris8 : unable to qualify my own domain

    This message appears sometimes , is there a patch to bearing to this messages or did you know a workarround ?
    Tks a lot .
    Best Rgards

    Sendmail is looking for a fully qualified hostname,
    i.e. a hostname with dots plus a domainname.
    You often get that error message on a standalone system
    (without DNS), when your hostname does not include
    a domainname.
    Fix: In /etc/hosts, just add an alias for you
    host with a domainname. Change something like
         10.0.0.1     host
    to
         10.0.0.1     host.domain.name host

  • I am unable to join my own wi fi network, but when I take my ipad to starbucks, or any other place where there is free wireless, it works.

    This happened when I first got my Ipad, and initially attempted to join my wireless network, and while I was waiting patiently with Apple tech support, it just "started workin".  Not sure whats going on, it is not accepting my router password. 

    This leans toward there being a problem with your wireless router and network. If a problem with your iPad, it probably wouldn't connect to any other wi-fi network either.
    http://support.apple.com/kb/ts1398

  • [SOLVED] Unable to crack my own WEP network

    For a long time I've been trying to do that (crack my 64 bit WEP wi-fi) but have given up because of various problems. For example I have the "Fixed channel -1" problem when aireplay-ing. But yesterday i decided that i could ignore that and just use airodump + aircrack + wget-ing a file .
    So the commands i issued before i went to bed were:
    airodump-ng --bssid <MACofAP> --channel 8 -w /tmp/overNight mon0 //on root terminal
    while true; do wget <file> -O /dev/null; done
    sleep 2h; aircrack /tmp/overNight-01.cap //on root terminal
    sleep 4h; aircrack -K /tmp/overNight-01.cap //on root terminal
    And so on the morning I found tthe PTW method failing with segmentation error.
    The Korek one was just continuing testing keys... The night before I tried to eliminate each method alone using "aircrack -K /tmp/overNight-01.cap -k 1..17" with no success either. Worth noting is that I'm using "rtl8192se" driver.
    > lspci | grep -i wireless
    03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8191SEvB Wireless LAN Controller (rev 10)
    Today I tried backtrack 5. Needed to download and compile the same driver manually, all other related failed to work. I had a segmentation fault again with PTW and got no success with aireplay-ng other that when i issued -1 0 attack I saw a lot of different MACs in airodump. No "Channel -1" as far as i saw but still even the test -9 fails 0/30.
    But really, the strangest is how I can't crack the pass with over 1,5 million IVs ! No idea how to proceed now, would be awesome if someone has one
    Last edited by Prowler (2011-10-17 17:59:56)

    Did it! There was one slight thing i missed that caused me to trip on Step 3 of the tutorial - WIFI card has MAC address too. Always entered eth0 mac address on -h... The thing got me running was a post where i read "Wireless mac adress". :
    Cracking WEP more quickly:
    airodump-ng mon0
    airodump-ng -w wep -c [channel] --bssid [bssid number] mon0
    open new console
    aireplay-ng -1 6000 -a [bssid] -e [router name] -h [my wireless mac] 5 -o 1 -q 10 mon0
    open new console
    aireplay-ng -2 -b [bssid] -h [my wireless mac] -c FF:FF:FF:FF:FF:FF -p 0841 mon0
    Crack:
    open new console (4 terminals open now) Data needs to hit about 30,000 from first terminal window
    Type dir
    aircrack-ng [filename].cap
    After following the steps provided i cracked the easy pass of my wep network in ~2 minutes with about 40k data. Thank you for helping me, these compat-wireless drivers really proved to matter. Still don't understand why i can't passively capture and crack without them but Ill have to accept it needs them. Awesome, for a long time this has been my goal ^^ Thank you again
    PS:
    > Read 81233 packets.
    >
    >    #  BSSID              ESSID                     Encryption
    >
    >    1  54:E6:FC:B1:62:B8  WEPJungle                 WEP (268 IVs)
    >    2  74:EA:3A:C5:F4:9E  TP-LINK_C5F49E            No data - WEP or WPA
    >    3  00:0E:2E:60:E0:91  Rosito                    WPA (0 handshake)
    are u sure IVs arent for WEP? this output came from aircrack, asking me which network when i havent specified...
    PS2: gotta add one thing - doing "/etc/rc.d/networkmanager stop" is mandatory. otherwise aireplay wont inject. also the "-o 1 -q 10" options of the second step seem to do nothing, can do fine without em. On the other hand "-p 0841" on the third step is a must, dont inject any data without it. It seems to work with only that value as far as i see, which is very strange cuz its not mentioned almost anywhere in guides.
    PS3: updated that guide i followed for better usage: http://pastebin.com/0nPabSJC
    PS4: with "aireplay -3" its even easier, even intuitive. In the man page it says its more reliable but it seems to me its a bit slower in the data injecting process. But i guess the benefit is that you never use your ip (i know i can change for the other method too). At least its so easy, just turn it on and wait for some1 to use the net. Saves one terminal
    PS5: after checking again, turns out that sometimes i can't aireplay -1 without "-o 1 -q 10".
    Last edited by Prowler (2011-10-19 10:00:41)

Maybe you are looking for

  • Lenovo Helix - On-Screen Keyboard with Bitlocker

    Hi Community, i've tried to install Bitlocker on my Lenovo Helix with Windows 8.1 Pro. As long as the dock is connected with the tablet, you can decrypt the harddisk with the right key. But if the tablet hasn't a dock or an external keyboard you'll o

  • Missing Messenger account in Lumia 800

    Hi, I've been wondering why no Messenger option is available when chatting?  I've entered my hotmail account details for Windows Live account and  when sending a message, the only online chat option is Facebook. A friend of mine created new Windows L

  • Deleting a Custom Template

         In my quest to master (???) this program, i created a "Custom Template" which I thought i could use over & over & replace the data for what i wanted further use for; an ongoing monthly spreadsheet (Table) the first row with all my labels for eac

  • Drag and Drop Layout feature for regions

    Wondering if there is a drag and drop layout feature for regions in 3.1.2 (or below that I might have missed) or if there are plans for it in future releases. I know that this feature is available for items in a region but interested for the many reg

  • Way to retrieve lost data?

    Hi, My computer shut down due to a power failure while using iWeb. I was working on something very important and is there a way to retrieve what I did... Thank you...