Termination BCD_ZERODIVIDE in Transaction MR21

Hi Experts,
I am getting the runtime error "Termination BCD_ZERODIVIDE in Transaction MR21" while changing the price of a material?
I debugged the program "SAPRCKM_MR21" to find out the error. And it is because of new price unit field which has zero value and it is used in division .
Here is the error analysis:
Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_ZERODIVIDE', was not caugh
     and
    therefore caused a runtime error.
    The reason for the exception is:
    In the current program "SAPRCKM_MR21", an arithmetic operation ('DIVIDE',
    '/', 'DIV' or 'MOD') with a type P operand attempted to divide
    by 0.
I have a basic question related to this:
1. Where we can look for current price and future price for a material? OR how it is calculated during MR21 price change?
2. How is new price unit is populating during MR21 i.e., from where?
Thanks in Advance,

HI,
Goto <a href="http://service.sap.com">Sap Market place</a> and give the error and program name and search for note.. you will find one as it is a standard program.
Thanks
Mahesh

Similar Messages

  • Getting Express document 'Update was Terminated' in Call Transaction AS02

    Hi All,
       I've written BDC for changing the Asset Master using Call Transaction Method. After the Call Transaction it it showing me the Success message that 'The Asset has been Changed'.But it is not reflecting in the Database table.When i navigate back from th e screen I'm getting the Express document as 'Update was terminated'.
    Please help me in this regard.
    Thanks and Regards.

    Hi,
    have you used commit statement after the call transaction statement, or if there is any enhancement for AS02 transaction remove the commit work statement from the enhancement.
    Regards, Qamar

  • I need BAPI for Transaction MR21

    Hi Friends.,
    I need a BAPI, or Functional Module or Direct Input Program. for Transaction Code MR21.
    Thanks in advance

    hi,
    try with this BAPI_M_REVAL_CREATEPRICECHANGE.
    Cheers,
    Sasi

  • Express Document Update was Terminated in VA01 Transaction

    Hi to All,
        I am facing problem when Sales Order is creating in VA01  Trasaction when document get created but after going to Va02 it is throwing error 'Update Terminated' I studied the Dump analysis and Update Analysis in ST22 and SM13 it is due to GETWA_NOT_ADSSIGNED. I cant understand what may be the problem. Can any one help me, Its urgent
    Please help

    > > check short dump in ST22 it will show more info on
    > > which variable/table is causing this error.
    > > one of the posisble reasons - WRONG vlaue in UPDKZ
    > > field.
    > > to check - set breakpoint to
    > > USEREXIT_SAVE_DOCUMENT_PREPARE and at the end of
    > this
    > > userexit check the value of UPDKZ field in XVBAP,
    > > XVBEP,... tables.
    > > It should NOT have 'U' in VA01
    >
    > Thanks,
    > Yes what u told is correct, after the
    > userexit_save_document_prepare the updkz is becoming
    > 'U' n how can we overcome this,  i have to harcoded
    >  with 'I' when that is 'U'.
    When i change XVBAP-updkz with 'I' then its not getting error but another error is coming of update termination. Error is 'sapsql_insert_duprec' but i check there are not Duplicate sales order and i also check the number intervals they are fine. Whay may the problem????
    Can any one help. plzzzzzzzz.

  • UPDATE termination in VA01 transaction.

    Hello Experts,
       I am stuck in one place. could you please help me for the same.
    I am uploding data in ZVA01 transaction using batch input session.
    while uploading 82-83 line items, and save it, i am getting the error. "SAPSQL_ARRAY_INSERT_DUPREC".
    i checked the error. it is from the include :LV45UF0K and this is the standard code.
    the code is given below :
    FORM KONV_BEARBEITEN.
      CHECK: FKONV_GEAENDERT NE SPACE OR
             VORGANG = CHARH.
      IF VORGANG NE 'H'.
        DELETE FROM KONV WHERE KNUMV = VBAK-KNUMV.
      ENDIF.
      LOOP AT FXKOMV.
        FXKOMV-MANDT = VBAK-MANDT.
        FXKOMV-KNUMV = VBAK-KNUMV.
        MODIFY FXKOMV.
      ENDLOOP.
      INSERT KONV FROM TABLE FXKOMV.
      IF SY-SUBRC NE 0.
        MESSAGE A100 WITH 'KONV' SY-SUBRC.
      ENDIF.
    ENDFORM.
    . error is : it is try to insert the duplicate entry in the KONV table.  i dont know why the error is comming and in which code the error is.
    i splitted the line items into 2-3 parts and then uploaded, this time it is uploading properly.
    i want to upload all line items in one time (82-83 line items).
    could you please suggest, what is the error ?.
    Thnaks in advance.
    RH

    Hi,
    the key for table KONV contains five fields:
    MANDT
    KNUMV
    KPOSN
    STUNR
    ZAEHK
    The code you included fills the first two and deletes the entries for these values first. So the problem is not in that value. The other three values are:
    KPOSN     Condition item number
    STUNR     Step number
    ZAEHK     Condition counter
    Where the last one is added just to make the whole key unique. Chances are that this field is not filled correctly in some user exit making the transaction fail at the point you indicated. Check in the dump if you can find out what the values are in this table and which ones generate the duplicate key error. Also investigate if the FXKOMV table is changed in user exits or custom pricing routines and check that code for bugs. It will be pretty hard to debug it all since you get the problem in BDC processing...
    Good luck,
    Gert.

  • Period Problem for MR21

    Dear All,
    i am getting problem for the following in transaction MR21, as there is no stock available for material.
    Posting period 03 2008 is not open
    Message no. F5201
    Diagnosis
    Period 03 of fiscal year 2008 is not open for posting for the variant of posting period .
    regards,
    qsm sap

    Hi,
    First check the Current period in OMSY trx...for your Comp code..
    Then go to MMPV and enter Comp code, Period & Year
    and execute...
    Ex: if the current period in OMSY for your Comp code is 01,2008
    then you need to enter period 02, 2008 in MMPV trx...
    so, that period 01 will be closed & Period 02 will be opened automatically...
    You need to close periods one by one like this..
    until the period you want use...
    Thx
    Raju

  • Update was terminated while creating purchase order from ME21N

    Hi Experts,
    We are getting this dump when try to create purchase order from ME21N;
    Our system ECC 6.0 and IS-AFS (Apparel & Footwear Solution) V600 component has installed,
    How can we prevent this error,
    Regards
    Here is the dump and sm21 log,
    Runtime Errors         LOAD_PROGRAM_NOT_FOUND
    Exception              CX_SY_PROGRAM_NOT_FOUND
    Date and Time          10.10.2008 10:22:03
    Short text
         Program "RMCMS431 " not found.
    What happened?
         There are several possibilities:
         Error in the ABAP Application Program
         The current ABAP program "SAPLMCS4" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
         or
         Error in the SAP kernel.
         The current ABAP "SAPLMCS4" program had to be terminated because the
         ABAP processor detected an internal system error.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_PROGRAM_NOT_FOUND', was not
         caught in
        procedure "TMC2F_FROUT_CALL" "(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:
        On account of a branch in the program
        (CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
        or a transaction call, another ABAP/4 program
        is to be loaded, namely "RMCMS431 ".
        However, program "RMCMS431 " does not exist in the library.
        Possible reasons:
        a) Wrong program name specified in an external PERFORM or
           SUBMIT or, when defining a new transaction, a new
           dialog module or a new function module.
        b) Transport error
    How to correct the error
        Check the last transports to the R/3 System.
        Are changes currently being made to the program "SAPLMCS4"?
        Has the correct program been entered in table TSTC for Transaction "ME21N "?
        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:
        "LOAD_PROGRAM_NOT_FOUND" "CX_SY_PROGRAM_NOT_FOUND"
        "SAPLMCS4" or "LMCS4F10"
        "TMC2F_FROUT_CALL"
        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
        "TMC2F_FROUT_CALL" "(FORM)", or its possible occurrence must be declared in the
        RAISING clause of the procedure.
        To prevent the exception, note the following:
    sm21 log ;
    Transaction Canceled 00 671 ( LOAD_PROGRAM_NOT_FOUND 20081010102203saptest_TET_00 EYUCE 100
    Update terminated
    > Update key: F39796DD5421F1509233001E0BD601E0
    > Update module: MCE_STATISTICS_UPD_V2
    Run-time error "LOAD_PROGRAM_NOT_FOUND" occurred

    Please follow the oss note 800335
    V2 Update terminations in Purchasing transactions after upgrading or installing AFS 5.0 release.
    Other terms
    AFS, LIS, MIGO, ME22N, OLI3, S433, S431
    Reason and Prerequisites
    AFS Purchasing infostructure S431 is no longer used. S433 is the valid infostructure for the release AFS 5.0.
    Solution
    Please do the following.
    For customers upgrading to AFS 5.0 only:
    > Rebuild Infostructure S433.
    - Goto transaction: OLI3 (Statistical Set up of Infostructures)
    - Info structure to be compile: S433
    - Specify the 'Name of run'.
    - Execute.
    > Please also follow the instructions given below.
    For both Upgrade and Non-upgrade Customers:
    > Create the report 'ZDELS431'.
    - Transaction: SE38
    - Give Program name as ZDELS431.
    - Create (F5).
    - Title : 'Program to delete S431'.
    - Type  : 1 (Executable Program).
    - Status: T (Test Program).
    > Copy the program text from the note and paste in the program.
    > Save and activate the program.
    > Execute the report for all clients in Update mode.
      (Two check-boxes will appear: P_ALL_CL, P_UPDATE.
       Please check both of them).
    This report will delete all the references to infostructure S431.

  • MR21 - FI document (draw together positions with same account)

    Hi,
    We need to update the price of various materials through the transaction MR21. Each time you update, a MM document is generated and its associated FI document.
    For each material, in FI document, generates two accounting positions: one with the inventory account and one with the expense account, and in the detail of every position is especify the material number.
    If for example we update 6 materials (in the same MM document), what we need in FI document, is that the material is not especify in the detail and so the accounting document instead of having 6 positions from the same inventory account and six positions in the same expense account, just having one position of the inventory account and one position of expense account to draw together the amounts of all materials on these two.
    Can you help me and tell me if there is anything from customizing to allow me to define this behavior in the system? or how else could I give a solution to this issue?.
    Thanks in advance!
    Best regards,
    Mayra Cobo.

    Hi Erasmus,
    This SAP delivered workflow is triggered by configuration. 
    Check out the SAP Help here:   http://help.sap.com/printdocu/core/print46b/en/data/en/pdf/FIBP/FI-AP-AP-PRK.pdf
    Hopefully that will help you out.
    Otherwise, you should look in transaction SWETYPV to see where this workflow is linked to your FIPP events, and de-activate it.
    Regards,
    Sue

  • Problem in BDC For MR21

    hi all,
    I had written the bdc for mr21 using session method. I am not able to change the standard price using BDC. Recording is perfect. Using transaction mr21 I can change the price but using bdc , it's not changing.It is not giving any error. it gives message that no changes in price have been made.
    Thanks in Advance.
    Regards,
    Atul

    Hi,
    In the code check for one thing...
    when you are populating the price value in the table use the following code and then check if it works.
    data lw_string type string.
    write price to lw_string currency currncykey   " here price is the variable which contains the value... and
    "   Currency key is the currency key for the price which you can get from the table where you get the price.
    "then
    bdcdata-fieldval = lw_string.
    append bdcdata.
    Just check if this works, As earlier I faced a similar kind of a problem when I did this it was resolved....
    Regards,
    Siddarth

  • Update termination in FB1S

    Hi Experts,
    In our SAP (EEC5.0) system, we are getting an update termination.
    Details:
    Transaction:FB1S
    Report:   SAPMF05A
    Function Module        POST_DOCUMENT
    Status                 Update was terminated
    Report                 LF005F01
    Error details   Class:     F1         Number:    801
    F1 801: Clearing: Line item 002
    There are plenty of termination happening everyday.
    Can anyone advice me about the root cause of the issue? How to take care of this?
    Thanks in advance.
    Mark

    Mark,
    Yes, sorry about that... accidentally hit Enter.  I was going to suggest taking a look at [Note 1004363|https://service.sap.com/sap/support/notes/1004363].  The error message you mentioned (F1 801) is called from function module POST_DOCUMENT -> form beleg_schreiben -> form bsed_insert, when the INSERT BSED statement fails.  That's what led me to Note 1004363.  Maybe you could debug to find out what BSED values you are trying to insert when the dump occurs.  That might give you an idea of why the insert is failing. 
    Regards,
    Jamie

  • Transaction key UMB determined on transaction MB1A

    Hi experts, I'm having a problem with a goods movement via transaction MB1A. When trying to move material, an error message is displayed with the information that the account does not exist in the chart of accounts. The account in question is configured for UMB operation, but the material has no ledger activated and had no price change for the transaction MR21.
    What can be happening?
    Many thanks.
    Diego.

    Although the period 05/2014 is already open, the posting date of the document was still in 04/2014. The document was created with various materials, but only one pointed to the UMB. Today, with the posting date of the period 05/2014, the problem did not happen anymore.
    Thanks for everyone.

  • BDC- Inconsistancy in table control for t-code MR21

    Hi all,
    We are facing inconsistency in the table control (number of line items) for t-code MR21 in normal transaction screen and BDC screen.
    In normal transaction run (MR21) we can see 12 line entries.
    But for the same t-code while processing of a session created by BDC recording we can see only 9 entries.
    Because of the mismatch in the lines, there will be a gap of 3 blank lines.
    Kindly provide any input to solve the issue.
    Thanks & Regards,
    Prabhu

    Hello,
    You will have to use the OPTIONS addition of CALL TRANSACTION to set the default screen size
    data: t_ctu type ctu_params.
    t_ctu-defsize = 'X'.
    t_ctu-dismode = 'N' .   " Mode
    t_ctu-upmode = 'S'  " Update
    call transaction 'MR21' using bdcdata options form t_ctu messages into t_messages.
    Vikranth

  • Profit Centre posting via MR21

    I'm posting a material price change via transaction MR21.  I've changed the GL account to a P&L account and so aswell as an FI posting I'd also like a PA posting, a profit centre posting and a CO posting.  These are all happeningok except for the factthat the profit centre that is being posted to is a dummy profit centre rather than the profit centre on the material.
    Does anyone have any ideas how I'd change this?  I've looked in config but can't find anywhere.
    Many thanks for anyhelp.
    James

    James,
    Check the error message.  We had a similar problem.  I had to remove the P&L account in question from the set that is tied to the Dummy profit center (GS02).  Once it is removed, you can manually post to the specific cost center that is tied to the specific profit center.

  • Define Document Type for Mr21 e Mr22

    Hi
    I want define e new document type for transaction MR21 e MR22. 
    I set the customizing:
    Material management - valutation e accounting determination - Define Document Type and Number Range for Price Change. There I update the new document type WE.But the system use always the Document Type PR.

    hi,
    I think after creating a new document type , u need to assign it to price change.
    check it
    Thanks & Regards
    Swathi

  • WebDynpro iView OR Transaction iView

    Hi all,
    in EP, there are many types of iView. but I want to focusing in one type of iView only.
    So, I want to know which one is better,
    WebDynpro iView or using Transaction iView.
    is there any documentation from SAP?
    like Security, Performance, System requirements between those two.
    thank you.

    Hello Adyt,
    Answer might sound typical theoratical
    Selection of WebDynpro iView or SAP Transaction iView depends upon the client's need.
    WebDynpro Applications are used when we want to create our own reports with specific branding colors,theme, adding buttons, customised selection criteria for generating report.
    Transaction iView on the other hand is used when client wants exactly same look and feel of R3 , using Enterprise Portal.
    Sometimes SAP transactions can't be converted into application, e.g. SAP internal Mail box (Transaction SWBP).
    In such cases no other option than using Transaction iViews !
    About requirements, SAP logon pad needed to be installed on the user's terminal to see transaction iView with iView type selected as "SAP Gui" iView.
    You can bypass this need by selecting iView type " Web Gui"
    For webdynpro you need to have NWDS(Netweaver Development Studio) for application development and java skills as well.
    For transaction iView you need to have user mapping between Enterprise Portal and the backend System.
    To view WebDynpro iview one does not need user mapping.
    Thanks and Regards,
    Pradnya

Maybe you are looking for

  • Display freezes, drives still accessible ??

    Hi, I have a 2006 1.83 ghz mac mini on which the display keeps crashing. It just freezes, sometimes the mouse is still responsive other times it is not. I can still access the internal and external storage on the machine via finder on another mac. I

  • "Render and replace" now converts to .mov, not audio wav files like before

    In previous versions, the "render and replace" functionality allowed you to quickly extract audio from clips and turn them into audio files. Now in CC 2014 the audio gets replaced with another movie file with no video track. This is useless when tryi

  • SAP_PP_014

    hi collegaues, I´m working with SAP_PP_014. I have defined a requirement ascertainment period off 200 days. I have a forecast requirement in the past and is not selected to be deleted by the heuristic .could you confirm me if the forecat requirements

  • Scan file size problems

    Before I discuss the problem with Preview and Image Capture I want to mention that I used to create my PDFs using "create PDF from scanner" in Adobe Acrobat and now it no longer detects my scanner (now that the HP drivers are included in OSX ... actu

  • ITunes showing available downloads but saying iTunes Store unavailable.

    When I attempt to download a recently purchased movie in iTunes, I get a message saying "Unable to check for available downloads. The iTunes Store is temporarily unavailable.  Please try again later."  It has been stating this since I purchased the m