Error while closing an Internal Order

Hello,
I received an error while closing an order saying .
+"There is still a purchase order commitment for Order 'XYZ' ". Error no. K0447.
The order has been completely settled. I don't see any error on PO side
What could be causing this and how can I resolve this.
Thanks
Kavita.

There are still some open PO's (quantity yet to be delivered) with account assignment to the IO. Set Delivery Complete for all items in PO and then try closing the IO.
This has nothing to do with actuals but commitments, in this case PO commitments.
Regards
Sreenivas

Similar Messages

  • Run time error while closing the CRM Order using BAPI

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

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

  • Error while settlement of Internal order

    Dear All
    I am getting the following error while executing KO88 "Choose transaction type and base value appropriate for asset values".
    The settlement and posting period are 12 and the processing type is "Partial Capitalization".
    Pls advice
    Rgds
    Nitika

    hi.....
    check you settlemnt rule for internal order. forsure you will find mismatch between settlemnt rule and actual settlemnt. check in settlement rule the % to be settled.
    Regards
    Manish Jain
    Pls assign points if your problem get solved.

  • Error while Closing the Production order.

    Hi ,
      We are doing operation Subcontracting Process. This process works on the basis of Production order, once the Production order generated automatically system generates a Purchase requisition which we are converting to Purchase order  and doing the sub contracting process.
    Now i have received all the material from the Subcontractor ( GRN and MIRO ) has been completed , for the Production order all the confimration and Delivery has also been completed , now i have done Technically completion for that order , now i am closing the Order ( Functions -Restrict processing - close ) , while closing it gives me an error saying that Purchase order still exists .
    Wat is this error ?? why is it coming so ??
    Regards
    Rajesh

    hi,
    You have to ensure that the order is not having any WIP, if you have any WIP for that order you have to complete the order and then only you could abale to clsoe the order.
    Check the WIP for the order thorugh KKAX.
    Regards,
    Rama Mohan

  • Error while closing a production order

    Hi
       I have raised a production order for 10 products.I have a confirmed yeild of 11 products.I have a overdue tolerance of 10% for that semi finished good.Even then it is not allowing to TECO the order.Why
    regards,
    PradeepM.

    Actual problem in my case is like
    1. there are 4 operations in the semi finished good that is produced
    2.In first operation some products are produced in extra then actually required
    3.In second operation the extra quantity produced is scrapped
    4.The final quantity confirmed for the required product is same as the ordered quantiy
    Even then it is showing an error message GR quantity is more than confirmed quantity when trying to TECO the order.
    how to correct this error
    regards,
    PradeepM.

  • Error While Closing the order???

    Hi Experts,
    I am facing error while closing maintenance order.
    can anyone provide me the solution.
    please find the attachment and do the needful.
    Thanks & Regards,
    Sunil Boya

    Hi Sunil,
    As I do not have much exposure to this area, I would suggest you to:
    1. See this thread  Can not Close Orders for which Period is closed? | SCN
    and go through the answer of Paul Meehan
    2. Search Google with String 'SAP message CO688' . you will find several useful SCN links on the subject.
    3. Wait for Experts answers to this thread.
    Jogeswara Rao K

  • Error in Closing of Production Order

    Dear Gurus,
    I am getting following error whil closing Production order
    "Unprocessed Future change Recs for order ###  prevent deletion flag /completion "
    Can anybudy explain me what is this ?
    Ishwar

    Hi,
    Please check the following
    Prerequisites for Setting the Deletion Flag
    The following prerequisites must be fulfilled before a deletion flag can be set:
    Are there any more (manually added) purchase requisitions or purchase orders assigned to this order?
    If so, these must be deleted first.
    Is there a balance for this order?
    The deletion flag can only be activated if the order has already been settled or if no actual costs have been accrued in the order. This means that the actual costs for the order must be equal to zero.
    Are there any commitments for this order?
    If so, these must be deleted first.
    Are there any inspection lots in this order?
    If so, each lot must have the Completion of all inspections is set and the Usage decision made status.
    Are there any goods movements with errors for this order?
    If so, these must be processed first.
    Regards
    Kannan

  • Error when displaying an internal order

    Hi,
    I am trying to create an internal order with a particular order type. The internal order gets saved. But while displaying the internal order, I get a message saying "Express document : Update was terminated". The error briefs "ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC".  After pressing enter to pass the message, I can see the same order with different parameters - like the company code differs from what I have entered earlier, similarly, profit center, business area etc.,
    Any suggestion how to rectify this?
    Regards,
    Sakthy

    Hi,
    the number that should be used for the order that you want to create  is already used for another existing order, thats what "SAPSQL_ARRAY_INSERT_DUPREC" means. This number range is comp. code independent.
    Check your order number range (T-Code KONK) and change the already used order numbers to the highest number that can be seen in tabla AUFK for all the order types using this number range.
    Best Regards, Christian

  • While settlment of internal order down payment settled

    Dear All,
    We have made a down payment to vendor by using f-48 given reference of Internal Order & P.O Number, but while settlement of internal order to AUC Down payment also settled.
    How to exclude Down Payment?
    Regards
    Vishvas B

    Hi Jigar
    I will brief You the background
    Scenerio 1
    When we ar Trying to Book Advcance for Captial (Sp GL type "M")
    We need to to book against PO no But it is not coming in "M scenario
    PLs configure it as reqd.
    Solution
    so I changed the field status, PO order Optional entry
    Now client put P.O No & Internal Order No. in down payment made
    Point 2
    Internal Order can not settled
    error was Transaction type entered belongs to transaction type group 15  the asset you are posting belogs to asset class AUC
    solution
    Solution
    OAYB
    Transaction type group selet 15 down payment allowed all AUC
    OKEP
    Down payment  Default cost element
    Now I reversed the above setting,
    what is the alternate for excluding down payment while settlement of Internal Order
    Thanks
    Regards
    Vishvas
    Vishvas

  • Error while saving the Sales Order

    Hi experts,
        i am getting a runtime error while saving a sales order stating: SAPSQL_EMPTY_TABNAME. It says the field T681-KOTAB could be empty. I would give in more inputs. Someone plz help.
    Thanks.

    I would expect that KOTN521 would be a Database table defined in the ABAP Dictionary that relates to the condition implemented in 521 for the usage specified in that record.
    You should be able to go into the info system, SE84, and search under ABAP Dictionary / Database Tables to see what KOTN521 is.
    Also, since the only Keys to T681 are KVEWE and KOTABNR, and there are two KOTABNR entries with a value of 521, then there must be two different usages (KVEWE) associated with that table.
    If you see what they are, you can check to see what the usages represent.   Based on a lookup, it appears that a usage of N is for Free Goods, A is for Pricing etc.   In our system, we only have A entries.
    What are the usages for the 521 entries?  Do they relate to Free Goods/Pricing???
    Does the table KOTN521 exist in the ABAP Dictionary?
    Answering these questions may get you closer to the answer.
    Can you compare the values in these entries to what you have in different SIDs?
    Is this problem happening in Production, or is it still in a development or Quality Assurance client?
    If it is still in development or Q, then it may be that a recent customization change was made.
    Compare the entries across your systems, if possible.
    Good luck
    Brian

  • RunTime Error while saving a Sales Order

    Hi All,
    When i am saving a Sales Order, the system is throwing a Runtime Error.
    The ABAP Code in the Runtime Error screen as follows.
              select * from (t681-kotab) appending table <cond_tab>
                     up to 1 rows
                     where kappl  = se_kappl
                     and   kschl  = se_kschl
                     and   datbi >= se_date
                     and   datab <= se_date
                     and   (coding_tab).
    Till these days, there was no such error while saving a Sales Order.
    How to resolve this issue?
    Regards
    Pavan

    Hi,
    The below piece of code is trying to get the contents of the table mentioned in T681-KOTAB.
    select * from (t681-kotab) appending table <cond_tab>
    up to 1 rows
    where kappl = se_kappl
    and kschl = se_kschl
    and datbi >= se_date
    and datab <= se_date
    and (coding_tab).
    The reason could be is someone has screwed up the entries in T681 table. Check that out.
    Try to put a break point on this SELECT query and see what the value of T681-KOTAB holds before the SELECT query. Check whether such a table entry exists in DB.
    Let me know if you are still stuck up.
    If you can send me the ST22 dump of the run time error, i might be able to help you more  on this.
    Hope this helps.
    Thanks,
    Balaji

  • Serial number error while creating the production order

    Hello frds,
    I am getting the following error while creating the production order.
    "Item 000000 requires exactly 100 serial numbers for the asset".
    If i give 100 serial numbers in the order, the error is solved. But i do not want to assign 100 serial numbers, i want to assign only 2 numbers.
    I have tried using the new serial number profile also, but it is giving same error.
    Kindly guide.
    Regards,
    Narendra Bora

    Dear Narendra
    Select the serial number profile and go to serialization procedure and set the ser. usage status 02 - Optional as below.
    Procd Procedure description Ser.Usage
    PPRL PP order release 02
    since the serail number creation is optional for order relase this will allow you to relase with out error and with serail number assigned in partial.
    Regards
    Soundar

  • Error while creating the sales order with billing reference

    hi alll
    i am getting error while creating the sales order with billing reference.The line items are coming in grey.I am not able to change the items as well as the quantity field.Can u guide me
    cheers
    shalsa007........

    Dear SAP SD 007
    I can confidently tell that an enhancement or an user exit has been applied in your scenario
    You have to check that
    Normally when creating a sales order with respect or referring billing documents the qty will be in editable mode and it is standard problem
    Your people has solved the standard problem by enhancement
    Usually OR--LF-PGI----F2 (SAY THE QTY IS 25 UNITS)
    Now you are creating returns order with reference to F2 in the return order type Re there is a standard issue that user can edit the qty to 30 from the original 25
    To solve this only your people have used userexit
    Line items and qty greyed out means definately there is some enhancement or user exit applied
    You have to check that
    Regards
    Raja

  • Error while powering on: Internal Error

    I have a fresh install of windows 8.1 with all the latest updates installed. Whenever I try to power on a virtual machine, I get the error "Error while powering on: Internal Error". I've searched the forums and tried all the suggested fixes including ensuring that the auth service is running, renaming the vmware.exe file and running vmware.exe as an administrator. Looking through the logs, it seems like there are major permissions issues, but I have no idea how to resolve them. Can anyone help? I've attached the relevant log files.

    Hi hyjkim, and welcome to the VMware Communities!
    What is your host system?  You may need to check for BIOS/firmware updates for your host... it is reporting nonsense information to us, which is the cause of the failure.
    If you are sure that your host machine has the latest BIOS/firmware updates applied, let me know and I'll provide a workaround suitable for your system.
    Thanks,
    Darius

  • Error While saving the Production Order

    Dear Experts
    Pls let me know why am getting the below error while saving the production order after release..
    PSFC_STD_LAYOUT does not exist
    Message no. SSFCOMPOSER004

    Dear,
    Please check have you assigned the scheduling profile in work scheduling view of materail master?
    Then go to OPKP check the same scheduling profile where you have activited the On realese execute printing remove this tick mark and then try with new order.
    Or you can do the configuration in Tocde :OPK8 here assign the PSFC_STD_LAYOUT in forum.
    Regards,
    R.Brahmankar

Maybe you are looking for