System memory isn't available afer the execution of select statement.

hi experts, i have written the following query.
     SELECT BUKRS BLART BUDAT BLDAT MONAT
             FROM BKPF INTO CORRESPONDING FIELDS OF TABLE IT_BKPF
                 WHERE BUKRS IN BKRS AND BUDAT IN DATE.
       IF SY-SUBRC EQ 0.
       SELECT BUKRS BELNR GJAHR DMBTR PSWSL ZUONR SGTXT AUFNR ALTKT SHKZG HKONT
          FROM BSEG INTO CORRESPONDING FIELDS OF TABLE IT_BSEG FOR ALL ENTRIES IN IT_BKPF
             WHERE BUKRS = IT_BKPF-BUKRS AND BELNR IN DOC AND HKONT IN GLE.
         IF SY-SUBRC EQ 0.
           SELECT BUKRS KTEXT FROM AUFK INTO CORRESPONDING FIELDS OF TABLE IT_AUFK
              FOR ALL ENTRIES IN IT_BKPF WHERE BUKRS = IT_BKPF-BUKRS.
             SELECT TXT50 TXT20 FROM SKAT INTO CORRESPONDING FIELDS OF TABLE IT_SKAT
             FOR ALL ENTRIES IN IT_BSEG WHERE SAKNR = IT_BSEG-ALTKT.
               ENDIF.
               ENDIF.
and transfering tha data into final table like this
IT_FINAL[] = IT_BKPF[].
LOOP AT IT_FINAL.
   READ TABLE IT_BSEG WITH KEY BUKRS = IT_FINAL-BUKRS.
   IF SY-SUBRC EQ 0.
  MOVE-CORRESPONDING IT_BSEG TO IT_FINAL.
   IT_FINAL-BELNR = IT_BSEG-BELNR.
   IT_FINAL-GJAHR = IT_BSEG-GJAHR.
   IT_FINAL-DMBTR = IT_BSEG-DMBTR.
   IT_FINAL-PSWSL = IT_BSEG-PSWSL.
   IT_FINAL-ZUONR = IT_BSEG-ZUONR.
   IT_FINAL-SGTXT = IT_BSEG-SGTXT.
   IT_FINAL-AUFNR = IT_BSEG-AUFNR.
   IT_FINAL-SHKZG = IT_BSEG-SHKZG.
   IT_FINAL-HKONT = IT_BSEG-HKONT.
   IT_FINAL-ALTKT = IT_BSEG-ALTKT.
     ENDIF.
     APPEND IT_FINAL.
   ENDLOOP.
   LOOP AT IT_FINAL.
     READ TABLE IT_AUFK WITH KEY BUKRS = IT_FINAL-BUKRS.
         IF SY-SUBRC EQ 0.
           IT_FINAL-KTEXT = IT_AUFK-KTEXT.
           ENDIF.
           APPEND IT_FINAL.
  ENDLOOP.
  LOOP AT IT_FINAL.
    READ TABLE IT_SKAT WITH KEY SAKNR = IT_FINAL-ALTKT.
     IF SY-SUBRC EQ 0.
       IT_FINAL-TXT50 = IT_SKAT-TXT50.
       IT_FINAL-TXT20 = IT_SKAT-TXT20.
       ENDIF.
       APPEND IT_FINAL.
  ENDLOOP.
i am getting an runtime error'the system is configured incorrectly' even for the value of bukrs between 0001& 0005 and for budat 28.08.2006 & 28.05.2009.
what happened?
the current program had to be terminated because of an error when installing the R/3 system.
the program had already reuested 399201216 bytes from the operating system with 'malloc' when the OS reported after a further memory request that there was no more memory space available.
plz help....is there any problem in my query or do i need to change something from logic?
thnks n regards,
Ashmita

Hi Ashmita,
1. Whenever we use FOR ALL ENTRIES, we should check the content of the main table.
   BCOS if it empty, then ALL records will be fetched (in this case, from BSEG).
2. When just put a IF condition
if  IT_BKPF[] is not initial.
select..... from BSEG... for all entries.....
endif.
3. This error may be coming because many many records are getting selected from BSEG and the memory on server is not available. Hence, one option is you may restrict your search. But before that please make sure the above check is in place.
(You have already used if sy-subrc = 0, that may also work, but better to use the above)
regards,
amit m.

Similar Messages

  • HT204382 Quick time Player can't open because a required codec isn't available.  The DVD I am trying to play was made on an IPAD.  My Imac came with a IMac Application install DVD, A IMac Mac OS X Install DVD, & iWork, I don't think I have iLife

    Quick time Player can't open because a required codec isn't available.  The DVD I am trying to play was made on an IPAD.  My Imac came with a IMac Application install DVD, A IMac Mac OS X Install DVD, & iWork, I don't think I have iLife What additional software do I need?

    Perian 1.2.3 *should* work for both QuickTime & and QTX in Mountain Lion. Regardless of the filetype container, whether it is a Matroska (.mkv) or a .mov. As to the actual encoding of the file (h264, .mp2, whatever..) I have found most play, even older formats.
    Even though it's no longer supported and is a dead project, it works just fine. It will load as a System Preference file and adds to the Other category in them.
    I think in 10.8 you've still got support for QTX so it may work with that. (in Mavericks, it only works for QT7)
    If not, just run QuickTime 7.6.6.
    http://perian.org
    If no luck there, you could also try VLC at http://www.videolan.org

  • I recently upgraded from 4S to 5S. There are 2 games that I wish to transfer to the new device. 1st game isn't available in the Store anymore, so can't download. 2nd game doesn't save when you change devices. How do I get those 2 apps to my new phone? Tnx

    I recently upgraded from 4S to 5S. There are 2 games that I wish to transfer to the new device. 1st game isn't available in the Store anymore, so can't download. 2nd game doesn't save when you change devices. How do I get those 2 apps to my new phone? Can I do that manually through iTunes?
    Thanks!

    Hello jon713,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iTunes: About iOS backups
    http://support.apple.com/kb/ht4946
    App Store Application data (except the Application itself, its tmp, and Caches folder)
    Application settings, preferences, and data, including documents
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/ht1848
    To transfer iTunes Store purchases from your device to a computer, follow these steps:
    Connect your device to the computer. If it is synced with another iTunes library, the following dialog may appear:
    Click the Transfer Purchases button.
    Have a nice day,
    Mario

  • I just downloaded Itunes to my new computer, and when I tried to go to the Store, it says the info I requested isn't available in the US. What gives?

    I just downloaded Itunes to my new computer, and when I tried to go to the Store, it says the info I requested isn't available in the US. What gives?

    Make sure you have the latest version of iTunes, which is available here -> http://www.apple.com/itunes/download/
    Then try following the steps in this Apple article to create an account without a credit card -> Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • Tkprof not showing the Execution Plan for Statement

    Hi all
    using oracle 9i release 2
    I have issued the following statements
    alter session set sql_trace
    alter session set events '10046 trace name context forever, level 12';
    --then executed a pl-sql procedure
    after reading the traceout outfile it shows the Execution plan for statements directly wirtten under begin and end block and doesnot displays the plan for the statements written like this
    procedure a is
    cursor b is
    select ename,dname from dept a,emp b
    where a.deptno=b.deptno;
    begin
    for x in a loop --plan not found but stats are written
    select ename into v_ename from emp where empno=300; --does show the plan+stats
    end;
    what I am missing to get the actual plan in trace output file
    thanks in advance

    You have to exit sql*plus after running the procedure, example tkprof is below:
    declare
    cursor c is
    select ename, dname
    from emp, dept
    where emp.deptno = dept.deptno;
    begin
    for v_x in c
    loop
    dbms_output.put_line(v_x.ename || ' ' ||v_x.dname);
    end loop;
    end;
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.06 0 0 0 1
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.00 0.06 0 0 0 1
    Misses in library cache during parse: 0
    Optimizer goal: CHOOSE
    Parsing user id: 68
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 0.00 0.00
    SELECT ENAME, DNAME
    FROM
    EMP, DEPT WHERE EMP.DEPTNO = DEPT.DEPTNO
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 15 0.01 0.00 0 44 0 14
    total 17 0.01 0.00 0 44 0 14
    Misses in library cache during parse: 0
    Optimizer goal: CHOOSE
    Parsing user id: 68 (recursive depth: 1)
    Rows Row Source Operation
    14 NESTED LOOPS
    14 TABLE ACCESS FULL EMP
    14 TABLE ACCESS BY INDEX ROWID DEPT
    14 INDEX UNIQUE SCAN DEPT_PK (object id 40350)
    Best Regards
    Krystian Zieja / mob

  • I have a 2nd generation ipod, but can't load any new games because they require a newer version of software (which isn't available on the 2nd gen

    Hello, I have a 2nd Gen Ipod Touch and can't get any new games to load (because the 2nd generatiom requires new software, which isn't available). Is there a way to get older versions of games to load on the ipod?
    Thanks

    To more easily find compatible apps:
    iOSSearch - search the iTunes store for compatible apps.
    Apple Club - filter apps by iOS version.
    Starting when iOS 7 was releases, Apple now allows downloading the last compatible version of some apps (iOS 4.2.1 and later only)
    App Store: Downloading Older Versions of Apps on iOS - Apple Club
    App Store: Install the latest compatible version of an app
    You first have to download the non-compatible version on your computer. Then when you try to purchase the version on your iPod you will be offered a compatible version if one exists.

  • Why on "System Preferences", I do not have the option to select "iCloud"?

    On System Preferences/Internet & Wireless, I do not have the option to select "iCloud". How can configure my email?

    Then stay with SL, iCloud mail is just an iMap acount so you can make the mail work in SL, other services will require that you pay rather more than $19 so your choice.
    iCloud Imap Settings

  • Execute the expression in select statement

    CREATE TABLE TEST1
      OFFICE_PRODUCTS     NUMBER,
      OFFICE_ELECTRONICS  NUMBER
    Insert into TEST1 (OFFICE_PRODUCTS, OFFICE_ELECTRONICS) Values(1, 0);
    COMMIT;
    CREATE TABLE TEST2
      EXPORT_FIELD_NAME         VARCHAR2(100 BYTE),
      EXPORT_COLUMN_EXPRESSION  VARCHAR2(100 BYTE)
    Insert into TEST2
       (EXPORT_FIELD_NAME, EXPORT_COLUMN_EXPRESSION)
    Values ('A1', 'least(OFFICE_PRODUCTS, OFFICE_ELECTRONICS)');
    COMMIT; I want to be execute the expression should run in select statement how to do?
    and tried as like below,it's not working.
    select (select EXPORT_COLUMN_EXPRESSION from test2 where EXPORT_FIELD_NAME='A1') FROM TEST1;

    968892 wrote:
    CREATE TABLE TEST1
    OFFICE_PRODUCTS     NUMBER,
    OFFICE_ELECTRONICS  NUMBER
    Insert into TEST1 (OFFICE_PRODUCTS, OFFICE_ELECTRONICS) Values(1, 0);
    COMMIT;
    CREATE TABLE TEST2
    EXPORT_FIELD_NAME         VARCHAR2(100 BYTE),
    EXPORT_COLUMN_EXPRESSION  VARCHAR2(100 BYTE)
    Insert into TEST2
    (EXPORT_FIELD_NAME, EXPORT_COLUMN_EXPRESSION)
    Values ('A1', 'least(OFFICE_PRODUCTS, OFFICE_ELECTRONICS)');
    COMMIT; I want to be execute the expression should run in select statement how to do?
    and tried as like below,it's not working.
    select (select EXPORT_COLUMN_EXPRESSION from test2 where EXPORT_FIELD_NAME='A1') FROM TEST1;
    Your problems are many...
    a) it's very poor design to be storing expressions or sql statements or any 'executable' style code as data in the database.
    b) what you're storing is a string of characters. Oracle isn't going to miraculously know that that is some expression that has to be evaluated, so why should it decide to treat it as such?
    c) this poor design can lead to security issues especially around SQL injection.
    d) to actually perform what you want would require you to build a dynamic SQL statement and then execute that using EXECUTE IMMEDIATE or DBMS_SQL (or for a 3rd party client, a Ref Cursor), but then there are numerous issues around doing dynamic SQL, aside from SQL injection, in that you are producing code that is not validated at compile time and can thus lead to bugs showing only at run-time and sometime only under certain conditions; the code is harder to maintain; the code can potentially be avoiding the use of bind variables, impacting on resources and performance on the database; the final query can be difficult to know just from reading the code, making further development or debugging a pain in the posterior. Essentially, dynamic SQL is considered very poor design and is 99.9% of the time used for the wrong reasons.
    So, why are you trying to do this? What is the business requirement you are trying to solve?

  • F4 on LIFNR fails to capture the values in SELECT statement

    Hi all,
    In the last 3 days Ive faced two issues on F4 Helps and its freaking me out.
    The first issue I chose to ignore because of time-constraints and able to find a work-around.
    On the second issue Ive hit a brick-wall.
    Anyways here are my two issues.
    Issue I:
    I developed a custom report and in that Ive defined a selection-field(among half a dozen others) as follows:
    select-options: s_matnr for ekpo-matnr.
    On execution when I press F4 on matnr field I get the standard F4 Help. And then when i select the Material I want and hit Enter, the selected value fails to reflect in the Input Screen field. I continues to show blank as if Ive not selected anything. Not surprisingly the Report output was fetching the undesired results.
    Later I changed the declared to:
    select-options: s_matnr for mara-matnr.
    And it worked. However because of time constraints I did not dwelve into it anymore.
    This bring me to the Issue II:
    For a different Custom Report Ive defined Select_Options on LIFNR as follows:
    select-options: s_lifnr for lfa1-lifnr.
    Now the issue I face here is slighly different.
    On hitting F4 on the LIFNR field Im getting the standard F4 Help, and on selection Im getting the desired Vendor Number on the input screen.
    But the problem is while executing the report its not fetching me the records relevant to the selected LIFNR. In debugging it does show me that LIFNR contains the value but surprisingly its not returning any values to the Internal Table.
    Im out of ideas at this point of time, trying to figure out whats wrong.
    Any ideas on what could be wrong??
    pk
    PS: Im not using any function modules for the F4 help. Just the straight-forward Standard F4 functionality.

    >
    Eric Cartman wrote:
    > I meant here that you can exclude values in select options, for example you told there are 8 items for the vendor in the Z... table, let's say all these 8 items use the same material number, but (whatever reason) this material number is excluded from the selection in s_matnr (it is just an example, there could be many variations, you have a number of select options)
    What you say makes sense, but firstly I dont have a MATNR in my table and from the looks of it, its not advisable to use any other common field either. A vendor-wise search is of primary importance in this table. So cant really exclude that.
    if Rob's advise was helpful, than it looks like that the domain in the custom table for the field is not lifnr
    Well the Domain has always been LIFNR regardless of which Data Element I used.
    And the domain should probably be changed, but this might cause compatability issues.
    Rob,
    What kind of compatibility issues are you talking about? What I have right now is a custom table with some test data. So I guess its ok to change the Domain and Data Elements as I wish and Adjust the Table. Right?
    @Amit: I will look at your inputs a little more carefully and get back to you. Right now Im a little tied-up with other issues.
    Thanks everyone.
    pk
    Update:
    So... as I said earlier, when I used CONVERSION_EXIT_ALPHA_OUTPUT on LIFNR the selection on LIFNRs worked just fine. But unfortunately the rest of the select-options returned zero results(if I left the LIFNR select-option blank). I found the reason to be that because of the conversion routine the LIFNR values are taken as space. So i guess its looking into the database table for blank values of LIFNR, which is never the case and hence no values returned. Anyways, I found a work-around for this and for the moment its working fine...to some extent.
    Only constraint being that I cannot enter a range of values for LIFNR.
    Heres the code Im using right now. Thought it might be useful for future references or somebody wants to fine-tune it, is welcome to do so.
    if s_lifnr-low = space.
    select * from zpst001 into corresponding fields of table ist_zpst001
           where tno     IN s_tno
           and   ebelp   IN s_ebelp
           and   pspid   IN s_pspid
           and   werks  IN s_werks
           and   pick    IN s_pick
           and   pstatus IN s_status.
    else.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        INPUT         = s_lifnr-low
    IMPORTING
       OUTPUT        = s_lifnr1-low
    select * from zpst001 into corresponding fields of table ist_zpst001
           where tno     IN s_tno
           and   ebelp   IN s_ebelp
           and   pspid   IN s_pspid
           and   lifnr   eq s_lifnr1-low
           and   werks   IN s_werks
           and   pick    IN s_pick
           and   pstatus IN s_status.
    endif.
    pk
    Edited by: prashanth kishan on Nov 20, 2008 5:08 PM

  • Please explain execution of select statement after parsing.

    Can any body explain me what happen when a "select * from emp where ename='sanjay' " statement parsed information is found in shared sql area in library cache.
    Where does the execution phase takes place. Is it in private SQLAREA or shared sql area. Please consider that it is MTS(shared server connection) and also UGA is present in Large Pool.
    Please explain step by step.
    Thank you

    You did not indicate a version number and this is important information especially since the term MTS has been replaced by the term "Shared Servers."
    Perhaps this will help you:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2588723819082

  • What is the change occured by using the package in select statement

    Hi all,
    Can some one please tell me using the following package in the select statement of the view does it restricts the data or fetches the data
    what is the change occurred using the package for fetching the date column
    hr_discoverer.check_end_date (per_assignments_f.effective_end_date)
    Thanks in advance

    You can check the code -
    -- this function checks to see if a date is equivalent to the end of time(31-Dec-4712)
    -- if this is true it will return null else the actual end-date
    Cheers,
    Vignesh

  • How to avoid the below nested select statement

    Please any one help me how this select statemet is working and      how to avoid the nesetd select statement .
    if we avoid below nested , does it improve performace ?
    select field1 field2                                  
               into table w_feeds                                 
               from ZTable as t                         
               where field2 in r_feedf1                       
               and  POSITION_POSTDT =                           
               ( SELECT MAX( position_postdt ) FROM zTable 
                      where position_postdt le r_pdate-high    
                      and   field1 = t~field1 ).
    Thanks in Advace.

    Hi,
    Instead of nested query go for two separate queries. I see you are querying on the same table...so better go by this approach
    select field1 field2 POSITION_POSTDT
    into table w_feeds
    from ZTable
    where field2 in r_feedf1.
    Remove the where condition on POSITION_POSTDT
    Sort the table w_feeds by POSITION_POSTDT  Descending; So you will get data pertaining to Max Position_Postdt.
    Finally delete the other entries which are not Max.
    This will enhance the performance over the nested query.
    Regards
    Shiva
    Edited by: Shiva Kumar Tirumalasetty on Apr 27, 2010 7:00 PM
    Edited by: Shiva Kumar Tirumalasetty on Apr 27, 2010 7:00 PM

  • System memory show 0KB available. Finder will not open. How can I get access to files in order to delete them without using finder?

    My friend is running OS X Yosemite. Her kid used up all the memory on minecraft/word of warcraft files. Now no app will open including Finder to even access files for deletion. Is there a way to access any apps/files to clear space without using finder?

    Step 1   
    The first step is to secure the data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since the last backup, you can skip this step.
    There are several ways to back up a Mac that is not fully functional. You need an external hard drive to hold the backup data.
    a. Start up from the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.” The article refers to starting up from a DVD, but the procedure in Recovery mode is the same. You don't need a DVD if you're running OS X 10.7 or later. 
    b. If Step 1a fails because of disk errors, and no other Mac is available, then you may be able to salvage some of your files by copying them in the Finder. If you already have an external drive with OS X installed, start up from it. Otherwise, if you have Internet access, follow the instructions on this page to prepare the external drive and install OS X on it. You'll use the Recovery installer, rather than downloading it from the App Store.
    c. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, start the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    d. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    You might be able to run in safe mode even though you can't run normally. Otherwise, start up from an external drive, or else use the technique in Step 1b, 1c, or 1d to mount the internal drive and delete some files. According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation.

  • Lightroom isn't available in the cc downloads.

    I've tried to access it directly from the site and it takes my back to the CC app but it's not listed.  I've tried the all apps filter as well as every other one.  Where can I can go to get it back?  I just switched to a new workstation and it's gone!  HELP!

    Do you have beta(trial version) installed for light room? If yes, then uninstall it completely by checking the preference boxes too.
    Now restart the computer & download & install from the CC desktop App. It should work.
    Regards
    Rajshree

  • Won't connect to iTunes store; says it isn't available in the US Store.

    It won't even load the iTunes Store Homepage.
    I just want to buy an app for my phone.

    I am getting the same message.

Maybe you are looking for