Change Settlement Rule in COR1

Hello, Gurus
I need your help, please.
I have to change the settlement rule in COR1. The default settlement rule that is create to Material, but I need to change to Cost Center (to a especificy). Is any User-Exit or BADI where I can do that?
I have ECC 6.0.
Thanks in advance.
Best Regards.

Hi Paulo,
I run into the same issue. Have you found an answer to your question?
Thanks,
Joe

Similar Messages

  • Problem with changing settlement rule

    In a serviceorder when a user changes the wbs element in the additional data tab he or she also needs to change the settlement rule accordingly
    further on their needs to be a check if the new wbs element is not TAFS and if the element is a wbs element (since also projects can be filled in here)
    I have managed to programm the check in user exit EXIT_SAPLCOIH_009
    there I can find out the new value entered by the user and check if it's correct
    I only can't get the new filled in values before save from the settlement rule
    when I use
        ASSIGN ('(SAPLKOBS)dkobr') TO <dkobr>.
        CHECK <dkobr> IS ASSIGNED.
    the new values for the wbs element are not filled in dkobr when the user exit is running
    is there any other way to find the new values for the settlement rule in memory in the user exit mentioned above ?
    or is there a bapi or function to adapt the settlement rule automaticaly ?
    I have looked at K_ORDER_SETTLEMENT_RULE but I don't see where you can enter the WBS element in this function ?
    kind regards
    arthur
    Message was edited by:
            A. de Smidt

    You can achieve this by using the BADI - CO_SRULE_CHECK. ( Use Transaction SE18).
    You implement this BADI - in the method DISTRIBUTION_RULE_CHECK you will be getting the Settlement lines. ( returned by COBRB - this table stores the settlement rules by object numbers - Object number of the Order is stored in AUFK).
    From the above mentioned method - DISTRIBUTION_RULE_CHECK , you call a FM - READ_NOTIFICATION_BUFFER. This will return all the buffered data for Notification/Order. You can check the ncessary conditions and raise exception message.
    You can use these follwing FMs from your customer exit - EXIT_SAPLCOIH_010 for changing the Settlement rules ( if you want to go that way) -
    K_SETTLEMENT_RULES_UPDATE
    K_SETTLEMENT_RULE_COPY
    or search with K_SETTLEMENT_RULE* to get the list of usefull FMs.
    Hope it helps.

  • Internal order "settlement rule" change

    Dear Gurus,
    I would like to change "settlement rule" in internal oder which has been used since go-live under ECC6.0.
    I go to KO02, keyin 'order number' ,enter and click on "settlement rule" button to update.
    but profitability segment line just display mode not changeable.
    How can i update settlement rule in KO02?
    kr,
    J.

    once you settle an order with a settlement rule you cannot change the rule no more.
    But you can create a new settlement  rule.
    First double click on the settlement rule you are currently using and for the "validity from field" give the last period. so this rule wont be in use anymore.
    than create a new rule.
    after these steps when you run the settlement, system will pick up the new rule you created.

  • Network activity - settlement rule change FM or BAPI

    I wonder if there is any FM or BAPI to change settlement rule for network activity?

    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

  • SAP-PS Settlement Rule Change

    Is it possible to change settlement rule for PS project. I have a number of projects, with one settlement rule. How can I have the settlement rule changed for the subsequently created projects? How does this change affect the existing projects?
    Thanks.

    We currentlt use a settlement rule by which the projects (and the associated costs etc.) are settled for month-end closing.
    We need to change the settlement rule by which projects (and the associated costs etc.) can be settled any time as required.desired.
    Hope this explains.

  • Bapi for settlement rule in IW32

    I want a bapi which will create settlement rule for IW32 ?It should be able to update Valid From And Valied to fields in IW32.
    I have checked BAPI_ALM_ORDER_MAINTAIN it does not have Valid from and Valid to fields in structure BAPI_ALM_ORDER_SRULE.I need a bapi which can be used to update those fields.

    HI
    Check This Link
    Re: Create/change settlement rule for inv.order - BAPI, funct.module???

  • Creating Settlement Rule

    Is there any BAPI to create/change Settlement Rule?(Transaction code: KO01/KO02)
    Regards,
    Savitha

    Hi
    try with this BAPI
    BAPI_INTERNALORDER_CREATE      Create Internal Order From Transferred Data                         
    BAPI_INTERNALORDER_GETDETAIL   Display master data, status, and allowed business trans.for internal
    BAPI_INTERNALORDER_GETLIST     Display list of internal orders according to various criteria       
    Thanka manju

  • Infoobject for settlement rule

    hi,
    Can anyone tell me the infoobejct for the settlement rule on WBS element.
    I am able to find only settlement area in OCOOM_CO2.
    thanks
    venku

    HI
    Check This Link
    Re: Create/change settlement rule for inv.order - BAPI, funct.module???

  • CO Order settlement rule to be changed on monthly basis.

    Hello,
    We have a scenario  where in CO orders (i.e. orders created in KKF1) which is being used for goods issue (MT 261). Settlement rule is defined in the order and the receiver is CO-PA.
    Now the requirement is, values lying in each order needs to be distributed to say 3 profit center on every month. This distribution rule is subject to change on a monthly basis. I know we can give the percentage  say 50% to PC 1, 20% to PC 2 and 30% to PC 3.
    But this rule is subject to change every month. How can the user give the Settlement rule manually every time which is very time consuming. Even if we gives it cannot exceed 999 line items.User wants to use the Same co order.
    Regards
    Karthik

    Hi ajay,
    Thanks for the reply. I am also planning to do the same... but is there any other way for this...
    Even While trying to settle to Cost centre, system is not allowing to settle to cost centre for apr 2014. I have already remove the 100% indicator in settlement profile.

  • Massive change of settlement rules in Sale order

    HI,
    CAN ANYONE ADVISE ME ON THIS TOPIC:
    I NEED TO "REFRESH"  THE PROFITABILITY SEGMENT IN THE SETTLEMENT RULES OF THE SALES ORDER, AS SOME OF THE CHARECHARISTICS WERE  CHANGED AND AS LONG AS I USE THE "OLD" SETTLEMENT RULES IT GIVES ME THE OLDER CHARECHATERISTICS.
    I WAS THINKING OF DOING A MASSIVE CHANGE TO SETTLEMET RULES - BLOCKING THE PREVIOUS  SETTLEMENT LINE AND OPEN A NEW ONE
    DOES ANYONE HAS AN IDEA OF HOW TO DO IT ?
    THANK YOU
    AMALIA

    Hi,
    1. Please check your customizing in SPRO -> Sales and Distribution -> Basic Functions-> Account Assignment/Costing -> Automatic generation of settlement rules.
    2. Have a derivation rule in COPA (KEDR) which will post the changed value to COPA during settlement. If the settlement rule is not automatically adjusted and if you don't change the old value afterwards manually on the profitability segment screen of the settlement rule final derivation (at time of creation of the CO-PA line item) would overwrite the wrong char value for the line item - without any impact on the settlement rule itself.
    regards
    Waman

  • WBS settlement rule - change receiver

    In the settlement rule for WBS element, catelgory G/L, how do I change the default Settlement Receiver?  User wants WBS elements settling to a different account.
    Thanks
    Althea

    thank you Sridhar,
    Calm outside advice triumphs over frantic end-users every time.
    Althea

  • Settlement Rule change

    Dear Gurus,
    This is related to an order which was created on 2007.
    Order has been created and settlement rule has been defined with both PER one is 95% and other is 5% both has got settled on 2007. Now there is some balance amount which needs to be settled.
    When we run the settlement rule it says there is nothing to be settled, but when we check in order there is very small amount to be settled. This is not happening because we need to change the settlement from Per to Ful but we cannot do it as this order type can have only max 2 settlement rule(both defined) and we cannot do any changes also as both of them used earlier.
    Kindly let me know what shall we do for this case?
    senthil

    Hi Senthil,
    The below links may be helpful ( Venkatesan Anandan  had posted them in one tread)
    http://sap-img.com/plant/settlement-rule-in-maintenance-order.htm
    http://sap-img.com/plant/impact-on-business-if-pm-order-not-settled.htm
    Regards
    Arif

  • Change the Settlement Rule

    Hi Experts,
    In the settlement rule for the Process orders, the system creating the rules with the category 'OIT' (Order Item)  but i want it to be changed to 'MAT' (Material) how and where do i change the same. i know that it cant be changed in Settlement rule for the Order.
    thanks
    Regards
    Suresh

    Hi rasuresh,
    When I read down the the comments all the way down and back to your question, one question arise in my mind, why do you want to change the settlement rule to be MAT?
    You said the your order is a Process Order, meaning that in one process order it can generate more than one out put. Please check the material master of your product via MM03 on MRP2. Check, is the co-product indicator activated? If yes, then click on tab Joint Production icon. There, in the joint production indicator showing what items will be produced during processing of the products.
    By indicator Joint product, by default the receiver Item category will be set to OIT in the settlement rule. What you see in the distrubution rule receiver are the proportion of cost based on setting of joint production in the MRP view 2.
    I don't think, this is as a problem. It is as what should be as a process order.
    It would be different if your order is Production Order or order type PP01, then the receiver will be MAT
    Hope this help you.
    Best regards,
    Irhasni

  • Changing the receiver cat in the settlement rule of Product cost collector

    Hi,
    I have created a Product cost collector using the Transaction - KKF6N. and observed that the settlement rule got created automatically with the CAT - MAT. I need help for below queries.
    1. Is it possible to change the settlement rule for the Product cost collector?
    2. If yes, Could you please let me know the procedure to do this?
    3. If no, what is the alternate as I want to change the CAT from MAT to ORD.
    Your help is very much appreciable and Thanks in advance for the help.

    Hi,
    Check in order type, Which settlement profile is  maintained. Then Goto settlement profile maintain receive type which you want to settle.
    Regards,
    Sreekanth

  • Bapi for changing internal order settlement rules

    Hi
    I'm looking for BAPI to add/ modify settlement rules in internal order (like in tc KO02). BAPI_ALM_ORDER_MAINTAIN seems not working, and there's only BAPI_INTERNALORDER_CREATE and GETITEM in internal order group ( there's no MAINTAIN ).
    Is there another BAPI to do this? of FM?
    regards
    Wojciech.

    Thanks for help but this links points to discussions abut creating internal order. I want to change one. BAPI_INTERNALORDER_CREATE does not allow to change orders ( i've just tested it.)
    regards
    wojciech

Maybe you are looking for

  • Record a greeting: Not working at all

    Hey there, Within Phone > Voicemail > Greeting, I am selecting "Custom." Two buttons appear at the bottom: "Play" and "Record." "Record" used to work... and I used it about 5 times (trying to get it just right). All of a sudden, several attempts late

  • How to select the inklist items in the active document?

    From the below code, i can get the inklist information. But i could not know how to select the spot(InkType.CUSTOMINK) color items in the illustrator activedocument. var docRef=app.activeDocument; var S1 = 0; for(i=docRef.inkList.length-1;i>=0;i--) v

  • CR content copy from XI 3.0 to XI 7.0

    Hi Gurus,               My question is              Is it possible to import CR content exported from XI 3.0 to XI 7.0             if yes i am getting this error during import            com.sap.sld.api.wbem.exception.CIMException: CIM_ERR_FAILED: Fa

  • Gateway unexpectedly closed the connection..

    When I try to Test Connection for the Active Directory Resources it shows the following error The gateway unexpectedly closed the connection with an exception, check the gateway trace for more information. ==> java.net.SocketException: Connection res

  • Ipod classic backlight keeps going back to 10 seconds

    , i dont like it. I want to make it stay on 30 seconds. How do I force it to stay?