Report o/p needed in particular format----please help

Hi all,
I am developing a report o/p of which is a file in excel format.Now in the file for the data which is being exported to the file,I need to make the following changes:
Follwing are the columns in the file:
g/l acc    amount  vendor   description  company code.
At each change in the company code value,I need to insert a new line in the file (file data) which should have the sum of the amounts in the column "amount" in the new line and  the company code .All other fields in the new line should be blank.See below for the exact o/p needed:
        g/l acc       amount    vendor   description                 company code.
         5550601     10            ABC      VISA FEB 2009          US02
         5550601     20            ABC      VISA FEB 2009          US02
         5550601     30            ABC      VISA FEB 2009          US02
         5550601     40            ABC      VISA FEB 2009          US02
-->new line -
  100                                                      US02
         5550609     15            ABC      VISA FEB 2009          US03
         5550609     15            ABC      VISA FEB 2009          US03
         5550609     17            ABC      VISA FEB 2009          US03
         5550609     18            ABC      VISA FEB 2009          US03
-->new line           65                                                       US03
         5550607     15            ABC      VISA FEB 2009          US04
Can anyone explain how to modify the data(before creating the file)  to get the o/p in the file  as mentioned above?
Thanks.

data = b(6) type n .
itab1[] = itab[].
loop at itab into w_itab.
index = index + 1.
a = a + amount.
w_itab-bukrs = itab-bukrs.
at end of 
w_itab-amount = a.
b = b + 1.
ind = index + b.
append itab1 from w_itab index ind.
clear a.
endat.
endloop.
PBS - please use code tags.
Edited by: Rob Burbank on Mar 24, 2009 2:43 PM

Similar Messages

  • I just bought a new iPhone and accidentally backed it up with my old iPhone backup, I do not want this. I lost everything on my new phone and I need it back. PLEASE HELP! This includes pictures and texts, etc.

    I just bought a new iPhone and accidentally backed it up with my old iPhone backup, I do not want this. I lost everything on my new phone and I need it back. PLEASE HELP! This includes pictures and texts, etc.

    So just to be clear, when you say "just bought" how long ago was that? Is it on this new iPhone that you had pictures, texts, etc that you want? Were you backing up to iCloud or onto iTunes?
    This may not help for everything but if you go to iCloud.com and log in, are you able to find your pictures there?

  • Hi can anyone help me. I have a apple macbook laptop OSX 10.5.8 . When i push print, it shows my printer but says cannot communicate with printer. (epson stylus nx125). Do I need new drivers? Please help .  regards Cindy

    Hi can anyone help me. I have a apple macbook laptop OSX 10.5.8 . When i push print, it shows my printer but says cannot communicate with printer. (epson stylus nx125). Do I need new drivers? Please help .  regards Cindy

    Welcome to Apple Support Communities. We're users here and do not speak for "Apple Inc."
    Some basic printer troubleshooting steps before worrying about a printer driver:
    1. Have you tried turning the printer off and back on?
    2A. Is the printer attached with a cable?
         If yes, have you tried unplugging and re-plugging both ends of the printer cable?
         If that does not help, can you test the printer with another cable?
    2B. If your printer is not connected to the computer with a cable, have you tried restarting your printer (assuming wireless connection)?
         Have you tried restarting your wireless router?
    3. Have you tried restarting your MacBook? (Be sure to save your work first.)
    4. Does the printer have ink? (Doesn't usually generate a 'communications error' though)
    5. Have you updated OS X or the program you're trying to print from recently?

  • I have QuickTime Player 7.6.8, I cannot update or remove it b/c I am missing QuickTime.msi file. It is gone and I need it back. Please help.

    I have QuickTime Player 7.6.8, I cannot update or remove it b/c I am missing QuickTime.msi file. It is gone and I need it back. Please help.

    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any QuickTime entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • Hello i am rajesh i am having problem while conveting other files into pdf format please help me

    i am rajesh i am having problem while converting other files into acrobat format please help me

    Hello Rajesh,
    I'm sorry to hear you're having trouble. Are you using Acrobat.com to convert your files to PDF? Please let me know where you are having trouble and I will do my best to help you convert your files. For your reference, here is a list of filetypes that can be converted to PDF online with Acrobat.com:
    http://kb2.adobe.com/cps/524/cpsid_52456.html#Create%20PDF
    Best,
    Rebecca

  • HT4097 My ipad and mini pad won't update though it says several apps are in need of update. Please help!

    My ipad and mini pad won't update though it says several apps are in need of updates. Please help!

    Try updating from here:
    App Store>Purchased
    Note: You'll have to look out for apps that need update.

  • I have a macbook 13in mid 2010, im trying to update it from 10.6.4... i update it and restart i but when it finishes restarting, it says its still 10.6.4 and i need to update? please help!

    I have a macbook 13in mid 2010, im trying to update it from 10.6.4... i update it and restart i but when it finishes restarting, it says its still 10.6.4 and i need to update? please help!

    Try downloaded the Mac OS X 10.6.8 Update Combo v1.1 standalone updater and installing it.

  • Installed both 10.1.4 and 11.0.08 updates this week and now I can't use the Digital "Sign" document feature.  It's been completely removed.  Need it back. Please help..

    I installed both 10.1.4 and 11.0.08 updates this week and now I can't use the Digital "Sign" document feature.  It's been completely removed.  Need it back. Please help..  Can't sign or add text to any pdf document. Even when security properties allow it. 

    I would remove Reader and repair or reinstall Acrobat.
    Having different major versions can cause some users issues. Reader is not necessary if one has Acrobat installed. Even though Adobe has improved the capability of having both Reader and Acrobat with the same major version level there are still user configurations that have problems with this setup.

  • Yesterday I have purchased Ipad2 with 3G but did not able see in built aceTime on my scree do we need to Install? please Help, yesterday I have purchased Ipad2 with 3G but did not able see in built FaceTime on my scree do we need to Install? please Help

    yesterday I have purchased Ipad2 with 3G but did not able see in built aceTime on my scree do we need to Install? please Help, yesterday I have purchased Ipad2 with 3G but did not able see in built FaceTime on my scree do we need to Install? please Help.

    See this support doc on how to use FT... http://support.apple.com/kb/HT4319

  • Just updated itunes now menu bar has dissapeared no black and white box at top left and ctr b does not bring anything up. i need file view etc please help driving me crazy

    just updated itunes now menu bar has dissapeared no black and white box at top left and ctr b does not bring anything up. i need file view etc please help driving me crazy

    Is the iTunes window in FullScreen mode?
    If so, press esc key.

  • I lost my iphone4 i need to block it please help me i live in dubai

    i lost my iphone i need to block it
    please help me

    You could do that, if you had "Find my iPhone" installed prior to the loss:
    Locate your missing iPhone with Find My iPhone.
    There is no other way to do this, and Apple can't do this for you.

  • Hi I need a password, CPNU94094BO please help asap much needed

    Hi I need a password, CPNU94094BO  please help asap much needed

    Hi,
    In that case, the only option left to try would be to remove the rtc cell - see Page 63 of your Maintenance & Service Guide - then hold down the power button for 30 seconds.
    Leave the notebook like this for 20 minutes, then replace the rtc cell, reassemble and try booting again.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • HT1918 i need to security questions please help me

    i need to security questions please help me
    <Email Edited by Host>

    Read this about how to change the security questions: http://support.apple.com/kb/HT5312
    If you can't use these procedures because you don't have a rescue email address you will have to contact Apple. See http://support.apple.com/kb/HT5699

  • Report format - Please help urgently

    We have an AR report with the following format.
    Customer - Document No -Payment terms
    Currently, the report rows shows for one customer ( Text and Key) for various document number and Payment terms.
    Example:
    Customer 1 - Document no1 - payment terms1
                      - Document no2 - payment terms2
                      - Document no3 - payment terms3
                      - Document no4 - payment terms4
    Customer 2 - Document no5 - payment terms5
                      - Document no6 - payment terms6
    But, the requirement is as below. Every line needs to show the customer no for all the rows.
    Customer 1 - Document no1 - payment terms1
    Customer 1 - Document no2 - payment terms2
    Customer 1 - Document no3 - payment terms3
    Customer 1 - Document no4 - payment terms4
    Customer 2 - Document no5 - payment terms5
    Customer 2 - Document no6 - payment terms6
    Please help.
    Thanks,
    BW Learner

    Hi,
    Right click on the query results and choose properties at the bottom of the pop menu.  Uncheck the option titled "Suppress Repeated Key Values" then click okay.   Your query will update the results and you should see all characteristics now, even if they are repeated.
    Brian

  • Reports on web in PDF format (Please Help)

    Hi
    I am testing my dev2000 applications on web. I am using Patch5. I have problem while running reports. When ever I am trying to run a report from forms using "RUN_PRODUCT", report is running on server m/c not on client m/c. I need this report to be opened in clients pc in acrobat. On server m/c (Win2000 Server) registry I have set forms60_repformat=PDF. Please help to solve this peoblem.
    Thanks in Advance
    Syed

    read the paper on forms and reports integration on the web from
    http://otn.oracle.com/products/forms/techlisting.html#internet

Maybe you are looking for

  • Error while Testing Soap To RFC

    Hi All, While doing Soap To RFC I got the following error in testing part : The SOAP response indicates that an error occurred: Server Error <detail>         <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">           <context>XIAdapter</c

  • IPad suddenly no longer shows in iTunes

    Up until about a week or two, any time I would open iTunes (Windows 7 PC) my iPad would show up on the left as a wireless device.  Now it no longer shows unless I directly plug it in, and my iPad is definitely connected to the WiFi.  I did just updat

  • Skype is working, but sites not. DNS?!

    Hello, I have a strange problem with my connection to internet. I don't know why and when it happening, but sometimes I need to restart for work. Well, I can't open any sites via Firefox or Safari or Opera, DropBox not working too, but Skype work fin

  • I'd like a spell checker that'll work in 8.1?

    Hey all, I had a spell checker for FF, updated it seems to have gone

  • Case expression many cases

    Hi all, I am creating a Java application that - among other useful things - needs to change the values of the DB according a to a huge (maybe > 1000 mappings) , user-created (through the UI) mapping like the one below: DB Value  UI Value a --> A1 b -