How to code this - Please advise
Dear friends,
Please advise as how to code the below scenario in order to obtain the best performance.
I've an internal table IT_BSAD.Now I've to check if in the combination of bukrs,augbl,auggj,kostl,prctr,gsber,aufnr, if there is a single record in IT_BSAD, then it should be appended to IT_BSAD1 & if there are multiple records, then those should be appended to IT_BSAD2. In any case IT_BSAD1 & IT_BSAD2 should not contain duplicate records & records in IT_BSAD = records in IT_BSAD1 + Records in IT_BSAD2. I coded it somehow but it hangs in case of million of records. Please advise me the best way of doing it.
I'll appreciate any help in this regard.
Thanks:
Gaurav
prepare a sorted table with key bukrs,augbl,auggj,kostl,prctr,gsber,aufnr
loop it_basd assigning <fs_basd> .
at new sufnr.
lv_index = 0.
endat.
" move the fields to it_basd1 work area
"append it_basd1
lv_index = lv_index + 1.
if lv_index > 1.
if lv_index = 2.
read it_basd1 into iwa_basd2 with key bukrs,augbl,auggj,kostl,prctr,gsber,aufnr.
append iwa_bsad2 into it_bsad2.
delete from it_basd1 where bukrs,augbl,auggj,kostl,prctr,gsber,aufnr.
endif.
" move the fields of <fs_basd> to it_basd2 work area
append iwa_bsad2 into it_bsad2.
endif.
endloop.
hope this will help
Nafran
Similar Messages
-
Some calendars in iCal appear corrupted (ie have red exclamation mark by them) but are still OK on iPhone. If I sync, will the calendar data on the phone restore info on the desktop iCal or will I lose that as well? Or could I back up the calendars on my iPhone somewhere and then import them into iCal? any other ideas for how to sort this please? it's driving me mad. thanks.
I don't think there will be a solution to this. Exchange 2003 just isn't supported.
-
Final Cut Pro X keeps freezing when sharing my work to You Tube, it does about 90% of the upload and then seems to get stuck. Any ideas on how to resolve this please?
this is a perfect question to ask the users in the FCP X forum. Good luck. https://discussions.apple.com/community/professional_applications/final_cut_pro_ x
-
Hi,
After writing into serial port, the same message gets bounced back into the Inqueue also. If anyone know how to avoid this, please reply.
Thanks,
GaneshIf you disconnect the cable going to the serial device, do you still get the echo? If so you have something going on in the port setup. If disconnecting the cable stops the echo then the device you're talking to is doing it - which would be my bet. One thing to check is whether this might not be normal operation. I have seen devices that if a command was successful, it simply echo'd back the command string you had sent. Also many serial devices have setting for specifying whether they are to echo commands.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Hi I'm trying to update my iPhone 4 to ios7 through iTunes , when I click update it tells me to change media sync options to make more storage available .... Anyone know how I do this please ... Thanks ,Helen
You're out of space. Do you sync music to your phone? If so, try syncing it over in 128kb which will save a lot of room. Option is right in front of you in iTunes when you plug phone in.
-
'''''
I have my home page set to Google. When I open a new tab I want it to also open as Google instead of tabbed browsing. Would you please email me how to do this, please? Thank you!'''''
Kind regards,
Ronny T. GallichioYou can look at one of these extensions:
* NewTabURL : https://addons.mozilla.org/firefox/addon/2221
* New Tab Homepage : https://addons.mozilla.org/firefox/addon/777 -
I have downloaded a series of prison break but 3 episodes are saying "you do not have permission to access the requested resource" and "this episode can not be downloaded at this time" any idea how to fix this please??
I got this error with my iPad 3, my wife's iPhone 4, but not with my iPhone 4s.
-
Having worked on a photograph in Pages 08 document I cannot find a way of transferring it to the desktop, iPhoto or Photoshop. Does anyone know how to do this please.
Inspector palette > Metrics > select the image name and drag to the desktop
-
I have just connected my computer to my iPad to import photos to my iPad and have imported the wrong ones and wish to delete them. Does anyone know how I do this please. I am a novice at this as I have ony just acquired my iPad,
Photos that were synced from your computer using iTunes can only be deleted by de-selecting them from the folder from where they were synced - and then re-syncing.
Connect the iPad to the computer and launch iTunes.
Click on the iPad name on the left side under devices.
Click on the Photos Tab on the right.
Uncheck all of the albums that you want to remove under the Sync Photos From heading
Click on Apply in the lower right corner of iTunes
If you are using iTunes 11 and you can't see the sidebar go to View>Show Sidebar from the menu at the top. -
have an existing icloud account and I changed iphone. When I track my iphone it locates the old iphone. How to resolve this please?
Hi kitdan,
If you need to remove an old device from Find My iPhone, you may find the following article helpful:
iCloud: Remove your device from Find My iPhone
http://support.apple.com/kb/ph2702
Regards,
- Brenden -
I have an iPad mini 16g. It has started jumping through different pages of it's own accord, any ideas how to fix this please?
I recommend starting with a soft reset (pressing both home and power button until you see the apple then let go of the buttons) once you back on the home screen if you iPad still doing the same thing you may want to try a back up and restore
http://support.apple.com/kb/ht1766 to back up
http://support.apple.com/kb/ht1414 to restore -
i m not able to connect for the wifi which i have used earlier ,i m getting an error as unable to join the network how to resolve this please help me
We were able to log in this morning and all is working. You should be able to log in at any point today. Please let us know if you are having any other difficulties.
-
I have been trying to download Creative Cloud but it gets stuck half way down. Does someone knows how to fix this please?
Any hints or help will be more than appreciated.
Cheers
PanchoYou have not provided any system info nor aany other details.
Mylenium -
I have music in the cloud but only plays one at a time, anyone have any idea how to solve this please?
- Transfer iTunes purchases by:
iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
- Transfer other music by using a third-party program like one of those discussed here:
Copy music from Ipod to new computer...: Apple Support Communities
You may have t opurchase one. Some only do a limited number of transfers without paying.
- Make a backup of yur iPod by connecting the iPod to the computer and right clicking on the iPod under devices in iTunes and selecing Backup.
- Restore the iPod from that backup. -
I ned help please, I am losing storage space on my iPhone 6 and I am not downloading anything nor upgrading but still my storage dwindles literally by the hour , does anyone know as to why and if so how to stop this please and thank you.
Did you tried any of these basic troubleshooting steps?
Restart / Reset
http://support.apple.com/en-us/HT201559
Restore from backup
Restore as new
http://support.apple.com/en-us/HT201252
Maybe you are looking for
-
Possible memory leak in Weblogic 7.0
We have developed an EJB application on Weblogic 7.0 running on HP-UX 11.0. Some JSP/Javabean programs, that lookup EJB compoments for services, are developed on the Resin web server to serve browser requests. Both Resin and Weblogic are running on t
-
Which format to burn in?
Okay, I have a smallish HD (10gb) and I want to burn some songs from my CDs. Which format should I be burning my songs into? I've tried burning them in both mp3 and AAC format and I DON'T see much of a difference, size wise.
-
Firefox refuses to update past v2 despite numerous attempts
Hi! After seeing repeated nag msgs from youtube etc informing me I was using an out of date browser, I downloaded v 3.6 from mozilla website. I ran the program... it did 'a little housekeeping' and updated my FF, or so I thought... fast forward a cou
-
How do you track hits on hit counter in iWeb?
I have been creating a personal poetry website on iWeb and I am fairly new to Mac in general. I found the Hit Counter button and added it to every page on my website. My question is how do I see how many hits i have? The hit counter does not show
-
LIV - credit memo : error message shown for unit price variances
hi In LIV for Credit Memo, there is no warning nor error message shown for unit price variances (price different from that in PO). Request not allow to have unit price variances for Credit Memo. pls advice how can i do it thanks