Update terminated due to duplicate BELNR in COBK table

When i try to post a document debiting any expense, i am able to save it. System also shows the document number. However, when i go for display, i get a Express message that update terminated. After 3 or 4 days, i could pass some entries and now again i get the error. This error does not happen when there is no posting to controlling object.The message is
Transaction..   FB01
Update key...   462F2B13261A005402000000C0A801A0
Generated....   25.04.2007, 16:24:35
Completed....   25.04.2007, 16:24:35
Error info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
The details show that duplicate BELNR could not be processed in COBK table.
As we all know that CO documents are internal numbers and there can not be duplicate numbers allotment by the system. How to resolve the issue.
The GL Account does not get updated. The document can also not be displayed.
Thank you

Hi,
You are write that the CO document numbers are internal numbers and hence should not be duplicated. Please check the last document number in the current status of the Number range object vis-a-vis the Co documents posted in the table COBK. You may have to update the current status of the number range to the last posted document number in COBK
Regards
Mahendra

Similar Messages

  • 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 termination when create customers

    When I create and save a customer, the system issues an express
    document afterwards telling that the 'Update was terminated'.
    This happens only when I wanted create same customer # to new company code,  which already exists in different compnay code through XD01.
    The following update termination occurs:
    F2 802: System error in table &, account & when inserting.
    I found a note 916688 but it is belong to patch level 4 of ecc6.0, we are on level 7. Do you have any idea what is causing this or any other note that you can suggest. Advance thanks.

    Hi,
    Check the number range for this account group.
    Are you using the same account group as the other one or some thing else.If you are using the another one then check the number range.
    And also show this error to your ABAPer and ask him to debug the code.
    Check in SM13 T.code to find the error where and why it is appearing?
    Regards,
    Krishna.

  • Update termination when I create customers

    When I create and save a customer, the system issues an express
    document afterwards telling that the 'Update was terminated'.
    This happens only when I wanted create same customer # to new company code,  which already exists in different compnay code through XD01.
    The following update termination occurs:
    F2 802: System error in table &, account & when inserting.
    I found a note 916688 but it is belong to patch level 4 of ecc6.0, we are on level 7. Do you have any idea what is causing this or any other note that you can suggest. Advance thanks.

    Hello
    Try transaction FD01 because with XD01 system also attempts to create general data....
    Ask an ABAP consultant to check the correction instructions in this note 916688 and compare in your system if the changes as per note are reflecting there.If not implement the note.Usually when ABAP consultant applies note using SNOTE he should get a message if not is applicable in your system or not.
    Thanks
    Vikas

  • 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 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.

  • Workflow Manager 1.0 (SharePoint 2013): The process was terminated due to an unhandled exception

    I am seeing large numbers of the following errors appearing in the event log of the SharePoint 2013 application server hosting Workflow Manager 1.0:
    Log Name: Application
    Source: Application Error
    Date: [Date/Time]
    Event ID: 1000
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [Application Server]
    Description:
    Faulting application name: Microsoft.Workflow.ServiceHost.exe, version: 1.0.20922.0, time stamp: 0x505e1b24
    Faulting module name: KERNELBASE.dll, version: 6.2.9200.16864, time stamp: 0x531d34d8
    Exception code: 0xe0434352
    Fault offset: 0x0000000000047b8c Faulting process id: 0x691c Faulting application start time: 0x01cfc2776b3f0d74
    Faulting application path: C:\Program Files\Workflow Manager\1.0\Workflow\Artifacts\Microsoft.Workflow.ServiceHost.exe
    Faulting module path: C:\Windows\system32\KERNELBASE.dll Report Id: b8157bf8-2e6a-11e4-9413-00155d38891d Faulting package full name:
    Faulting package-relative application ID: Event Xml:
    Log Name: Application
    Source: .NET Runtime
    Date: [date/time]
    Event ID: 1026
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [same application server]
    Description:
    Application: Microsoft.Workflow.ServiceHost.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception
    Info: Microsoft.Workflow.Common.FatalException Stack: at Microsoft.Workflow.Common.Fx+<>c__DisplayClass2.<failfast>b__0() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object,
    Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Threading.ThreadHelper.ThreadStart()
    Event Xml:
    Log Name: System
    Source: Service Control Manager
    Date: [date/time]
    Event ID: 7031
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [Same application server]
    Description:
    The Workflow Manager Backend service terminated unexpectedly. It has done this 895 time(s). The following corrective action will be taken in 30000 milliseconds: Restart the service.
    Event Xml:
    The SharePoint 2013 farm is updated through the September 2014 PU (KB2995902).  Topology: 1 App, 2 WFEs.  Workflow Manager 1.0 installed to the App server.  Workflow Manager 1.0 cumulative updates one
    and two have not been installed.  The Service Bus Gateway and Service Bus Message Broker services are started.  The Workflow Manager Backend service can be started, but then quickly stops.
    Thoughts?  Resolution?  I would be grateful for any assistance.

    Hi Stephan,
    As I understand, you are encountering the issue that Workflow Manager Backend service terminating each time. May I know did you run the update cmdlets after you installed the updates for SharePoint server 2013? Please confirm it per the link below:
    http://technet.microsoft.com/en-us/library/dn133867.aspx
    If you haven’t run the updates cmdlets, I suspect this is an install issue. I’d suggest you re-install workflow manager to resolve the issue:
    1) Leave WFM/SB Farm
    2) Uninstall updates and application in the following order and one at a time:
    Service Bus CU1
    Workflow Manager CU1
    Service Bus 1.0
    Workflow Manager 1.0
    Workflow Manager Client 1.0
    Microsoft Windows Fabric
    3) Log into SQL server and delete Service Bus and Workflow Manager databases.
    SBManagementDB
    SBGatewayDB
    SBMessageContainer01
    WFManagementDB
    WFInstanceManagementDB
    WFResourceManagementDB
    4) Install in the following order one at a time through Web Platforms Installer:
    Workflow Manager 1.0
    Service Bus 1.0 CU1
    Workflow Manager 1.0 CU1
    Regards,
    Rebecca Tu
    TechNet Community Support

  • 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 on coding in user exit EXIT_SAPLCOIH_009

    HI All,
    I am working on approval of a work order in IW32 for which I am coding within a user exit EXIT_SAPLCOIH_009 which gets triggerred at the time of saving the work order. This will update the AUFK table and send a mail to a recipient. But when I save the work order after approving it, it gives me an error saying "Update Termination error". I checked within the SM13 transaction and ST22 for dump analysis, it says "The ABAP/4 Open SQL array insert results in duplicate database records.". Can anyone tell me what could have gone wrong and how I can rectify this. Your help is greatly appreciated.
    Thanks in Advance

    Hello
    This type of error will appear in three cases
    1.when there is a record in the database and trying to insert another with the same number
    2.If there is any inconsistencies in number ranges  (check this only if you have changed the number ranges very recently)
    3. If the output type and the output device is wrongly selected ( not the prescribed)
    Analyse yourself.
    Regards,
    Prakash

  • Update termination when creating delivery in ECC 6.0 system

    Hi
    Issue: Update termination occured when creating a delivery with Order rederence from VL01N in ECC 6.0.
    Created a delivery from VL01N and press 'pack' button and saved. I received a message 'Delivery XXXXXXXX is created' and then when i ran VL03N it gave a update termination. Log says 'RV_MESSAGE_UPDATE' MC 601: Object requested is currently locked by user AYEDLAPALLI
    I went to where used list for this function module and tried to activate the program 'LOIRI_REPORTINGF01' and it gave an error message "Data object 'PT_VBRK' has no component 'OIRIPBLNR' in prog 'LOIRI_REPORTINGF01'  .
    Could you please let me solution if anyone come across this issue?
    Thanks,
    Anil

    Hi Anil,
    Before approaching the basis team, pls. check whether are there any outputs are triggering in Delivery. In my previous experience due to output related problem this kind of error we faced.
    Mahesh

  • Update terminated message

    Hi All,
    Wanted to know in which case this message is received in user's Inbox?
    In one of our material master workflow scenario, there was a problem due to changed password of WF-batch.
    After the new password was known, we used synchronize password option and the worklfow started working.
    However now there is problem like user is getting Update terminated message in Inbox .
    Will it have any connection to the change done for WF-batch pasword?
    Regards,
    Akshay

    Hi Akshay,
    Difficult to tell, updates can terminate for different reasons and can be basis or config problems.
    Look in SM13 for more details on updates, or as Amandeep already suggested, short dumps in ST22 will also tell you more.
    If you don't come right, let us know what you find out and we can try to help further.
    Cheers,
    Mike

  • 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 termination error while parking multiple items using BAPI fn module

    hi experts,
       i am facing a problem with bapi_incominginvoice_park.when i am trying to park invoice for single item for the po the invoice number is generating and getting updated in database in the same way when i am trying to park for multiple items the invoice number is genrating but not getting updated in database table.Here i am getting error 'Express document update terminated BY THE user'.How to solve this problem to find these error i have gone to se13 transaction,there it is showing SAQCL_DUPRC.it is saying duplicate errors in table but there are no duplicates in table.
    Thanks,
    Vinod

    hi vinod ....i tried the following it worked...
    while sending tax info dont send any tax table manually  i.e updating the vit_tax table using append statement
    also while testing function module for multiple PO , no need to provide the tax info in the tax table
    what we have to do is only to provide 'X' In the tax calculation option in the header details
    HEADERDATA-CALC_TAX_IND = 'X'.
    1.this will enable tax
    2. will make the po status green so that the parked document can be posted .

  • When releasing PO error  occured Express Document " Update Terminated"

    hi all
         i am getting a strange problem ,
    while doing release of PO(purchase order) by t.code ME29N, i am able to release  and SAVE it properly with out any error.
    But when returning back to ME22N t.code to see that PO .
    i am getting this error :
    Note : - this error is coming for a particular TYPE of PO's and with
                in that TYPE all PO are not giving ERROR,
                Please tell me what can be reason,
    Express Document "Update Terminated"
    Runtime Error          POSTING_ILLEGAL_STATEMENT                           
           Occurred on     15.07.2008 at   11:03:24                                                                               
    Statement "CALL DIALOG" is not allowed in this form.                                                                               
    What happened?                                                                               
    Error in ABAP application program.                                                                               
    The current ABAP program "SAPLSTXW " had to be terminated because one of the
    statements could not be executed.                                                                               
    This is probably due to an error in the ABAP program.                      
    Information on where terminated                                                                               
    The termination occurred in the ABAP program "SAPLSTXW " in "DISPLAY_OTF".
    The main program was "RSM13000 ".                                                                               
    The termination occurred in line 82 of the source code of the (Include)  
    program "LSTXWU02 "                                                     
    of the source code of program "LSTXWU02 " (when calling the editor 820). 
    The program "SAPLSTXW " was started in the update system.                                                                               
    000710                                                                           
    000720     if ( sy-binpt = false and                                             
    000730        ( ( cl_gui_object=>www_active = true or                            
    000740            itcpp-tdscreen = 'ITS' ) or                                    
    000750          ( cl_gui_object=>javabean = true and                             
    000760            itcpp-tdscabap = false ) ) ).                                  
    000770                                                                           
    000780       perform cc_display_pdf.                                             
    000790                                                                           
    000800     else.                                                                 
    000810                                                                               
    >       call dialog 'DISPLAY_OTF'                "ABAP-List-Preview         
    000830              exporting otf itcpp 0                                        
    000840            importing itcpp.                                               
    000850                                                                           
    000860     endif.                                                                
    shall i concern this with BASIS person , coz every PO not having this problem,
    i think it is related to time taken by SERVER for UPDATE is more then this error comes .
    OR is there any technical issue related to ABAP.
    regards
    sachin

    This problem will be caused by an output which will be triggered when releasing the PO. Check the messages in the PO for which one is causing the update error.
    Regards,
    John.

  • Update Termination from Author @ time Executing T code FINT (int calculation

    Hi Guru,
    currently i am facing issue related with Update Termination @ time of running "FINT" T code but Interest document get posted successfully.
    need expert advice to resolve this issue.
    SM13 screenshort attached.
    Thanks
    Pankaj

    Hi Pankaj,
    I was having the same issue pending for some time and I just solved it:
    Basically you are getting this issue because your are executing the same
    Interest Calculation run multiple times (message CD 327).
    Why:
    For each Interest Calculation run, SAP creates a change document in tables
    CDHDR/CDPOS (1 document per calculation run).
    When re-executing that same run, the system tries to insert the same record
    in the tables and of course that generates a short dump.
    SAP is actually clear about re-execution of Interest Calculation run:
    SAP Note 1499117 “We do not support the duplicate interest calculation of a period.”
    Resolution:
    If you need to re-execute the Interest Calculation run, then reverse the
    initial execution (FINTSHOW) and execute again (FINT).
    I just tested this and it is working fine.
    If this has helped solve your issue, please mark as correct answer so that
    other people can refer to it.
    Regards,
    Olfa

Maybe you are looking for

  • How can I download the 10.0.0.0.0.0 or newer

    Hi, I am new to discoverer. I need to work on an existing .eex file. Seems the version of discoverer that I have installed in my local machine is not up to date as the file that I am trying to open is of higher version. I got a error message that 'Ne

  • Burn Failed

    I burned 9 disks for iPhoto backup. On the 10th disk I received this message: " Burn Failed The burn to the OPTIARC DVD RW AD-5680H drive failed. The disc drive didn't respond properly and can't recover or retry." I tried the 4 times, shut down, open

  • KE30 report is not matching with KE24

    Hi Experts, In our Production System erroneously, COPA documents were archived during September 2010 (01.09.2010 to 16.09.2010). Subsequently, these documents were re-created by SAP Standard transactionsKE4S and KE4SFI. Before and after restoring COP

  • Splite DN with one sales order

    When created D/N ,system gave the message as following, could you please help me to figure out what's the rootcause and how to mkae it to one D/N,thanks very much Item 000020: delivery split due to conflicting header data (AKKUR: 32.90000 <->        

  • Navigation not displaying horizontally

    I've been trying to tweak every level of the CSS but cannot get the sub nav items to display horizontally on hover. Here is the test page: http://gbetza.mydomain.com/webservice2/test/Basso56/test/Reviews.html Here is the CSS: http://gbetza.mydomain.c