Printing only one line record with total of all items through alv

hi experts,
i am facing a problem while printing a list through alv.
requirement is, suppose i have 3 line items under one document no.
i have to print only one record with total amount of all items.more clearly...
1001  10  1000/-
1001  20    234/-
1001  30   540/- these records in internal table then i am passing it to reuse_alv_grid_display.
i need to display only 1001  1774/-(means sum of all the items)
please tell me how to do this.
thanks in advance,
manasi

hi ansari,
contains in itab
     3000000004     02.11.2000     5550     27.95     27.95     0
     3000000004     02.11.2000     5550     10.95     10.95     0
     3000000005     02.11.2000     5550     27.95     27.95     0
     3000000005     02.11.2000     5550     10.95     10.95     0
     3000000006     02.11.2000     3020     52.99     52.99     0
     3000000006     02.11.2000     3020     64.99     64.99     0
     3000000006     02.11.2000     3020     49.5     49.5     0
     3000000007     02.11.2000     3730     2,228.00     2,228.00     0
     3000000007     02.11.2000     3730     1,698.00     1,698.00     0
     3000000007     02.11.2000     3730     532     532     0
now please tell me how to print the data
output will be
3000000004     02.11.2000     5550     38.90     38.90       0
3000000005     02.11.2000     5550     38.90     38.90       0
3000000006     02.11.2000     3020     117.19     117.19     0
like that
please help me out
manasi

Similar Messages

  • Only one line is getting printed in Table in Smartforms (ECC 6.0)

    Hello Sir,
    I am new in ABAP and doing Smartforms (ECC 6.0) on project from customer side.
    I have to deliver the object in time and it is already late, please help me.
    This is my question:
    Object :  Stock Transport Order.
    =======================
    I have created Table in main window after Program Line Node.
    >Main Window
    >>Code2
    >>Table1
    >>>Header
    >>>>Row1
    >>>>>Cell1 to Cell10
    >>>Main Area
    >>>>Row2
    >>>>>Cell1 to Cell10
    >>>Footer
    >>>>Row3
    >>>>>Cell1 to Cell10
    I have mentioned internal tabel as well work area table in "DATA" tab in table Node.
    In Row1 I have created Text Node in every cell having Column Heading.
    In Row2 I have created Text Node in every cell having variable.
    In Row3 all cells are blank.
    On output only one line is getting printed
    What could be the reason.
    =====================================================================
    This is Code1 (is in the beginning of the form in window1)
    ==========
    *& Selection of Purchasing Document No,Plant,Short Text,Quantity,Material No,
    *& Gross order value in PO currency
    select single ebeln werks txz01 menge matnr brtwr
    from ekpo into
    (v_ebeln,v_werks,v_txz01,v_menge,v_matnr,v_brtwr)
    where ebeln = DOCNO.
    *& Selection of Plant address
    select single adrnr from t001w into v_adrnr
    where werks = v_werks.
    *& For Selection of phone,fax
    select single name1 tel_number fax_number from adrc into (v_name1,phone,fax)
    where addrnumber = v_adrnr.
    *& For E-Mail Selection
    select single SMTP_ADDR from adr6 into mail where addrnumber = v_adrnr.
    *& For CST No.,GST No.
    select single J_1ICSTNO J_1ILSTNO
                  from J_1IMOCOMP into (CST,GST)
                  where werks = v_werks.
    *& Selection of Vendor Address No., PO date
    select single reswk aedat from ekko into (v_reswk,v_aedat) where
    ebeln = v_ebeln.
    *& Selection of Supplying (Issuing) Plant address
    select single adrnr from t001w into vendor
    where werks = v_reswk.
    *& Selection of storage location
    select single lgort from ekpo into v_lgort where werks = v_werks
    and ebeln = v_ebeln.
    *& Selection of description of storage location
    select single lgobe from t001l into v_lgobe where werks = v_werks.
    *& Fetching data into internal table from ekpo
    select ebeln ebelp matnr txz01 menge brtwr from ekpo into corresponding fields
    of table iekpo where ebeln = v_ebeln and werks = v_werks.
    Fetching data into internal table from marm for Pck
    select * from marm into corresponding fields of table imarm for all entries
    in iekpo where matnr = iekpo-matnr.
    Fetching data into internal table from mara for Pack Type Code
    select * from mara into corresponding fields of table imara for all entries
    in iekpo where matnr = iekpo-matnr.
    Fetching data into internal table from tvegrt for Pack Type Description
    select * from tvegrt into corresponding fields of table itvegrt
    for all entries in imara where magrv = imara-magrv.
    Fetching data into internal table from eket for Receipt Date
    select * from eket into corresponding fields of table ieket
    where ebeln = v_ebeln.
    Selection of Order Type from mepo_topline
    *select single bsart from mepo_topline into v_bsart where ebeln = v_ebeln
    *and superfield = v_werks.
    *if v_bsart = 'UB'.
    xhead = 'Replenishment Order'.
    *eleseif v_bsart = 'ZSTO'.
    xhead = 'Purchase Order'.
    *endif.
    *& Defining of variable for Printing Line Serial Number,Total Quantity,
    *& Total Value
    =====================================================================
    This is Code2 (is in the main window)
    ==========
    xln = 0.
    tmenge = 0.
    tvalue = 0.
    Loop for printing table
    loop at iekpo into wekpo.
      xln = xln + 1.
      xmatnr = wekpo-matnr.      " Material Number (Code)
      xtxz01 = wekpo-txz01.      " Material Name
      xmenge = wekpo-menge.      " Line Quantiy
      xbrtwr = wekpo-brtwr.      " Basic Rate
    *& Pck
      read table imarm into wmarm with key matnr = wekpo-matnr.
      xpck = wmarm-umren.        " Packing Size
    *& Num
      xnum = xmenge / xpck.      " Numbers of Packing
    *& Line Value
      xvalue = xmenge * xbrtwr.  " Line Basic Value
    *& Packing Type
      read table imara into wmara with key matnr = wekpo-matnr.
      xpacktype = wmara-magrv.   " Packing Type Code
    *& Packing Type Description
    read table itvegrt into wtvegrt with key magrv = imara-magrv.
    xpackdesc = wtvegrt-bezei. " Packing Type Description
    *& Receipt Date
      read table ieket into weket with key ebeln = v_ebeln.
      xrcpdt = weket-eindt.      " Receipt Date
    *& Report Total
      tmenge = tmenge + xmenge.
      tvalue = tvalue + xvalue.
    *& Serial No. increment
    endloop.
    =====================================================================
    Thanks and Regards,
    Yogesh Pathak

    Did you debug and check the umber of values in internal table before calling the TABLE Node....
    seeing all SELECT SINGLE along with WHERE = condition and no loop call on them, my assumption  is there will be on record only. Check in Debug mood. Search forum to find how to debug a smartform.

  • Palm Desktop 6.2.2: Can't print only one category in Month View

    I recently upgraded my palm desktop to 6.2.2 when I got a new PC with windows vista.  When I am in the month view of the calendar and I choose to print, it prints all categories regardless of which category I have selected in the onscreen display.  In my previous version of palm desktop running on windows XP I was able to print only a single category of appointmenets in the month view.  I think of this as a bug.  Is there any way to fix this? 
    Post relates to: Treo 650 (Sprint)

    I have the similar problem.  I have three separate calendars but when I try to print only one, the outcome is that the information in all three calendars gets printed as one.  I cannot find a fix.  HELP.
    Post relates to: Treo 755p (Sprint)

  • HP Photosmart all in one C309a printing multiple copies when its set to print only one copy.

    having issues with my C309a its now printing multiple copys when its set to print only one copy.it started doing this 4 days ago and its happening on both my Windows 7 64 bit computer and my Vista 32 computer that both have the latest release drivers already installed need help.HP please sort this issue out.still under warranty do i have to return it? 

    I am using a Motorola SBG900 Wirless Surfboard Gateway - supplied with Bigpond Cable. It is set to be using WPA security and have never had a problem with it before whilst connecting any wireless devices such as a laptop, PDA etc.
    My feeling is that the wireless functionality of this printer needs some serious work before the next release. And furthermore they should never have released it the way it is as it wouldn't pass 5% of user acceptance tests if using wireless. There are too many complaints on this forum and others about similar problems to suggest that I am not by myself here. Dissapointing considering this is the feature that would be at the top of the list of most purchasing this model. It lets down what could of been a vg printer.
    I agree, I think if I want to get this printer working on a wirless network, I will have to set the IP address manually. The problem is the printer refuses to connect to the router now even after it connected a few days ago with no intervention. I have powered down both the router, PC, and printer without any luck yet. I will set the IP address manually first on the printer and see how it goes, then if it connects will see if the PC/router can see the printer during the SW install procedure which has failed >10 times to date.
    For now I think I will stick with Ethernet as it is no doubt much faster anyway and will try the wirless setup again in a few days when my patience grows back. Does anyone know differences in speed between USB/Wireless/Ethernet? I know this is dependant on a number of things but just interested in ball park figures here.

  • Multiple line item in billing but only one line item in accounting document

    Hi Everyone,
    I am having one scenario in which sales order has more than one line item. Only one billing document is create for all line items in Sales Order but billing document contains as many items as sales order has. In accounting document of billing i find only one customer line which has total amount of all line items in billing as debited. My requirement is Accounting document also should have as many line of customer-debit as in billing items i.e sales order. For example :
    (1) Sales order has 2 line items.
    (2) Billing document is only ONE and has 2 line items
    (3) currently accounting document has only ONE line of Customet - Debit ( Total amount of both items)
    My requirement is
    Accounting document should have 2 line item of customer - Debit
    Customer - Debit (amount of first line item)
    Customer - Debit (amount of Second line item)
    Sales - Credit
    How can it be done ?
    Regards,
    Manish

    Hi,
    This is the SAP expected behaviour
    As far as the values correspond to same account key and same GL account as per account determination, then ti will be posted as a single line item in FI document.
    If you want the customer specific items to be posted in two GL accounts , then you have to do the account determination that way.
    For example, you should have a condition table in FICO as follows.
    Sales org/ Account key / Customer
    For this condition table, the entries shoudl be as follows.
    5110/ERS/Customer A  GL ACCOUNT IS 5000100
    5110/ERS/Customer B GL ACCOUNT IS  5000200
    In this case, there will be 2 entries for the invoice instead of just one line entry.

  • ME9F - Prints only one message

    Hi all,
    I'm having a problem when printing more than one purchase order message in ME9F.
    When I select all messages to be printed, only one is going to printer, and the other ones stay in spool list with status "-" (not yet sent to the host system).
    Any idea why this is happenning?
    Thanks in advance.
    Best regards,
    Sónia Gonçalves

    Hi,
    After some conversations with SAP support and basis team, I still don't have an answer for this.
    I discover if I use standard SAP settings in the processing routines configuration (Program "SAPFM06P", form routine "ENTRY_NEU" and form "MEDRUCK") this will work. The problem seems to be that I'm using a customized smartform, so in my processing routines configuration I have:
    - Program: /SMB40/FM06P
    - Form routine: ENTRY_NEU
    - PDF/Smartform: ZZZZZZ
    - Type: Smartform.
    I already debug the program and the field "DIMME" in NAST table is set in every message, so I really don't have any idea why this is happening.
    Any help is precious!
    Thanks in advance.
    Best regards,
    Sónia Gonçalves

  • HT4356 I have an HP 4500 printer connected to airport extreme with usb.  All our portable notebooks print via air but cannot get iPad to be recognized for printing.  Do I really have to have one of the other HPs listed?

    I have an HP 4500 printer connected to airport extreme with usb.  All our portable notebooks print via air but cannot get iPad to be recognized for printing.  Do I really have to have one of the other HPs listed?

    Rufus Cat-
    Even if it was compatible, AirPrint does not work through a USB link, only Ethernet or WiFi.
    I do not see your HP 4500 listed on Apple's list of AirPrint compatible printers.  <iOS: AirPrint 101>  Therefore you need to take another approach.  To start, I suggest you download the free HP App, ePrint Home & Biz.  It has limitations, but should get you printing with your existing setup.
    There are other printing Apps with more features such as Print n Share and PrintCentral, but they can only be accessed from within other Apps that have the "Open In" option.
    Your best option may be to share your computer's printer as AirPrint over WiFi.  Programs that are reported to do that well are Printopia and FingerPrint.  Your computer must be on and awake any time you want to print.  <Printopia for Macintosh>  <FingerPrint for PC and Mac>
    Fred

  • Contact print , prints only one picture ??

    I am using Iphoto 08 , 7.1.3
    The contact sheet print , prints only one picture per page, although I chosed 4 rows .
    Help

    Ali:
    Can you describe, step by step, how you're setting up iPhoto to print in the contact sheet mode?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • How to get only one line between tables in database diagram?

    Hi!
    I'm using jdev 10.1.3. I've got a database schema with a lot of tables. I would like to have them in one database diagram in compact view with only ONE line between two tables even if there are more foreign key columns between the two tables. In the shema there are a lot of foreign keys with multiple columns and the diagram is hard to read.
    How to archieve this?
    Thanks,
    Carsten.

    hi,
    u should use the same variable across all your queries.In the WAD there is a propoerty "display same variable once". Check that.
    hope it helps,
    regards,
    Parth

  • Installed a new printer and one line on the top is skipped

    Appreciate your inputs.
    We have been using the 'Check Printing report' for quite a while; We recently installed a new printer and we see that the alignment has gone wrong.
    The checks are printing from one line below as it is skipping one line. Where do we adjust the setting so that the printing starts from the place where we want?
    Thanks in advance

    Hi
    Im no expert but I doubt its a template issue more likely to be the control escape sequence on the printer diriver set up. Check your printer manual and the current set up you have.
    Regards
    Tim

  • How can one accept that the only way to sync with OSX 10.9 is through I cloud?

    How can one accept that the only way to sync with OSX 10.9 is through I cloud?
    One is now obliged to send private information to an external server...

    Thank you for the link but what a waist of time.
    Who is the idiot that decided to drop manual syncing of contacts and calendars?
    I am on the point of dropping all APPLE machines!
    I am looking to sync without having to worry about security issues, keeping my files and passwords locally on my machines, and not an external server such as a cloud drive.
    Do you know if Outlook syncs also over an external server?
    Do you know of this solution? http://www.codetwo.com/public-folders/share-windows-files-securely/

  • Page breaks in form - can't print only one page?

    Hi guys
    This might be a really simple question - but how do I insert page breaks into my form?
    I have 8 pages in my document, and it is showing me this, so there seems to be no issue until I try to print only one page, and the whole document prints out.
    Is there an easy fix to this?
    Cheers
    Jess

    Hi,
    how are you printing? Control+P? File > Print? or a Print button?
    In any case the print command should bring up a print dialog, where you can set the pages that you want Acrobat to print. By default it is set to 'All' pages.
    Hope that helps,
    Niall

  • TS1702 Renewed my subscription with the Sun app, was charged £0.69 but app won't load seem that I am not the only one having issue with this app. How can I claim my money back?

    Renewed my subscription with the Sun app, was charged £0.69 but app won't load seem that I am not the only one having issue with this app. How can I claim my money back?

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • Why do PDF files in email open in safari with a quick time logo but only one page shows and I can't scroll through the following pages?

    Why do PDF files in email open in safari with a quick time logo but only one page shows and I can't scroll through the following pages?

    Try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.

  • Write To Measurement File Only One Line Of Data

    Hello,
    I have an express VI setup to acquire a single channel of strain running in a simple while loop.  The output is wired directly to a Write To Measurement Express VI.  However, the resulting measurement file contains only one line of data.  
    I have tried changing the settings of the VI to no avail.  I feel that I must be missing something basic.  My while loop is setup to take one measurement on demand for each loop.  I am assuming the VI knows to write each loop as a new line of data?  
    Thanks for any help,

    Did you choose "append to file" in the Express VI configuration settings?
    You need to upload your VI for further help.  It's impossible to help someone debug a problem without the code to look at.

Maybe you are looking for

  • Service Entry Sheet in ECC 6.0 shipment costing security object?

    Does anyone know what security object is being checked during service entry sheet creation?  When I run the shipment cost create process in foreground (RV56TRSL) VI04, the program creates and settles the shipment cost, but in background only the ship

  • No exchange rate found

    When our SD people posting Export Invoice, account document is generating but, with a message "No exchange rate found for INR/USD. This is arising when I have created on OB08, as follows: Ex. Val.from      Indir.quo  ratio  from     ratio to  to M  

  • Questions about an enclosed system, playback

    With our proof of concept complete, and development started on a production quality project, there have been a couple of questions that come up again! One of our potential implementations would go into a closed system.  What would we need to for the

  • Help with new download of CC.  Error message

    Every time I use the quick selection tool, I get an error message "Could not use quick selection tool because of program error".  Anybody see this before.

  • Focus jumps to keyword filter box when clicking a keyword

    Has anyone else seen this problem?  (And is there a solution!) Long, long, keyword hierarchy.  Clicking on a keyword takes the focus back up to the keyword filter box.  Usually happens if I've used the filter box to narrow down the keywords that are