Can anyone please give me the logic for this....

I have a database table and in it i have a field department code. now, that department code might have '00' or '   ' (blank) or anyother value. now i want to add up all the currency amounts with department code '00'  and '  ' (blank) which have same company code and currency type. I called all the entries with '00' into one internal table and enrties with '  ' (blank) to other internal table.
can anyone give me the logic for adding all the entries at a time.
thanks in advance.....

HI Srinivas
i have a solution for this question.
Use At control break statement for this.
Loop the internal table.
Use at Event AT LAST. In that use SUM Statement. U will get sum of all the numeric fields.
Or else u can use ON CHANGE OF Currency type
then find the total amount by adding previouse value with ur current value.
Like itab1-amount = total + itab1-amount.
Appent this into ur internal or write it into ur report.
Reward me if its useful.
Regards
Ravi

Similar Messages

  • Can ANYONE please give me the source for converting IPV4 packets to IPV6

    I had a file which contains IPV4 packets, I need to convert these packets into IPV6 . Can anyone please give the source..

    java.venkat wrote:
    one of my friend downloaded that file
    my project is to evaluate intrusion detection systems with ipv6 dataGo back to the person who gave you this project and ask for help because you've got alot of problems going on here. Mainly there are two problems.
    1) Whatever it might be that you want to do doesn't seem like a very good fit for Java at all.
    2) You are just continually spouting rubbish that either are obvious statements of fact or make no sense, as in this last post here.
    If you refuse to talk to the person who gave you this project for some much needed direction (which would be foolish by the way) then you really must tell us what your end goal here is. Like specifically what you are looking to do, how you plan on capturing this information in general and why you think this is going to help you resolve your problem. Because as stated your problem isn't making much sense and even if it did I for one don't see how this puts you further along in evaluating "intrustion detection systems".

  • I have installed 2010 microsoft office 2010 home and business version for my laptop,and i have installed lync 2013.Now i want create online lync meeting from outlook,but i am unable view that lync icon in outlook.Please give me the solution for this que

    I have installed 2010 Microsoft office 2010 home and business version for my laptop,and I have installed lync 2013.Now i want create online lync meeting from outlook,but i am unable view that lync icon in outlook.Please give me the solution for this issue.
    Regards
    Raghavendar

    Hi Raghavendar,
    Generally, when you install Lync 2013 in the computer with Office 2010, a Lync Meeting Add-in will be installed and enabled in Outlook 2010. Please follow these steps to check it:
    1. In Outlook, click the File tab, click Options, and then click
    Add-Ins.
    2. Please take one of the following actions:
    If the add-in is in the Inactive Application Add-ins list, follow these steps:
    a. In the Manage drop-down list at the bottom of the dialog box, click
    COM Add-ins, and then click Go.
    b. Click to select the check box next to the add-in, and then click OK.
    The New Online Meeting button should now be available in
    Calendar View, and the Online Meeting button should be available when you create a new calendar item.
    If the add-in is in the Disabled Application add-ins list, follow these steps:
    a. In the Manage drop-down list at the bottom of the dialog box, click
    Disabled Items, and then click Go.
    b. Select the add-in, and then click Enable.
    c. Restart Outlook, and then verify that the add-in is displayed in the
    Add-ins dialog box.
    The New Online Meeting button should now be available in
    Calendar View, and the Online Meeting button should now be available when you create a new calendar item.
    3. In Event Viewer, view the Application log to see whether an error was logged for Outlook, for Lync 2013, the Lync Meeting Add-in for Microsoft Office 2013.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Homesharing could not be activated because an error occurred (310). can anyone help me with the solution for this issue please?

    I'm unable to activate homesharing due to an error (310). does anyone know the solution to this issue?

    This is indicates a hardwre issue:
    Check for hardware issues
    Related errors: 1, 3, 10, 11, 12, 13, 14, 16, 20, 21, 23, 26, 27, 28, 29, 34, 35, 36, 37, 40, 1000, 1002, 1004, 1011, 1012, 1014, 1667, or 1669.
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the error message when you update or restore, contact Apple support.
    Error 1015 might happen after making unauthorized modifications to iOS, also called "jailbreaking."
    Use recovery mode to restore your device
    Related errors: 1015, “The required resource can't be found.”
    You might see these error messages if your device has a beta version of iOS or if you're installing an older version of iOS (downgrading). Use recovery mode to restore your device to the latest version of iOS.
    Quit virtualization software
    Quit any virtualization software (such as Parallels or VMware) that’s running on your Mac. Then use the latest version of iTunes to restore your device.
    Resolve specific iTunes update and restore errors

  • Can someone please give me a solution for this.

    2 Problems...
    Its getting to the point where i just want to go to Apple Genius and start rageing.
    Its a brand new iPod Touch 5g. My old iPod Touch had been replaced just yesterday.
    I had a bad day yesterday and by this new problem im not in the best of mood.
    I come home all happy because i didnt use my iPod Touch 5g for 2 whole weeks, Plug it into my Computer to found USB not recognized.
    I tried everything from knowledge to the Internet but found nothing. Not one them gived me a answer to fix this. Its really annoying because my iPod Touch isnt charging as well.
    The weird thing is... when i plugged it into my PS3, at that time my iPod Touch had 20%. My playstation didnt also recognize it. I left there for hours as i played. When i finally finish playing i found my iPod was full charge... It didnt state that it was charging. I would have noticed.
    My second problem is the WIFI isnt working probably. All the wifi's i tried it either works for a few minutes than it loses connection or doesnt connect at all.
    What is the bloody problem. Is the iPod faulty or is it me.

    lllaass wrote:
    lizdance40, did you read the original post? The poster's problem is that when he connects the iPod to his computer the iPod does not appear in iTunes. He does not say he has a wifi problem with his iPod.
    lizdance40 wrote:
    You need to do an update on your router's firmware, or get a higher speed router..
    Or replace the router and or modem.  High demand can burn out a router in 2 years.  Typical life is about 4-5 at most.
    The new iPod is more advanced and if your router is slow or inconsistant signal your iPod will stop trying to connect to save your battery.
    of course he dose have a wifi problwm. read the last line of the original post

  • Can you please give me the details of Archiving object for Reservations

    Hi All,
    Could you please give me the details of Archiving object for Reservation documents. If there is no standard object can you please give me the details, for which program we are using.
    Regards,
    Ram

    Hi,
    You do not need to configure the tables to be deleted for any archive object through AOBJ. SAP would have maintained the list of tables from which data will be deleted if you archive a particular object. In case of archiving MM_EKKO, data will be deleted from many other tables apart from EKKO and EKPO. Here is the list of tables from which data will be delete if you archive PO using MM_EKKO.
    A068
    A081
    A082
    A215
    ADR10
    ADR11
    ADR12
    ADR13
    ADR2
    ADR3
    ADR4
    ADR5
    ADR6
    ADR7
    ADR8
    ADR9
    ADRCOMC
    ADRCT
    ADRG
    ADRGP
    ADRT
    ADRU
    ADRV
    ADRVP
    AUSP
    CDCLS
    CDHDR
    CDPOS_STR
    CDPOS_UID
    CMFK
    CMFP
    DJEST
    EIKP
    EIPO
    EKAB
    EKBE
    EKBEH
    EKBZ
    EKBZH
    EKEH
    EKEK
    EKES
    EKET
    EKETH
    EKKN
    EKKO
    EKPA
    EKPO
    EKPV
    EKUB
    EREV
    ESKL
    ESKN
    ESLH
    ESLL
    ESSR
    ESUC
    ESUH
    IBADDR
    IBIB
    IBIBOBS
    IBIBT
    IBIN
    IBINDOMAINS
    IBINOBS
    IBINOWN
    IBINT
    IBINTX
    IBINVALUES
    IBSP
    IBST
    IBSTREF
    IBSYMBOL
    INOB
    JCDO
    JCDS
    JEST
    JSTO
    KAPOL
    KOCLU
    KONH
    KONM
    KONP
    KONW
    KSSK
    MLBE
    MLBECR
    MLWERE
    NAST
    RESB
    STXB
    STXH
    STXL
    WRF_PSCD_DLHD
    WRF_PSCD_DLIT
    WRF_PSCD_DLIT_SH
    Hope this helps
    Cheers!
    Samanjay

  • My macbook is five years old and has become slow. often displays the whirling kaleidoscope. can anyone please give me advice on what to do?

    My macbook is five years old and has become slow. often displays the whirling kaleidoscope. can anyone please give me advice on what to do?

    Quite often the HDD is the source of the problems.  Look at this comprehensive guide for possible solutions:
    https://discussions.apple.com/docs/DOC-3521
    Ciao.

  • Hi, I'm unable to use my speaker when I'm using Mac OS. However, I'm able to do so for Windows 7 OS on Bootcamp. Can anyone please advise on how to rectify this problem? I would greatly appreciate your help, thank you.

    Hi, I'm unable to use my speaker when I'm using Mac OS, which means I'm unable to unmute, decrease or increase the volume. However, I'm able to do so for Windows 7 OS on Bootcamp. Can anyone please advise on how to rectify this problem? I would greatly appreciate your help, thank you.

    Hi Zac, sorry to hear about your troubles, but that's why us other users are here to try to help in these instances.
    Open Console in Utilities & see if there are any clues or repeating messages when this connection drop happens.

  • Can you Please Tell Me the Process for service/operation  provide by one plant to other plant.

    Can you Please Tell Me the Process for service/operation  provide by one plant to other plant.
    In My Company No Of Plants Like 1000,2000,3000,4000
    Plant 1000 Provide the service/operation  like (welding ,cutting, painting ) to other plants (eg 2000,3000,4000)
    We want to give the profit for plant 1000 and book the service or operation charge in plant 2000 or 3000.
    We don’t want  to use material code in this process.
    Can you help me it is possible or not through SAP PP.

    Krishnendu,
                   Actually in my company we have one plant 1000 that plant provide the service like (CUTTING (SHAFT),WELDING,MACHINING,PAINTING)
    actually plant already made one material xyz and supply 2000 plant .
    we  can use STO in this scenario and set special procurement key  80.
    But my requirement is after some time plant 1000 provide few operation in xyz material that material already supply to 2000 plant.
    in this case we dont  use to produce any material.

  • Since installing the newest version of Firefox 4.0, I am unable to access my work e-mail which uses Lotus Domino Web Access. Can anyone please tell me how to correct this problem?

    Since installing the newest version of Firefox 4.0, I am unable to access my work e-mail which uses Lotus Domino Web Access. Can anyone please tell me how to correct this problem?

    Sheesh. That looks hard. I think it will fall over at this point:
    "Connect to my Exchange mailbox using HTTP" 'cos Thunderbird uses only the regular email protocols: POP, IMAP and SMTP.
    Here (at work) we have in the past have had IMAP and SMTP enabled on our Exchange server so Thunderbird could then connect just like to any other regular internet-based service.
    With the change here to outlook365/outlook 2010 I've had to switch to using DavMail which lets Thunderbird talk to the mail server using OWA.
    I haven't (seriously) tried Exquilla. Whilst I have great respect for its author and some of his other add-ons, I saw no reason to use an add-on that required payment when DavMail works for free.

  • Can anyone plz tell me the steps for performance tuning.

    hello friends
    what is performance tuning?
    can anyone plz tell me the steps for performance tuning.

    Hi Kishore, this will help u.
    Following are the different tools provided by SAP for performance analysis of an ABAP object
    Run time analysis transaction SE30
    This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing.
    SQL Trace transaction ST05
    The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.
    The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on the SPFLI table in our test program is mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment.
    The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table.
    To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use.
    Need for performance tuning
    In this world of SAP programming, ABAP is the universal language. In most of the projects, the focus is on getting a team of ABAP programmers as soon as possible, handing over the technical specifications to them and asking them to churn out the ABAP programs within the “given deadlines”.
    Often due to this pressure of schedules and deliveries, the main focus of making a efficient program takes a back seat. An efficient ABAP program is one which delivers the required output to the user in a finite time as per the complexity of the program, rather than hearing the comment “I put the program to run, have my lunch and come back to check the results”.
    Leaving aside the hyperbole, a performance optimized ABAP program saves the time of the end user, thus increasing the productivity of the user, and in turn keeping the user and the management happy.
    This tutorial focuses on presenting various performance tuning tips and tricks to make the ABAP programs efficient in doing their work. This tutorial also assumes that the reader is well versed in all the concepts and syntax of ABAP programming.
    Use of selection criteria
    Instead of selecting all the data and doing the processing during the selection, it is advisable to restrict the data to the selection criteria itself, rather than filtering it out using the ABAP code.
    Not recommended
    Select * from zflight.
    Check : zflight-airln = ‘LF’ and zflight-fligh = ‘BW222’.
    Endselect.
    Recommended
    Select * from zflight where airln = ‘LF’ and fligh = ‘222’.
    Endselect.
    One more point to be noted here is of the select *. Often this is a lazy coding practice. When a programmer gives select * even if one or two fields are to be selected, this can significantly slow the program and put unnecessary load on the entire system. When the application server sends this request to the database server, and the database server has to pass on the entire structure for each row back to the application server. This consumes both CPU and networking resources, especially for large structures.
    Thus it is advisable to select only those fields that are needed, so that the database server passes only a small amount of data back.
    Also it is advisable to avoid selecting the data fields into local variables as this also puts unnecessary load on the server. Instead attempt must be made to select the fields into an internal table.
    Use of aggregate functions
    Use the already provided aggregate functions, instead of finding out the minimum/maximum values using ABAP code.
    Not recommended
    Maxnu = 0.
    Select * from zflight where airln = ‘LF’ and cntry = ‘IN’.
    Check zflight-fligh > maxnu.
    Maxnu = zflight-fligh.
    Endselect.
    Recommended
    Select max( fligh ) from zflight into maxnu where airln = ‘LF’ and cntry = ‘IN’.
    The other aggregate functions that can be used are min (to find the minimum value), avg (to find the average of a Data interval), sum (to add up a data interval) and count (counting the lines in a data selection).
    Use of Views instead of base tables
    Many times ABAP programmers deal with base tables and nested selects. Instead it is always advisable to see whether there is any view provided by SAP on those base tables, so that the data can be filtered out directly, rather than specially coding for it.
    Not recommended
    Select * from zcntry where cntry like ‘IN%’.
    Select single * from zflight where cntry = zcntry-cntry and airln = ‘LF’.
    Endselect.
    Recommended
    Select * from zcnfl where cntry like ‘IN%’ and airln = ‘LF’.
    Endselect.
    Check this links
    http://www.sapdevelopment.co.uk/perform/performhome.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/afbad390-0201-0010-daa4-9ef0168d41b6
    kindly reward if found helpful.
    cheers,
    Hema.

  • Can anyone please provide me Blueprint Document for BW

    Can anyone please provide me Blueprint Document for BW on <removed>.I will be very thankful to u,,,and <soliciting points for answers is forbidden >....
    Edited by: Arun Varadarajan on Nov 27, 2008 3:00 PM

    please search the forums for the same - the necessary links have been given in previous posts and blueprint is something that has been discussed many a time on the forums...
    Arun
    Locking the post.....

  • Can anyone tell me where the download for Viewer V32.2 for indesign cc 2014 is located? Thanks Steve

    Can anyone tell me where the download for Viewer V32.2 for indesign cc 2014 is located? Thanks Steve

    v32.2 does not have an installer, all changes were made on the back-end.
    The v32 installers (released in september) can be obtained here (look for Digital Publishing Suite):
    https://www.adobe.com/downloads/updates.html

  • Can anyone tell me what the names for the apps that apear in the new tv ad "learn" ???

    can anyone tell me what the names for the apps that apear in the new tv ad "learn" ???

    Go here -> http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewMultiRoom?fcId=376895159

  • Can anyone please recommend a good stylus for graphics/artwork on ipad3 (in UK)?

    Can anyone please recommend a good stylus for use with art packages on ipad3? Stylus-r-us looks good but is not available in UK so I am looking for an alternative.

    Thanks for this info. - I'll take a look at that one.

Maybe you are looking for