BDC related runtime error

Hi gurus,
when we exicute it will occure the runtime error( convertin
form process_data .
  data : wa_vbco3 type vbco3.
  data : i_vbplp like vbplp occurs 0 with header line.
  data : v_str type string.
  data : begin of i_lips occurs 0,
         matnr type mara-matnr ,
         lfimg type lips-lfimg,
         end of i_lips.
  clear   : i_lips.
  refresh : i_lips.
  select matnr lfimg from lips
                     into table i_lips
                    where vbeln = p_vbeln.
  loop at i_pack into wa_pack.
    replace '|' with '' into wa_pack-huno.
    v_str = wa_pack-huno.
    shift v_str by 10 places circular right.
    wa_proc-exidv = v_str(10).
    unpack wa_proc-exidv to wa_proc-exidv.
    condense wa_proc-exidv.
    select single * into wa_vekp
                    from vekp
                   where exidv eq wa_proc-exidv.
    if sy-subrc eq 0.
      if wa_vekp-vpobj ne '12'.
        pack wa_vekp-exidv to wa_vekp-exidv.
        condense wa_vekp-exidv.
        wa_error-text  = wa_vekp-exidv.
        wa_error-error = text-001.
        append wa_error to i_error.
        continue.
      endif.
      wa_final-exidv =  wa_proc-exidv.
      append wa_final to i_final.
      wa_vbco3-venum = wa_vekp-venum.
      call function 'SD_PACKING_PRINT_VIEW_SINGLE'
        exporting
          comwa                    = wa_vbco3
        tables
          vbplp_tab                = i_vbplp
        exceptions
          shipping_unit_not_found  = 1
          shipping_unit_not_unique = 2
          others                   = 3.
    endif.
    loop at i_vbplp where vemng is not initial.
      wa_proc-matnr = i_vbplp-matnr.
      wa_proc-vemng = i_vbplp-vemng.
      select single maktx from makt
                     into wa_proc-maktx
                    where matnr = i_vbplp-matnr.
      append wa_proc to i_proc.
      wa_proc-exidv = space.
      wa_proc-maktx = space.
      collect wa_proc into i_proc1.
      clear : wa_proc.
    endloop.
    clear : v_str,
            wa_pack,
            wa_proc,
            wa_final.
    refresh : i_vbplp.
  endloop.
  loop at i_proc1 into wa_proc.
    read table i_lips with key matnr = wa_proc-matnr.
    if sy-subrc eq 0.
      if wa_proc-vemng ne i_lips-lfimg.
        wa_error-text  = i_lips-matnr.
        wa_error-error = text-002.
        append wa_error to i_error.
      endif.
    endif.
    clear: i_lips.
  endloop.
endform.                    " process_data

well I haven't finished my tinkering yet so that remains to be seen........
I spent an hour working out my ResultSet did not contain all the data I expected....... In the end it was because I was executing a ORM method in another of my classes that was reusing the statement, and hence closing the ResultSet...... but at least it gave me an excuse to refactor my classes.......
At least with my programming skills I should be good at debugging and anlysing problems.... ;)
Thanks again!!!

Similar Messages

  • Runtime Error that Seems to be Related to Dialog Boxes

    Although I am currently taking a college course in Java and my code is based on a couple of questions from my Java textbook, I would like to make it perfectly clear that this is NOT homework. This is self-assigned for studying purposes and my professor will probably never see this, let alone grade it. Regardless, I suspect this to be a configuration-related issue as I had no such problems running this program in a Vista machine on campus. Assuming I am right, there shouldn't be any issue with any of this community's policies as I won't need to receive any "answer" code to solve this issue.
    In NetBeans, my program compiles and works fine, but produces a couple of runtime errors. Any idea what could be going on here?
    Here's my code:
    import java.util.Scanner;       // Needed for console input.
    import javax.swing.JOptionPane; // Needed for dialog boxes.
       This program performs the actions requested in questions 2.35 and 2.36 in the textbook.
    * @author Dan
    public class Pages98To99 {
        public static void main(String[]args){
            // Asks the user for what answer he/she wants to see.
            System.out.println("Do you want to see the answer to 2.35 or 2.36?");
            Scanner keyboard = new Scanner(System.in);  // Creates a scanner object.
            double answer = keyboard.nextDouble();
            if (answer == 2.35){
                //2.35
                JOptionPane.showMessageDialog(null, "Greetings Earthling.");
                JOptionPane.showInputDialog("Enter a number.");}
            else if (answer == 2.36){
                //2.36
                String str = JOptionPane.showInputDialog("Please enter your age.");
                                                     // Gets age.
                int age = Integer.parseInt(str);}    /* Converts age from a string to an
                                                        integer.*/
            else
                JOptionPane.showMessageDialog(null, "Go to another program.");
            System.exit(0); // Ends the program
    }Here are the runtime errors produced by NetBeans:
    2010-02-15 21:23:54.659 java[3891] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0xf203, name = 'java.ServiceProvider' See /usr/include/servers/bootstrap_defs.h for the error codes. 2010-02-15 21:23:54.660 java[3891] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)The following is a troubleshooting terminal session using both the newer version of JDK courtesy of SoyLatte ( [http://landonf.bikemonkey.org/static/soylatte/|http://landonf.bikemonkey.org/static/soylatte/] ), which fails to produce a dialog box) as well as the older one supplied by Apple as part of my OS (which like in NetBeans works fine otherwise) as well.
    Last login: Sat Feb 20 00:12:55 on ttyp1
    Welcome to Darwin!
    Dans-MacBook:~ Dan$ cd /Volumes/Lexar/NetBeansProjects/MacBook-Made/test/;echo $PATH;java -version;javac -version;javac Pages98To99.java;java Pages98To99;PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin;java -version;javac -version;javac Pages98To99.java;java Pages98To99
    /sw/bin:/sw/sbin:/Applications/soylatte16-i386-1.0.3/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
    java version "1.6.0_03-p3"
    Java(TM) SE Runtime Environment (build 1.6.0_03-p3-landonf_19_aug_2008_14_55-b00)
    Java HotSpot(TM) Server VM (build 1.6.0_03-p3-landonf_19_aug_2008_14_55-b00, mixed mode)
    javac 1.6.0_03-p3
    Do you want to see the answer to 2.35 or 2.36?
    0
    Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:169)
            at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
            at sun.awt.X11.XToolkit.(XToolkit.java:89)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:169)
            at java.awt.Toolkit$2.run(Toolkit.java:836)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:828)
            at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:120)
            at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1556)
            at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:130)
            at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1591)
            at javax.swing.UIManager.setLookAndFeel(UIManager.java:537)
            at javax.swing.UIManager.setLookAndFeel(UIManager.java:577)
            at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1331)
            at javax.swing.UIManager.initialize(UIManager.java:1418)
            at javax.swing.UIManager.maybeInitialize(UIManager.java:1406)
            at javax.swing.UIManager.getDefaults(UIManager.java:656)
            at javax.swing.UIManager.getString(UIManager.java:802)
            at javax.swing.UIManager.getString(UIManager.java:819)
            at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:592)
            at Pages98To99.main(Pages98To99.java:29)
    java version "1.5.0_19"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306)
    Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing)
    javac 1.5.0_19
    javac: no source files
    Usage: javac 
    where possible options include:
      -g                         Generate all debugging info
      -g:none                    Generate no debugging info
      -g:{lines,vars,source}     Generate only some debugging info
      -nowarn                    Generate no warnings
      -verbose                   Output messages about what the compiler is doing
      -deprecation               Output source locations where deprecated APIs are used
      -classpath           Specify where to find user class files
      -cp                  Specify where to find user class files
      -sourcepath          Specify where to find input source files
      -bootclasspath       Override location of bootstrap class files
      -extdirs             Override location of installed extensions
      -endorseddirs        Override location of endorsed standards path
      -d              Specify where to place generated class files
      -encoding        Specify character encoding used by source files
      -source           Provide source compatibility with specified release
      -target           Generate class files for specific VM version
      -version                   Version information
      -help                      Print a synopsis of standard options
      -X                         Print a synopsis of nonstandard options
      -J                   Pass  directly to the runtime system
    Do you want to see the answer to 2.35 or 2.36?
    0
    2010-02-20 00:16:09.967 java[4618] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0xf103, name = 'java.ServiceProvider'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    2010-02-20 00:16:09.968 java[4618] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)
    Dans-MacBook:/Volumes/Lexar/NetBeansProjects/MacBook-Made/test Dan$ Edited by: Viewer07 on Mar 6, 2010 12:15 AM

    In terminal I've been using a JDK from Soylatte. I haven't tampered with the JDK that NetBeans uses.
    About NetBeans (from the menubar returns the following):
    Product Version: NetBeans IDE 6.8 (Build 200912041610)
    Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-138
    System: Mac OS X version 10.4.11 running on i386; MacRoman; en_US (nb)
    Userdir: /Users/Dan/.netbeans/6.8

  • Portal Runtime error during 1, 2, 3 Drag & Relate?

    Hi,
    I have successfully install SR1 version of the EP6.  I am attempting to complete the "1, 2, 3 Drag&Relate" weblog.  During one of the steps you have to go to User Administration > User Mapping to set the Everyone group user mapping.
    I am using sa id and the password I set during my SQL installation.
    As I click save button after entering the input I get this error:
    Portal Runtime Error
    An exception occurred while processing a request for:
    iView:
    pcd:portal_content/administratrator/super_admin/super_admin_role/com.sap.portal.user_administration/com.sap.portal.user_mapping/com.sap.portal.userMappingAdmin/com.sap.portal.userMappingAdmin
    Component Name: com.sap.portal.usermanagement.admin.UserMappingAdmin
    User Mapping not fully available..
    Exception id: 2:07_11/01/2005_0001_4582650
    See the details for the exception ID in the log file.
    Any ideas why this error is occuring?
    Thanks,
    Jin Bae

    Hi Jin,
    I think SAP note number 796540 will be helpfull to you.
    It was known User Management issue which is not connected to any Unification feature.
    Personal advice: try to restart Portal server.
    Regards,
    Julia

  • Runtime Error: CONVT_NO_NUMBER with MM01 BDC

    Hi All,
    I am creating Material Master using Call transaction Method for MM01 Tcode.
    I am passing the value called Standard Price (MBEW-STPRS) in the BDC.
    Standard price will be like 100.00 (Hundred Rupees)
    While passing this value, I am getting Runtime Error with the following details.
    Runtime Error: CONVT_NO_NUMBER
    Unable to interpret "/" as a number.
    258 ----
    259 *        Insert field                                                  *
    260 ----
    261 FORM BDC_FIELD USING FNAM FVAL.
    >>>   IF FVAL <> NODATA.
    263     CLEAR BDCDATA.
    264     BDCDATA-FNAM = FNAM.
    265     BDCDATA-FVAL = FVAL.
    266     APPEND BDCDATA.
    267   ENDIF.
    268 ENDFORM.
    How to resolve this type of error???
    Regards
    Pavan

    I have defined field STPRS as char(13 length) in the internal table as char.
    The field NODATA is having value ' \ ' in the debugging mode.
    The code mentioned in my above post is from the standard perform statement.
    Even if i provide value as "100" in the flat file, while reaching the statment
    perform bdc_field       using 'MBEW-STPRS'
    it_mm01-stprs.
    it shows as "100.00" in the debugger.
    Any idea....????
    Regards
    Pavan

  • Runtime error on BDC call transaction.

    Hi Everyone,
    I'm getting a run time error: "Runtime error SYNTAX_ERROR has occurred"
    Diagnosis
    Error texts from the batch input are not output
    Only a placeholder
    while debugging the error comes at the following line:
    CALL TRANSACTION 'DSZ46C_DSAL' USING bdcdata.
    can anyone help me out..
    Regards
    Rishika Bawa

    Hi ,
    There might be a problem in transaction but not in BDC. Please run the transaction, out of the program and try to post the data.
    Regards,
    Sai

  • Runtime error R6034 related to ITunes in Windows 7

    Hi,
    How do I sort out the problem of the runtime error message? This started after I downloaded the latest iTunes.
    Cheers

    iTunes RunTime Error R6034 > http://support.apple.com/kb/TS5376
    Also See Here  https://discussions.apple.com/docs/DOC-6562

  • Runtime error while executing rule

    Hello All,
      While executing the DTP for a cube, im facing the error as Runtime error while executing rule -> see long text .
      For this source is another Cube, where im loading the data from Cube to Cube.
    Error Description are as follows:-
    Error Location: Object Type    TRFN
    Error Location: Object Name    0T9SCR6Q4VWS1SOPNRRBOY1YD51XJ7PX
    Error Location: Operation Type ROUTINE
    Error Location: Operation Name
    Error Location: Operation ID   00034 0000
    Error Severity                 100
    Original Record: Segment       0001
    Original Record: Number        557
    and Also descripton is :-
    Diagnosis
        An error occurred while executing a transformation rule:
        The exact error message is:
        Division by zero
        The error was triggered at the following point in the program
        GP4H0CW3MLPOTR3E8Y93QZT2YHA 4476
    System Response
        Processing the data record has been terminated.
    Procedure
    The following additional information is included in the higher-level
    node of the monitor:
       Transformation ID
       Data record number of the source record
       Number and name of the rule which produced the error
    Let me know ur valuable suggestions on these error...
    thanks.

    Hello,
    I have checked all the transformation and End Routines.All are working fine.Yesterday i have loaded some data into it, but today its gettting errored out.
    Checked completely in the forum for threads related to this, but couldnt find proper thread which had solutions....
    thanks,
    srinivas.

  • Runtime error in activation BADI (CX_HRPA_INVALID_PARAMETER)

    In activation BADI i get a runtime error using 'HR_INFOTYPE_OPERATION'
    An exception occurred that is explained in detail below.                       
    The exception, which is assigned to class 'CX_HRPA_INVALID_PARAMETER', was not 
      caught in                                                                     
    procedure "RESOLVE_EXCEPTION" "(FORM)", nor was it propagated by a RAISING     
      clause.                                                                       
    Since the caller of the procedure could not have anticipated that the          
    exception would occur, the current program is terminated.                      
    The reason for the exception is:                                               
    Ongeldige parameter EXCEPTION waarde                                                                               
    The occurrence of the exception is closely related to the occurrence of        
    a previous exception "CX_HRPA_VIOLATED_PRECONDITION", which was raised in the  
      program "CL_HRPA_MASTERDATA_FACTORY====CP",                                   
    specifically in line 6 of the (include) program                                
      "CL_HRPA_MASTERDATA_FACTORY====CM004".                                        
    The cause of the exception was:                                                                               
    Niet aan voorwaarde voldaan                                                    
      DATA: personaldatakey   TYPE bapipakey.
      DATA: return            TYPE bapireturn1.
      DATA: l_p0025           TYPE p0025.
      DATA: l_citem           TYPE t71adm09-citem.
      DATA: l_resultaat(2)    TYPE n.
    l_p0025-pernr = p0759-pernr.
    Begindatum is begindatum binnengekomen IT0759 record - 1 jaar
        CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
          EXPORTING
            date      = p0759-begda
            days      = 0
            months    = 0
            signum    = '-'
            years     = 1
          IMPORTING
            calc_date = l_p0025-begda.
    Einddatum is 31 december van het jaar binnegkomen IT0759
        CONCATENATE: p0759-endda(04) '1231'  INTO l_p0025-endda.
        l_p0025-infty = '0025'.
        IF p0759-cpamt >= 100.
    *GENERATE ERROR
        ELSE.
          l_resultaat = p0759-cpamt.
         IF l_resultaat < 10.
           CONCATENATE '0' l_resultaat INTO l_p0025-krt01.
         ELSE.
         l_p0025-krt01 = l_resultaat.
         ENDIF.
    write data
          CLEAR: return, personaldatakey.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              infty         = '0025'
              number        = l_p0025-pernr
              validityend   = l_p0025-endda
              validitybegin = l_p0025-begda
              record        = l_p0025
              operation     = 'INS'
              nocommit      = ''
              tclas         = 'A'
            IMPORTING
              return        = return
              key           = personaldatakey
            EXCEPTIONS
              OTHERS        = 0.
          IF NOT return-number IS INITIAL.
    GENERATE ERROR
          ELSE.
            is_ok = 'X'.
            process_standard = 'X'.
          ENDIF.

    Hello Richard
    The exception is raised in method SET_FRAMEWORK of class CL_HRPA_MASTERDATA_FACTORY. Perhaps the SAP note mentioned in the coding (on ECC 6.0) may be useful:
    METHOD set_framework.
      IF a_is_initialized = true.
    *   This indicates some complex problem which often can be easily
    *   fixed. For details see NOTE 493984 (2003).
        RAISE EXCEPTION TYPE cx_hrpa_violated_precondition.  " line 6
      ELSE.
        CALL METHOD delayed_constructor
          EXPORTING
            read_infotype     = read_infotype
            masterdata_buffer = masterdata_buffer
            additional_buffer = additional_buffer
            legacy_mode       = legacy_mode.
      ENDIF.
    ENDMETHOD.
    Regards
      Uwe

  • Regarding runtime error DBIF_RSQL_SQL_ERROR and exception CX_SY_OPEN_SQL_DB

    Hi All,
    I am loading a COPA cube from a DSO.
    There are about 15million records to be loaded. every time i try loading the data, 1 or 2 Data packages gets stuck and finally it leads to a runtime error DBIF_RSQL_SQL_ERROR with exception CX_SY_OPEN_SQL_DB.
    When i checked in SM21 transaction code, i got the following message
    10:41:52 BTC  018 500 AMRUKV                     BY  O Deadlock occurred
    10:41:53 BTC  018 500 AMRUKV                     BY  4 Database error 60 at INS access to table /BIC/FCSDV
    10:41:53 BTC  018 500 AMRUKV                     BY  0 > ORA-00060: deadlock detected while waiting for resource
    10:41:54 BTC  018 500 AMRUKV                     AB  0 Run-time error "DBIF_RSQL_SQL_ERROR" occurred
    10:41:58 BTC  018 500 AMRUKV                     AB  1 > Short dump "080818 104154 s0173bel PB100 " generated
    10:41:58 BTC  018 500 AMRUKV                     D0  1 Transaction Canceled 00 671 ( DBIF_RSQL_SQL_ERROR 20080818104154s0173bel_PB1_00 AMRUKV 500 )
    In transaction code ST22 i got the following message:
    Runtime Errors         DBIF_RSQL_SQL_ERROR
    Exception              CX_SY_OPEN_SQL_DB
    Date and Time          18.08.2008 10:41:54
    Short text
         SQL error in the database when accessing a table.
    What happened?
         The database system detected a deadlock and avoided it by rolling back
         your transaction.
    What can you do?
         If possible (and necessary), repeat the last database transaction in the
          hope that locking the object will not result in another deadlock.
         Note which actions and input led to the error.
         For further help in handling the problem, contact your SAP administrator
         You can use the ABAP dump analysis transaction ST22 to view and manage
         termination messages, in particular for long term reference.
    Error analysis
         An exception occurred that is explained in detail below.
         The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
          in  procedure "WRITE_ICFACT" "(FORM)", nor was it propagated by a RAISING clause.
         Since the caller of the procedure could not have anticipated that the
         exception would occur, the current program is terminated.
         The reason for the exception is:
         The database system recognized that your last operation on the database
         would have led to a deadlock.
         Therefore, your transaction was rolled back
         to avoid this.
         ORACLE always terminates any transaction that would result in deadlock.
         The other transactions involved in this potential deadlock
         are not affected by the termination.
    How to correct the error
        Database error text........: "ORA-00060: deadlock detected while waiting for
         resource"
        Internal call code.........: "[RSQL/INSR//BIC/FCSDVD_C02 ]"
        Please check the entries in the system log (Transaction SM21).
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
        "GPD3UMZD6V4YAKZAIWAOCYLV07Y" or "GPD3UMZD6V4YAKZAIWAOCYLV07Y"
        "WRITE_ICFACT"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
        4. Details about the conditions under which the error occurred or which
        actions and input led to the error.
        The exception must either be prevented, caught within proedure
        "WRITE_ICFACT" "(FORM)", or its possible occurrence must be declared in the
        RAISING clause of the procedure.
        To prevent the exception, note the following:
    Can anybody suggest on what can be done?
    Thanks in Advance,
    Regards
    A.T

    Hi ,
    This is a table space issue....
    u will be getting a Dump...as DBIF_RSQL_SQL_ERROR check in ST22. in this DUMP if u scroll down u will find the table for which this is failing. Actually this is like some of the table related to the DSO is not having sufficient space to cary out the transaction. hence it is failing.
    U can also see in DB02--> Deadlock....u will see that there is a deadlock for this table. So find the table from ST22 and ask ur basis team to increase the space for this table....
    This can be solved only by increasing the space of the table...no other solution....ask help from ur basis team.
    Thanks
    Sandeep

  • Runtime error while activating LO Datasource in Source System

    Hi Gurus,
    I have followed the below steps to activate the SD related LO extractor in ECC
    1. RSA5 --> Select all the 2LIS_11,12&13 data source and activate
    2. LBWE --> Choose the 2LIS_11,12&13 data source and activate.
    Upon execution of the second step , the system return me the following runtime error
    Runtime Errors         DDIC_TYPE_INCONSISTENCY
    Date and Time          07.07.2011 10:14:29
    Short text
         Inconsistency in the Dictionary for the structure "MCQALSB".
    What happened?
         Error in the SAP kernel.
         The current ABAP "SAPLMCEX" program had to be terminated because the
         ABAP processor detected an internal system error.
    Error analysis
         There is an internal system error.
         eliminated with ABAP/4.
    Trigger Location of Runtime Error
         Program                                 SAPLMCEX
         Include                                 LMCEX$04
         Row                                     26
    With this error i cant proceed to activate any of the LO data source
    Please help
    Thanks in advance

    The table MCQALSB need to be activated in SE11 and LBWE works fine

  • Runtime Error:Invalid interruption of a database selection

    Hi,
    I have the above mentioned runtime error (short text of runtime error) while executuing FM with the runtime error DBIF_RSQL_INVALID_CURSOR and exception CX_SY_OPEN_SQL_DB.
    the source code  for the cause of the error is as follows:
    {       PERFORM fill_spras USING g_r_werks[]
                          CHANGING g_r_spras[].
          IF g_r_spras[] IS INITIAL.
      Please specify a value for Language.
            MESSAGE e003(yy_master_data).
            RAISE error_passed_to_mess_handler.
          ENDIF.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
          OPEN  CURSOR s_marc FOR SELECT *
          FROM  marc
          WHERE werks IN g_r_werks AND
                matnr IN g_r_matnr.
        ENDIF.                             "First data package
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
        FETCH NEXT CURSOR s_marc INTO TABLE gt_marc PACKAGE SIZE s_s_if-maxsize.
        IF sy-subrc = 0.
          DELETE ADJACENT DUPLICATES FROM gt_marc COMPARING matnr}
    the pointer shown in the runtime analysis is at if sy-subrc EQ 0.
    while debugging also it gives run time error when curson reaches the statement FETCH Next Cursor.
    Any ideas?

    Hi Simran,
    if for whatever reason the process is interrupted between SELECT and ENDSELECT (or, in other words, after OPEN CURSOR between subsequent FETCHes), you will get this error: The Database is exspected to run within one logical unit of work.
    If any screen is displayed waiting for user input (this also applies for debug screen), an implicit commit is is done that finishes the current LUW. The database will not like it....
    That's why you should do only minor things between SELECT and ENDSELECT (OPEN/CLOSE CURSOR).
    The E Message will also cause the end of the LUW.
    Regards,
    Clemens

  • Portal Runtime Error while accessing BW reports through portal

    Hi,
    We are facing portal runtime error(An exception occurred while processing your request. Please send the exception id to your portal administrator) while accessing BI reports through portal frequently.
    We are unable to trace the error in the 'default trace' log file and although refreshing the cache solves this issue, it is difficult to explain this to every user individually.
    After many such errors, We found one log entry, which we are now not yet sure if it is relevant. The error states:
    1.
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template &#39;&lt;System.Access.WAS.protocol&gt;://&lt;System.Access.WAS.hostname&gt;&lt;BWLauncherComponent[PORTAL_URL]&gt;;jsessionid=&lt;Request.JSessionID&gt;?sap-ext-sid=&lt;ID[url_ENCODE]&gt;&amp;Language=&lt;Request.Language&gt;&amp;theme=&lt;LAF.Theme[url_ENCODE]&gt;&amp;sap-lafversions=&lt;LAF.AllVersions[url_ENCODE]&gt;&amp;&lt;Authentication&gt;&amp;&lt;Report&gt;&amp;&lt;BusinessParameters&gt;&#39;; the problem occured at position 230. Cannot process expression &lt;LAF.AllVersions&gt;
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContentPass(AbstractIntegratorComponent.java:125)
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContent(AbstractIntegratorComponent.java:98)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:540)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:423)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Content pass of Application Integrator failed.
    Component Name:       'com.sap.portal.appintegrator.sap.BWReport',
    Context Name (iView):  <iview name location>
    Top Layer:            'BWReport/TopLayer',
    Producer ID (FPN):    'null',
    System Alias:         'Sap_bw',
    2.
    The cluster server element 111111 is not added in the EP cluster context,
       because prtbridge on 111111 is stopped  or not yet started (maybe the server is starting or shuting down).
    Please suggest us if the above logs are related to the issue or not
    Kindly provide us any inputs or solutions.

    Hi All,
    We are also having similiar type of error in our portal. 
    com.sap.engine.services.prtbridge##com.sap.engine.services.prtbridge
    #######SAPEngine_System_Thread[impl:5]_13##0#0#Error#1#/System/Server#Plain###
    The cluster server element 125898350 is not added in the EP cluster context,
       because prtbridge on 125898350 is stopped  or not yet started
    (maybe the server is starting or shuting down).
    We have implemented the FPN using RRA.
    This error comes only for few users when they navigate in Portal. After clearing the cache, it works for all. Kindly help us to resolve this issue.
    Regards,
    Venkatesh

  • Runtime error while doing FB08

    while doing FB08 the system is creating a dump.
    Runtime errors         SYNTAX_ERROR                                                      
           Occurred on     05.08.2008 at   12:43:14                                                                               
    Syntax error in program "SAPLFMREAS ".                                                                               
    What happened?                                                                               
    The following syntax error occurred in the program SAPLFMREAS :                          
    "The obligatory parameter "C_GSBER" had no value assigned to it."                        
    Error in ABAP application program.                                                                               
    The current ABAP program "SAPLFMRI_CORE" had to be terminated because one of             
    the                                                                               
    statements could not be executed.                                                                               
    This is probably due to an error in the ABAP program.                                                                               
    What can you do?                                                                               
    Please eliminate the error by performing a syntax check                                  
    (or an extended program check) on the program "SAPLFMREAS ".                             
    You can also perform the syntax check from the ABAP/4 Editor.                            
    If the problem persists, proceed as follows:                                             
    Print out the error message (using the "Print" function)                                 
    and make a note of the actions and input that 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.                                                                               
    Error analysis
    The following syntax error was found in the program SAPLFMREAS :
    "The obligatory parameter "C_GSBER" had no value assigned to it."
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
       To obtain this, call the system log with Transaction SM21
       and select the "Print" function to print out the relevant
       part.
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, you can either use the "PRINT" command in the editor or
       print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.

    Hi,
    Run time error occurs when certain info objects are activated or if the patches for a certain standard program or tcode has to be applied. Please refer to the SAP Notes for the error mentioned by you and apply the related support package for the same. You can co ordinate wiht your Basis as well as Abap consultant to implement the correction.
    Hope this helps
    regards,
    radhika

  • Runtime Error - POSTING_ILLEGAL_STATEMENT

    Hi friends,
    Pls advise how to resolve this runtime error issue mentioned below...which Im getting in PO creation and at the time of releasing the same but getting the error as background express document.
    Note(FYI):No enhancement has been developed and its a normal process only.
    ************Runtime error
    Report outputRuntime Errors         POSTING_ILLEGAL_STATEMENT
    Statement "CALL SCREEN" is not allowed in this form.
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "SAPLKKBL" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    Error analysis
    There is probably an error in the program
    "SAPLKKBL".
    This program is triggered in the update task. There, the
    following ABAP/4 statements are not allowed: 
    -  CALL SCREEN
    -  CALL DIALOG 
    -  CALL TRANSACTION 
    -  SUBMIT
    How to correct the error
    Probably the only way to eliminate the error is to correct the program
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "POSTING_ILLEGAL_STATEMENT" " "
    "SAPLKKBL" or "LKKBLU01" 
    "K_KKB_LIST_DISPLAY" 
    Information on where terminated 
    Termination occurred in the ABAP program "SAPLKKBL" - in "K_KKB_LIST_DISPLAY".
    The main program was "RSM13000 ".
    In the source code you have the termination point in line 441
    of the (Include) program "LKKBLU01".
    The program "SAPLKKBL" was started in the update system.
    438  if gt_stack-is_layout-detail_only is initial.   
    439    if gt_stack-is_layout-suppress_dynpro is initial.
    440      if i_screen_start_line eq 0.
    >>>>>        call screen 500. 
    442        sy-pagno = g_sypagno.  "wegen Dynpro 200 Spoolinfo bei F8+Druck
    443      else. 
    Pls reply.
    thanks & regards
    sankar.
    Edited by: sankar babu on May 23, 2008 12:04 PM

    Hi All,
    The error is related to the ABAP coding of the particular program. The program related to sales and billing.
    The error you get must be the user own output screen.
    Please refer to the SAP Note for further analysis and solution.
    http://service.sap.com/sap/support/notes/1472777

  • Portal Runtime Error : An exception occurred while processing a request

    Hello friends,
    After upgradation of my portal to the following patch level, SAP J2EE 6.20:
    <b>Portal Version :</b> EP 6 SP 2 patch 29 hotfix 0
    <b>Content Mgmt and Collaboration  version</b> : 6 SP2 patch 5
    i faced many performance related issues. Portal seems to be <b>very slow</b>. After logging in, most of the time I get 2 errors:
    <b>Either</b>
    <b>1></b> Iview remains blank.
    <b>Or
    2></b> Portal Runtime Error : An exception occurred while processing a request. Portal Runtime exception occured. Please check the System Log.
    But when I refresh that particular iview, it works fine.
    I went through the portal.log file (/usr/sap/PEP6/j2ee/j2ee_00/cluster/server/managers/log/portal/logs). And found <b>the root cause of most of the exceptions as "com.inqmy.services.servlets_jsp.server.ServletNotFoundException: The requested servlet ( portal ) not found."</b>Aug 18, 2005 6:07:42 PM # PRT-Async 2          Fatal           Exception ID:06:07_18/08/05_0669
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : pcd:portal_content/ACCContent/ACCContent.Roles/Company/R.Employee/W.MyWork/P.MyWork.DesktopTools/I.Contacts
    Component class : com.sapportals.portal.prt.pom.RootComponentNode
    User : tempuser
            at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:853)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:311)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
            at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:363)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:376)
            at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
            at java.lang.Thread.run(Thread.java:479)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: PortalComponentException
            at com.sapportals.portal.prt.pom.RootComponentNode.service(RootComponentNode.java:153)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
            at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:363)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:376)
            at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
            at java.lang.Thread.run(Thread.java:479)
    Caused by: com.inqmy.services.servlets_jsp.server.ServletNotFoundException: The requested servlet ( portal ) not found.
            at com.inqmy.services.servlets_jsp.server.ServletContextFacade.loadServletLocal(ServletContextFacade.java:3660)
            at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:81)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.inqmy.services.servlets_jsp.server.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:275)
            at com.inqmy.services.servlets_jsp.server.RequestDispatcherImpl.include(RequestDispatcherImpl.java:384)
            at com.sapportals.portal.prt.pom.RootComponentNode.service(RootComponentNode.java:144)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
            at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:363)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:376)
            at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
            at java.lang.Thread.run(Thread.java:479)
    <b>Help needed.(</b>as i am helpless now.)
    Regards,
    Nilz

    Anthony,
      I had check it. It was correct. But the thing when I saw in the component Inspector of portal, my iview did not appear.
    I created like this
             project-> rightclick->   export-> par ->selecting project-> givint protal password-> and finish.
    The NW didn't give any error, but the par file didn't appear in the portal componet Inspect.
    but the par file is  created in the NW studio Navigation bar.
      Let me know any help regarding this
    thanks
    venkat

Maybe you are looking for

  • Please help - trojan/rootkit in my auto update of latest flash player?

    Hello I would be very grateful if anyone is able to advise me about what to do. My problem is that yesterday, after starting my computer, I was prompted to update my flash player version on startup (like is usual). I told it to do so and it opened my

  • How to sort a column directly after data is filled into the grid?

    Hello, I have a unbound field X, which is filled on fly in the RowLoaded2 column. If I click on the column header, I am able to sort the column. I want to sort the column directly, but all attempts have failed. I have tried to call in <anchor>_OnUpda

  • Please help cant install iTunes 7.7

    i was using the previous version and just started off an update when prompted for iTunes 7.7, but the update then failed (sadly it didnt really give any info about the failure). I have tried downlaoding and installing manualy but still no joy the ins

  • Wired Port Authentication Questions

    Hi all, I have been reading article http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_55_se/configuration/guide/sw8021x.html#wp1430161 and I am trying to get my head around the type of port authentication Methods & Modes

  • System 9 on Leopard

    After installation of Leopard I can no longer access any System 9 programs. How can I get them back?