ORA-01002 run-time error for help

Hi, All:
I modified little in Sample10.pc of PRO*C sample code to fit both NT and
Linux using 8i version precompiler, with VC++ and GCC Compiler respectively.
All process were fine when they connected to a DB Server(8i version), but
when they connected to the other Server(8 version), the error : ORA-01002
(Fetch out of sequence) was always issued at run-time. I checked the error
message and found that the program was stuck on the "PREPARE" description. I
have spent much more time debugging, but it still didn't work. Could you
help me? I'm so preciated.
Best regards,
Yen-Gou Pan
null

Hello,
This error comes when  there is an OpenSQL statement that tries to insert a record into a database table that is already existing.
You need to implement  SAP Note 196113 and 1041894 along with technical consultant to help and overcome the issue.
Br,
Tushar

Similar Messages

  • Run-time ERROR! Help Please...

    Hello everyone,
    I got a run time error for my very short program please anyone help me!!!
    My source code is
    //LKOracleDB.java
    public class LKOracleDB
         public static void main()
    I set path to jdk14b2\bin ,
    and I set classpath to jdk14b2\lib
    I compiled it with no error by using
    =>javac LKOracleDB.java
    then when I tried to run it with
    =>java LKOracleDB
    It show this error
    =>Exception in thread "main" java.lang.NoClassDefFoundError: LKOracleDB
    .... What could be the problem? Please help..
    Thanks in advance,
    lenk....

    Is your source file in a package?No, my source file is not in any package what u see is all code in my .java file. Do I need to put it in package? If so please tell me a little bit more.
    Are you running the java command from the same >directory that you compiled the code from?Yes, I recheck it.
    Your main() should be (String[] args) or else it is not >considered a valid main for the JVM to start. I change it but It still not work...?
    Thanks for your opinion
    lenk

  • Getting run time error for multiple counter plan

    Hi Friends,
    Its very critical issue,wherein i am getting run time error for multiple counter plan.
    Explanation:While try to change the Call horizon or scheduling period of the counter based plan through IP42 or IP15,systam allowing me to change the data but while saving also i am getting "Maintenance plan has changed" message and once come to the back of the transaction instantly i am getting pop up window saying that "Express document get terminated".However we have been maintaining copy of this data in another client wherein we are not getting any Run time error.
    Please find the screen shots for your reference and please let me know how to fix the issue.
    Regards,
    Srinika

    Hi,
         Please check reason for update termination in Transaction code SM13.

  • Run time error for program: RPCALCU0_CE

    Hi Abapers,
    When we execute the standard program: RPCALCU0_CE from SE38. Below run time error is getting trigerred before selection screen is displayed. Below are the run time error details -
    Runtime Error          UNCAUGHT_EXCEPTION
    Exception              CX_HRPA_INVALID_PARAMETER
           Occurred on     08/04/2010 at   01:22:17
    What happened?
    The exception 'CX_HRPA_INVALID_PARAMETER' was raised but was not caught at any
    stage in the
    call hierarchy.
    Since exceptions represent error situations, and since the system could
    not react adequately to this error, the current program,
    'CL_HRPA_RESOLVE_EXCEPTION=====CP', had to
    be terminated.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_HRPA_INVALID_PARAMETER',
    was neither
    caught nor passed along using a RAISING clause, in the procedure
    "RESOLVE_EXCEPTION" "(FORM)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    Invalid parameter EXCEPTION, value
    The occurrence of the exception is closely linked to the occurrence of a
    previous exception, "CX_HRPA_VIOLATED_PRECONDITION", which occurred in the
    program "CL_HRPA_MASTERDATA_FACTORY====CP" -
    specifically in line 6 of the (Include) program
    "CL_HRPA_MASTERDATA_FACTORY====CM004".
    The reason for the exception was:
    Precondition violated
    Please suggest the solution to overcome this.

    Hey,
        I could not figure your exact problem. But you can go to the transaction ST22 to take a better look at the error that you got. This gives a detailed explanation of the exact error that you are getting. The moment you enter this transaction, you will see the number of runtime errors you got today. Just click on 'Today'. This will give you the list of runtime errors. Click on the relevent error and you can get a much more detailed explanation of the same.
    Hope this helps.

  • Run-time error for the chart  - TBUtilities

    Hello,
    I'm trying to create a report template with the BI Publisher desktop plugin. The load of the xml file, the Table creation and PDF export work fine. When I want to add a chart to the template (Insert -> Chart...), I have a Microsoft Visual Basic Error:
    Run-Time error '-2147024894(80070002)':
    File or assembly name TBUtilities, or one of its dependencies, was not found.
    I use Word 2000 (9.0.8950 - SP3), .Net framework 2.0 and Java JRE 1.5.0_05.
    I checked the other topic about this type of error but I didn't find any solutions...
    Is there a patch to fix this error ???
    Thanks

    Has anybody got an answer for this one, as it has just happened to me
    Gus

  • Run time error for  program /MRSS/SAPLRSG_PM_ORDER

    Hi All,
    When I am confirming the service order through transaction code IW41, I am getting a run time error which says " Error in Program  /MRSS/SAPLRSG_PM_ORDER". In this client MRS is active.
    Some details of Runtime error is as follows.
    Trigger Location of Runtime Error
        Program                                 /MRSS/SAPLRSG_PM_ORDER
        Include                                 /MRSS/LRSG_PM_ORDERU03
        Row                                     1.224
        Module type                             (FUNCTION)
        Module Name                             /MRSS/RSG_PM_ORDER_PUSH_TO_MRS
    Source Code Extract
    Line  SourceCde
    1194
    1195     CLEAR: lv_failed, lt_messages.
    1196
    1197     lt_assignment_rfc[] = lt_assignment[].
    1198     CALL FUNCTION '/MRSS/RSG_MAINTAIN_MRS'
    1199       EXPORTING
    1200         it_dem_h          = lt_dem_h
    1201         it_adm            = lt_adm
    1202         it_plr            = lt_plr
    1203         it_plrs           = lt_plrs
    1204         it_info           = lt_info
    1205         it_tool           = lt_tool
    1206         it_relat          = lt_rel_dem
    1207         it_qualif         = lt_qualif_dem
    1208         it_assignment     = lt_assignment_rfc
    1209 *        iv_no_save        = no_save
    1210         iv_no_save        = true
    1211         iv_no_commit      = no_commit
    1212         it_status         = lt_status_abst
    1213         it_partner        = lt_partner_ext
    1214         it_address        = lt_address
    1215         it_operations     = lt_opera_activity
    1216         iv_no_authority_check = lv_no_authority_check
    1217         it_split_upd_number = lt_split_upd_number
    1218       IMPORTING
    1219         et_demands        = lt_demand_mrs
    1220         ev_failed         = lv_failed
    1221         et_messages       = lt_messages.
    1222
    1223     IF lv_failed = true.
    >>>>>       MESSAGE x000(/mrss/sge).
    1225     ENDIF.
    1226

    Hi,
    Can you try with T-code /n/MRSS/WFM_HR.
    Make sure to open only one SAP session to run this.
    Ask yor basis admin to look in to error details ,related SM21 logs,cancel jobs, Job logs and report analysis.
    Regards
    Nagaraju

  • Run-time errors--need help

    Hi everyone,
    I'd greatly appreciate some help with this java program...here's the problem:
    Create a class Person that does the following:
    1. Set the Last Name only
    2. Set the First Name only
    3. Set the Middle Name only
    4. Gets the First Name
    5. Gets the Middle Name
    6. Gets the Last Name
    7. Check whether a given last name is the same as the last name of this person.
    8. Check whether a given last name is the same as the first name of this person.
    9. Check whether a given first name is the same as the middle name of this person.
    10. A method called equals that returns true if two objects contains the same first, middle, and last name
    11. A method called makeCopy that copies the instance variables of a Person object into another Person object.
    12. A method called getCopy that creates and returns the address of the object, which is a copy of another person object.
    13. A method for a copy constructor.
    14. A toString method to print out the name in the form (First Middle Last)
    15. Write the definitions of the methods of the class Person to implement the operations for this class.
    16. Write a test program to test the above.
    This is what I have but I think I'm missing some of the above...also, my if...else statements aren't running the way I want.. '
    public class Person {
    private String firstName;
    private String lastName;
    private String middleName;
    public Person (String first, String middle, String last) {
    firstName = first;
    lastName = last;
    middleName = middle;
    public Person() {
    firstName = "";
    lastName = "";
    middleName = "";
    public String toString() {
    return (firstName + " " + middleName + " " + lastName);
    public void setFirstName(String first) {
    firstName = first;
    public void setMiddleName(String middle) {
    middleName = middle;
    public void setLastName(String last) {
    lastName = last;
    public String getFirstName() {
    return firstName;
    public String getMiddleName() {
    return middleName;
    public String getLastName() {
    return lastName;
    public boolean equals(Person otherPerson) {
    return (lastName.equals(otherPerson.lastName) && firstName.equals(otherPerson.firstName));
    public void makeCopy(Person otherPerson) {      
    lastName = otherPerson.lastName;
    middleName = otherPerson.middleName;
    firstName = otherPerson.firstName;
    public Person getCopy() {
    Person temp = new Person();
    temp.firstName = firstName;
    temp.lastName = lastName;
    temp.middleName = middleName;
    return temp;
    public Person(Person otherPerson) {
    firstName = otherPerson.firstName;
    middleName = otherPerson.middleName;
    lastName = otherPerson.lastName;
    public void printName() {
    System.out.println(firstName + "," + middleName + "," + lastName);
    } and the test program follows
    import java.util.Scanner;
    public class TestProgPerson {
       static Scanner console = new Scanner(System.in);
       public static void main(String[] args) {
          Person myName = new Person("Bill", "Andrew", "Johnson");
          Person yourName = new Person();
          String firstName;
          String middleName;
          String lastName;
          System.out.print("My Name: ");
          myName.printName();
          System.out.println();
          System.out.print("Your Name: ");
          yourName.printName();
          System.out.println();
          System.out.print("Enter your first, middle, and last name: ");
          firstName = console.next();
          middleName = console.next();
          lastName = console.next();
          System.out.println();
          yourName.setName(firstName, middleName, lastName);
          if (myName.equals(yourName))
          System.out.println("Both people are the same.");
          else
          System.out.println("The two people are not the same.");
          myName.setFirstName(firstName);
          myName.setMiddleName(middleName);
          myName.setLastName(lastName);
          System.out.print("My new name: ");
          myName.printName();
          System.out.println();
          yourName.makeCopy(myName);
          System.out.print("After copying myName into yourName, yourName: ");
          yourName.printName();
          System.out.println();
    }

    public class Person {
         private String firstName;
         private String lastName;
         private String middleName;
         public Person (String first, String middle, String last) {
              firstName = first;
              middleName = middle;
              lastName = last;
         public Person() {
              firstName = "";
              lastName = "";
              middleName = "";
         public String toString() {
              return (firstName + " " + middleName + " " + lastName);
         public void setName(String first, String middle, String last) {
              firstName = first;
              middleName = middle;
              lastName = last;
         public void setFirstName(String first) {
              firstName = first;
         public void setMiddleName(String middle) {
              middleName = middle;
         public void setLastName(String last) {
              lastName = last;
         public String getFirstName() {
              return firstName;
         public String getMiddleName() {
              return middleName;
         public String getLastName() {
              return lastName;
         public boolean equals(Person otherPerson) {
              return (firstName == otherPerson.firstName && middleName == otherPerson.middleName &&
                             lastName == otherPerson.lastName);
         public void makeCopy(Person otherPerson) {
              firstName = otherPerson.firstName;
              middleName = otherPerson.middleName;
              lastName = otherPerson.lastName;
         public Person getCopy() {
              Person temp = new Person();
              temp.firstName = firstName;
              temp.lastName = lastName;
              temp.middleName = middleName;
              return temp;
         public Person(Person otherPerson) {
              firstName = otherPerson.firstName;
              middleName = otherPerson.middleName;
              lastName = otherPerson.lastName;
         public void printName() {
              System.out.println(firstName + " " + middleName + " " + lastName);
    //Test Program for the above.
    import java.util.Scanner;
    public class TestProgPerson {
         static Scanner console = new Scanner(System.in);
         public static void main(String[] args) {
              Person myName = new Person("William", "Andrew", "Johnson");
              Person yourName = new Person();
              String firstName;
              String middleName;
              String lastName;
              System.out.print("My Name: ");
              myName.printName();
              System.out.println();
              System.out.print("Your Name: ");
              yourName.printName();
              System.out.println();
              System.out.print("Enter your first, middle, and last name: ");
              firstName = console.next();
              middleName = console.next();
              lastName = console.next();
              System.out.println();
              yourName.setName(firstName, middleName, lastName);
              if (myName.equals(yourName))
              System.out.println("Both people are the same.");
              else
              System.out.println("The two people are not the same.");
              myName.setFirstName(firstName);
              myName.setMiddleName(middleName);
              myName.setLastName(lastName);
              System.out.print("My new name: ");
              myName.printName();
              System.out.println();
              yourName.makeCopy(myName);
              System.out.print("After copying myName into yourName, yourName: ");
              yourName.printName();
              System.out.println();
    }

  • Loading Itunes on Windows so that I can get my Iphone synch etc. But I keep getting a run time error for the Microsoft  Visual C   Run time Library

    In loading Itunes down on my PC using Vitsa I keep geeting an error message saying that a program is trying to load: Microsoft Visual C++ Runtime Library and ITunes will not complete the down load. Any Suggestions

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Forms9i run time error - Please help

    Hi friends,
    I have a problem , when I use the url like
    http://ram.sembcorpenc.com/....... Its go to search page, but if you the
    http://ip-address:8889/................ Its give error FRM-91201,
    OC4J – Error , Unable to communicate with runtime process .
    Please help if possible, very soon …
    Thank you,
    Selvam

    Hi,
    why is it using port 80 in the first request and port 8889 in teh second? Looks like the first being from OracleAs and the second from Oracle Developer Suite. Did you start the HTTP listener for the developer suite contained OC4J?
    Frank

  • Run Time Errors, Please Help.

    I am getting errors of:
    Exception in thread "main" java.lang.NumberFormatException: feet
    at java.lang.FloatingDecimal.readJavaFormatString(Unknown Source)
    at java.lang.Double.parseDouble(Unknown Source)
    at SquareDriver.main(SquareDriver.java:29)
    her is my code:
    import cs1.Keyboard;
    import java.util.*;
    import square;
    import java.lang.*;
    public class SquareDriver
         public static void main (String [] args)
              double dblLength = 0;
              String strUnits;
              StringTokenizer Tokenizer;
              final String SENTINEL = "0";
              String strPart1= null;
         String strPart2 = null;
              System.out.println("Enter a Side Length Of a Sguare");
              strUnits = Keyboard.readString( );
              Tokenizer = new StringTokenizer (strUnits);
         while (!strUnits.equals(SENTINEL))
              if (Tokenizer.hasMoreTokens())
              { strPart1 = Tokenizer.nextToken();
              dblLength=Double.parseDouble(strPart1);
              if (Tokenizer.hasMoreTokens())
              {strPart2=Tokenizer.nextToken();
    square mysquare = new square(dblLength,strPart2);
    System.out.println(mysquare);
    }//end of main method;
    }// end of class;
    public class square
         public double dblPart1;
    public String strPart2;
    public double dblArea;
    public double Perimeter;
         public square (double Length, String Units)
              dblPart1 = Length;
              strPart2 = new String(Units);
         public double dblArea()
         {dblArea = (dblPart1 * dblPart1);
           return dblArea;
         public double Perimeter()
         {Perimeter = (dblPart1 * 4);
          return Perimeter;
         public String toString()
         String output= new String("");
              String tab = "\t";
              String newline ="\n";
              output+= "Area" tabdblArea()+strPart2+ "Squared";
              output+=newline;
              output+= "Perimeter"+tab+Perimeter()+strPart2 ;
              output+=newline;
              return output;
    } // end of class square

    You are trying to parse a string "feet" to a number (double).

  • Urgent help on this run time error   LOAD_TYPEPOOL_VERSION_MISMATCH

    hi i got this run time error for a stamdard transaction..can anyboby throw some light?
    LOAD_TYPEPOOL_VERSION_MISMATCH
    02.08.2007 21:23:11
    ShrtText
    Type group was changed at runtime.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLCOBADI" 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?
    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.
    is especially useful if you want to keep a particular message.
    The system attempted to correct the error
    automatically, so you should try to restart
    the program.
    The type group "COBAI" was changed while the program was running, so that an
    inconsistence occurred at runtime.
    The type group "COBAI" has the version 20070627153024.
    The program "%_CCOBAI" uses the version 20070802190113.
    The internal session was started at 20070802212309.

    Dear Ramachandran Rakhunathan  ,
    this special error happens, when you change a table, e.g. table AUFM. Please do not change central data structures when the system is running. Please take a look at SAP Note <a href="https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=162991">162991</a> for further information.
    Thanks,
    Hannes Kuehnemund
    SAP LinuxLab

  • Run time Error while Creating Expense request

    Dear Friends ,
    In   E-Payment ( Expense  Claim )   creation , While clicking on Enter Receipts application is going to run time error for only one user.    
    Run time Error Info :
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    Exception              CX_SY_REF_IS_INITIAL
    Short text
         Access via 'NULL' object reference not possible.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "CL_WDR_P13N_UTILITIES=========CP" had to be
          terminated because it has
         come across a statement that unfortunately cannot be executed.
    Error analysis  
        An exception occurred that is explained in detail below.
       The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
        caught in
       procedure "PRESET" "(METHOD)", 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:
       You attempted to use a 'NULL' object reference (points to 'nothing')
       access a component (variable: "LR_CONTEXT_ELEMENT").
       An object reference must point to an object (an instance of a class)
       before it can be used to access components.
       Either the reference was never set or it was set to 'NULL' using the
       CLEAR statement.
    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:
       "OBJECTS_OBJREF_NOT_ASSIGNED" "CX_SY_REF_IS_INITIAL"
       "CL_WDR_P13N_UTILITIES=========CP" or "CL_WDR_P13N_UTILITIES=========CM002"
       "PRESET"
    Information on where terminated
        Termination occurred in the ABAP program "CL_WDR_P13N_UTILITIES=========CP" -
         in "PRESET".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 60
        of the (Include) program "CL_WDR_P13N_UTILITIES=========CM002".
        The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
        procedure "PRESET" "(METHOD)", but it was neither handled locally nor declared
        in the RAISING clause of its signature.
        The procedure is in program "CL_WDR_P13N_UTILITIES=========CP "; its source
         code begins in line
        1 of the (Include program "CL_WDR_P13N_UTILITIES=========CM002 ".
    Regards,
    Suresh .

    Hi Agrawal
    As you are getting run-time error after entering the sold to party and material and the error is in SAPLV61Z ,
    close the session for sometime and open again and then create sales order and then enter sold to party and material and then check wheather you are getting or not. If you are still facing the problem then take the help of the ABAP & BASIS consultant's.
    Regards
    Srinath

  • Run time error while closing the CRM Order using BAPI

    Hi Experts,
    Need your invaluable suggestions here.Apologies for the lengthy mail, intention is to give clear idea of the issue.
    I am facing an issue while closing the CRM orders. According to our business process, when an issue is solved we will keep the order in resolved status only. We will not directly close the order from the CRM tool, instead we have created a custom program for the same purpose.
    For the custom program we will give input as the order number and execute it, this will close the order.
    Here close the order means assigning it to Close status as well assign the reason code.
    We have created some reason codes for closed status.
    So when the program is run the Order moves from resolved status to closed status along with reason code.
    But of late we are facing some problems with this program, it is giving run time error for some CRM orders.
    Run time error message : The ABAP/4 Open SQL array insert results in duplicate database records.
    The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in procedure "CRM_SERVICE_OS_UPD_OST_DU" "(FUNCTION)", nor was it propagated by a RAISING clause.
    Please find my code which have used in the custom program
    Closing the resolved SOs in the system
        CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN_OW'
            EXPORTING
              objnr                     = iv_guid
              user_status          = lc_status_closed
           EXCEPTIONS
             object_not_found          = 1
             status_inconsistent       = 2
             status_not_allowed       = 3
             OTHERS                        = 4.
        IF sy-subrc <> 0.
          WRITE :  'Error at maintaining status'.
        ENDIF.
    Set reason code
    build lt_subject
        ls_subject-ref_guid = iv_guid.
        ls_subject-katalogart = 'A2'.
        ls_subject-codegruppe = 'ZR000003'.
        ls_subject-code       = 'ZR33'.                      " Reason code
        ls_subject-mode       = 'A'.
        APPEND ls_subject TO lt_subject.
    build lt_ossset
        ls_osset-ref_guid        = iv_guid.
        ls_osset-subject_profile = 'ZREASON03'.
        ls_osset-profile_type    = 'G'.
        ls_osset-subject         = lt_subject.
        APPEND ls_osset TO lt_osset.
    build lt_service_os
        ls_service_os-ref_guid  = iv_guid.
        ls_service_os-ref_kind  = 'A'.
        ls_service_os-osset     = lt_osset.
        APPEND ls_service_os TO lt_service_os.
    build lt_input_fields
        REFRESH: lt_input_fields, lt_field_names.
        CLEAR  : ls_input_fields, ls_field_names.
        ls_field_names-fieldname    = 'CODE'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'CODEGRUPPE'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'KATALOGART'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'SERVICE_PROFILE'.
        APPEND ls_field_names TO lt_field_names.
        ls_input_fields-ref_guid    = iv_guid.
        ls_input_fields-ref_kind    = 'A'.
        ls_input_fields-objectname  = 'SERVICE_OS'.
        ls_input_fields-field_names = lt_field_names.
        APPEND ls_input_fields TO lt_input_fields.
         CALL FUNCTION 'CRM_ORDER_MAINTAIN'
          EXPORTING
            it_service_os     = lt_service_os
          CHANGING
            ct_input_fields   = lt_input_fields
          EXCEPTIONS
            error_occurred    = 1
            document_locked   = 2
            no_change_allowed = 3
            no_authority      = 4
            OTHERS            = 5.
        IF sy-subrc <> 0.
          WRITE :  'Error at maintaining reason'.
        ENDIF.
        CALL FUNCTION 'CRM_ORDER_SAVE'
          EXPORTING
            it_objects_to_save   = lt_header_guid
            iv_update_task_local = lv_update_task_local
          IMPORTING
            et_saved_objects     = lt_saved_objects
          EXCEPTIONS
            document_not_saved   = 1
            OTHERS               = 2.
        IF sy-subrc <> 0.
          WRITE : 'Error at saving'.
        ELSE.
          WRITE : 'Successfully Closed'.
          COMMIT WORK AND WAIT.
        ENDIF.
    Run time error is coming at COMMIT WORK AND WAIT statement.
    Please let me know any corrections are required in the above program.
    When I analyzed the run time error I have found that it trying to insert the record in CRMD_SRV_OSSET for that CRM order, but already one record is present in the table for the same CRM order number.
    For most of the CRM orders there is no entry in this table so they are closing successfully but for a few orders for which there is an entry we are getting the above run time error.
    There is nothing wrong with the orders which have an entry already in the table CRMD_SRV_OSSET, I need to close these kind of orders with out run time error.
    Kindly provide your feedback.

    Hi Dinakar,
    You posted this in APO PPDS forum. This question should go to PP forum where someone could answer it.
    Please close this thread and open a new thread in PP forum so that you could get help quickly from the relevant experts.
    Regards - Pawan

  • Run Time error in MIGO Posting

    Dear Friends,
    While Posting MIGO against a import PO system throws run time error for a particular plant. I have created 2 plants for the same company code. But first plant does not have any problem. Pl help me and let me know what may be the cause and its solution. No conditions maintained for the Vendor. After PO directly user creating MIGO.
    Regards,
    Ashok

    Pl find the Run Time error of Exception while posting. Before posting Document was OK while checking.
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          11.01.2011 10:34:16
    Short text
         The current application triggered a termination with a short dump.
    What happened?
         The current application program detected a situation which really
         should not occur. Therefore, a termination with a short dump was
         triggered on purpose by the key word MESSAGE (type X).
    Error analysis
         Short text of error message:
         Operation QM14 not available for this lot
         Long text of error message:
          Diagnosis
              The desired operation does not fit the inspection lot (object
              type).
          System Response
              The operation is not permitted and can therefore not be carried
              out.
          Procedure
         Technical information about the message:
         Message class....... "QV"
         Number.............. 224
         Variable 1.......... "QM14"
         Variable 2.......... " "
         Variable 3.......... " "
         Variable 4.......... " "
    Trigger Location of Runtime Error
        Program                                 SAPLMBWL
        Include                                 LMBWLU21
        Row                                     62
        Module type                             (FUNCTION)
        Module Name                             MB_POST_GOODS_MOVEMENT
    Source Code Extract
    Line  SourceCde
       32 *    BKPF as well. There is no other way to forward XBLNR to FI as not
       33 *    every document is posted by MB_CREATE -> a new function module in
       34 *    MBWL for transferring the information, called by FI, meant to load
       35 *    the complete function group for all MBxx postings when this isn't
       36 *    required (Performance). Would be the better way to transport the
       37 *    information after switching off MBxx in later release.
       38 *    corresponding IMPORT ... FROM MEMORY ... can be found in
       39 *    AC_DOCUMENT_POST (FORM FI_DOCUMENT_PREPARE (LFACIF5D))
       40      l_mem_id = 'MKPF-XBLNR'.                                   " 641365
       41      EXPORT xblnr = xblnr_sd TO MEMORY ID l_mem_id.             " 641365
       42    ELSE.                                                        "1245374
       43      l_mem_id = 'MKPF-XBLNR'.                                   "1245374
       44      FREE MEMORY ID l_mem_id.                                   "1245374
       45    ENDIF.
       46    IF xmkpf-xabln IS INITIAL.                               "note 434093
       47        CALL FUNCTION 'MB_XAB_NUMBER_GET'.                   "note 434093
       48    ENDIF.                                                   "note 434093
       49
       50 ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_01 SPOTS ES_SAPLMBWL STATIC.
    ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_02 SPOTS ES_SAPLMBWL.
       CALL FUNCTION 'MB_CREATE_MATERIAL_DOCUMENT_UT'
            EXCEPTIONS
              error_message = 4.
    As soon as we have started to put things into UPDATE TASK, w
    ensure that errors definitely terminate the transaction.
    MESSAGE A is not sufficient because it can be catched from
    external callers which COMMIT WORK afterwards, resulting in
    incomplete updates. Read note 385830 for the full story.
       IF NOT sy-subrc IS INITIAL.
          MESSAGE ID sy-msgid TYPE x NUMBER sy-msgno WITH
                     sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        MESSAGE A263.
       ENDIF.
    Optische Archivierung
    Spaete Erfassung mit Barcode
    Redesign of barcode handling -> note 780365
      PERFORM barcode_update(sapmm07m) USING xmkpf-mblnr
                                             xmkpf-mjahr
                                             barcode.
      MOVE-CORRESPONDING xmkpf TO emkpf.
      CALL FUNCTION 'MB_MOVEMENTS_REFRESH'
        EXCEPTIONS
          error_message = 4.
       MOVE-CORRESPONDING xmkpf TO emkpf.
       CALL FUNCTION 'MB_MOVEMENTS_REFRESH'
            EXCEPTIONS
              error_message = 4.
       IF NOT sy-subrc IS INITIAL.
    Regards,
    Ashok

  • Getting run time error in organizer Photoshop Elements 5.0??

    How do I fix run time error for Adobe PhotoShop Elements
    5.0 when I pull up organizer?

    What operating system?

Maybe you are looking for

  • No video on capture via panasonic deck - NEW

    Hi. I rented a panasonic deck HD1400 to get tapes captured in Final Cut Pro 5.04. When trying to capture I get no video on the Mac Book Pro. I use Easy Set-up DVC-PRO HD1080i50 which correspond to tapes. Also the deck is set to HD1080i. I can control

  • Restting the number ranges

    Client Copy: Each time a client copy is made, material movement postings cannot be processed until several number ranges are reset and the user gets the message Express document “update was terminated”. These number ranges can be reset thru SNRO. But

  • Fetch From UWL to WD view :UWL Exception Logged in users context or session

    Hi, We have a requirement in which , we need to fetch all UWL Items and need to display these in a webdynpro view. We tried based on this link [Custom UWL|http://searchsap.techtarget.com/tip/0,289483,sid21_gci1240907,00.html]. Coding What I have Trie

  • Hai how to debug smartforms using SFTRACE .

    how to debug smartforms using SFTRACE .

  • Can I enable 5.1 sound in the browser?

    Well, theres not much to tell. I have MIcrolab 7-730 speakers, sound card that supports those speakers. When I listen to music in winamp, the sound comes wrom all the speakers. When using web, the sound comes only from front ones and the subwoofer. C