Database selection goes for a dump

Hi,
I am using SELECT....ENDSELECT to fetch the data in Chunks. Whenever I get a chunk of data I am creating a separate task for that which calls RFC enabled Function Module.
In Simple words....
SELECT.....
  CALL FUNCTION <XYZ> STARTING NEW TASK STARTNAME.
ENDSELECT....
In the first iteration, I am selecting 1000 records and it is working fine, but when the program runs for the second iteration it is giving a dump DBIF_RSQL_INVALID_CURSOR.
What could be the problem? I searched SDN and found few answers like for the second time it will not give a dump. But, I have a vague idea here. Anybody please provide me with a solution.
Thanks,
Babu Kilari

Hi Babu,
When you mention Collective Run as the option under the RFC enabled FM, all the data is passed to the External Memory and when the collection is over, it will be imported to the database using the index.
For Ex:
TABLES indx.
DATA indx_tab TYPE TABLE OF indx.
DATA sflight_tab TYPE TABLE OF sflight.
SELECT * FROM sflight INTO TABLE sflight_tab.
EXPORT sflight_tab TO DATABASE indx(hk) ID 'FLIGHTS'
       USING indx_export.
indx-srtf2 = 0.
IMPORT sflight_tab FROM DATABASE indx(hk) ID 'FLIGHTS'
       USING indx_import.
FORM indx_export USING foo.
  APPEND indx TO indx_tab.
ENDFORM.
FORM indx_import USING foo.
  READ TABLE indx_tab INTO indx WITH KEY srtf2 = indx-srtf2.
  indx-srtf2 = indx-srtf2 + 1.
ENDFORM.
Your FM when you use with Coll.run option will run similar to this logic.
Regards,
-Syed.

Similar Messages

  • Programme going for short dump

    HI FRIENDS
    WHENEVER OUR PRG TRIES TO RETRIEVE MORE THAN 20000 RECORDS ITS GIVING DUMP WITH
    Storage_parameters_wrong_set
    abap/heap_area_dia/ndia value 2gb.
    APPRECIATE YOUR RESPONSE.
    Regards,
    Mir.

    Hi Tim,
    The short dump info is :
    Runtime Errors         STORAGE_PARAMETERS_WRONG_SET
    Date and Time          23.05.2006 17:11:25
    ShrtText
    &INCLUDE INCL_INSTALLATION_ERROR
    What happened?
    The current program had to be terminated because of an
    error when installing the R/3 System.
    The program had already requested 456137504 bytes from the operating
    system with 'malloc' when the operating system reported after a
    further memory request that there was no more memory space
    available.
    What can you do?
    Make a note of the actions and input which caused the error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Set the system profile parameters
    - abap/heap_area_dia
    - abap/heap_area_nondia
    to a maximum of 456137504. Then reduce the value by 10.000.000 to be on the
    safe side.
    Then restart the SAP System.
    abap/heap_area_nondia and abap/heap_area_dia:
    Set smaller than the memory achieved for each process
    with 'malloc' and smaller than abap/heap_area_total
    You should also check whether the available memory (file system
    swap and main memory) is sufficient for the started program
    and its data.
    Error analysis
    When the program was running, it was established that more
    memory was needed than the operating system is able to provide savely.
    To avoid a system crash, you must prevent this
    situation.
    Last error logged in SAP kernel
    Component............ "EM"
    Place................ "SAP-Server hstnd1_DV1_00 on host hstnd1 (wp 2)"
    Version.............. 37
    Error code........... 7
    Error text........... "Warning: EM-Memory exhausted: Workprocess gets PRIV "
    Description.......... " "
    System call.......... " "
    Module............... "emxx.c"
    Line................. 1878
    How to correct the error
    Report the error to the group responsible for installing your
    R/3 System.
    System environment
    SAP Release.............. "640"
    |
    Operating system......... "Windows NT"
    Release.................. "5.2"
    Hardware type............ "4x Intel 801586"
    Character length......... 8 Bits
    Pointer length........... 32 Bits
    Work process number...... 2
    Short dump setting....... "full"
                                                    |
    Database type............ "MSSQL"
    Database name............ "DV1"
    Database owner........... "dv1"
    Character set............ "English_United State"
    SAP kernel............... "640"
    Created on............... "Nov 4 2004 23:26:03"
    Created in............... "NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10"
    Database version......... "SQL_Server_8.00 "
    Patch level.............. "43"
    Patch text............... " "
    Supported environment....
    Database................. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"
    SAP database version..... "640"
    Operating system......... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
    Memory usage.............
    Roll..................... 700176
    EM....................... 385999584
    Heap..................... 456137504
    Page..................... 57344
    MM Used.................. 729325096
    MM Free.................. 108201024
    Appreciate your help..
    Regards,
    Mir.

  • Short Dump While selecting Variant for ABAP query

    Hi,
    ABAP query is going to short dump (CONNE_IMPORT_WRONG_COMP_LENG) while selecting a Variant. If i create and use variant then i am able to see Output of Variant.But not able to use Earlier created variants .
    I think some mismatch between variant values and selection screen fields.Can anyone tell me how to rectify this ?
    I am not able to debug the code as dump is coming in a System program(RSDBSPVD).Can anyone tell me which database table i can use to get values of the Variant.
    Thanks in Advance.
    Nirmala K

    Hi nirmala,
    chk the links:
    http://help.sap.com/saphelp_webas620/helpdata/en/c0/980398e58611d194cc00a0c94260a5/content.htm
    http://help.sap.com/saphelp_webas620/helpdata/en/c0/9803a7e58611d194cc00a0c94260a5/content.htm
    regards,
    keerthi.

  • At F4IF_INT_TABLE_VALUE_REQUEST program goes for dump

    Hi,
    The following piece of code in my program goes for dump.Please help:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_screen-low.
      SELECT FIELD1 FROM TXXX INTO TABLE T_field.
        IF SY-SUBRC = 0.
          CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
            EXPORTING
              RETFIELD               = s_screen
            TABLES
              VALUE_TAB              = T_field.
        ENDIF.

    Hi,
    I think you need to write
    Try with the below code.
    PARAMETERS: p_bukrs(4).
    DATA: BEGIN OF itab OCCURS 0,
           bukrs LIKE t001-bukrs,
          END OF itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
      SELECT bukrs FROM t001 INTO TABLE itab.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'  ---> Field from internal table Itab
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'P_BUKRS' --> Screen field
          value_org       = 'S'
        TABLES
          value_tab       = itab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    If it is a select option is s_bukrs then
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'S_BUKRS-LOW'
          value_org       = 'S'
        TABLES
          value_tab       = itab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards,
    Kumar Bandanadham
    Edited by: Velangini Showry Maria Kumar Bandanadham on Jun 12, 2009 7:00 AM

  • How to define our own selection screen for logical database  in abap-hr?

    Hi Friends,
    Can u please help me
    How to define your own selection screens for  logical database.
    we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using  customer table like t599c, t599f and how to add to my logical database?
    Thanks in advance
    charan

    check out this online help
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
    Regards
    Raja

  • Function module going for DUMP

    Hi ALL,
    I have import request and i got sucess .My 3 function modules are import to client system.2 FM are working properly but 1 function module is going for DUMP.
    When iam Executing this FM through SE37 F8 its running but iam not able to display or change this ZFM.
    In our DEV sytem it is working properly.but Client system it is going for DUMP.
    I have gone dump analysis its saying
    An exception occurred. This exception is dealt with in more detail below
    . *The exception, which is assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR',
    was neither caught nor passed along using a RAISING clause, in the procedure
    MO_IMPORT_MODIFICATIONS" "(METHOD
    Length error occurred during the IMPORT statement
    *The system found when importing that the target object was longer or
    shorter than the object to be imported*
    Thanks in Advance,
    Madhu.
    Edited by: madhubabu rao on Apr 23, 2009 10:34 AM
    Edited by: madhubabu rao on Apr 23, 2009 10:36 AM

    Hi sekhar,
    I did not transport individually.I have transport 3 FM in a function group and it is assigned to a Package.
    First i have 2 FM in my function group after that i have copied one more FM from another Function group.
    in SE80 right click -->copy it asked me function group name only .not transport number.
    After copy the FM i have transport total package.2 FM are working properly .The FM which i have copied it is not able to display or edit.
    Madhu

  • Restrict Select-Options for Logical Database field

    The way we restrict select options for custom defined select option fields on selection screen.. can we restrict select options for standard Logical Database fields?
    i.e. report uses PNPCE logical database and has field called PERNR. I want to restrict select options for this PERNR field so that it has options for 'Select single values' only.
    Thanks,
    Falguni
    Edited by: Falguni V on Nov 13, 2010 6:42 AM

    You can user AT SELECTION-SCREEN event, and check whether any record is having high value for PNPPERNR.

  • Import FM is going for DUMP

    Hi All,
    I have import request and i got sucess .My 3 function modules are import to client system.2 FM are working properly but 1 function module is going for DUMP.
    I have gone dump analysis its saying
    "Length error occurred during the IMPORT statement."
    "The system found when importing that the target object was longer or
    shorter than the object to be imported."
    where did i mistake while import ? or while transport?
    That FM is working properly in our DEV.
    Thanks in Advance,
    Madhu.

    Hi Madhu,
    Suggested to post this in logistics forum for better answer.
    Software Logistics
    Regards,
    Debasis.

  • Call for adobe form is going for dump for multiple users

    hi,
    i am calling an adobe form in a program i.e. for multiple users. now my problem is.....
    3 people are using same tcode to generate the adobe form output for different data. but when they click at a time on the button to generate the adobe output, then adobe form is coming for only one user and it is going for dump for other users.
    and this dump is coming because of exception "CX_FP_API_INTERNAL" in funtion module FP_FUNCTION_MODULE_NAME which i am using to get the function module name of the adobe form in my program.
    can u please give me some solution to rectify this issue....

    That's nothing!
    An engineer and I contacted Adobe technical support by phone to ensure the PC I was having custom built was configured to its optimum. They advised XP64 as the best operating environment. After that discussion we had to completely revise procurement, etc to get the bits and compatible XP64 compatible software, putting the build project back a few weeks as well, Imagine how I laughed when I found out on one of these forums that XP64 is the worst choice and totally unsupported by CS4!
    I have written to Shantanu Narayen, Adobe CEO and didn't even get an acknowledgement I raised this last week on the Adobe stand at BVE and was told they'd get someone to contact me asap but guess what, niet...! To be fair there has been one Adobe executive that recognises the problem and the damage poor customer support is causing the company; he has been as helpful as he can. Unfortunately, it seems the overall Adobe culture at the top is "get the money and run". If your problem goes beyond what's already on their web pages, tough luck!
    Regards,
    Graham

  • Duplicate records in PO scheduled line for framework order (going for dump)

    Hi all,
    i am creating framework purchase order with item category B. I am assigning external number range for PO. This PO is created with respect to expense PR. i just found there is duplicate records are appearing in schedule line for the same item.
    Then, after i save the PO, it is going for dump & sending some message to SAP inbox that there is duplicate records.
    later i can not find those PO in the system. Please let me know where i am doing mistake ? why duplicate records are appearing in PO scheduled line ?
    Thanks a lot
      pabi

    Hi,
    Once you please debug the particular program with the help of ABAPer. That may resolve your issue. Thanking you

  • Standard Tcode : VA01 is going for Dump

    Hi all,
      While creating sales order in VA01,  the screen number 4003 having arrow Buttons Shift + f5 , Shift + f6 , Shift + f7 , and Shift + f8. If i am pressing that it is going for dump can any body help me why it is going for dump in ECC 6.0 . But it wont happend in 4.5B. Can any body help me in this problem.
    Thanka & Regards,
    Rajasekhar.

    What is the error from the dump?
    Rob

  • Modify selection screen for Logical Database 'SDF'

    Hi
    I need to make a section of the standard selection screen for logical database 'SDF' invisible. I have tried the differet selection screen options of the report attributes, but none of the provided ones give me what I want.
    How can I find the name of the screen group for the "Line Item Selection" block of the selection screen so that I can make it invisible when the selection screen is displayed?
    Thanks,
    Thomas

    I tried to do this:
    Loop at screen.
             if   screen-group4 = '026'
               or screen-group4 = '027'
               or screen-group4 = '028'.
                 screen-invisible = 1.
                 modify screen.
             endif.
    endloop.
    This removed the selection text for these fields, but the Line Item Selection block is still visible, and the actual input fields are also visible. They now look like password input fields with all ***** in them.
    What am I doing wrong?
    Thanks for your help!
    Thomas

  • Selecting a column goes for a full table scan

    Hi,
    Oracle version 10.2
    I have the below query:
    SELECT   c.companyid,
             c.contactid,
             c.contactlname
        FROM contact c,company ic
       WHERE UPPER((c.contactlname)) LIKE CASE
               WHEN 'test' IS NULL THEN
                UPPER((c.contactlname))
               ELSE DECODE(1,
                       1,
                       '%' || 'TEST' || '%',
                       2,
                       'TEST' || '%',
                       3,
                       '%' || 'TEST',
                       4,
                       'TEST')
             END
         AND c.activeflag = DECODE('Y', 'N', 'Y', c.activeflag)
         AND ic.companyid=c.companyidthis is using the index on table company.
    Explain plan:
    SELECT STATEMENT, GOAL = ALL_ROWS               68     3523     176150     
    NESTED LOOPS               68     3523     176150     
      TABLE ACCESS FULL          CONTACT     65     3523     155012     
      INDEX UNIQUE SCAN          COMPANY_PK     0     1     6          Now if i include two more columns from the company table in the select statement the plan changes and it goes for a full table scan...
    Query:
    SELECT   ic.companyname,
             ic.companystatustypeid,
             c.companyid,
             c.contactid,
             c.contactlname
        FROM contact c,company ic
       WHERE UPPER((c.contactlname)) LIKE CASE
               WHEN 'test' IS NULL THEN
                UPPER((c.contactlname))
               ELSE DECODE(1,
                       1,
                       '%' || 'TEST' || '%',
                       2,
                       'TEST' || '%',
                       3,
                       '%' || 'TEST',
                       4,
                       'TEST')
             END
         AND c.activeflag = DECODE('Y', 'N', 'Y', c.activeflag)
         AND ic.companyid=c.companyidExplain Plan:
    SELECT STATEMENT, GOAL = ALL_ROWS               2126     4121     403858     
    HASH JOIN               2126     4121     403858     
      TABLE ACCESS FULL          CONTACT     108     4121     185445     
      PARTITION LIST ALL               1959     1031340     54661020     
       TABLE ACCESS FULL          COMPANY     1959     1031340     54661020     Any ideas why?

    dont think so.
    i tried removing the filters also:
    Query:
    SELECT  -- ic.companyname,
           --  ic.companystatustypeid,
    c.companyid,
             c.contactid,
             c.contactlname,
             c.contactfname,
             c.contactpositionid,
             c.contactroledesc,
             c.updateddate
        FROM contact c,company ic
       WHERE ic.companyid=c.companyidplan:
    SELECT STATEMENT, GOAL = ALL_ROWS               109     73346     3520608     
    NESTED LOOPS               109     73346     3520608     
      TABLE ACCESS FULL          CONTACT     51     73346     3080532     
      INDEX UNIQUE SCAN          COMPANY_PK     0     1     6     Query:
    SELECT   ic.companyname,
             ic.companystatustypeid,
    c.companyid,
             c.contactid,
             c.contactlname,
             c.contactfname,
             c.contactpositionid,
             c.contactroledesc,
             c.updateddate
        FROM contact c,company ic
       WHERE ic.companyid=c.companyid
         Plan:
    SELECT STATEMENT, GOAL = ALL_ROWS               2462     73346     6894524     
    HASH JOIN               2462     73346     6894524     
      TABLE ACCESS FULL          CONTACT     51     73346     3080532     
      PARTITION LIST ALL               1348     973674     50631048     
       TABLE ACCESS FULL          COMPANY     1348     973674     50631048     Does the columns selected have an impact on the plan?? I thought the plan is derived on basis of the join conditions...

  • How to improve select stmt performance without going for secondary index

    Hi friends,
    I have a select statement which does not contains key fields(Primary index) in where condition. And I have to improve that select stmt performance without going for the secondary indexes.
    Can you plese suggest the alternative way for this?.
    Thanks in advance,
    Ramesh.

    Hi,
    If , possible create a secondary index opf your own But if you have restriction on this, try to arrange the fields in where clause in the same order as they appear in the very table.
    This will help the performance a bit.
    Another issue, If your table doesn't contain any critical data or data in them are not updated frequently, you may go for Bufferring . it is a good alternate of Indexing with above limitations.
    For details in bufferring , check, and all the sublinks.
    [concept of buffering|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f244446011d189700000e8322d00/content.htm]
    Regards,
    Anirban

  • While using my iPhone the system behavior changed where I now have to click on the app to select it, then double click to launch it. Same goes for entering in my password to access the phone and entering digits to make a phone. I am also having trouble

    While using my iPhone the system behavior changed where I now have to click on the app to select it, then double click to launch it. Same goes for entering in my password to access the phone and entering digits to make a phone. I am also having trouble swiping the screen to move to the next page. This is no longer working. I did not change any settings, the phone just started behaving this way. Any ideas on how to revert back to the single click selection/launch? Any assistant is greatly appreciated. Thank you!

    Edge has very clear restrictions, one being that you must have 6 months of clean payment history which you don't. Either wait until April 14, or good luck at Sprint.
    I am unsure how it can be determined the payment mix up was the fault of CS, but regardless, the mix up was done. There can be any number of reasons why a payment could be missed without any fault on your part, however you are still the responsible party for the account and must live with the repercussions.

Maybe you are looking for

  • How to show a MPEG4/H.264 video in Flash in an HTML page?

    Maybe my title isn't clear. I am hoping someone can shed some light on the h264 use in flash. Instead of displaying a progressive download .FLV video , I am trying to have an MPEG4 /h.264 approx. - a 30meg video display in flash in an .html page. Qui

  • What is the difference between the "sent" and "sent items" folders?

    My email is in the "sent" folder but not the "sent items" folder. How do I know my email has actually been sent? Why are there two folders? Can I just use one? Thanks in advance for any help.

  • OBIEE Installation Error

    Hi All, I have installed OBIEE in My stand alone machine, after installaing prerequisites like Oracle 10g, JDk.Also Enabled IIS before installition. After installition of OBIEE succesfully, iam unable to launch OBIEE administration. When i clicked th

  • Cannot associate with the access point error message

    We just got high-speed Internet installed at our house. We have a cable coming into the house that connects to a Linksys WAP54G router in our basement. We have two Dell Dimension computers that we installed Linksys PCI Wireless G Cards into. The comp

  • JDev 9.04 ActionListener Not Found Errror

    I created a Java class in JDev 9.0.4.13.8 running Java version 1.4.2_03 on WinXP. When I attempt to rebuild it, I get "Error(9,52): class ActionListener not found in class testclient.TestClient. I am trying to create an application to upload a user-s