Update Termination in VA02

Dear all,
We want to Close the Service Order linked with the Sales Order Item, while SAVing the changes done in that Line Item through 'VA02'.
I am doing this before saving the Document (Sales Order), using BDC.
But, after my coding, control goes to update one table KBED. But, the entry which it going to update is already deleted as Service Order is Closed. So, due to this Update is Terminated.
So, how to solve this?
Could anyone give me the solution for this.
Thanks in advance for ur kind help.
Best Regards,
Prasad

Hi!
If it can't be performed within the VA02 transaction, you have do the closing later.
For example you can estabilish a Z table, and store the order's number, which has to be closed, while saving the VA02 transaction.
Then create a program, which closes the order, located in this table.
Schedule this program to every 10 minutes maybe.
Regards
Tamá

Similar Messages

  • STATUS_UPDATE error to update USER STATUS - Update termination error

    Hi All,
    I am using status_update FM in sales order user exit MV45AFZZ in a perform routine for updating user status in line item for sales order. There are 4 custom statuses created for the sales order line item. 1,2 3, and 4 by configuration. My job is to select one of those based on user selection.
    Scenario: During change order process using  VA02, I have to change the existing status to a third status when user selects the second one. That is for example, in VA02, user selects status 4 from previous status 3, and save, I have to make the status 4 inactive and save the new status 2 instead of 3 though user selected 3. How do I achieve this.?  ????Any programming example is really appreciated. Thanks!!!
    I am right now using STATUS_READ and reading the existing status 4. Then making it inactive using status_update FM. And updating the new status 2 as active one and 3 as inactive again. Two inactive updates and one active update is throwing an update termination error while saving the sales order.
    Any help is really appreciated. 
    Thanks
    Ricky

    Hi ricky,
    For saving any changes you need to have a Z-table.
    In programs we can't store the user selection. In your case you can create a z-table and store the status there and delete the last status. The process would be faster as you will always have one record in the table.
    . One more advantage is you can even track the changes through the Z-table(User who is changing it.)
    Hope this solution will surely help you.
    Cheers
    Suvi

  • Update termination in VA01

    Hi,
    While I am creating a Sale order & when I save it. I am getting a message Sale Order xxxxx is saved.
    But I could not fine the sale order. I have found that Update terminations are happening with
    Function Module MCV_STATISTICS_UPD_V1_ORDER
    Status Update was terminated
    Report LMCS0U32
    Row 17
    Error details Class: 00 Number: 671
    00 671: ABAP/4 processor: SYNTAX_ERROR
    Please can anyone advise
    Thanks
    vinod

    Hi Vinod,
    Any way standard progam/function modules are causing the update termination. So even you find some issue, bt we can't solve that one, we have to implement oss notes ( If  issue is not in the user exit ).
    I can see some oss notes available referring this issue. you can check those. even you can see SM13 , where you can get even more details for update termination.
    you cn check the below Oss Note: 16966
    https://service.sap.com/sap/support/notes/16966
    When you create or change a document (VA01, VA02, VL01, VL04, VL02, VF01, VF04, VF02 etc.) update terminations occur in the ABAP processor: DBIF_RSQL_SQL_ERROR <table> in function modules
    MCV_STATISTICS_UPD_V1_ORDER   or MCV_STATISATICS_UPD_V2_ORDER   or
    MCV_STATISTICS_UPD_V1_DELIVER or MCV_STATISATICS_UPD_V2_DELIVER or
    MCV_STATISTICS_UPD_V1_INVOICE or MCV_STATISATICS_UPD_V2_INVOICE.
    A table from one of the following information structures is involved: S001 through S006 or S500 through S999.
    Additional key words
    Cause and prerequisites
    DB parameters NextExt and MaxExt of the table are not sufficient.
    Solution
    Change the DB parameters of the involved table:
    Increase NextExt by a factor of 10 and increase MaxExt to < 500. For detailed information on the procedure, please refer to the "Data Dictionary manual".
    Source code corrections
    Regards,
    Naveen Veshala

  • Update Terminated Error in Va01-Help Appreciated

    Hi ,
        When I create Sales Order in Va01  for order type ZCS,ZCD, and when i try to view that in Va02- It gives "UPDATE Terminated " from author .
    I have already posted this in sdn before and i got the solution to check in ST22.
    I have found the FM that caused the error.This parameter ord_pre_imp was empty as there were no order number.
    CALL FUNCTION 'CO_BH_ORD_HEADER_PRE_READ'
           EXPORTING
                client              = client
                number_of_tasks     = number_of_tasks
                flg_ordnet_exploded = explode_ord_net
                flg_enq_set         = flg_set_enq
                import_message_id   = import_message_id
                caufv_single_imp    = caufv_single_imp
                trtyp_net           = trtyp_imp
                flg_no_gos          = flg_no_gos
                flg_called_to_copy  = flg_called_to_copy
           IMPORTING
                flg_ordnet_read     = flg_ordnet_read
           TABLES
                aufpl_tab           = aufpl_tab
                ord_pre_tab         = ord_pre_imp
                bedid_tab           = bedid_tab
                rsnum_tab           = rsnum_tab
                number_tab          = number_tab
                autab_tab           = autab
           EXCEPTIONS
                not_found           = 01.
      IF NOT sy-subrc IS INITIAL.
        RAISE not_found.
      ELSE.
    Need to know whether error due to configuration or technical.  what i should do in this case.
    U'r Help will be appreciated. Thanks in advance

    Hi,
    Check the error analysis in the ST22. Here you get the complete error analysis.
    Furthermore if you want to check the updation error, then go to SM13 and see the update error analysis.
    Hope this information helps you.
    Regards.
    Deepak SHarma.

  • Update Terminated Express document error triggered 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 during Periodic Posting in RE-FX

    Hi,
    I am getting a update termination error -SAPSQL_ARRAY_INSERT_DUPREC during periodic posting for Lease Out Contract. Tcode - RERAPP
    We use deferred tax. This functionality is used to transfer service tax
    credit from interimn account to final account as applicable in India.
    As suggested in the note 913805 by SAP we deleted the BTE's in application Key FI-TAX
    Inspite of that we get the same update error.
    Also we observed that after deleting the BTE's our service tax credit
    functionality is also not working.
    Further I have observed the following:
    I am getting error only while posting contracts with service tax.
    Tax Code L1 Account Key OS1 & OS2 & OS3
    Please help me in finding a soultion to this.
    Thanks & Regards
    Sanjay

    Hi,
    The transfer step will transfer controlling assignments from the contract to the rental objects. This is useful if you want to run the controlling reports in order to see a P&L statement for a Building for example.
    Regards,

  • Update termination error at the time of order creation and chamge?

    Dear gurus,
    Facing an error at the time of creation of order.
    system is giving update termination error & when we are going in change mode of that order system is giving an error message " SD document XXXX is not in the database or has been achieved"
    please treat on priority
    regards,
    krai

    Hi,
    Goto ST22 T.Code and analyse the error.The error message why it is terminated will be displayed here.
    Or go to SBWP T.Code in the user where you got this error and check the inbox.
    It will display why the error is appearing.
    Show the same to the ABAPer and ask them to work on it.
    I think your server may be slow and it will take some time to update the order created by you.But I am not sure.Check the error message.
    Regards,
    Krishna.

  • Update termination error at the time of order creation

    Dear gurus,
    Facing an error at the time of creation of order.
    system is giving update termination error & when we are going in change mode of that order system is giving an error message " SD document XXXX is not in the database or has been achieved"
    please treat on priority
    regards,
    krai

    Hello ,
    "Update terminated " error has two reasongs.
    First is system update  was not active and hence terminated
    For this to check Goto the transaction code SM13  and  check whether the SYSTEM UPDATE is active or not.
    If it is active ,
    Then click on the Option TOBE updated in the status  and execute, then in the next screen you can find some list of documents that are not updated and causing error .
    Click on MODULES in the screen and find the erro which causing this error.
    Most this kind of error will happen if something in the Funcion Module or USER EXIT is missing.
    Please check and revert back if you need further details
    Also check the link
    http://help.sap.com/saphelp_nw04/helpdata/en/e5/de870535cd11d3acb00000e83539c3/frameset.htm
    regards,
    santosh

  • While saving service work order Update termination

    Hi Friends,
    We have a service order integration with Notifications. First we create a Notification and in turn create as service order.
    When the order is saved it goes for a update termination and the error message is " 00 671: ABAP/4 processor: DBIF_RSQL_INVALID_RSQL "  for IW52 transaction. Actually when we save it provides the order number but never gets updated in the data base.
    Again when we create the order from Notification for the second time, order gets created by skipping a number. For example when we save the order if the ordewr number is 902345 where it is not created , then when we create again the order number is 902346.
    Have any one come across such terminations in IW52 for IW32?
    Regards,
    Selva

    Friends,
    At last my problem was resolved as it was escalated to SAP and SAP analysed as below,
    This problem is caused becuase of the error in database interface. As the database server and the application server is a mix of platforms with different internal character data representations, this error occurs,
    The work around solution as narrated below,
    " For this we need to set the following parameters on the Default and Instance Profiles:
    Profile Name                            Parameter name         Current Value     Recomm by SAP
    DEFAULT.PFL                           rdisp/vbname              not set           rdisp/vbname=$(rdisp/myname)
    CRH DVEBMGS00 cr1apod        rdisp/wp no vb               2                  Greater than 0
    CRH DVEBMGS00 cr1apod        rdisp/vb dispatching        1                  Set to 0
    crap0 CRH 20                            rdisp/wp no vb                4                  Greater than 0
    crap0 CRH 20                            rdisp/vb dispatching        1                  Set to 0
    Inorder to reflect all the changes, System CRH-202 needs to be restarted. Basis have done the above changes through T.Code: RZ11 and CRH indicates the Quality client.
    So the profile paprameters will be different in each of SAP systems.
    Hope this will be very useful for future reference to all of us.
    Regards,
    selva

  • FSCM via WS-RM (without PI ) - Update termination issue

    Hello experts .
    We are trying to integrate SD with FSCM ( credit management) using WS-RM (without PI).
    Details of the issue and steps followed so far.
    Ideal Scenario :
    Once we create / change a sales order ( in SD ) , the interface Creditworthinessquery_out (WS Consumer ) gets triggered (in SD) and the subsequent response CREDITWORTHINESSQUERY_IN(Provider) is triggered from FSCM (with the details of creditworthiness).Once the query response in received an notification is triggered from SD to FSCM (asynchronous service).
    After receiving the query response the functionality of credit check happens while creating / changing the sales order .
    Configuration steps followed in SOAMANAGER
    We have created end points for all the relevant service interfaces (Providers) , and also created logical ports for the respective consumers.
    During the creation of logical ports - for the consumers we used the WSDL (of the providers) as the inbound message action.
    (This has been done to all the services query , notification that are relevant in our integration).
    Current behavior / issue .
    While creating sales order the sales order is not getting saved (getting updated in the database).System allows us to complete the sales order creation process and also we get a message as sales order saved successfully. But then there is a update terminated express document that pops up. Sales order is not getting updated in the database.
    When I see the logs/traces in SOAMANAGER I see that the query out is successful , query in has the right response (in warning state though) . But no notification is being triggered ?? 
    How to overcome this update termination issue ?
    When we see the SM13 log , it points to SLD issue (LCR 010: Internal error in SLD API). why do we need a SLD without PI

    Hi  ,
    Finally we are able to solve the update termination issue . But again we are using a work around .
    Situation :
    Once we executed the VA01 transaction we were getting update termination issue . After lots of debuggung we found that system was trying to get the Business system details ( Own business system data ) . The table lcrt_clntcache had no values.
    Solution
    We inserted appropriate values in the Table LCRT_CLNTCACH (business system data ) and now it works .This is a work around we got as of now.Credit checks are happening successfully and also integration is good .
    (typically if we define business system in SLD (PI) , and run SLD_CHECK , this table gets populated , but in our case we are not using PI instead we are using WS-RM)
    But now few questions arise .
    a) Why do we need a business system in case we are not using PI ( typically we define business system and technical system in PI )  and instead using WS-RM ?
    b) Is it a good practice to update the table ( as did in workaround above )?
    c) Is this any bug and needs to be consulted with SAP ?
    Please let me know your views .
    Edited by: Vedula Adeep on Jan 16, 2012 8:42 AM

  • Integrating SD with FSCM using WS-RM - Update Termination error

    Hello experts .
    We are trying to integrate SD with FSCM ( credit management) using WS-RM (without PI).
    Details of the issue and steps followed so far.
    Ideal Scenario :
    Once we create / change a sales order ( in SD ) , the interface Creditworthinessquery_out (WS Consumer ) gets triggered (in SD) and the subsequent response CREDITWORTHINESSQUERY_IN(Provider) is triggered from FSCM (with the details of creditworthiness).Once the query response in received an notification is triggered from SD to FSCM (asynchronous service).
    After receiving the query response the functionality of credit check happens while creating / changing the sales order .
    Configuration steps followed in SOAMANAGER
    We have created end points for all the relevant service interfaces (Providers) , and also created logical ports for the respective consumers.
    During the creation of  logical ports -  for the consumers we used the WSDL (of the providers) as the inbound message action.
    (This has been done to all the services query , notification that are relevant in our integration).
    Current behavior / issue .
    While creating sales order the sales order is not getting saved (getting updated in the database).System allows us to complete the sales order creation process and also we get a message as sales order saved successfully. But then there is a update terminated express document that pops up. Sales order is not getting updated  in the database.
    When I see the logs/traces in SOAMANAGER I see that the query out is successful , query in has the right response (in warning state though) . But no notification is being triggered ?? 
    How to overcome this update termination issue ?
    When we see the SM13 log , it points to SLD issue (LCR 010: Internal error in SLD API). why do we need a SLD without PI ?

    Hi ,
    Can you tell me more details of how you are testing this ? I was successfully able to impilment this solution (credit management using ws-rm in ehp5). If you can give me more details i can surely try to help .

  • F-44 Vendor Clearing Update Terminated

    Dear All,
                  When we try clearing Open Line Items of a particular Vendor, system posts the document but eventually produces an ABAP RunTIme Error with Update Terminated Error. The line items remain as open items instead of getting cleared.The Dump Details are:
    The ABAP/4 Open SQL array insert results in duplicate database records.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLJ1IDEFTAX" 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?
    The termination occurred in the ABAP program "SAPLJ1IDEFTAX" in
    "J_1I_POST_DEFTAX_ITEM".
    The main program was "RSM13000 ".
    The termination occurred in line 44 of the source code of the (Include)
    program "LJ1IDEFTAXU04"
    of the source code of program "LJ1IDEFTAXU04" (when calling the editor 440).
    The program "SAPLJ1IDEFTAX" was started in the update system.
    Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
    the
    procedure "J_1I_POST_DEFTAX_ITEM" "(FUNCTION)" but was not handled locally, not
    declared in the
    RAISING clause of the procedure.
    The procedure is in the program "SAPLJ1IDEFTAX ". Its source code starts in
    line 7
    of the (Include) program "LJ1IDEFTAX$04 ".
      DATA ls_deftax_item_insert TYPE J_1IDEFTAX_IT.
      LOOP AT it_deftax_item_insert INTO ls_deftax_item_insert.
        IF ls_deftax_item_insert-line_type IS INITIAL.
          message x025(DEFTAX) with sy-tcode
                                           'NO_LINE_TYPE'
                                           'DEFTAX_ITEM'
                                           'FI_POST_DEFTAX_ITEM'.
        ENDIF.
      ENDLOOP.
      IF NOT it_deftax_item_insert[] IS INITIAL.
        INSERT J_1IDEFTAX_IT FROM TABLE it_deftax_item_insert.
      ENDIF.
      IF NOT it_deftax_item_update[] IS INITIAL.
        UPDATE J_1IDEFTAX_IT FROM TABLE it_deftax_item_update.
      ENDIF.
    ENDFUNCTION.
    Is anybody aware of any solution or note related to this.
    Regards,
    Sonali.

    Hi Sonali,
           This error due to Some text objects and messages are missed in consolidation system. Please take help of the basis consultant and implement the support packages 932658 & 932659
    Regards,
    Srinivas Muthyala

  • Update termination in Transaction ME9F

    Hello MM Guru’s,
    I would like to inform you that we are observing update termination in transaction ME9F for a particular user repeatedly in production environment.
    Error in Functional Module: RV_MESSAGE_UPDATE
    Error Message: WHT type Z4 missing in vendor master XXXXXXXX
    When I check in vendor master data Indicator for withholding tax type Z4 already maintained.
    It was strange why when users execute transaction ME9F the above updates terminate happens in the system.
    I got a similar issue earlier where at that time Indicator for withholding tax type not maintained in vendor master data and I have informed business to maintain and re execute the transaction ME9F.
    Request you to help me on this issue as I said this is a repeated one which is occurring for a particular user and I need to fix it by taking your valuable input.
    Revert back in case you need any information required from my end.
    Cheers,
    Kumar S

    Hello Bijay
    I was asking you about my analysis (2 different users access ME9F for the same PO) done along with ABAPer whether its correct or not.
    In your earlier response you have not responded to my analysis instead you are replying me that experts cant access my system.
    I very well understand that our Experts cant access my system but they are always helping me for my all issues with their valuable input.
    We just wanted to know whether we are deviating from the issue in this case.
    I have also checked what other experts like Jurgen/AKPT & Mallinath suggested me and the analysis given below,
    To inform experts that we never use custom print program and we are using standard SAPFM06P print program.But the layout is custom according to our business requirement.
    Let me know still you need any clarification from my end.
    Regards,
    Kumar.S

  • PO update terminated with error - migo

    Experts,
    Entering a goods receipt in R/3 for an SRM replicated P.O. (using trx.
    MIGO). Upon backing out of the transaction, an "update terminated"
    message is received with a short dump in the system log.
    The Material doc. is posted correctly and all accounting documents are
    posted correctly.
    We looked at SAP note 131178 but this does not seem to be exactly what
    we need.
    This error does not happen every time. Sometimes the PO can be posted
    without any short dump.
    We are on using ECC 6.0 that is connected to SRM 5.5
    Any help would be greatly appreciated.
    Below is the output of the shortdump in ST22:
    Runtime Errors         PERFORM_NOT_FOUND
    Exception              CX_SY_DYN_CALL_ILLEGAL_FORM
    Date and Time          10/10/2007 13:24:45
    Short text
    Call (PERFORM) to a non-existent routine.
    What happened?
    There exist various options:
    Error in the ABAP Application Program
    The current ABAP program "RMCSS012" 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 "RMCSS012" 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_DYN_CALL_ILLEGAL_FORM', was
    not caught in
    procedure "F0020_UPDATE" "(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 program "RMCSS012" is meant to execute an external PERFORM,
    namely the routine "MCE1_100" of the program "SAPFMCEF", but
    this routine does not exist.
    This may be due to any of the following reasons:
    1. One of the programs "RMCSS012" or "SAPFMCEF" is currently being developed.
    The name "MCE1_100" of the called routine may be incorrect, or
    the routine "MCE1_100" is not yet implemented in the program "SAPFMCEF".
    2. If the program SAPMSSY1 is involved in the runtime error, one of
    the function modules called via RFC is not flagged as remote-capable.
    (see Transaction SE37  Goto -> Administration -> RFC flag)
    3. There is an inconsistency in the system. The versions of the
    |    programs "RMCSS012" and "SAPFMCEF" do not match.

    Hi Pooja,
    Check SAP Note 1015948 - AFS:Update terminated after PO Change ME22N. and SAP 485651
    Thanks
    Sunny

  • "Update Termination" error when TECO is been done to Workorders in IW32

    Hi Everyone,
    I am facing some problem with IW32, what has happened is when I create a notifiaction and simulatenously do a TECO(technically completed) to a workoder in IW32, i get a error Update terminated.
    I problem is it is not cretaing th notification too, after when i create a notification and click on TECO icon, it leave the IW32 screen and says Order#XXXX and Notification %000000000001 saved.
    Note that recently the support pack has been applied to the system(ECC 6.0)
    so when i freshly create a WO# and create a notification and do teco immediately i do not have any problem and notification too gets created.
    I have problem only those WO# s which was created before support pack and notification and teco done now(i.e. after supprot pack is applied) .
    Please help me on this, every day this seems to be a problem i get a couple tickets on this and unable to rectify this error
    Regards,
    Raj

    Hi Everyone,
    I forgot to add the error that causes Upadte terminte,
    when i looked in SM13, it says Notification Missing,  Since notification and teco happening simulataneously this is happening, but why is that when notification created and done Teco before and after Support pack works..
    where as the WO# create before and notification and teco done later  has problem..
    is it some cofig problem..

Maybe you are looking for

  • IPhoto 11 keeps losing network connection

    Ever since OSX Lion and iPhoto 11, one annoyance is, when you first load iPhoto, everything is 100%.  Perfect.  Then you go on and work with something else and when you return to that iPhoto 11 space, click share, and all the network connections are

  • Enhancement Section Activated but changes not taking place

    Hello Friends, I have been getting a dump error for FM GN_DELIVERY_CREATE_FOR_DIALOG which says that "spe_version" does not exist in table "LIPS". I found a enhancement option that commented out the perform that lead to the subroutine which has the e

  • Is it normal for Firefox Mobile to refresh the Android home screen?

    Firefox always causes my Android home screen to refresh every time I close out of it. Why does this happen is it normal? Note: I have an HTC Merge. this happens even with a fresh install of FF with no add on's.

  • How to share ethernet printer via wifi?

    I currently have an ethernet laser printer connected to our two desktops via an ethernet router/hub. If I disconnect the ethernet hard wire from one desktop, is there a way for it to continue to access the printer (ethernet capable, not USB) if I add

  • Problems in ECC 5.0 installation?

    Hi, I have sucessfully installed ECC 5.0. But whenever I execute OAM1 transcation, no Storage Queues are displayed but "MISSING" is displayed. As this is new installation the No of Storage Queues shpuld be 0 but instead "MISSING" is displayed and whe