Create settlement rule for Maintenance plan

We have a requirement to create a maintenance plan and assign a settlement rule to the same. I was able to create the maintenance plan using MPLAN_CREATE. I created the settlement rule using the function module K_SRULE_SAVE_UTASK. My problem is when I go to IP03 to check if the settlement rule has been created for the maintenance item, it is not found. When I go to IP02 and click on create and go into the settlement rule maintenance screen, I'm able to see the settlement rule created using the function module.but in the MPOS table, I don't see the indicator IND_ABRVO ( settlement rule indicator ) being maintained.
Can you please help in finding out what I'm missing.
Edited by: Sujay Venkateswaran Krishnakumar on Dec 31, 2009 11:34 AM

Sri Vas,
   Is this specific to a particular WBS element or does it happen for ANY WBS element? The WBS element may not have been setup properly.Check the same WBS element directly by going to the WBS element change transaction.Also check the account assignment and status of the WBS element that Ramesh had suggested. If the WBS element has been defined properly,Try changing the settlement rule to a cost center  and see if you still get this error.
Regards
Narasimhan

Similar Messages

  • BAPI/ Function Modules for creating Settlement rules for Project in CJ01 .

    Hi Experts ,
    I need to create Settlement rules for WBS elements in Projects . Please let me know if there are any BAPI or Function Modules for the same . The Function Modules "k_settlement_rules_update" , "IBAPI_ALM_ORDERSRULE_CREATE" & 'K_SRULE_CREATE'
    are in "Not Released" status . so our practices does not allow us to use them .. please suggest any other BAPI or FM for creating Settlement rules .
    Thanks in advance ...
    Anil

    Hi ,
    Thanx for ur prompt reply , This function module is used for creating WBS elements . I didnot find any parameters or process to create settlement rule .. Please let me know how to use this or if there are any other BAPI available .
    Thanks
    Anil

  • Automatic Creation of Settlement Rule for Maintenance Order

    Hi,
    While doing TECO for Maintenance Order, its asking for Settlement Rule. IF I click settlement rule, message is coming as Maintain Settlement Profile with options like With Default, Without Default & Cancel.
    I have maintained the Cost center in Equipment Master. Also I maintained Cost Center as Default Settlement receiver.
    Also I have gone through setting in Automatic Creation of Settlement Rule under Controlling Category.
    But I couldnt understand that. Can you please tell what are the steps to be done?
    Regards,
    Maheswaran.

    Hi,
    Please check the indicatorsin Actual cost/cost sales  and Valid recevivers in settlement profile.
    If for cost center : 1 settlement optional is maintained in valid recevivers and also for order
    and in actual cost/ cost sales: indicator to be settled in full is selected.
    Also check Allocation structure too if you have assigned the valid allocation structure.
    **check if you have assigned the valid settlement profile to order types.
    *****Most important after doing all these settings you need to create new order. for same order you will not get the automatic settlement rule
    Hope this helps.
    Regards,
    PMAddi

  • Settlement rule for Maintenance item

    Hi All,
    When i attempting to create a settlement rule Using a WBS element for Maintenance Item System showing
    Error Message "No Object Status is available for MIT#1'.
    Thanks & Kind Regards

    Sri Vas,
       Is this specific to a particular WBS element or does it happen for ANY WBS element? The WBS element may not have been setup properly.Check the same WBS element directly by going to the WBS element change transaction.Also check the account assignment and status of the WBS element that Ramesh had suggested. If the WBS element has been defined properly,Try changing the settlement rule to a cost center  and see if you still get this error.
    Regards
    Narasimhan

  • Create Settlement rule for L2 WBS via CJB1/2

    Hi Everyone
    In the past we have settled WBS elements to either PSG/CCtr/AUC. We now want to have WBS hierarchies where the lower level WBS element will settle up to the superior (Level 1) WBS element.
    I have configured the following items in EEC 6.0:
    Created new Allocation Structure (Z4), this is a copy of WBS settlement to PSG, changed the reciever catergory to WBS element
    Created new settlement profile (Z00005) with allocation Structure Z4
    In the settlement strategy have added the new settlement profile with the following settings:
    Account assignment element - Active
    Settlement Profile - Z00005
    AAt Assugn Cat.- 5 (Superior WBS element)
    N:1 SD-PS - Active
    I also have the existing setting to the PSG with RA key populated.
    When I execute CJB2, it states that three two records processed, no errors. However when I look at the master data, only rule is created on Level 1 WBS and not lower level.
    Can anyone help?
    Gurprit

    Hi Abdul
    Created a new one - only the L1 was updated with a SETC. Log from CJB1 shows the following:
    Project                      Object                 Strategy   Bill Acct Org.c SProf. AcctAsgnCt      N:1 RA Key  Recipient              AA fld
    E0108003040000     E0108003040001         Z6     X                   Z00003 Profitability s    X   Z00006   PrfSeg assigned   Old
    E0108003040000     E0108003040002         Z6          X              Z00005                         X                                                0
    E0108003040000     E0108003040003         Z6           X             Z00005                         X                                                0
    Any thoughts?

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

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

  • How to create Settlement Rule

    Hello Experts,
    I need to create settlement rule for work order.
    Got one FM K_ORDER_SRULE_ADD but don't know how to use it.
    Is this FM correct one to create settlement rule?
    Can anyone please send sample code for FM?
    Thanks in Advance,
    Ripal.

    Hi everybody,
    I found in a Rusian foruma way to create a settlement rule using the functions of the FM KOBS.  I changed a bit the code because my requirement was just to update the field URZUO of the settlement rule. The original post (in Russian) can be found here.
    My implementation is more simple because the requirement was different:
    types: begin of ty_objnr,
      objnr    like prps-objnr,
    end of ty_objnr.
    *.COBRA-Buffer (see FM KOBS)
    types: begin of ty_cobra_buf.
            include structure cobra.
    types:   uflag like dkobr-upd_flag,
           end of ty_cobra_buf.
    types: ty_t_cobra_buf type ty_cobra_buf occurs 10.
    *.COBRB-Puffer mit Änderungsflag (see FM KOBS)
    types: begin of ty_cobrb_buf.
            include structure cobrb.
    types:   uflag like dkobr-upd_flag,
           end of ty_cobrb_buf.
    types: ty_t_cobrb_buf type ty_cobrb_buf occurs 10.
    * Internal tables                                                    *
    data: it_abrechnug      type standard table of ty_abrechnung,
          it_objnr          type standard table of ty_objnr,
          it_cobra          like table of cobra with header line,
          it_cobrb          like table of cobrb with header line.
    * Data                                                                *
    data: wa_cobra_buf      type ty_t_cobra_buf,
          wa_cobrb_buf        type ty_t_cobrb_buf,
          wa_objnr            like line of it_objnr,
          wa_urzuo            like cobrb-urzuo,
          l_mem_cobrb         like wa_cobrb_buf[],
          l_mem_cobra         like wa_cobra_buf[],
          l_mem_cobrb_zeile   like line of l_mem_cobrb,
          l_mem_cobra_zeile   like line of l_mem_cobra.
    form urzuo_aendern  using    p_objnr p_pspnr p_urzuo.
      data: c_objnr like prps-objnr,
            c_pspnr like prps-pspnr,
            c_urzuo like cobrb-urzuo.
      c_objnr = p_objnr.
      c_pspnr = p_pspnr.
      c_urzuo = p_urzuo.
      refresh: it_objnr,
               it_cobra,
               it_cobrb,
               l_mem_cobra,
               l_mem_cobrb.
      wa_objnr = c_objnr.
      append wa_objnr to it_objnr.
    * Reas settlement rule from the DM
      call function 'K_SRULE_PRE_READ'
      exporting
        i_pflege               = ' '
      tables
        t_sender_objnr         = it_objnr
    *         T_COBRA                =
      exceptions
        wrong_parameters       = 1
        others                 = 2.
      if sy-subrc <> 0.
        perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
    * Fill internal buffer with settlement rules
      call function 'K_SETTLEMENT_RULE_GET'
        exporting
          objnr     = c_objnr
          x_all     = ' '
        tables
          e_cobra   = it_cobra
          e_cobrb   = it_cobrb
        exceptions
          not_found = 1
          others    = 2.
      if sy-subrc <> 0.
        perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
    * Save settlement rule in ABAP-Memory
      call function 'K_SRULE_EXPORT_IMPORT'
        exporting
          i_mode     = 'EX'
        exceptions
          wrong_mode = 1
          others     = 2.
      if sy-subrc <> 0.
        perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
    * Read ABAP-Memory
      import l_mem_cobra l_mem_cobrb from memory id 'K_SRULE'.
    * Change field URZUO and set Update-Flag
      loop at l_mem_cobrb into l_mem_cobrb_zeile where urzuo is initial.
        l_mem_cobrb_zeile-urzuo = p_urzuo.
        l_mem_cobrb_zeile-uflag = 'U'. "Update Kennzeichen
        modify l_mem_cobrb from l_mem_cobrb_zeile transporting urzuo uflag.
      endloop.
    * Clear internal buffer
      call function 'K_SETTLEMENT_RULE_REFRESH'
        exporting
          objnr = c_objnr.
    * Fill ABAP-Memory with new rules
      export l_mem_cobra l_mem_cobrb to memory id 'K_SRULE'.
    * Fill internal buffer with new rules
      call function 'K_SRULE_EXPORT_IMPORT'
        exporting
          i_mode     = 'IM'
        exceptions
          wrong_mode = 1
          others     = 2.
      if sy-subrc <> 0.
        perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
    * SAve new rules
      call function 'K_SETTLEMENT_RULE_SAVE'
        exporting
          dialog            = 'X'
          objnr             = c_objnr
          i_status_update   = ' '
        exceptions
          no_rule_for_objnr = 1
          others            = 2.
      if sy-subrc <> 0.
        perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
      commit work.
      perform erfolg using c_pspnr.
    endform.                    " URZUO_AENDERN
    Hope it helps,
    Jaime

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

  • 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

  • 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

  • Validation durng maintenance of Settlement Rule for Orders

    Is there a way to set up validation during maintenance of settlement rules for orders? Is it via OKC7? How do you do it?

    Dear Noel,
    there are no standard functionality which will make  the entry
    of a settlement rule required in TS KO01 other than having a "required" valid settlement receiver in the settlement profile you have assigned to the order type in TS KOT2_OPA, (you can change the settlement profile in TS OKO7).
    Then you will receive an error message in TS KO01 if you try to save an internal order without a settlement rule. This is the system design.
    However, you also have the possibility to automatically fill the
    settlement rule of an order either via a reference order (or model
    order. TS KOM2),  which you assign to to the order type in question, or you can check the standard enhancement COOM0003, (user exit EXIT_SAPLKOBS_001).
    You can also read the documentation of this user exit in TS SMOD.
    Regards,
    CG

  • Settlement rule for order

    hi co guru sir....kindly guide me to maintain  settlement rule for production order. steps by steps..plz..
    problem is this when i create planned order to production order ..first  screen open for maintain settlement rule...i have maintained..but may be wrong...
    plz guide me for maintain the settlement rule........
    thanx
    regards
    Aqueel

    Hi,
    Settlement rule determines which portion of the costs on a sender should be settled to which receiver(s).
    You need to create a settlement rule to settle the actual costs of a sender object. The settlement rule contains the distribution rules for the sender.
    Structure: The settlement rule contains:
    - One or more distribution rules
    - The settlement parameters for a sender object.
    Creating a Settlement Rule:
    You previously had to maintain the settlement rule for internal orders manually. Now the system can automatically generate settlement rules for internal orders.
    Procedure:
    1) Choose Settlement rule in the master data maintenance for the relevant sender object.
    The Maintain Settlement Rules: Overview screen appears.
    If you stored a default for account assignments in the settlement profile then the system displays the existing distribution rules. The settlement receiver is the object type you stored as an account assignment default in the settlement profile.
    You maintain settlement rules in Customizing under Controlling -> Internal Orders -> Actual Postings -> Settlement -> Maintain Settlement Profiles.
    2) Choose Edit -> New rule or enter the value directly.
    Specify how the sender object costs are to be settled to the various settlement receivers:
    - By percentage
    - By equivalence numbers
    For distribution rules of the same settlement type (periodic or total) you need to determine the portion using either percentage rates or equivalence numbers.
    Specify the settlement type for each distribution rule.
    The system defaults the settlement type depending on the receiver, for example PER for cost center, FUL for fixed asset. You can overwrite the default value, if required. When you save the sender object, you automatically save the settlement rule.
    I hope it will help.
    If helpful, please assign points.
    Regards,
    Manju

  • 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

Maybe you are looking for