Validate Settlement Rule In Internal Order

Hi Experts,
I have requirement to validate settlement rule entered by user in IW31/IW32. Currently, if the entered total settlement rule percentage is not 100% (more or less), message KD042 will occur as information message and user still can be proceed. Are there any ways to validate this settlement rule? only 100% (in total) are allowed. I tried to change message KD042 in OBMSG from information into error message, but still not succeed. The message still occur as information.
Thanks.

Hi Jigar, i already untick the "switch off" field but still no good. I decided to debug the standard program and i found out that the message type for KD042 is hard coded for 'I' in the include LKOBSF3N.
*   genau 100%
    IF ( G_TKB1A-HPROZ EQ 'X' OR
       T_UZO_PROZS-PERBZ EQ 'GES' ).
      IF T_UZO_PROZS-PROZS NE PROZ100.
        IF V_TAPRF-INVMA IS INITIAL.
*         Pruefung fuer nicht Invmassnahmen
          LD_MSGTY = 'I'. "Message type is hard coded here
        ELSE.
*         Pruefung fuer Investmassnahmen
          PERFORM INVST_WRONG_PERCENTAGE
                  USING V_OBJNR
                        V_TAPRF-ABART V_PERIOD T_UZO_PROZS.
        ENDIF.
      ENDIF.
    ELSEIF T_UZO_PROZS-PROZS > 100.
      IF T_UZO_PROZS-PERBZ = 'EPA'.
        LD_MSGTY = 'E'.
      ELSE.
        LD_MSGTY = 'I'.
      ENDIF.
    ENDIF.
Edited by: Tjhin Fandi on Nov 18, 2011 4:07 AM

Similar Messages

  • Settlement Rule for Internal Order

    Hi All
    I have Maintained Settlement rule for Internal order as under
    CAT - FXA
    Settlement Receiver - Asset
    % - 100
    Settlement type - Full
    Now after settlement of above Order in KO88 . I want again use above internal order. Hence i have trying to put Settlement rule 50% for some anther asset but system gave me following error. Please guide on this issue.
    Total = 50.00%, ( Set.Type PER / Version / Actual settlement ), period 010/2011
    Message no. KD042
    Diagnosis
    You have entered distribution rules which settle 50.00% in total. This applies for settlement view ( Set.Type PER / Version / Actual settlement ) in period 010/2011.
    When checking the percentage total, the system found one of the following errors:
    The total percentage for the distribution rules is more than 100%
    The total percentage for the distribution rules is less than 100% and this is a rule for full settlement.
    The total percentage for the distribution rules is less than 100% and the 100% check is switched on in the settlement profile.

    Hi:
            Please refer to the contents of OSS Note 45612 - IM: pre-settlement does not work, or KD042... which states
    "Symptom
        1. If a preliminary settlement rule (for example, to cost center) is entered for individual items of capital investment measures with line item management, this rule is not considered during periodic settlement. There is no settlement to cost centers.
        2. If you enter a final settlement rule for individual line items of investment measures with line item management for a partial capitalization (that is, the percentage rate is less than 100%), then you receive the unjustified error message KD042 "Total percent = xx%".
    Additional key words
    KOB5, CJ70, CJ88, CJ8G, KO88, KO8G, preliminary settlement, partial settlement, partial capitalization
    Cause and prerequisites
        1. You did not enter the settlement type ACT in the preliminary settlement rule.
        You can check this in the Line Item Apportionment transaction by choosing the menu option "Goto" -> "Overview dist. rules" to display the distribution rule groups entered so far.
        The system displays rules which have no entry in the "SetTyp" field (settlement type, field name PERBZ).
        2. The check of the percentages is incorrect.
    Solution
        1. Install the following correction. Afterwards reverse the incorrect settlement, re-enter the preliminary settlement rule and settle again.
        2. Install the following correction. Afterwards, you can maintain the settlement rule for the partial settlement.
        Note: If you want to use a default settlement rule (maintaining the settlement rule from the master data maintenance transaction), then you are required to distribute the line items at 100%. In order to carry out a partial capitalization (settlement of less than 100%), you have to use menu path "Actual postings -> Period-end closing -> Settlement -> Line item "
    Regards

  • Copying Settlement Rules of internal Orders

    Hi everyone,
    i have all internal orders that already have settlement rules for the verion 000 actual.
    Now i want to copy the rules to two different plan versions, i don't want to change
    anything, i just want to copy them to  from actual version 000 to two others planning versions.
    I checkeg function group SAPLKOBS, but didn't find anything helpful.
    If i do it with the transaction KO02, adding the rules by changing the master data of the order,
    it looks as if i only have to create a new entry in COBRB, because COBRA is already existing.
    Any ideas ?
    Kind regards
    Henner

    Hi Marcin,
    Great day!
    If the reason of changing the settlement rule is you have to correct the previous one and that there has been a settlement before, then you can no longer change it. All you have to do is to double-click that settlement rule then fill-out the field - "valid to." Then create another one or a correct one.
    You may use the following BAPI/Function Module to update your settlement rule via the interface:
    K_SETTLEMENT_RULES_UPDATE
    Hope this helps.
    Thanks!

  • Settlement Rule on Internal Orders

    We have had a request to default in the same asset number for all fixed asset internal orders.  Is this possible?

    Hi
    See if you can use exit COOM0003 for auto creation of settlement rules.. Here you can write your own logic
    br, Ajay M

  • Plan settlement rules for internal orders

    Hi all,
            I am having a problem in setting up plan settlement rules for the internal orders. I have created a order and tried to set up a plan settlement rule. I am trying to settle the order to a Profitability segment PSG category. Everything is fine until here. Then when I am trying to change the profit center in the Profitability segment it is greyed out. I am unable to change it. This is not the case with actual settlement. In actual settlement you can change the profit center in the settlement rule but not in case of plan settlement. Can someone please help me in this. I need to change the profit center in the plan settlement rule. This is very urgent.
    Many thanks,
    Sarada

    Hi,
    Please check if it has any planned values already posted on this order already.  In this case, unless these values are settled it will not allow you to change the profit center.
    Also, the reason for the allowing a change of profit center in actual settlement rule might be that there are no actual values posted in the order.
    Good luck!!!
    Thanks and Regards,
    Bhuvaneswari.S

  • Settlement rule in internal order & trading partner

    Hi everybody,
    i have a big problem that i can't understand. I'll explain:
    I have done a settlement rule TO CO-PA for an internal order.
    This settlement seems work well because in CO PA i find all my records, but i have seen that one information is missing.
    This information is the TRADING PARTNER.
    Someone have told me  that the settlement rule doesn't report this information to CO-PA. It's true or not?
    If someone can help me i'll give you great point, because for my society is a big problems!!
    Thanks a lot.

    No, thanks it doesn't help me.
    I haven't to settled cost to a fixed asset (FI-AA) but i have to settle cost to a profitability segment (CO-PA).
    Best regards

  • Create new settlement rule for an order with a function module

    Hi,
    I would like to create a settlement rule for an order. I searched for existing function modules and found K_ORDER_SETTLEMENT_RULE, which seems to be the correct one.
    The problem: The settlement rules, which I create with this function module are not saved.
    Do I have to call another function module to save my new rules?
    Thanks in advance,
    Fabian

    Hi,
    Settlement rules are first of all defined in customizing how the should be behave and secondly lies the question how to update a CO cost object with this settlement rule.
    My first advice would be to use the "automatic settlement derivation feature" that can be setup in customizing alike. <b>SPRO -> Controlling -> Internal Orders -> Actual Postings -> Settlement -> Automatic generation of Settlement Rule</b>. Read the docu for this node (right click and choose Display documentation) to understand what possibilities and limitations this functionality has. Below this node you have the possibility to define a "settlement strategy" and allocate this to a order type. You can also define a Enhamcement (COOM0003
    ) where you can somewhat influence the automatic generation of settlement rules.
    Execute transaction KO8G (collective processing) or KO88 (indicidual processing) to create a settlement rule for internal orders.
    The other option you have is to create a custom program based on BDC to create settlement rule for internal orders.
    I think the BDC program would be a better idea for you.
    Let me know if you have any question.
    Regards,
    RS

  • Automatic Generation of Settlement Rules for PM order

    Hi All,
    I am doing a maintenance orders settlement and I have the fallowing issue:
    My client has 2 types of equipment, namely vehicles and industrial equipment. Both have particular rules.
    For vehicles, we need to control all cost by an internal order
    Industrial equipment costs will be control by cost center.
    So, cost center is maintained for industrial equipment, and Settlement Order for vehicle equipment.
    I have a unique order type for which in Settlement profile I have entered Order and Cost Center as 'Settlement Optional' and default object type as CTR.
    When I create a PM order for vehicle, system cannot generate automatically the settlement rule, because in order type I have entered default object type as CTR and in equipment I just have the Settlement Order.
    But if I create a PM order for industrial equipment system create automatically the settlement rule, because cost center is maintained for industrial equipment and order type has default object type as CTR.
    In the allocation structure I have a receiver category for CTR and ORD.
    So, Could you help me how to generate automatically settlement rule for both cases without 2 order types?
    Thanks & regards,
    Hélder Nunes

    hi
    i think it is not possible to generate settlement rule based on equipment ,if you have specified the default settlement category in IMG ,it will be generated .
    check with your technical team whether user exit IWO10027 can be mapped
    regards
    thyagarajan

  • Sales order settlement Problem with Internal Order

    HI Dear Friends,
    How are you, I am fine.
    We have 1 Process here Related with SD & FI/CO
    for 1 process we have treat as a small Project,
    the process is we have make 1st Contract and create Internal order and assign Internal order to Contract
    then Create Sales Release Order and assing Internal Order in Settlement Rule in Sales order.
    then we create billing ref to Contract and then we did PGI.
    1) at billing time the Internal Order is Updatting
    2) at PGI time internal Order is not updating  - what is the right process - the internal; Order will be updating or not
    then we have to do Sales order Settlement thtough Trasaction code VA88
    what will happned at this level pleas be advicsed becos when i do this it is giving messges not is toi be settled.
    Friends I did all exercise complete except Settlement trough T-Code VA88.
    When I am going to do this settlement VA88 it is giving messages there is nothing to be settle.
    What I have to do please be advised.
    I did all these activities:
    1)     Create sales Contract
    2)     Create Internal Order
    3)     Assign Internal Order to sales Contract
    4)     Crate Release Sales Order
    5)     Assign Internal Order to Release Sales Order
    6)     Delivery & PGI
    7)     Billing         (at billing time the internal Order should be Updates (pls advise it should be or not)
    8)     Last is Settlement VA88 u2013 this time it is giving Error.
    When I settle the Sales order to internal order what will happens. Which value will update.
    Please reply me frds,
    Thanks,
    Srem.

    hello Lakshmipathi,
    Thanks a lot for your reply.
    I tried to change the requierement class in order to put one with special stock E as you explained, but i still have my weird schedule line. When i put the item in the order it is 0 stock for today, but stock find in 12 days either if there is stock or no(unrestricted stock i mean).
    If i change the RDD in more than 12 days the stock is available for the date requested.
    If you have an idea of what could be wrong because on my case i want the schedule line to be at 0 while the sales order reservation has not been processed (via MB1B/412/E) and once the stock movement is done the schedule line has to be find.
    I dont know if im clear enought..
    To be more clear,  i want the schedule line based on the "sales order stock" and not on the "unrestricted stock".
    thanks for your help!
    Guillaume

  • Settle AUC without internal order

    Is it possible to settle AUC without Internal Order???

    Hello,
    Yes, it is possible. You can settle AUC in two ways
    1. through internal order (KO88)
    2. Through distribution and settlement (AIAB and AIBU)
    The major difference between the two is that in case of Internal Order you can establish budgets in the Internal Order which is Control the costs. But in case of direct posting to the AUC, you would not be able to control the cost.
    In the Internal Order scenario all the cost is first pooled to the Order and then settled to the Asset at regular intervals. Where as in case of the second method all the expenses are posted directly to the AUC and then it is being Distributed and settled to various Assets as required
    1. Asset settlement thought internal order is general used for assets under construction. All costs are pooled in the internal order. Periodically or whenever wants the internal order is settled (within a fiscal year) i.e. the amounts in the internal order are capitalized.
    First create an internal order (KO01), take object class as investment and give investment profile. Now system asks and creates one AUC account under asset class 4001.
    Then create settlement rule (KO02) and release the order (control data tab) Post some amounts (like wages or non-production material) to internal order. Then come to KO88, first take the automatic settlement and run.
    The accounting entry passed is
    Asset under construction a/c Dr
    To Wages a/c
    If you want to complete the settlement to auc, then take now full settlement option and run then accounting entry passed is
    Asset a/c Dr
    To Asset under construction a/c
    While doing settlement in KO88, you can give any settlement period, posting period and asset date, but all should be in the same fiscal year. If you want to close the order go to KO02, give order number and take control data tab and click on technical complete tab on the screen and save. Internal order will be closed.
    2. If your AUC is under Asset class 4000
    this auc account is created directly because of direct postings to AUC account. Posting are made through F-90 For example
    AUC a/c dr
    To vendor or bank account
    Go to AIAB ---> Give distribution rule and go to AIBU --> Settle the asset
    Entry passed is     
    Asset a/c Dr
    To AUC a/c
    Thanks
    Para

  • Settlement rules for CO Orders

    Hi Guru, need your help to set up new settlement rules for CO Orders, to different plan versions. Can this be done in a massive way?

    Hi...
    Firstable, you have to create all plan version in the Controlling area, and activate the CO integration planning.
    You can create many settlement rules for each plan version but individually on the transaction KO02 -> Settlement Rule -> New rule...
    If you want to creat it automatically, maybe you can try to create a LSMW for this transaction. There are masive modification for other field to internal orders (Transactions KOK2 and KOK4)
    Regards,
    Karim

  • Error-M2O-Settlement rule for assembly order for item...could not be genera

    Hi,
    When I am creating Sales Order (VA01) for M2O, I am able to do the costing and copy the EK02 condition type. I have verified the the incompletion log, it indicates that document is complete.
    But while saving the sales order, the below error message is displaed:
    Settlement rule for assembly order for item 000010 could not be generated. Should the order still be saved?
                    Yes/No
    1. If No is choosen the following error message is displayed
           Error when processing Production order
          Error when processing Production order
          Message no. V1380
          Diagnosis
            A technical error has occurred. On calling up the assembly interface, exception 5 was triggered. The exceptions have the  following meanings:
    1 = External block,  2 = General error,  3 = Insufficient data for the interface,  4 = Order was not found, 5 = Update has been rejected, 6 = Final document number for Production order is not issued.  Procedure: Inform your system administrator.
    2. If Yes is choosen, it is creating Production Order without settlement rule. Able to perform GI & Gr. If I try to enter settelement rule (Settlement receiver SDI - Sales document item) in production order (CO02), the belwo error message is displayed
    "Distribution rule for Sales document item can only be created automatically Message no. KD063"
    We are using the requierement class with below details:
    Reqmts class: ZSO- for M2O
    AAC = E, Valuation = A, Settlement profile =SD1, RAKey = 000004, Assembly type = 3.
    Settlement profile contain:
    Allocation structure, PA structure, Default object type = SDI. Valid receivers: Optional -Sales Order / Prof. seg.
    If I make the Valuation field as blank in Reqmts class, there is no error while creating Sales order. And also Settelemnt rule with sales document item as receiver is successfully creating for the production order. Since the Valuation is blank in requirement class, it is Non valuated Sales order stock. All GIs & GR are non valuated
    The business requirement is it should be valuated sales order stock and the production varinaces has to be settled to Sales order. Then Sales order has to be settled to COPA.
    Need your valuable inputs to meet this requirement.
    Let me know if you need any further details.
    Thanks in advance.
    Regards,
    ADI

    Dear SAP PP Consultant ,
    What is the strategy group you are maintained in the material master ?

  • TX CNS41 - settled cost from internal order to WBS element not displayed

    Hi PS Expets,
    I have a question regarding transaction CNS41 "Structure Overview" where cost settled from an internal order is not displayed in in the report for a selected project. This is in a ECC version 5.0
    Settled costs from internal orders are posted with transaction type KOAO on WBS elements and when you check report RCNSTFCO you can see that the following transaction types are deselected when executing transaction CNS41:
    delete t_rpsco_m where vorga = 'KOAO' "<   insert
                          or vorga = 'KOAL' "<   insert
                          or vorga = 'KOAP' "<   insert
                          or vorga = 'KOAQ' "<   insert
                          or vorga = 'KOAR'."<   insert
      CALL FUNCTION 'HFPM_RPSCO_TO_RPSCO_LIS_CONV'
    This is implemented according to OSS note 51971 in order to eliminate internal business volume in the project structure when executing a PS hierarchy report.
    But this also eliminate the display of the cost  from the internal order.
    Any ideas or a work around in order to display settled cost from an internal order on a WBS element in transaction CNS41
    Kind regards,
    Anne

    Hello Tison.
    I guess you have the Project created with a BAPI in your system in background. As far as I have seen I'd try the following in ABAP to create Partners in the Project Definition: BAPI_BUS2001_PARTNER_CREATE_M or the corresponding method ProjectDefinitionPI.PartnerCreateMultiple. This should happen in background when the Project is created also.
    Best regards.
    Jens Schmid

  • Settlement rule in Production order

    Hello Gurus,
    I am new for SAP PP, I was creating Prod.Ord. Before saving it, system prompt me to enter "Percentage___%" in screen "Maintain settlement rule: distribution rule", can anybody help me to ressolve the issue??
    Thanks in advance and regards!
    Akshay Naware

    Hi Akshay,
      You have to go to OPJH and assign the settlement rule or ask your controlling guy which rule you have select. whatever order type you using assign the settlement rule for that order type.
    Let us know if still you facing the issue
    Thanks
    anurudh

  • Validate Settlement Rule for Transaction IW32 / IW31

    Hi All,
    I want to validate Settlement Rule for trx IW31 and IW32. When someone tries to create Settlement rule for cost center, I have to validate that cost center against some criteria.
    Do anyone know any BADI or user-exit for this?
    I tried user-exit IWO10027 but it did not get triggered.
    Appreciate your help!
    Thanks,
    Chirag

    Hello ,
    As i just tried the above BADI . But when it is triggered  . It should trigger at the time of release icon.
    BIt it didn't . Can you please help when it is trigger  ?

Maybe you are looking for