How many times will internal table get filled?

Dear BW / ABAP gurus:
I am observing a routine in a transformation in 7.0 data flow.
The internal table is created as follows in the global declaration in the Start Routine:
TYPES:  BEGIN OF ST_PROD,
          /BIC/AZPROD TYPE /BIC/OIAZPROD,
          /BIC/AZCOST TYPE /BIC/OIAZCOST,
        END OF ST_PROD.
DATA: IT_PROD TYPE TABLE OF ST_PROD,
      WA_PROD TYPE ST_PROD.
The programmer is fetching data for product cost which is not available in the source. This code is written in the Start Routine:
SELECT /BIC/AZPROD /BIC/AZCOST
  FROM /BIC/PAZPROD
  INTO CORRESPONDING FIELDS OF TABLE IT_PROD
  WHERE OBJVERS = 'A'.
My questions:
(1) Is it a standard practice to create the internal table in the global declaration?
(2) Is it a standard practice to fill the internal table with data in the Start Routine? Is it possible to fill the internal table with data in the global declaration? Or is the global declaration only reserved for declaring variables and creating internal tables?
(3) What is the use of 2nd part global?
(4) Let's say there are 100, 000 records at the source and the DTP package size is 50,000. Then the Start Routine will get executed 2 times. So the code in the Start Routine will hit the database 2 times to fill the internal table. Is this correct?
Note to mods: Please do not delete the thread. Move to the beginner section if you think this is basic. But please do not delete. It take a long time to type out the questions.

hi Saurav,
(1) Is it a standard practice to create the internal table in the global declaration?
1. No ,internal table should be created in global part only if they are getting used in field level or end routine .Else they must be in local part and should get refreshed at the end  so that performance not get affected.
(2) Is it a standard practice to fill the internal table with data in the Start Routine? Is it possible to fill the internal table with data in the global declaration? Or is the global declaration only reserved for declaring variables and creating internal tables?
1.No if only you want to use the data in field level routine and start routine ,you will fill table in start routine otherwise no .
2.first global part is for data declaration so no in first global part select cannot come .
3.Second global part can have select but you cannot write any statement using source package or result package here as they are private object of transformation class and not recognized at this area.However simple select on any table other than these will be fine .
(3) What is the use of 2nd part global?
1.In second global part you can declare internal table ,structures that are not of type source package or result package but independent and can use them .
2.If you will declare these table in first global part they will be private object and you cannot write select using them in second global part .
3.Second global part is also declaration but outside the class so these objects are global across transformation with more flexibility .
4.If you will declare any data here using the structure of source /result package you will get error .This is a data declaration part comes between transformation definition and implementation part .
(4) Let's say there are 100, 000 records at the source and the DTP package size is 50,000. Then the Start Routine will get executed 2 times. So the code in the Start Routine will hit the database 2 times to fill the internal table. Is this correct?
yes the source and result package are actually the DTP packages only so code will get executed same no of time as you have number of packages in DTP extraction .
Hope this will be helpful .
Regards,
Jaya Tiwari

Similar Messages

  • AppleCare support - how many times will you lose my registration?

    Called on 6/29/06 to register my almost out of warranty iPod. Waited forever to talk to a very nice person who took my case and told me what to do: fax my iPod SN, and provided a case#.
    I call today to register my AppleCare warranty and am told that I need to repeat the above steps again, and call back in 5-10 business days.
    This person (Shelly?) was rude, abrupt and condencending.
    How many times do I have to prove that I own an iPod, get it registered so I can get it repaired?
    AppleCare is the worst experience I've ever had. What did I pay for. I've never experienced such a run-around to get support.
    BTW - your phone queue is about 20 years old. Could you at least tell someone HOW LONG they are going to wait? And/or eliminate the 'You call is important and will be answered in the order received' notice that comes on every minute?

    This is a user-to-user forum. You are not communicating with Apple.

  • How many times will I have to update Genius before it 'knows' my collection?

    I have 14,000 songs in my library (iPod 160G, version 2.0.4, Windows) but Genius only seems to know about 1,000 of them.   The same tracks get chosen for the 'canned' Genius mixes and for the Genius mixes that I create myself.   I make a point of updating Genius manually every few days.  Is there a  way I can get it updated all at once?
    Thanks

    I'm on my 3rd one.
    First one got stuck at apple logo restored too many times and I gave up for an exchange.
    Second one had cracks at the bottom near the connector and dust under the glass
    Third one now still have some dust under the glass but not as noticeable, so probably I'll keep that one.
    But all three of them have crashed and get stuck at Apple Logo. Bad 3G reception, and unstable Apps.
    This is my first Apple product, and probably will be the last! Apple you need to have better quality control and more field testing and debug your software. I know you are in a hurry to compete with Google Android but you forget the most important thing, it's a communication device! Can't reset the phone when stuck at Apple logo without using iTunes is ridiculous! This is the most unstable PDA phone I have ever used!!!!!! Even Microsoft's Windows Mobile are far better and stable than your iPhone weak 3G.

  • How many times will Apple attempt to fix a computer?

    I realize my Powerbook G4 is older and the lower memory slot has gone out for the second time in six months. It will be going in tomorrow and I'm sure it will be gone for another week. It seems that others have had similar experiences and I'm curious how many attempts Apple will make before they simply replace it. I had a lemon a number of years ago and Apple eventually made it right.

    Try complaining to customer service. Tell them how unhappy you are with your Mac experience and start insisting for compensation, but you can settle for a new Mac Book Pro. The genius bar has nothing to do with customer service and they will just keep repairing it if you keep taking it there.

  • How many times will I have to exchange this 3G iPhone?

    July 11th - Waited 6 hours in line like a tool to get 3G Black iPhone 16 gig.
    July 12th - Exchanged iPhone because of NO VIBRATION
    August 15th - Exchanged iPhone because of hairline cracks forming at heaphone jack, vibration switch and bottom corner.
    3rd iPhone has a light leak on left side, "bubbles" in plastic housing and a HUGE dust speck in the center of the screen.
    So I guess I'll be heading back to get my 4th iPhone 3G, but I'm about ready to give up.
    What number iPhone are you on?
    The only good thing about Apple is that their Geniuses have been really nice.

    I'm on my 3rd one.
    First one got stuck at apple logo restored too many times and I gave up for an exchange.
    Second one had cracks at the bottom near the connector and dust under the glass
    Third one now still have some dust under the glass but not as noticeable, so probably I'll keep that one.
    But all three of them have crashed and get stuck at Apple Logo. Bad 3G reception, and unstable Apps.
    This is my first Apple product, and probably will be the last! Apple you need to have better quality control and more field testing and debug your software. I know you are in a hurry to compete with Google Android but you forget the most important thing, it's a communication device! Can't reset the phone when stuck at Apple logo without using iTunes is ridiculous! This is the most unstable PDA phone I have ever used!!!!!! Even Microsoft's Windows Mobile are far better and stable than your iPhone weak 3G.

  • No matter how many times I click to get my security informartion I never get an email the same is with my password

    Been like this for months never get an email but I get emails from apple it just not these types of information ones

    Check your junk mailbox.
    You haven't described the process you went through to attempt to change the security info.  Below I have provided the usual method.  If you didn't try this way, give it a try:
    If you can't remember the answers to the security questions, then go to Express Lane  and select 'iTunes' from the list of 'products' in the middle of the screen.
    Then select 'iTunes Store', and on the next screen select 'Account Management'
    Next choose 'iTunes Store Account Security' and fill in that you'd like your security questions/answers reset.
    You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox) - but some recent posts are saying that Apple have temporarily suspended the reseting of security question/answers whilst account security processes are improved, so it may take longer.

  • How many times will SAP provide a License key

    Hans,
    I have a expired license  for N4S system that I need to renew if possible.
    I searched fourm looking for if SAP will provide a second key.
    I have some custom stuff and would not want to reinstall.
    Best regards
    Bryan Kelley

    Dear Bryan,
    you can renew the license for N4S here: [http://www.sap.com/minisap|http://www.sap.com/minisap]. You will receive a signed license which you have to install with the GUI, transaction slicense -> new license -> select license from file dialog -> install -> done.
    Best Regards,
      Hannes

  • I recently uninstalled firefox.Then I tried installing it.It keeps telling me because of a recent uninstall I must restart my computer.This keeps happening and no matter how many times I reboot I get the same message and won't let me install firefox.

    running xp on a dell inspiron 4600.Never had this trouble before.Trying to upgrade from 3.5.1 to 3.6.10

    See http://kb.mozillazine.org/Software_Update (Software Update not working properly)
    Remove the files in the updates and updates\0 folder:<br />
    C:\Documents and Settings\&lt;user&gt;\Local Settings\Application Data\Mozilla\Firefox\Mozilla Firefox\updates
    (%USERPROFILE%\Local Settings\Application Data\Mozilla\Firefox\Mozilla Firefox\updates)
    C:\Program Files\Mozilla Firefox\updates
    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.<br />
    Don't remove personal data when uninstalling.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can skip the step to create a new profile, that is not necessary for this issue.

  • HT203167 my song will not download to my iphone. I continue to tap retry but no matter how many times I try it will not download to my phone. I have purchased the song but cant download it. How do I get it to finish downloading?

    I have a song that will not download no matter how many times I retry it.  How do I get it to Download on my Iphone?  I have purchased the song but it is stuck in the download catagory.

    You preferences not saved,
    *http://kb.mozillazine.org/Preferences_not_saved
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    Profile Backup and Restore
    *http://kb.mozillazine.org/Profile_backup
    *https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • My itunes will not open no matter how many times i try! It says its due to a problem. what do i do?

    My itunes will not open no matter how many times i try! It says its due to a problem. what do i do?

    When you gte requests to locate iTunes.msi like this, the Microsoft Installer Cleanup utility usually fixes it.
    Here is a method for removal, clean up and reinstall of iTunes.
    == uninstall with cleanup ==
    Download a fresh copy of iTunes and the stand alone version of Quicktime (the one without iTunes)
    http://www.apple.com/quicktime/download/win.html
    http://www.apple.com/itunes/download/
    Save the files on your PC.
    Download and install Microsoft Installer cleanup utility, there are instructions on the page as well as the download. Note that what you download is the installer not the program – you have to run it to install the program. The installer doesn't give any message to confirm the installation.
    http://support.microsoft.com/kb/290301/
    (To run the program – All Programs>>Windows Install)
    Now use the following method to remove iTunes and its components:
    XP
    http://support.apple.com/kb/HT1925
    Vista
    http://support.apple.com/kb/HT1923
    *If you hit a problem with one of the uninstalls don't worry*, carry on with the deleting of files and folders as directed in the method.
    When you get to deleting Quicktime files in the system32 folder as advised in the method, you can delete any file or folder with Quicktime in the name.
    Restart your PC.
    Run the Microsoft Installer Cleanup Utility. (Start > All Programs > Windows Install Clean Up)
    Remove any references you find to the programs you removed - strictly speaking you only need to worry about those programs where the uninstall failed.
    If you don’t see an entry for one of the programs that did not uninstall, look out for blank entries or numeric entries that look like version numbers e.g. 7.x for Quicktime or 1.x for Bonjour.
    restart your PC
    Install the stand alone Quicktime and check that it works.
    If it does, install iTunes.
    ===

  • I had set my passcode by pressing 1 repeatedly till it filled the passcode box. I dont know how many times I have pressed 1. Can someone tell me the character length of the text box of the Passcode

    Hi,
    My son foolishly pressed a single digit till it just filled the text box of the passcode. Now i dont know how many times he has pressed it. If I can know the charcter length, or how many digits can just fill the text box of passcode, I can unlock my ipad2. If anyone reading this has ipad2, he can do the same thing and count how many digits will just fill the text box. I will really appreciate the help.
    Thanks

    You can put the iPad into Recovery mode and Restore it. See this link and note the sentence commencing, 'If you restore from a different computer.... ' down near the bottom of the page.
    http://support.apple.com/kb/HT1808

  • Suddenly, I can't get the plugin scan page to open. I keep getting "Plugin Finding Service Error", no matter how many times I try, or wait. When I first opened it yesterday, it was scanning, then it disappeared and I got the error message.

    I have opened the plugin scanning page many times before, and have done some updating of plugins recently, but yesterday I couldn't bring up the scan, I keep getting "Plugin Finding Service Error", which says to "try again later". I believe what I updated most recently was Flash (I think). No matter how many times I push the "try again", or shut down Firefox and the webpage, I still get the error, and get nowhere!

    This problem has been occurring for the past two months. I have updated Firefox to version 3.6.16...including Flash Player to version 10.2.153.1 as instructed. I am able to click on the "Add-ons" tab and "find updates" for "Get Add-ons" and "Extensions." However, the "find updates" tab is not working for "Plugins."
    I followed one of your suggestions in your "troubleshooting plugins" topic (disabling the plugins...then enabling them after a check). That didn't work either. In fact, a message box would appear saying that Firefox has "disabled Flash" instead, which of course it did not, since I was able to confirm that the Flash Player update version was still intact. Unfortunately, it appears that updating the Flash Player through Firefox is not a standalone operation. Apparently it will not work properly unless a separate update is subsequently processed through Internet Explorer as well.

  • Report execute time nd how many records will be returned before hitting the "run" option?

    Post Author: Prasad15
    CA Forum: WebIntelligence Reporting
    Is there any way to know how long the report executes and how many records will be returned before hitting the "run" option?
    Regards
    Prasad

    To know if the report is going to return more than 10,000 records, you first have to run the query with a 'select count(1) from ... where ...' (with the same from and where clauses as you normal query). Since this takes about the same time as runnng your report, I wonder if you really gain anything (although formatting may take some time too).
    You may simplify the select count(1) query by omitting all the lookup tables that are only needed for formatting. That way your query may run a lot faster. You can put this in your after parameter form trigger.

  • Statistics - To get how many time a report has been run

    Hi Gurus,
    I would like to know how many times each of the reports on the portal has been run. If I could get this by user id, that would be great.
    Do you know where I can get such information?
    Regards
    Mathew

    Hi Guys,
    This can not be done throug ST03/ST03N. For this you will have to either use the SAP delivered BI Statistics query which is built on 0TCT_M01 multiprovider. Make sure your data is upto date before you run the query.
    Disadvantage of teh SAP delivered query is, it will not give you result which is older than 24 hrs. So basically it gives you oppourtinity to analyze only last 24 hrs data. If you want to modify the query, you can copy the query and modify as per your requirement.
    Now coming to your question of finding how many times a report is run:
    Question is how many queries do you have in your report. If your report contains one query only, there is free char in the query called Frontend Session. Everytime your execute the query you will have a new Frontend session ID.
    So create a formula as counters for all values and set the exception aggregation based on Frontend session. This will give you the number of times each query executed. If you drill down by Users, you will get this numbers by users.
    - Danny.

  • I cannot get the subtitles to work no matter how many times I set it up and I am doing it correctly, what is wrong?

    I cannot get the subtitles to work no matter how many times I set it up and I am doing it correctly, what is wrong?

    if the material don't state there is subtitles in your language it don't include it
    and if will only show subtitles if the language you choose in the atv settings so if you have it set to french
    and the material only have subtitles in English and not french they will not display

Maybe you are looking for

  • Sd card in dvdplayer hoe te verwijderen

    Ik heb per ongeluk mijn SD kaartje in de CD/DVD player laten vallen, kan iemand mij vertellen hoe ik die er weer uit krijg?

  • Old Blue & White Studio Display

    Hope this is the right forum for this one. I have one of the Blue and White Studio LCD displays (Model 4551) which goes with my trusty B&W G3. I am about to get the backlights replaced as they are a little tired now and I was thinking that it might b

  • Problem with MimeMultipart

    Hi, I have a this problem:I'm reading the message whit attachment: if(message.getContent() != null && message.getContent() instanceof MimeMultipart ) { javax.mail.Multipart mmsg=(javax.mail.Multipart) message.getContent(); int count = mmsg.getCount()

  • Numbers on the internet translated in Skype Number...

    Everywhere on the internet, in my e-mail inbox, in my backaccount, I see normal numbers translated in Skype Numbers with blue letters and a Skype logo. Even if I Google something and it says "there are xxx results" -> if the number is big enough, it

  • Can migration assistant install on two drives?

    I am purchasing a new Mac Pro to replace my G5, and would like to use Migration Assistant to move everything. However, I am also considering for the new machine a SSD drive for boot, with everything else on a hard drive. Is it possible to have Migrat