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

Similar Messages

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

  • 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

  • Run time error while saving the production order in CO02

    HI Experts,
    While i am releasing and saving the production order the system is giving the runtime error. Please help.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_SLD_API_EXCEPTION
    Error analysis is
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SLD_API_EXCEPTION', was not
    caught in
    procedure "GET_ACCESS_DATA" "(METHOD)", 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:
    Internal error in method
    A Quick response is required.
    Regards
    Dinakar Sarma

    Hi,
    Please check below  link for your issue , it may useful
    http://forums.sdn.sap.com/thread.jspa?messageID=10815298#10815298
    Regards,
    Ram

  • 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 release of production order u201CNext period is not openu201D

    Hi Experts,
    Need your opinions on this issue where my client is facing a problem while create and release a production Order on the last day of the month (Last day of period change).
    While create and release of production order for Plant xxxx, system uses to give the error; period Next (e.g. 12) is not open. Same thing if I have created the order using T. code CO01; but when I tried to release and save the order through T. code CO02 then it gave me the same error (Next period is not Open), it checks for the next period to open.
    The above scenario happens only on last day of the month. Earlier this kind of error was not there so the question is why the period check is happening while saving the production order.
    After speaking to the user, it is determined that they are facing this problem since upgrade (Since last 8 month). Hence need to check what additional check has been implemented with upgrade from R/3 4.7 to ECC 6.
    Error Message No F5201
    Appreciate your help how to dig up this issue.
    With Regards
    Anant

    Hi Guys,
    Please throw some light why on the last day of the month (Last day of period change) at the time of release the order user is getting error: Period Next (FI Next period) is not open ( message No. F5201).
    My question is why system carried out period checks at the time of release of Production Order.
    With Regards
    Anant

  • Error when release the production order

    Hi all,
    while release the production order i am getting the error :-   Plant 1000 is not the only plant assigned to valuation area 1000 , how to resolve this error .
    & can we release the prod order without calculating the cost ?
    Thanks & regards
    satish

    Hello,
    I'm facing the same issue when trying to create a production order using tran. CO01 with inputs (Material:  P-100, Production plant: 1000, Order type: PP01. Next the total quatity of material is chosen freely, Dates/start is set to todays date, Scheduling is set to Forwards scheduling).
    Error message :
    "Plant 1000 is not the only plant assigned to valuation area 1000"
    Message no. CK238
    As explanation SAP says:
    "Diagnosis
    You are attempting to use material costing or order costing. However, the system has determined that plant 1000 is not the only plant assigned to valuation area 1000.
    Costing is only possible when each plant has its own valuation area to which no other plants are assigned.
    System Response
    It is not possible to cost in your system.
    Procedure for System Administration
    Go into Customizing for the Corporate Structure and check the valuation level. The valuation level must be the plant level"
    The error message implies that the user is not given the opportunity to create and save a production order.
    I have secured the followings:
    1. Valuation level is set to Plant level so that the valuation is now done at plant level. (The other option was at Company code level, which is not checked.)
    Question:
    Is there a solution to this problem?
    Thanks and Regards!
    Edited by: WilliamG on Feb 16, 2010 4:04 PM

  • Error while creating the product group by MC84

    Hello Friends,
    I am creating the product group by MC84, and in product group field i have given the product group name i.e P2345, and its description i.e product group for waluj, plant i.e cw01 and Base unit i.e KG.Now when i press enter system is throwing the error"The field is defined as the required field;it doesnot contain an entry."Message no.MG144.And with this error system is placing the cursor on product group field.As i have already given product group name than also system is throwing the error.
    Though i know the alternative method to create product group by MMO1 and selecting the material type PROD, then also i want to know why system is throwing the error while creating the product group by MC84.
       Please guide.

    Dear,
    This message says that you have not entered a mandatory field.Enter proper values for all mandatory fields and then you will not get this error.
    Try to create the product group as material of material type"PROD"
    Then you go on adding the memebers in SOP Transaction.
    In some of the versions of SAP it is the problem.
    I have also faced this problem in some versions.
    Regards,
    R.Brahmankar

  • 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 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 while closing the open purchase order for MRP run

    HI expets,
                     We are facing issue while closing the old purchase order(18.12.2007) for MRP run, if we are clicking delivery completed for the particular line item ,system is showing the error NET PRICE MUST BE GREATER THAN ZEROthough we have made GR and IR aganist the line item an value is also showing in the purchase order history tab, but in the condition tab there is no value showing for the particular line item .Kindly suggest the way forward.
    regards
    Karthick sundaram

    one thing for sure, you cannot proceed without maintaining proper conditions in the PO.
    Why they are not there or not anymore there is probably caused by customizing or vendor master data changes.

  • Error  -10  while closing a Production Order with DI API

    Hi,
    I've been trying to close some production orders using this code:
    Dim oProdOrder As SAPbobsCOM.ProductionOrders
            Try
                oProdOrder = Me.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)
                If oProdOrder.GetByKey(intDocEntry) Then
                    oProdOrder.ProductionOrderStatus = SAPbobsCOM.BoProductionOrderStatusEnum.boposClosed
                    If oProdOrder.Update <> 0 Then
                        Me.Company.GetLastError(intError, sErrMsg)
                        If (0 <> intError) Then
                            sErrorMsg = sErrorMsg & "Production Order Close Error: " & CStr(intError) & "," & sErrMsg & _
                                ". DocEntry: " & oProdOrder.ProductionOrderOriginEntry & vbCrLf
                        End If
                    End If
                End If
    ...But I keep getting the same error every time I try: -10,Date out of reference date range, '_SYS00000005340'
    The error doesn't show when I close the Order with BO's Form. And I've checked the exchange rate for the posting and due date of the document (and also for my current date) and there seems to be no problem with it.
    I'm currently working with SAP BO 2004A PL 45.
    Anybody has a suggestion? a workaround?
    I'll appreciate any help you can give me.
    Thanks in advance...
    Alfredo

    Alfredo,
    just in case,
    what is the previous state of the production order (planned, released,...)?
    before you try to close the order, update the status to released:
    If oProdOrder.GetByKey(newID) Then
    'Cambio di stato dell'ordine da 'Planned' a 'Released'
                    oProdOrder.ProductionOrderStatus = boposReleased
    oProdOrder.Update
    I found this code in a DI API application written for 2004A. It was commented out so I suspect it didn't work.
    'Chiusura dell 'ordine
            'SelProductionOrder.ProductionOrderStatus = boposClosed
            'ret = SelProductionOrder.Update
            'If ret <> 0 Then
            '    sboCompany.GetLastError nErr, errMsg
            '    MsgBox "Errore " & nErr & " - " & errMsg
            'End If
    Hope this helps

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

Maybe you are looking for

  • Writing java code in JSP

    Hi All I dont know which one of the following is more effective in JSP writing java code like <% out.println("Hellooo "); %> OR writing like <%="hello" %> I shall be very much thankful to all those who spare their valuable time to clarify my doubt. I

  • SAP R/3 to External System RFC issue

    Hi Experts, We have one Peculiar issue in our SAP R/3. Request you to help me in resolving this. Order Processing: During Sales Orders Processing, for every line item a RFC is being initiated from SAP R/3 to an external system called Trilogy Pricer t

  • Error: None of the fact tables are compatible with the query request

    Hi experts, I have one confirm dimension D1 and other two fact table F1 and F2 (F1 and F2 are connected to D1) when i create a report from D1 and F1 the report is running fine. But pull the column from F2 also in this report i am getting the followin

  • Error in uploading master through LSMW

    Hi, We are uploading customer master through LSMW with flat file in 10 th step (Display Read Data) we are getting error that - "Data record too long to be imported (0 or >5000)" we checked length of file also everything is perfect. So How to resolve

  • Processor Performance??

    I read a discussion on mac gaming (http://discussions.info.apple.com/webx?128@@.68adc78a) It says that for certain games, an idea is to change something called processor performance. I am currently on my dads G4 Power mac as my imac has not arrived y