Datas are not coming from top to bottom in collumn

Hiiiii
I am moving my data from itab to itab1.
And in itab1 datas are not started from top of the collumn for each a/c no.
A/CNO|AB|DZ|RV|SA
00001|00 |000|00 |10
00001|00 |000|00 |15
00001|00 |000|020|000
00002|00 |15 |000 |00
00002|21 |00 |000 |00
00002|00 |25 |000 |00
00002|00 |00 |000 |17
what should i do to start my data from top of the collumn.
Thanks in advance.
Edited by: sanket sagar on Mar 17, 2011 8:14 AM

Hi,
Let me add some more comments in your code.
LOOP AT IT_BKPF INTO WA_BKPF.
IF SY-SUBRC = 0.    - do not use this statement. instead of this u can use a condition for a particular record. ( Eg: if wa_bkpf-belnr is not initial.)
MOVE-CORRESPONDING WA_BKPF TO WA_FINAL.
ENDIF.
READ TABLE IT_BSEG INTO WA_BSEG WITH KEY BELNR = WA_BKPF-BELNR
BUKRS = WA_BKPF-BUKRS
GJAHR = WA_BKPF-GJAHR.
IF WA_BSEG-SHKZG = 'H'.
WA_BSEG-PSWBT = WA_BSEG-PSWBT * -1.
ENDIF.
IF SY-SUBRC = 0.
MOVE-CORRESPONDING WA_BSEG TO WA_FINAL.
ENDIF.
APPEND WA_FINAL TO IT_FINAL.
ENDLOOP.
I think the above loop-endloop will get all the belnrs, and their related info to the final internal table.
SORT IT_FINAL BY SAKNR BLART.
LOOP AT IT_FINAL.
IF WA_FINAL-BLART = 'AB'
MOVE WA_FINAL-PSWBT TO WA_FINAL-PSWBT1.
ENDIF.
AND SAME FOR ALL DOC TYPES.
ENDLOOP.
SORT IT_FINAL BY HKONT .
What is the structure of the internal table.
If my understanding is correct, you want to populate a table as below.
For every HKONT, populate the Document types (BLART) and their corresponding amounts like below.
HKONT1 - AB - 1000
HKONT1 - BC - 2000
HKONT3 - CD - 2000
Please correct it if your problem is something different.

Similar Messages

  • Sharepoint List to Telerik Grid, Where data is not coming from database into List.

    SharePoint List to Telerik Grid, Where data is not coming from database into List.
    Here, i have a SharePoint list , where configurable text are stored, using some utility.
    I want to convert that SharePoint list into Telerik grid, with all Editable Option which i have in SharePoint.

    I know little about Telerik Grid, only find following article about Telerik integrate with SharePoint:
    http://www.telerik.com/help/aspnet-ajax/moss-spradlistview_designer_general.html
    a similar question:
    http://www.telerik.com/forums/how-to-bind-to-a-sharepoint-list-using-radgrid
    Thanks,
    Qiao Wei

  • What does it mean if I get blank text messages from someone but they are not coming from number they appear and disappear they are not coming over the network also emails have been moved around, has my phone been hacked?

    I Have been getting blank texts from a number, but the person who owns the niumber is not sending them, they appear then disappear, they are not coming over the network, they come even though number has been black listed, also emails have been moved, I believe by someone who is cyberstalking me but don't know how to prove it, what can I do ?

    Hi,
    When a Mac is "registered" for iMessages account with an Apple ID the Serial Number of the Mac is used to create an Auth Token as it is called for the Messages app that allows that Mac to work.
    I would guess a similar process of linking the Number of the iPhone to a Hardware fact about the device is also in place.
    I would contact Apple Support and check with them.  (you might need to speak to a Level 2 person as Level 1 people are script led and try to fit everything into Software or Hardware categories where as sorting and Apple ID (which the Number is in this case) is normally Free).
    I did find this iOS: Troubleshooting Messages - Apple Support
    It starts off about sorting SMS that is not working.
    This one has a bit on Unlinking an iPhone Number (with or without the iPhone) iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage - Apple Support
    7:55 pm      Tuesday; January 6, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Imessaging after upgrade to 5.1.1 are not coming from right user

    We have 3 iphones and an ipad on the same itunes account.  We recently upgraded all three phones to the 5.1.1 and now we are having a strange problem.  When I imessage it says it is coming from my daughters phone????  It seems that all three phones are showing that all imessages are coming from 1 phone.  This is not good.  Do I have to uninstall and reinstall everything?

    This happens when multiple phones are using iMessage with the same Apple ID.  Each needs to use a unique Apple ID to keep your message identities separated.  On two of the phones go to Settings>Messages>Receive At, tap the Apple ID at the top, sign out, sign back in using a different ID.

  • Delimited Org Unit(having end date Current date) are not coming in Bex output.

    HI All ,
    I have problem with BEx query output while using the Org. Unit Time dependent Hierarchy structure. In ECC side some of the Org. Unit nodes were delimited or their end date set to less than current date. Now this hierarchy is loaded to BW on daily basis those Org. Unit also laoded to BW hierarchy and these nodesare not coming up in our query output. Client wants to see these unit data as it important to him.
    Please suggest  .
    Thanks,
    Arvind Venai

    Hi Arvind,
    As per my understanding, the valid to/end date for Hierarchy should be 31.12.9999. May I know what is Valid To in your case?
    Did yo u check the change happend in ECC for hierarchy is reflecting in BW ?
    There mught be some restriction in BEx Query , please check

  • Dates are not matching from VA03 and VL03N...........

    Hi,
    As i am facing issue with Mismatching of dates in VA03 and VL03N.
    Make to stock and Rote:0 days.
    Can any body explain what might be reason of date changes.
    Dates in VA03:-
    Delivery date in schdule lines: 12/11/2009
    Mat available date: 12/09/2009
    Loading date: 12/11/2009
    Dates in VL03N:-
    Planned GI date 12/15/2009
    Actual GI date 12/14/2009
    Picking 12/11/2009
    Trans planning: 12/15/2009
    Loading: 12/15/2009
    Delivery date: 12/15/2009
    Regards,
    Pavan.

    I see absolutely no issue with your dates, perhaps you should read below and search help.sap.com for transportation scheduling.
    "During delivery and transportation scheduling, the point at which the goods arrive at the customer can be confirmed (confirmed delivery date) Different lead times are taken into consideration here: the pick/pack time, loading time, transportation lead time and the transit time
    The following data plays a role in delivery scheduling:
    u2022 Order date Date on which the order was issued
    u2022 Material availability date: Date on which sufficient goods should be available for picking and packing
    u2022 Loading date: Date on which picking and packing should be completed (and the the mode of transport should be there), in order that loading can begin on time
    u2022 Goods issue date: the date on which the goods must leave the delivering plant, in order that they arrive at the customeru2019s at a specific time
    u2022 Delivery date: Date at which the goods arrive at the customers. Here a difference is made between: Required delivery date: Date on which the customer wishes to receive his goods
    confirmed delivery date: Date on which the arrival of the goods at the customers can be confirmed.
    All activities that must be carried out before the goods can be delivered to the customer are taken into account during delivery scheduling. This includes loading, picking, and packing. Delivery scheduling determines the material availability deadline and the loading deadline.
    All deadlines that are used for preparing and carrying out the transportation of goods are taken into account during transportation scheduling. This includes the transit time and the transportation lead time that you need for ordering a foreign forwarding agent or for arranging a truck from the your companyu2019s truck fleet. The goods issue deadline and the transportation scheduling deadline are determined by transportation scheduling."

  • Messages are NOT deleted from tables XI_AF_MSG and XI_AF_MSG_AUDIT

    Hello,
    I set the retention period to 7 days (1 week)
    I also set the default ARCHIVE and DELETE jobs and ALL are working fine.
    However, messages with OLD dates are NOT deleted from the tables XI_AF_MSG and XI_AF_MSG_AUDIT.
    These tables 32GB in the DBD table space.
    I tried to use the URL:
    http://<host>:<port>/MessagingSystem/archiving/reorgdb.jsp
    BUT to NO avail.
    How do I DELETE or ARCHIVE these messages ?
    ============================================
    Here are some more details on the content of the tables (I took into account 1 MONTH retention):
    db2 "select count(*) from sapxi3db.XI_AF_MSG_AUDIT where STATUS='SUCC' and TIME_STAMP < '2007-09-10 00:00:00'"
          28947
      1 record(s) selected.
    db2 "select count(*) from sapxi3db.XI_AF_MSG_AUDIT where STATUS='ERR' and TIME_STAMP < '2007-09-10 00:00:00'"
          13243
      1 record(s) selected.
    db2 "select count(*)  from sapxipdb.XI_AF_MSG where PERSIST_UNTIL < '2007-09-10 00:00:00' and STATUS='NDLV'"
           1048
      1 record(s) selected.
    db2 "select count(*)  from sapxipdb.XI_AF_MSG where PERSIST_UNTIL < '2007-09-10 00:00:00' and STATUS='DLVD'"
              0
      1 record(s) selected.

    Hi,
    First, thank you VERY much for answering.
    Now to your questions:
    1. When using the URL:
    http://<host>:<port>/MessagingSystem/archiving/reorgdb.jsp
        I did NOT get any ERROR messages.
        Thousands of messages where DELETED successfully.
        However, the number of rows in XI_AF_MSG_AUDIT did NOT reduce.
    2. I used the default archiving and deletion customizations and jobs.
       However, I ran them manually a few times a day with NO change in the
       number of rows in XI_AF_MSG_AUDIT
       What do you mean by "customized any Archiving for adapter Engine" ?
    . In RWB, I do see the default job is running
    Have you customized any Archiving for adapter Engine or You are using default arciving which runs every 24 hrs.
    3. I did ser the retention period for the adapter engine messages in visual admin in seconds...
    Please, advise further.
    Kind regards,
    Gil

  • Buzzing/whining sound coming from top left keyboard area...?

    For a couple of months now (I think, I can't pinpoint when exactly this started), there has been an annoying buzzing/whining sound coming from the very top left part of my keyboard (I think). It happens when the computer is on and dies down once I turn it off but kind of does a very quiet "tick-tick" thing for a few minutes after shutdown. At first I thought it was the screen because it sounds like it's coming from the very bottom left corner of the screen (or the very top left corner of the keyboard, I can't tell)... but adjusting the brightness doesn't seem to affect it. It increases when I'm typing or moving the cursor and decreases when I'm not doing anything, but it's always present. I have checked my hard drive and everything's okay, so I'm not sure what it could be. Any suggestions would be greatly appreciated! Performance hasn't been affected (as of yet), so it's just more of an annoyance.
    Another thing - for a while now (probably over a year), the screen has been flickering intermittently. It will go darker to lighter to darker to lighter quickly whether the screen has been on only a few minutes or several hours. This seems to have decreased lately, but maybe the two issues are related...?
    I got my MacBook soon after they came out with the first black one, whenever that was.
    Thanks for your help!

    Why not answer my question if you want help? Does your "ordinary keyboard that has midi capabilities" have a transpose function or a split keyboard mode that you may have accidentally activated? Did you try the solution I offered you?

  • Data not coming from DOE to Mobile After defining Rule for device attribute

    Hi All,
    I have created a DO and rule for it.In case of Bulk Rule for all definition when i triggere extract from Portal then all the data comes to outbound queue but when i define rule for Device attribute then no data comes to my Outboun queue.Here is the scenario what i am doing :
    1. I have order header in my backend which has a field named "Work_Center" and this will be criteria field.
    2. In CDS table i have all the records for all the work center.
    3. Now in RMM under customized , i have added an attribute named "Work_center".
    4. Now i defined a rule with Device attribute mapping and activated the rule.
    5. Now on Portal i assigned this data object and in the device attribute tab i assigned the value(this value exist in CDS table for few orders) of a   Work center to the attribute "Work_Center" .
    6. Then i triggrere extract but its Outbound queue is empty, what could be the reason.
    Is my approach is correct
    Regards,
    Abhishek

    Hi Abhishek,
    You can check one ore thing, after you have performed all the steps till step 5, i.e. just before triggering
    extract. Check if the AT table for ur DO has entries based on the criteria specified by you...
    1. In the workbench click on the Data Object, and then right click and select "View Metadata".
    2. Select Distribution Model tab.
    3. Now select your DO's Association table.
    4. For the input field DEVICE ID specify your corresponing device id,and also for status field specify it 
        as "I"  and execute
    If there are any entries now in the AT table, and on triggering extract if they are not coming to the
    outbound Q there is some EXTRACT Q blocked. And is there were no entries in the AT then the rule
    specified is not  the satifying.
    Thanks,
    Swarna
    Now if you have entries w

  • Data Not coming From DSO to Cube

    Hi All,
    I have data in DSO. When i run the DTP , request status is green.
    Now when i go to cube and see the data the request has came but data has not transferred .....
    The Request Status is green in cube but data is not cuming....
    No transferred data.
    How can bring data in cube..??
    Regards,
    Rohit

    Hi,
    When you loaded the DSO......after that are you loading the cube for the first time?If so .....and still data is not coming..then check if the last loaded request somehow got deleted from the DSO....
    If after loading the DSO....you have already loaded the cube...and this is the second time you are loading the cube.........then obviously it will pick 0 records...........since delta DTP always picks the fresh new request..........if there is no new request in the source .......then it will pick 0 records.......
    Also both the cased are not working.........then check the End routine or Start routine.if any.......
    Thanks and Regards,
    Debjani.......

  • Scratchy noise coming from top end of keyboard. Not effecting performance but very noisy and worrying! What is it? Is my computer seriously damaged? Is it easily fixed? Thanks for any help

    Scratchy noise coming from top end of keyboard. Not effecting performance but very noisy and worrying! What is it? Is my computer seriously damaged? Is it easily fixed? Thanks for any help

    It would be helpful if you were to identify the model of MBP you have. 
    The noise makers on a MBP are the fan(s), the HDD and the optical drive.  Can you locate the exact position where the noise is coming from?
    Ciao.

  • My photos from my iphone 4s are not coming across in my ipad or my computer.  I have everything with icloud and photos turned on

    My photos from my new iphone 4s are not coming across on my ipad or my computer.  I have all devises synced together, icloud on photos are turned on.  Not sure what else to do?

    Welcome to the Apple Community
        •    Photostream only syncs photos over Wi-Fi, make sure you are connected to Wi-Fi to begin with.
        •    Photostream only syncs when the camera app is closed, ensure it is closed.
        •    Photostream only syncs when the battery is above 20%, try recharging the device
    Try disabling photo stream on your device (settings > iCloud), restarting your device and then re-enabling photo stream.
    If this doesn't help you may need to reset photo stream. You can do this at icloud.com by clicking on your name in the top right corner and then the advanced settings in the pop-up dialogue box that appears.
    Note: disabling photostream and re-enabling it will result in any photos that are currently in the photostream album on your device, that are older than 30 days old, not being added back.
    Photostream when enabled will only add photos from the camera roll that were taken post photostream activation. (Photostream does not currently share video)

  • When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.

    Problem:
    When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.
    Any help that you can provide in helping my iPhone accurately sync with iPhoto and iTunes will be greatly appreciated.
    Symptoms:
    1)   Sync:  It’s not completing the sync.  Below, I’ve provided all of my settings from the iTunes Summary tab so that you might tell me if I’ve selected any incorrect options.  I prefer to sync the “old school” way – by connecting to the computer – as opposed to syncing over the cloud. Perhaps this is what’s causing the problem? Here is a list of the steps displayed in the iTunes window as the sync progresses:
    waiting for sync to start (step 1 of 7)
    backing up (step 2 of 7)
    preparing to sync (step 3 of 7)
    determining apps to sync (step 4 of 7)
    preparing apps to sync (step 5 of 7)
    importing photos (step 6 of 7)
    waiting for changes to be applied (step 7 of 7)
    syncing apps / copying 1 of 4 (App name) (step 7 of 7)
    canceling sync
    apple icon
    2)   Photos: I've selected only certain of my iPhoto albums to sync to my iPhone.  All of the albums are correct/complete in iPhoto.  All of the albums are listed on my iPhone, both before and after the sync, but the albums are empty (no actual photos) before and after the sync. Perhaps this is tied to the fact that the sync isn’t completing, but because “importing photos” is one of the steps that the incomplete sync displays, I don’t know.
    3)   Apps: When I launch iTunes and click on the Apps folder under the Library listing, then click on the Updates tab, iTunes searches for any Apps needing to be updated and provides a list.  If I click on Update All, the Apps are successfully updated in iTunes.  But, when I plug in my iPhone so that the updates will transfer to the apps on my iPhone, the updates don’t transfer to the apps on my iPhone and those apps still reflect that they need updating on the iPhone.
    Other Potential Pertinent Info:
    The flash memory hard drive on my MacBook Air recently died (perhaps a month or two ago).  Apple had emailed me about a known issue and literally the next day, my MacBook Air crashed.  I installed a new flash memory drive and re-installed everything from a backup off of an external hard drive.  Everything seems to be working fine; it recreated accurately all of my software and data, including iPhoto and iTunes, the pictures and songs (respectively) for which are stored on that hard drive, as opposed to being on the flash memory in the MacBook Air itself.  However, I don’t recall if the start of the sync problem described herein started happening at the same time that I replaced the flash memory drive.  All I know is that the computer is working perfectly in all respects and that even as the sync is failing, it at least says that it’s doing the right things and looking in the right places (e.g., the list of albums on my iPhone matches the list of albums in iTunes, etc.).
    Settings/Status:
    MacBook Air
    OSX v. 10.9
    iPhoto ’11 v. 9.5 (902.7)
    iPhone iOS 7.0.4
    iTunes v. 11.1.3 (8)
    Summary Tab
    Backups (This Computer)
    Options
    Automatically sync when this iPhone is connected
    Sync only checked songs and videos
    Photos Tab
    Sync Photos from iPhoto (429 Photos)
    Selected albums, Events, and Faces, and automatically include (no Events)
    Albums – 9 are selected

    You need to download iTunes on your computer. iOS 6 requires the latest version of iTunes which is 10.7.

  • When I send a text message from my iPhone response only comes back to my iPhone .  If I send from iPad, response only comes back to iPad. Whichever I used last is where response comes.  Responses are not coming to both anymore!  Please help?

    When I send a text message from my iPhone response only comes back to my iPhone .  If I send from iPad, response only comes back to iPad. Whichever I used last is where response comes.  Responses are not coming to both anymore!

    On both devices when you go to settings>messages>send and recieve how are poeple contacting you on each device?. e.g. email or mobile number.

  • I just recently upgraded from a 3gs to a 4s and since i upgraded text messages are not coming in or going out unless i'm texting another iphone?

    I just recently upgraded from a 3gs to a 4s and since I upgraded text messages are not coming in or going out unless I'm texting another iphone?

    http://support.apple.com/kb/TS2755

Maybe you are looking for

  • Windows 7 64 bit won't let me install itunes 64bit!

    I have problems with 2 computers. They are both by Gateway, one of them is a SX series Windows 7 Home Premium 64 bit, 1 TB, 4GB of RAM, intel i3 Dual Processor, and was just out of the box. The other one is a DX series Windows 7 Home Premium 64bit, 1

  • 5800 XpressMusic issues

    I have the number stored in SIM and phone memory still when a person gives a call i can only see the number and not the "NAME" which i have stored. This is irritating. Other issue i have faced it gets stuch sometimes in touch screen when a call comes

  • TimesTen remote connection

    Hey, what do I need to connect to a remote TimesTen server? I already installed SQL Developer and TimesTen, to get the in the SQL Developer TimesTen guide described TimesTen Client. But in the screen to create a connection there isnt a option to type

  • Data Load from ECC6 in GC or LC

    Hi Friends, Have a small query. When i extract data from ECC6. Should i take the data in GC (Group currency) or in LC (Local Currency). If i do the extract in local currency how does the system handle the currency conversion from Local currency to Gr

  • Can I ad scripts in a Muse site?

    In particular I would like to add google adsense to a site.  Can I do this and if so how?