How does the (ABAP) AS handle unused internal tables? (garbage collection?)

Hi,
Let's suppose i have a class, which contains a simple method like follow:
method do_this.
  data lt_table type something_tab.
  "do some manipulation on the lt_table.
endmethod.
So during runtime, at the moment when we leave the method "do_this", will the lt_table memory space be freed? Or is it still allocated? Do we need to use an explicit "free lt_table" statement?
I want to optimise memory usage in my code, and was wondering if such explicit calls to "free" is necessary.
Thank you,
Edited by: Huynh Van Du Tran on Mar 16, 2009 6:38 PM

Hi,
I would say it would be better use FREE itab at the end of the processing in your code. In the end-of-selection in your code, you can FREE all your itabs that were used in the program. This is one of the good approach of optimizing the memory.
Regards
Vimal

Similar Messages

  • In the Suite, how does the email portion handle spam?

    In the Suite, how does the email portion handle spam?

    Every email message you mark as spam (and also mark the ones that aren't spam that went in to your junk folder) helps it learn over time.
    If you want more (extremely) technical information about it: http://en.wikipedia.org/wiki/Bayesian_spam_filtering

  • How does the iPhone 3G handle this???

    If I save photos from my email, and there are multiple photos with the same name, how does the iPhone 3g behave? Since I can't see the filenames of the photos, I am unable to determine if any two images have the same filename.
    Does the phone rename one? Overwrite one? What occurs??

    That is exactly what I was talking about. I expected as much however I noticed the following occur. I save a photo from one source, and saved the exact same photo from another source (both have the same filename) I then deleted the first one that I saved, and both photos were deleted.
    Is that the proper behavoire?

  • How does the Edge E540 handle audio? (e.g. DPC Latency)

    Hi, I know that some other Lenovo models have problems with very high DPC latency, causing drop outs and crackles while using CPU-heavy audio programs (music productiong, DJing etc), but I couldn't find any info specific to the Edge E540. So do any of you have experiences (good/bad) with the Edge E540 and audio?

    Hallo T1MUR,
    vielen Dank für den Hinweis. Hat's gebracht!
    Thanks a lot for that hint, I followed your suggestions and it worked just fine. The scripts you provided in my case all appear to just switch off KbdMgr.exe without leaving me with a lot of choices. I still have to figure out whether this behaviour can be improved by editing your batch files. For the time being it probably would suffice to kill the process in the windows task manager and to switch it on again if needed by double clicking it in the c:\programs\boot camp directory. One then has to reenable the function keys manually, whereas all other tunings affected by boot camp are kept. This is slightly inconvenient, but it's ok. The differences may be due to the fact that I am dealing with a MacBook Air, not a MacBook Pro.
    Thanks again for your help, I really appreciated this.
    Siggi Engelbrecht

  • How does the iMac handle HD video editing?

    Tired of Window PCs, looking to buy an Apple System. I would like to do some video editing but want to make sure I get a powerful enough system from the start. How does the iMac handle HD video editing or should I look a better, faster computer?

    I have a mid 2011 iMac, 21 inch 4 GB RAM (the next to bottom iMac), Lion. I run Final Cut Express 4 with no difficulty (at least so far). It is certainly fast enough. My old G5, 7 years old, was also, and the iMac is faster.
    As I remember, I heard from someone on the Final Cut Express Discussions that some people might be having difficulty with FCE 4 on Lion, but I am a bit hazy. Its bigger brother, Final Cut Pro, is also available. I suggest that you post on the Final Cut Express or Final Cut Pro Discussion sites. They have many reliable users.

  • How does the SDK and Reader handle printing with orientation?

    I have a document that I want to print, and it contains a portrait page on Page 1, and a landscape page on Page 2.  Acrobat Reader correctly prints these pages (with a single print job), and I'm assuming it's because of the auto-rotate option on the print dialog.  Is this a feature of Reader, the API, or how the printer handles the request.  I've tried printing this PDF just using the JAva API, but the orientation remain portrait for all pages.  How does the Adobe Acrobat API deal with mixed orientation pages?  Ignore the fact that I did my test printing with Java, because my question is whether or not the auto orientation is a feature of the UI, the SDK, or the printer (or a combination).

    Same as the current Ipod Video or "Classic" there is an option under settings to toggle between original aspect ratio or Full Screen.
    Kenal0

  • How does the email program in the suite compare with Google GMail especially in handling spam or are both about the same?

    How does the email program in the suite compare with Google GMail especially in handling spam or are both about the same?

    Firefox doesn't include an email client. Are you asking about the Seamonkey suite? The Seamonkey support options are over here: http://www.seamonkey-project.org/community

  • TRFC internals - how does the async processing happen?

    tRFC internals - how does the async processing happen?
    Dear all,
    With the document "[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f078394a-4469-2910-c4bf-853c75674694|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f078394a-4469-2910-c4bf-853c75674694]" there is an excellent place to read about SAP RFCs (remote function calls).
    Pages 94 to 96 describe in detail how tFRC (transactional RFC) works.
    However, there is still something unclear for me with the following sentence on page 94:
    "The truly exciting part happens when the program
    issues a COMMIT WORK command. The recorded calls
    are executed asynchronously in a special set of tRFC
    processing sessions created for each transaction ID..."
    Maybe someone can answer the following questions:
    a) what does exactly trigger and execute the tRFC?
    b) is it the ABAP runtime system itself, spawning the additional task in DIA?
    c) if multiple tRFC LUWs have been recorded, they are all executed in parallel by this procedure!?
    d) does the execution try to utilize all available DIA processes?
    e) how do the rdisp/rfc_... parameter come into the game?
       are they evaluated? We have seen all DIA occupied by the tRFCs executed!
    Best regards,
    Peter
    P.S.: if someone has answers to these ones, more related to error handling, would be great as well
    f) the jobs ARFC*, do they also use parallel processing?
       or is every ARFC* job responsible only for one single LUW?
       (note https://service.sap.com/sap/support/notes/366807 did not give a perfect answer)
    g) and how does the report RSARFCEX work compared to immediate execution?

    That's the problem, it won't.
    internal static string GetAvailabilityGroupFromConnection(SPDatabase db)
    if (!UsesAvailabilityConnection(db))
    return null;
    string dataSource = db.ConnectionString.DataSource;
    string cmdText = string.Format(CultureInfo.InvariantCulture, "\r\n SELECT name FROM sys.availability_groups g\r\n JOIN sys.availability_group_listeners l ON g.group_id = l.group_id\r\n WHERE dns_name = '{0}'\r\n ", new object[] { dataSource });
    string str3 = null;
    using (SqlCommand command = new SqlCommand(cmdText))
    ULS.SendTraceTag(0x302263, ULSCat.msoulscat_WSS_Database, ULSTraceLevel.Medium, "Looking up availability group for listener: {0}", new object[] { cmdText });
    using (SqlDataReader reader = GetSessionFromDatabase(db).ExecuteReader(command))
    while (reader.Read())
    str3 = reader.GetString(0);
    ULS.SendTraceTag(0x302280, ULSCat.msoulscat_WSS_Database, ULSTraceLevel.Medium, "Found group {0} for listener {1}", new object[] { str3, dataSource });
    This piece of code looks at the SPDatabase's connection string (the SQL alias, for example) and executes a T-SQL query looking for that name within SQL Server. Since the SQL alias does not exist within the SQL Server's configuration, it will return a null
    value, and you won't be able to set up the AG config using the AG cmdlets.
    Also, since mobility exists by the very nature of using an AG Listener, using a SQL Alias is redundant.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How does a voice gateway handle a call received from CUCM?

    For example, I have a voice gateway configured via a SIP trunk as a device in CUCM. When our users dial the international pattern (8011!) and CUCM forwards that to the device(gateway) over the SIP trunk, how does the gateway handle that request in terms of matching dial-peers? Is it handled the same way a call incoming from the PSTN would be? By matching the destination pattern?
    Ultimately what I'm trying to do is figure out whether our international calling is configured properly but that's difficult to do If I don't know what the gateway is doing with the call once it receives it from the CUCM.
    Thanks in advance!

    Thanks, we have a conference call Monday and I'll try some debugging to see what's going on. I am a little more confused now if that's possible because my understanding is that they can make INTL calls but based off of the configs I've seen and what you've told me they should be able to. Below are my configs. There is a translation profile applied but it points to a blank rule. I also didn't see any transformations in the route pattern.
    mgcp profile default
    dial-peer voice 1 pots
     incoming called-number .
     direct-inward-dial
     port 0/0/0:23
    dial-peer voice 100 voip
     incoming called-number .
     dtmf-relay rtp-nte
     codec g711ulaw
     ip qos dscp cs3 signaling
     no vad
    dial-peer voice 101 voip
     destination-pattern 5...
     session protocol sipv2
     session target ipv4:x.x.x.x
     dtmf-relay rtp-nte
     codec g711ulaw
     ip qos dscp cs3 signaling
     no vad
    dial-peer voice 2 pots
     destination-pattern 911
     port 0/0/0:23
     forward-digits all
    dial-peer voice 3 pots
     destination-pattern 9[94]11
     port 0/0/0:23
     forward-digits 3
    dial-peer voice 5 pots
     translation-profile outgoing NATL
     destination-pattern 9[2-9]......
     port 0/0/0:23
     forward-digits 7
    dial-peer voice 6 pots
     translation-profile outgoing NATL
     destination-pattern 9707[2-9]......
     port 0/0/0:23
    dial-peer voice 7 pots
     translation-profile outgoing NATL
     destination-pattern 91[2-9]..[2-9]......
     port 0/0/0:23
     forward-digits 11
    dial-peer voice 8 pots
     translation-profile outgoing INTL
     destination-pattern 9011T
     port 0/0/0:23
     prefix 011
    voice translation-rule 10
     rule 1 // // type any international plan any unknown

  • How does the Touch screen look in direct / indirect sunlight?

    Was sitting on the LIRR heading home when I had this thought... after watching some guy playing with his PSP, as the sun was falling on his screen.... hhmmmm, I wondered how my Touch, which is now enroute from Anchorage, is going to handle the sunlight hitting it? Will I be able to watch my movies/tv shows without problem? How does the Touches screen look when sunlight hits it. I realize that sunlight hitting the screen is not an optimal viewing situation, but couldn't help but think how it would look. Those that are lucky to have one.... how does it handle sunlight?

    readable, but not great. I had it out in bright Ozzie sunshine and I could use it, but I wouldn't watch a movie on it.

  • How does the original iPad mini perform on iOS 8?

    I have been thinking about getting a new iPad from the iPad 2. I know the original iPad mini and the iPad 2 have similar specs, but the real upgrade I get from it is the wireless technology and the ability to use Handoff. Overall, how does the original iPad mini handle iOS 8? Should I go with that iPad or get the iPad mini 2? I wouldn't get the iPad mini 3 because I don't think Touch ID is necessary for what I want to do on an iPad.
    Overall, I am wondering how iOS 8 performs on the original iPad mini so it can help me choose between the original or the iPad mini 2. Thanks in advance for your input!

    Get the mini 2 when the prices come down. The mini 2 is baically a smaller iPad Air. The improvements over the mini are well worth the money.
    http://www.apple.com/ipad/compare/#comparison-chart

  • Transfer Rules: How does the mapping work?

    Transfer Rules: How does the mapping work?
    Is there a document out there that explains the following or can someone help clarify it for me. I have some confusion on what is really going on.
    When I create an InfoSource (IS_Test)  as a “Flexible update…”  and then “Assign DataSource”  (DS_Test) and I respond Yes, to the message “DataSource assignment DS_Test to InfoSource IS_Test Save”
    a) <b>Under “Transfer_Structure/Transfer_Rules”</b> in the InfoSource
    1)  the “Transfer Rules” tab, what are the fields found in the right column (Assigned InfObjct-field)? And where do the fields you enter in the left column (<b>Communication Str/</b>Transfer rules) eventually go?
    2)  the “DataSource /Trans. Structure” tab, can I always assume that all the fields in the right column (DataSource) came from DS_Test? The left column (Transfer Structure), in my test was exactly the same as on the right. Where do these fields eventually go?
    b) Under “<b>Communication_Struct.”,</b> in the InfoSource
    3. the right column (ISource Fileds) where from those InfoObjects. if I am now creating my InfoSource. Where did they come from?
    4. The left column is “<b>Communication Structure</b>”, which at this point has no InfoObjects, if I move a couple of InfoObjects from the right to the left, where do these Objects in the left eventually go?
    5. what is the relationship between the “Communication Structure” in 4 and 1? Or any relationship between a) and b) as a whole?
    Thanks.

    Hi Caud,
    As Ashish pointed out, communication structure contains fields (infoobjects) that suppose to go to data targets. Which IO in CS to which IO in the data target will go (and what transformation of data may occur) is determined in URs of the data target.
    The transfer structure is the structure in which the data is transported from the source system into BW:
    http://help.sap.com/saphelp_bw33/helpdata/en/3f/0e503c3c0d563de10000000a114084/frameset.htm
    In “Transfer_Structure/Transfer_Rules” in the IS, DataSource /Trans. Structure” tab, right part shows fields in the Datasource, the left part – fields in the transfer structure. There is also a transfer structure in R/3 for a given DS. Transfer structure in BW is created identical to the TS in R/3 during TRs activation.
    During data load data are transferred 1:1 from TS in R/3 to TS in BW.
    TS in BW corresponds to the PSA table structure.
    How data from PSA are transferred to the CS is determined in TRs.   
    The 3rd column (“Field”) (“Transfer Rules” tab, right part (Assigned InfObjct-field)), contains field names of the DS (TS); and the 1st column shows IO in the CS to which the DS field will go. So, it’s a mapping DS filed -> CS field.
    The left part (“Communication str./Transfer rules”) is always identical to the CS content. But the 4th column (“Tp”) shows possible data transformation during transfer from PSA to CS. If this column contains a yellow triangle then there is no transformation (Value of DS field will go to value of CS field). If there is a red cross, it means that no data for this CS field is supplied from a DS. You can click on this yellow triangle and choose: 1). Another field from a DS; 2). Constant; 3). ABAP routine; 4). Formula. So, here you can determine the data transformation. Moreover, there is a possibility to create a start routine (blank sheet icon at the top).
    And finally, here are the answers on your questions:
    Q:
    a)     Under “Transfer_Structure/Transfer_Rules” in the InfoSource
    1) the “Transfer Rules” tab, what are the fields found in the right column (Assigned InfObjct-field)? And where do the fields you enter in the left column (Communication Str/Transfer rules) eventually go?
    A: Right part shows a mapping between DS and CS fields. Left part shows CS fields and data transformation (TRs) during data transfer from TS (PSA) to the CS. These are fields in the CS that will go to data target and which are fed from a TS (DS).
    Q: 2) the “DataSource /Trans. Structure” tab, can I always assume that all the fields in the right column (DataSource) came from DS_Test?
    A: Yes, you are right.
    Q: The left column (Transfer Structure), in my test was exactly the same as on the right. Where do these fields eventually go?
    A: As I described, left and right parts are identical. These fields will go to CS.
    Q: b) Under “Communication_Struct.”, in the InfoSource
    3. the right column (ISource Fileds) where from those InfoObjects. if I am now creating my InfoSource. Where did they come from?
    A: these are fields from an IS template, the name of this template you can see above this right part.  Actually, during IS (CS) creation you can choose different templates and choose fields from them transferring them into the left part.
    Q: 4. The left column is “Communication Structure”, which at this point has no InfoObjects, if I move a couple of InfoObjects from the right to the left, where do these Objects in the left eventually go?
    A: these are fields of CS (left part) and as I said before they will go to data target.
    Q: 5. what is the relationship between the “Communication Structure” in 4 and 1? Or any relationship between a) and b) as a whole?
    A: CS in 4 just shows IOs that will be transferred to data target. CS in 1 also shows how values for CS IOs are to be fed and transformed.
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table?

    Hi Team,
    Just wanted to know : How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table in OTM.
    Please help.
    Regards,
    John

    Sorry, wrong forum: created in ABAP forum instead.

  • How Does the scheduler works with ODI engine

    Hi All,
    I am new to the ODI and I was going through the documents over the web regarding the scheduling.
    Can anyone please let me know how does the Scheduler in ODI is coupled with the ODI engine.
    How does the internal scheduler works and how does the external one works. What are the processes the it calls while invoking the scheduler.
    Your help will be highly appreciated.
    Thanks,
    Sumit

    Scheduling in ODI is controlled by a special type of ODI agent, strangley called the ODI scheduling agent. This agent is installed as a service and as well as being responsible for all tasks associated with a normal agent is also responsible for managing ODI jobs based on any scheduling information associated with an ODI scenario. All scheduling information is stored in the ODI repository and the scheduler agent reads from this to determine which jobs/scenarios need to be executed and when.

  • EDI-How does the Inbound File process work?

    Hi
    How does the Inbound process work in EDI
    When a file is put in the Inbound EDI directory of the App server how does the system start the process?
    Which programs are called/triggered?
    How does the Inbound process work?
    Please be brief and precise.

    Hi
    Check the links
    Check these links.
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
    Please check this PDF documents for ALE and IDoc.
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
    Check below link. It will give the step by step procedure for IDOC creation.
    http://www.supinfo-projects.com/cn/2005/idocs_en/2/
    Reward points if useful
    Regards
    Anji

Maybe you are looking for