System Error During Insert (Table KNMT SUBRC 4)

Hi All,
I am getting a peculiar error when i try to update KNMT table using the FM RV_CUSTOMER_MATERIAL_UPDATE.
When i run it directly in debug mode, entries are getting created perfectly.
But when i run it through RFC, before the FM is executed itself, during validation, i am getting an error in the message queue stating "System Error During Insert (Table KNMT SUBRC 4).
I cheked that KNMT table is empty. Also i had deleted all entries using the standard transaction VD52.
I found that there is a certain FM RV_CUSTOMER_MATERIAL_UPDATE_C which is described as Posting program for customer-material info (CALL mode).
But i am not sure what this does. I cannot view the documentation in my system and also this FM does not have any parameters.
Kindly let me know if anyone has encountered an error like this... Please let me know of any suggestions for resolution.
Thanks & Regards,
Mz
P.S : The Functionality seems to work intermittently... though not when i want it.
Edited by: Mazin Mahmood on Dec 8, 2011 9:09 AM

Hi,
The issue was that i was calling the function module RV_CUSTOMER_MATERIAL_UPDATE using an RFC.(ABAP Proxy) For some reason, while using an RFC, there is some issue with this function module and the database commit .
I had to recode using BDC (for transaction vd51) approach for creating a record in KNMT.
Thanks All,
Cheers,
Mz

Similar Messages

  • MS05 transaction throws "SQL error: error during INSERT (table: &)"

    Hi Team,
    I am a BASIS engineer on MM system. we have a strange problem from customers we see an error on the MS05 screen with "SQL error: error during INSERT (table: &)" and when the support team runs MS01 transaciton this error gets resolved.
    What I would like to know is what could be the likely cause of this error and how we can prevent it.
    When I check the SM21 logs i noticed one log with "Transaction cancellation 61 204 ( PLAF )"
    and under additional document section is the log I see the below information
    Usually, the reason for this error is that an entry already exists
    with the same key.
    This problem can occur if the client was copied with the movement data
    without adjusting the number range intervals.
    Please check if the number ranges for this table have been set
    correctly and, if necessary, correct the number range interval.
    I am from BASIS and I have no clue in how the MM transactions are linked can any MM gurus help in identifying the root cause for this problem.
    any help on this is highly appreciated
    thanks
    Vijay

    Hi
    Are MS05 & MS01 you're referring is a T-code?. if so, then they are associated with planning and a PP consultant can give a more clear picture on it. Try posting this to a PP forum.
    Based on the error log, i guess this may arise because of the number range problem, when the document is getting saved and record is being tried to inserted into a table.
    Thanks
    E.Avudaiappan

  • ME-807 System error: error during insert in table EKKO in SM13

    Hello Experts,
    I have been searching a lot in SDN and in google about the ERROR ME-807 System error: error during insert in table EKKO but still i have not got any satisfactory answer.
    In ME31K when I create the contract and put some validation check on target value filed in BADI Implementation ME_PURCHDOC_POSTED while saving it .
    Now after rectfying the valdiation checks and saving the contract again i get this ERROR in SM13 and i can not even see the contract in ME33K. It says that doument does not exist.
    Please let me know what could be the possible reason for this.
    Thanks,
    Naveen

    Hi Jan,
    This ERROR is coming from a function module  ME_CREATE_DOCUMENT .
    The code snippet from where this error s comin is as below:-
      DATA: LS_EKUB_NEW TYPE EKUB.
      DATA: L_EBELP     LIKE IND_EKKI-EBELP,
            L_TABIX     LIKE SY-TABIX,
            L_TABIX_1   LIKE SY-TABIX,
            L_EHP4_P2PSE_ACTIVE TYPE XFELD.
    ------- Bestellkopf hinzufuegen -
      MOVE NEKKO TO EKKO.
      INSERT EKKO.
      IF SY-SUBRC NE 0.
        MESSAGE A807 WITH 'EKKO'.
      ENDIF.
    Thanks,
    Naveen

  • ME 807: System error: error during insert in table KONV

    Hi,
    I got the below error when creating PO using ME21N, what should I do?
    ME 807: System error: error during insert in table KONV
    Thanks.

    During the creation of Purchasing Orders the system displays the message "Error during insert in table KONV". The problem is solved and I would like to share the steps we use to solve the problem.
    You can get details of the error in the Business Workplace (T-Code SBWP) or through the transaction SM13. The details of the error are:
    Function Module
    ME_CREATE_DOCUMENT
    Status
    Update was terminated
    Report
    LEINUU03
    Row
    167
    Message
    ME807 System error: error during insert in table KONV
    I applied the SAP Note 1610553 - BAPI_PO_CHANGE: Header conditions are not transferred which describes exactly the problem but it was not solved.
    The solution was creating a new Purchasing Record and, before saving, remove all the conditions in Header level and save the document. After that, it's possible to create documents without problem.

  • ME 808: System error: error during update Table EKAB

    Hi,
    Couple of years ago, during carve out, one of the contracts was deleted.
    A PO created against that contract carries some open quantities. Now our purchasing wants to close this PO, either by changing the quantity to delivered quantity (delivered quantity is lesser than PO quantity), or by checking the delivery complete box. But they are not able to do so, as there was no contract number exists in the system table.
    I propose to create a contract with the same number mentioned in the PO and then to change the quantity in the purchase req and PO. However now the system issues a dump error message "ME 808: System error: error during update Table EKAB".
    Can anyone help how to resolve the issue?
    Any body had similar situation?
    Thanks for your help.
    Regards,
    Shiva

    Hi,
    I am not sure how the external consultants deleted this contract during carve out.
    Our division was bought out from another company and moved the data to our SAP system.
    I checked the OSS and found note 922427 could resolve the issue.
    Thanks for your response.
    Regards

  • 1 duplicate key error during insert into table

    Dear Guru's
    While upgrading the SAP_HR patch, I am facing this issue
    Current level is SAPKE60455
    Trying to apply patch - SAPKE60456
    This is seen in the import log
    Start import R3TRVDATV_512W_O ...
    client 000:   1
    client 001:   1
    client 070:   1
    client 080:   1
    client 100:   1
    client 320:   1
    1 duplicate key error during insert into table T512T occured
    End import R3TRVDATV_512W_O (with warnings)
    Please help, thank in advance
    R3trans is at version 6.19
    Regards,
    Omkar

    Hello,
    Issue was resolved after upgrading the R3trans
    Regards,
    Omkar

  • Reference document 83246316 000020 (Error during Insert)

    I am abap developer and my func person told me that he is trying to create the Billing document  83246316  in VF01 and we are getting the following error (Reference document 83246316 000020 (Error during Insert)). Can anyone lemme know how to solve this issue.

    Do you think this would be the issue
    XVBRP_KEY = XVBRP.
    READ TABLE XVBRP WITH KEY XVBRP_KEY BINARY SEARCH.
    CASE SY-SUBRC.
    WHEN 4.
    INSERT XVBRP INDEX SY-TABIX.
    WHEN 8.
    APPEND XVBRP.
    WHEN OTHERS.
    MESSAGE A004 WITH VBAP-VBELN VBAP-POSNR. <<<<<
    ENDCASE.
    The error occurs due an incorrect SY-SUBRC after reading table XVBRP
    (SY-SUBRC not equal to 4 or 8). This means that the content of work area
    XVBRP is inconsistent.
    The problem is caused by a wrong source code in user exits or custom
    copy routine. Please check in programs RV60AFZZ, RV60AFZA, RV60AFZB,
    RV60AFZC, and RV60AFZD if you change the content of work area XVBRP.
    Please make the same check also in the eventual customized routines
    set in copy control.

  • System error during RFC call BAPI_FIXACCOUNT_GETLIST

    Hi Gurus,
    Below are the error and steps when i perform Payroll Posting to Accounting. To enable communication between distributed systems, the appropriate method have been specified in ALE Customizing for the objects of the following tables. (Basis -> Application Link Enabling (ALE) -> Modelling and Implementing Business Processes -> Maintain Distribution Model and Distribute Views.)
    However, error still exists as shown below:-
    1.     Run TCode PC00_M99_CIPE
    2.     Encountered Error as shown below:
    Communication error with system QAS, function FI_ACCT_DET_HR
    Message no. 3G404
    Diagnosis
    The function module "FI_ACCT_DET_HR" has been called remotely in system "QAS". As a result, an error occurred when creating the connection or during communication.
    Procedure
    Check that the ALE distribution model is correctly maintained.
    Account determination could not be performed
    Message no. 3G361
    Diagnosis
    The account could not be determined for one of the following reasons:
    No destination could be found in the ALE distribution model for the AcctngEmplyeeExpnses.Check method.
    A system or communication error occurred when executing the function FI_ACCT_DET_HR in the target system.
    System error during RFC call BAPI_FIXACCOUNT_GETLIST:  / CPIC-CALL: 'ThSAPCMINIT' Unknown serv ice
    Message no. KI012
    3.      Check in SM21: NiConnect Unsuccessful, Return Code: -0003
                        Communication error, CPIC return code 020, SAP return code 665
    Please advice. Thanks in advance.
    Best Regards,
    Fung

    Hi,
    Probably because of timeout, it is unable to execute the request ..so it is aborted.
    btw, is it a synchronous call ? what is the message size ? the given data to RFC is correct and valid structure ? check the mapping .for this use the data from SXMB_MONI and test it
    Check this blog for timeout errors-
    /people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
    Regards,
    moorthy

  • ME11 update error : Error during insert EINE with key

    HI All,
    I am facing the below problem..For one particular user update request is failing in ME11 transaction.Error was found in function module name ME_UPDATE_INFORECORD.I also check if it is number range problem but it is not the case..
    Please help me out..
    Thanks in advacne.

    Hi,
    The problem is that only one user is getting sporadic failed update messages (since last 3-4 days) when using transaction ME11. The error as recorded in SM13 is "Error during insert EINE with key <Inforecord #> <Pur Org>".
    I checked the table EINE for the key mentioned in the above message and found that there is a 2 years old record with the same key. Now, what I do not understand is that while creating a new Inforecord, why does SAP comes up with an old number instead of generating a new one from the number range object. I tried to search on SDN as well as OSS Notes, but could not find any mention to this problem.
    And yes, it is an abend message with no short dump...
    Thanks,
    Gaurav
    Edited by: Gaurav Malhotra on Feb 24, 2012 3:08 PM

  • System Error During Message Mapping

    I've set up a simple mapping scenario that sends a DEBMAS06 IDoc from our R/3 system to XI mapping to DEBMAS06 and writing out to a file.  I am getting the following system error during message mapping:
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">JCO_SYSTEM_FAILURE</SAP:Code>
      <SAP:P1>Server repository could not create function template for 'SMPP_CALL_JAVA_RUNTIME</SAP:P1>
    I have gone back to the Design Builder and tested out the message mapping and the interface mapping and both work successfully.  I have also taken the payload of the message and submitted it via the RWB and it generates the same error as when sent from R/3.  Any other places I can look?

    Hi Mike,
    You have got the connectivity issue problem between ABAP and J2EE stack. When do the test in the Message Mapping, thats the J2EE and it works. But during the runtime it has to go to the Integratin Server, which is the ABAP stack. Fix the connectivity issue, check the smicm,trace and debug log etc.
    Hope this helps.
    Cheers,
    Ranjan

  • ORA-022887 error during insert operation how to handle properly ...

    Hello everyone I got an error during insert operation how to handle it properly ?
    SQL statements given below.
    INSERT INTO PERSONEL.TRANSLATIONS (TID,SCRIPT_NAME,TAG,TR,EN,LOCAL)
    VALUES ((SELECT PERSONEL.SQX_TID.NEXTVAL AS TID FROM DUAL),'TEST_TEST','TEST','TR','EN','LOCAL');
    thank you

    I could not find an error like ORA-022887. What is the exact error you are getting? Do a cut and past of the error here.
    Ok the proper error is ORA-02287: sequence number not allowed here
    As already said just remove the select and use the sequence directly in the insert.
    Edited by: Karthick_Arp on Sep 11, 2009 1:04 AM

  • Error During inserting value

    Hai all,
    Am writing a validation for my salary attribute in my entity object this is my
    Valiation code while am running my cod am getting a error as follows
    (oracle.job.SQLStmtException) JBO-27121:SQL error during statement execution
    Statement: BEGIN :1=JOB_VALIDATION(:2,:3); END;
    (java.sql.SQLExcepation) Invalid column Type
    My Function is as Follows:
    FUNCTION JOB_VALIDATION(p_job_id VARCHAR2,p_sal NUmBER) RETURN BOOLEAN
    IS
    ln_cnt NUMBER;
    BEGIN
    SELECT 1
    INTO ln_cnt
    FROM JOBS
    WHERE job_id=p_job_id
    and p_sal between min_salary and max_salary;
    RETURN(TRUE);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RETURN(FALSE);
    END;
    Method For Validation
    public boolean validateSalary(Number data)
    //double sal= data.doubleValue();
    String job=getJobId();
    boolean result=false;
    CallableStatement plsqlBlock = null;
    String statement="BEGIN :1 = JOB_VALIDATION(:2,:3); END;";
    plsqlBlock=getDBTransaction().createCallableStatement(statement,0);
    try{
    plsqlBlock.registerOutParameter(1,OracleTypes.BOOLEAN);
    plsqlBlock.setString(2,job);
    plsqlBlock.setObject(3,data);
    plsqlBlock.execute();
    result=plsqlBlock.getBoolean(1);
    catch(SQLException sqlException)
    throw new SQLStmtException(CSMessageBundle.class,CSMessageBundle.EXC_SQL_EXECUTE_COMMAND,statement,sqlException);
    finally
    try{
    plsqlBlock.close();
    catch(SQLException e)
    e.printStackTrace();
    return result;
    }

    Hi Nitin,
    Thanks again for the response.
    I've checked KA02 Transaction, and the cost element still exist. Maybe the problem is in the file. Anyway, it has been addressed by now. Formatting error I guess.
    Thanks Nitin for the time.
    Regards to you
    April

  • FINSTA inbound idocs - "Error during insert in table FEBKO"

    Can anyone tell me , y this error comes?
    I am using File to IDOC scenario.
    I need to update bank statement. It can be given in multiple pages. I need to update depending upon the date as well as its page number.
    Sometimes I get this error. Can anyone tell me , because of what reason I get this error?

    One reason is when multiple statement  files are being processed parallelly, table may get locked and gives this error.

  • "ORA-01461: can bind a LONG value.." error during INSERT with abap exec

    Hi,
    I have a problem with sap ecc 6.0 with UNICODE.
    I have:
    DATA: BEGIN OF mytable OCCURS 0 ,
                my_var(4000),
               end OF mytable.
    EXEC SQL.
        INSERT INTO TABLE@IFSAP
           (EVENT_CODE)
        VALUES
           (:TO_SINGLE_BYTE(:mytable-my_var))
    ENDEXEC.
    Help ME!

    ORA-01461: can bind a LONG value only for insert into a LONG column
    You can not insert a value which is of length more than 4000 into a LONG column of a table. But, you can get fetch the LONG column from the table and store it into a variable of type LONG. That is why you are getting the error.
    Hope this helps... !

  • System error during lock operation. Execute diagnostics in SM12

    When I am executing sm12 I am getting below error...
    Diagnosis
    An error occurred in the SAP lock management whilst trying to to lock an object by calling the ENQUEUE function module.
    System Response
    The SAP System is unable to enter the required locks in the lock tables managed in the ENQUEUE server. The ENQUEUE function module therefore triggers an exception. If this exception is not handled by the application program, the current transaction will be automatically terminated.
    when trying to see sm12>Extras>statistitics
    Unable to open statistics file: /usr/sap/PP1/DVEBMGS56/data/ENQSTAT
    (I changed this permissions to 777 but still getting the same error)
    when trying to open connection i am unable to changes in su01
    getting error--System lock administration error. Please notify
    your administrator
    +++++++++++++++++++
    I am not able to change as well in su01, but able to display.
    some one pls help me out from here.

    Although the post is old - I thought we can post a small input that can help any future searches on the same error " System Lock Administration Error. Please Notify your administrator"
    The issue has been resolved by our Basis Team. They did notice issues with Replication and one of the enqueue is on a different note in a multi node setup. The team had to restart the system and make sure the enqueue is on the same node as of replication.
    Hope it helps.
    Regards,
    Sri

Maybe you are looking for

  • Third Party Sales Accounting

    Dear All, We are facing a problem in third party scenario. PR is created through Sales order, with Account assignment category u201CZu201D and item category u201Csu201D We have created new Account assignment category  u201CZu201D w.r.t. u201CY:u201D

  • Configuring Oracle Text for 10g

    Hello, Sorry, it this sounds like such a newbie question, but is there is a simple guide to the basic configuration and setup of Oracle Text for 10g? Thank you for your help.

  • Approval Hierarchy

    Hi, Issue :-1 I am sending an document for approval ( Standard Purchase order) . 1. Mr "A" has entered the data and sent for approval and the document is in "IN PROCESS" 2.Mr "B" has received the notiification and submitted for approval . Problem : F

  • MMBE Issue

    Hi MM Gurus, I am stuck in one issue. In transaction code MMBE material showing “Schd.for delivery” some Qty, but there is no open order for particular material. And now we have stopped the material production. I have to clear that stock in MMBE. Can

  • Comment mettre aucun paiement a mon apple id

    je n'arrive pas a mettre  aucun paiment pour enregitré mon apple id sur mon ipod touch et telecharger des aplication