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  ?

Similar Messages

  • 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

  • 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

  • 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

  • Settlement rule for sales document item

    Hi,
    while creating settlement rule for sales document item, it shows message
    Sales document item is not defined for the transaction,
    Message no. V1198
    Regards
    Gajendra

    Do not give links are your reply. This will be considered as link farming. A user has been removed from forum, because he used to this several times and he was one of the top contributor.
    Just suggest the user to search the forum, hope nobody needs a guide on how to search in a forum or google.

  • Settlement rule for SO through sales order

    Hi,
    In my scenario,service order is being created through sales order.Earlier we used to have default settlement rule for the service order as Profiltability segment.Now we  have changed as SD1-Sales document in the settlement profile.
    Now If I create service order through sales order,in the service order settlement rule is not getting created and If I gone through IW32,its asking for With Default/Without Default.If I select with default,now its picking up the rule automatically.
    why rule is not getting created during creation itself .
    I though that in the sales order,first service order is getting created and at that time sales order number is not available and hence settlementy rule is not getting populated.
    Is it right?
    Regards
    KRISHNAN

    Hi Pete,
    The system status is  CRTD MANC NMAT PRC.
    People are suggesting that we can able to populate the settlement rule as SDI(Sales document Item) during creation of service order through sales order.(Also adding the point that after creation of sales order only service order is created with details of  Sales document number in the order header)
    In that case why in my case its not pouplating?
    Regards
    KRISHNAN

  • 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

  • Capital Project Settlement Rule for lower WBS

    Hello,
    At my present client, for Investment projects the client want to settle top level WBS to AUC and capitalise it. So ideally the cost from lower level WBS should flow to top WBS. I am using substitution to remove investment profile from lower WBS.My concern is how do I auto populate the settlement rule for lower WBS to top WBS. I am aware about settlement strategy and OSS note 211324 (however dont want to implement this note)
    The appraoch I am looking for is using "WBS_SETTLEMENT_RULE' BAdI . However this BADI calls for strategy and I could not maintain the required strategy (settlement to top WBS). Is there some BADI/Function module available which can be called for updating the settlement rules on lower WBS while saving or Release ? Can I make use of exits in Substitution?
    Please let me know your opinions.
    Thanks
    Sarang

    Thanks Virendra. I agrree the only approach is development. But I need to give inputs to my developer.
    We tried with BADI "WBS_SETTLEMENT_RULE" but it didnt work as it calls strategy in configuration.
    So I am checking for some other options for e.g "WORKBREAKDOWN_UPDATE" which is called during save or Fn modules K_SETTLEMENT_RULE_FILL or K_SETTLEMENT_RULE_SAVE which I can use. This is a client requirement to create AUC only at top level n all cost to be rolled up to superior WBS n then settle to AUC.
    The other option I was thinking is of using exits thru substitution.
    What will be the best approach?
    Thanks
    Sarang

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

  • Settlement rule for Asset Under Construction not automatically generated.

    Hi Experts,
    I am working on a capital project scenario where in i configured the SAP IM and SAP PS module. i am able to create AUC at the WBS level on project release,but i am not able to generate the settlement rule for AUC automatically.
    Please suggest as to what i am missing to generate settlement rule for AUC automatically.
    Thanks,
    shiv

    i think for automatically AUC to be generated, u need to create investment profile in OITA in that u have to tick mange AUC in investment measure. & select settlement for summary settlement.
    This investment profile u need to specify in Project Profile OPSA.
    do this setting & let me know whts happen?
    ok best of luck.
    Regards,
    ANSAR

  • Settlement rule for AUC

    Dear SAP gurus,
    In AIAB, I have assigned the settlement rule for AUC asset id. However I am not able to see the settlement rule assigned in  As03. Is there any report

    Hi,
    you can see the settlement rule only in AIAB.
    regards Bernhard
    Edited by: Bernhard Kirchner on Jun 15, 2010 12:52 PM

  • Creation of settlement rules for WBS element

    Hi,
    Iam having problem when creating the settlement rules for WBS elements. The business goes like this.
    We have XI interface which creates the Idocs and an inbound program(customized) to process the Idocs. When the Inbound program is run the WBS elements are created and settlement rules are created for the WBS elements. The inbound program is run automatically thru batch job.
    First time when the Idocs are processed about 95% of the WBS elements have settlement rules created and for other 5% settlement rules are not created. The Idoc is in status 64. I tried reprocessing the Idoc and then the settlement rules are getting created succussfully. The problem is Iam not able to find why the Inbound program is not processing succusfully when its run first time but works when reprocessed.
    I appreciate if anyone can send their views.
    Best Regards
    SK

    Hi!
    You might set the processing to check not only once the relevant IDocs, but more times...
    Check out these programs, and set them into a batch job periodically...
    RBDMANI2
    RBDAPP01
    Regards
    Tamá

  • 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

  • Maintain settlement rules for order category 30(Maintenance order).

    Hi Gurus,
    Can we maintain two settlement rules for an order without distribution rule?
    Eample:-  In an order there are three  different costs i.e. material cost,external labour cost and internal labour cost.We want to settle the material cost and external labour cost to Profitability segment and the internal cost to a particular GL account directly.
    Note: No distribution rule is required,because all the cost should settle directly to correspoanding heads i.e. PSG or GL.We don't want to assign  the GL# again and again for different orders in the corresponding order's  settlement rule.
    Require your valuable inputs to proceed.
    Best Regards,
    Ramakanta

    Hi Govardhan,
    If you are working in ECS, the Shopping cart will not create any follow on document in backend R/3.
    I think your Product category is 30, thats why the error says Manual reservation for order category 30 is not allowed.
    Where did you get the maintenance order? Generally maintenance order is created in the backend R/3 (Plant Maintenance) and a P.R will get generated against that order.
    Using PDP (Plan driven procurement) you can transfer that P.R to SRM and can carry out sourcing and can complete the procurement cycle.
    Can you please tell me what is your exact business requirement?
    Hope this will make you more clear.
    Clarifications are welcome.
    Award points for helpful answers.
    Rgds,
    Teja

  • Auto Run Program not updating Settlement Rules for few WBS elements

    Hi,
    Addition of settlement rules for OPEX WBS.
    In producion system, two jobs are running daily for generating settlement rules of WBS elements but, all WBS elements are not updating with Settlement rules.
    It is becoming a problem in the Period end while doing the settlement. Currently we are updating the settlement rule manually.
    We have investigated and found the following WBS element with Profile name  are not updating Settlement rule.
    H-U0DU0204DE-EX-J0  - HHDC01
    H-N0U00ULD01-P1-D1-W2 - 000090
    H-U0DU0204DE-EX-U0-T1-OB - HHDC01
    H-U0DU0204DE-EX-U1-W1-ON - HHDC01
    H-U0DU0204DE-EX-U2-W1-ON - HHDC01
    H-U0DU0204DE-EX-I0-E1 - HHDC01
    H-U0DU0204DE-EX-I0-B1 -HHDC01
    H-U1DU0204DE-EX-U0-W1-ON - HHDC01
    Job Names :
    ZFPD_UK_SETTLEMENT_RULE_GEN
    ZFPD_NO_SETTLEMENT_RULE_GEN
    Please suggest on this issue
    Regards

    Hi,
    I suppose these are background jobs. Usually there is an issue with background jobs that are run for a custom developed program. Not sure why that happens. Even i faced this issue with a couple of jobs in my system. I have still not found out the reason as to why this happens. There might be a possibility that these projects were being processed in the foreground by some user and hence they were omitted from the run.
    I would suggest you to consult your technical guys on this.
    Regards,
    Gokul

Maybe you are looking for