Validation for the settlement rule of a wbs element

Hi Experts,
I have a requirement that in which i have to validate the settlement rule of the wbs done through t-code cj01/cj02/cj07,cj20n.
If the settlement receiver object is an G/L account (settlement category g/l )  then i have to check that if it is an o&m project type
wbs element  settling on some already mentioned G/L e.g 0001081340,0001081341, then  it should through some error  like settlement rule not valid etc.
I have tried cjb1/cjb2 through badi WBS_SETTLEMENT_RULE by creating some strategy but it did not have any option for G/L
settlement reciever. Also client will not agree to this as they want to create settlement rule manually.
I have also tried the exit 'EXIT_SAPLCOI1_027 ' but its not getting triggerred during settlement rules assign mentand also i think it will not solve my purpose.
Please help me as i am struck in this for long time now.
Warm Regards,
Hariom

Hi Prabhu ,
thanks for the quick update.
I have tried many badi's and exits but they are not triggering at the saving time of the wbs.
badi :
PROJECTDEF_UPDATE
WBS_FIELDS_FOR_ASSET
WBS_USER_FIELDS_F4
WORKBREAKDOWN_UPDATE
WBS_SETTLEMENT_RULE
exits :
EXIT_SAPLCJWB_004
EXIT_SAPLCJWB_005
EXIT_SAPLCJWB_001
These above exits i have tried either they are not implemented or they are not triggered during saving of a wbs element.
please suggest any exit or badi's which you may have used.
Thanks and regards,
Hariom

Similar Messages

  • User Exit for the Settle rule of a Production Order

    Hello all
    i got a requirement to change the settlement rule of a production order to multiple receivers.
    suppose i have the following rule
    Categeory | Settlement Reciever | Receiver Short text |   %   | Settlement Type | No | Source Assignment
        MAT             ZMDT89                   ZMDT88              100        FUL                 1            left as blank
    now my requirement is that i have to default the source assignment as 200 (Materials) so as to allow the other reciever entered with the same settlement type as FUL and also the No should be 2
    i.e. my req is like this
    Categeory | Settlement Reciever | Receiver Short text |   %   | Settlement Type | No | Source Assignment
        MAT             ZMDT89                   ZMDT88              100        FUL                 1            200
        G/L             G/L A/C no                G/L shor text       100        FUL                 2            100
    the bold one is i have to ADD
    the T-Code is CO02.
    your help is highly appreciated...
    thanks in advance

    hi,
    check these exits in co02.
    Transaction Code - CO02                     Change Production Order
    Enhancement/ Business Add-in            Description
    Enhancement
    PPCO0010                                Enhancement in make-to-order production - Unit of measure
    PPCO0012                                Production Order: Display/Change Order Header Data
    PPCO0013                                Change priorities of selection crit. for batch determination
    PPCO0015                                Additional check for document links from BOMs
    PPCO0016                                Additional check for document links from master data
    PPCO0017                                Additional check for online processing of document links
    PPCO0018                                Check for changes to production order header
    PPCO0019                                Checks for changes to order operations
    PPCO0021                                Release Control for Automatic Batch Determination
    PPCO0022                                Determination of Production Memo
    PPCO0023                                Checks Changes to Order Components
    STATTEXT                                Modification exit for formatting status text lines
    PPCO0009                                Enhancement in goods movements for prod. process order
    CCOWB001                                Customer exit for modifying menu entries
    COIB0001                                Customer Exit for As-Built Assignment Tool
    COZF0001                                Change purchase req. for externally processed operation
    COZF0002                                Change purchase req. for externally procured component
    PPCO0001                                Application development: PP orders
    PPCO0002                                Check exit for setting delete mark / deletion indicator
    PPCO0003                                Check exit for order changes from sales order
    PPCO0004                                Sort and processing exit: Mass processing orders
    PPCO0005                                Storage location/backflushing when order is created
    PPCO0006                                Enhancement to specify defaults for fields in order header
    PPCO0007                                Exit when saving production order
    PPCO0008                                Enhancement in the adding and changing of components
    reward points if hlpful.

  • Exit/BADI for creating settlement rules in IW32 upon release of order

    I need settlement rules to be populated in IW32 when an order is released.
    The data for the settlement rules population will be obtained from a Z table based on Order type and Maintenance Activity Type.
    I am not able to find out a suitable BADI/EXIT to fulfill this requirement. Has anybody worked on this kind of requirement earlier? Please suggest an EXIT/BADI/BTE for this.
    Thanks in Advance!!

    Hi Harveen,
    How did you populate the fields in K_ORDER_SRULE_ADD. Which ones did you populate. I keep getting an error message.
    Receiver categ. is not allowed by settlement prof. PM0001 for this sender
    Message no. KD031 Diagnosis The settlement profile specifies which receiver
    categories you can settle a sender to. Receiver category is not allowed by
    settlement profile PM0001 for this sender.
    Procedure
    You can do the following:
       Assign a settlement profile to the sender, that implements the
    required receiver category .
        Choose "Goto -> Settlement Parameters".
       Specify another receiver for distribution rule 009. If you already
    used this rule for a previous settlement, enter a valid-to period. Then
    enter a new rule for the next settlement with a receiver category. This
    category must be one that is allowed by settlement profile PM0001.
    Procedure for System Administration
    If necessary, maintain a suitable settlement profile.
    Would very much appreciate your help.
    Cheers
    Eunice

  • Business Rule err The following value is not valid for the run time prompt.

    Hyperion Planning v 9.3.3
    I have created a new BR with 2 local variables (created at the time of the BR), Variables are set as run time prompts. They are created as "Member" (not Members). The BR basically does a calc dim on dense and Agg on Sparce other than the prompt on Entity and Version dimensions. The entity variable has a limit on level 0 of the dimension. The Version variable limits to the input (Submit and Sandboxes)
    The BR is associated in Planning with an input web form. Entity and Version are in the page. Is set to Run on Save and Use members on form.
    If the run time prompts Hide boxes are checked, an empty Prompt pops up with only a Submit button. Click the button and an error comes up: "The following value is not valid for the run time prompt it was entered for:. But it does not indicate what member - just ends in the :.
    The BR will run sucessfully only if the Run-time prompt is not hidden - "Hide" in the BR is unchecked. So the syntax and logic of the BR is correct and security should not be an issue.
    The client wants no prompt. In production we have similar situations in which the BR works with the Web Forms without a prompt.
    What am I doing wrong - I have tried restarting the Planning service and the EAS service.

    My preferred method of doing this is:
    1. In business rule, do not hide the run-time prompts. This makes it easy to validate the business rule as you are building it. I only use Global Variables.
    2. On the form, have business rule set to run on save, use members on data form and hide prompt.
    Check that in the business rule, for the variables (Run-Time prompts), that they are all in use. If not, delete them from the business rule. Are all your variables global? Are some local and some global? This could be the issue.
    Deanna

  • Check settlement rule at save WBS

    Hi guys,
    I have a question and I'd very thankful if someone answered me.
    I would need create a validation in the at save on CJ20N transaction. This validation should check settlement rule ( Really is need that checks fixed asset in the settlement rule).
    We are usign this BADI WORKBREAKDOWN_UPDATE and the method AT SAVE, is this possible to check in this BADI :
    1. WBS status ( current status, not information stored in JEST table)
    2.  and check that WBS division is the same as Fixed asset division ( ANLA) , being fixed asset the reciver in the WBS settlement rule. ????
    really our problem is that we are not sure how to retrieve information at this point  from another tables different from PROJ, PRPS,  RCJ_PRPSUP and SYST.
    Thank you!!!!

    Hi Muralidhar!!!!
    Thank you very much for your reply!!! We are trying to use that BAPI for check WBS status before it is saved.
    Related to settlement rule information our problem is we don't know how obtain information from another table different from PROJ, PRPS, ....in this BADI, ( really is a technical question). We are creating a WBS ( which it has not be saved yet), settlement rule information is going to be saved in COBRA and COBRB but it is not yet.
    Do you know how do I have to program it in order to obtain this information?
    Thanks a lot!!!
    Sara

  • Settlement Rule Log in WBS

    Hi SAP Gurus
    I would like to know the log of person who created the settlement rule in WBS.I check WBS master data change report but it does not provide the log of settlement rule maintenance.can any one tell me?
    Regards

    Hi
    The following reports are available:
    RKASERULES
    You use the settlement rule fields to make your selection. The system displays all the senders for any object type corresponding to these criteria.
    RKASERULES_OR
    You only select internal orders, plant maintenance orders and service orders. You need to specify a selection variant for internal orders. You can also use the settlement rule fields to make your selection if required.
    RKASERULES_PR
    You only select projects (WBS elements, networks, orders). You need to specify a selection variant for projects. You can also use the settlement rule fields to make your selection if required.
    http://help.sap.com/saphelp_47x200/helpdata/en/10/be4a37eaa0106fe10000009b38f839/frameset.htm
    Thanks

  • Settling the costs of a parent WBS elements

    Dear experts,
    i have a cost project consist of 3 levels work break down structure:
    level 1: a root WBS element
    level 2: splited into 2 WBS elements (Production - Maintenance)
    level 3: spliting each WBS element of the above level into 3 WBS elements (Service - Materials - Labour)
    actual postings ONLY is against level 3 WBS elements and the costs is acomulated to level 2 and then to level 1
    but my customer wants to settle ONLY level 2 WBS elements (Production - Maintenance).
    so...
    i maintained settlement rules only for level 2 WBS elements (Production - Maintenance)
    level 3 WBS elements  (Service - Materials - Labour) are assigned settlement profile
    90, which has the setting "Not for settlement".
    when i tried to run settlement for level 2 WBS elements (Production - Maintenance) i failed coz i got 3 "Nor relevant" and 1 "No change"
    so, my question is: is it possible to settle aparent WBS element in which there's no actual costs has incurred "has no actual costs of its own", however, it only has childs WBS elements that have actual costs

    If you read your post carefully you will understand what mistake you are doing. Read SAP Help and search forum regarding settlement you will find the answer for this
    so, my question is: is it possible to settle aparent WBS element in which there's no actual costs has incurred "has no actual costs of its own", however, it only has childs WBS elements that have actual costs
    Edited by: Mohamed Rafi on Jul 4, 2011 7:06 PM

  • Validating Internal Order Settlement Rule during creation

    Does anybody know of a user exit, badi, anything, that can be used to validate assignement data when creating/changing the settlement rule on an internal order?
    Appreciate the help...
    Sam

    Hi, I just wanted to come back and add this extra information incase someone else needs it in the future:
    I think we were finally able to come up with an acceptable solution.
    <b>The Problem:
    ============</b>
    SAP does not provide an easy way to validate detail section of a settlement rule for an internal order. The user exits that are available do not import the COBRB structure that contains the screen data entered by user in the detail screen.
    <b>Solution:
    ===========</b>
    Watch out for wrapped lines!
    (1) Implement the BADI: <b>CO_SRULE_CHECK</b>; NO filter; Settlement Rule Custom Validation BADI
    (see current thread for details)
    Inside the <b>DISTRIBUTION_RULE_CHECK</b> method of your BADI, implement your custom validation. You can call out to your standard CO validaton module, or whatever.
    (2) Implement user exit: EXIT_SAPLRKIO_002(include zxaufu02): Call settlement_rule_check.
    (3) Implement a subroutine as shown (adapt to your business environment):
    FORM settlement_rule_check.
    DATA: exit type ref to IF_EX_CO_SRULE_CHECK.
    DATA: lt_cobra LIKE cobra OCCURS 0 WITH HEADER LINE, lt_cobrb LIKE cobrb OCCURS 0 WITH HEADER LINE.
    don't validate in display mode
    CHECK I_ACTVT NE 03.
    Call function to get the current settlement rule from
    memory buffer (this is the crux of the solution)
      call function 'K_SETTLEMENT_RULE_GET'
           EXPORTING
                objnr     = i_aufk-OBJNR
                x_all     = ' '
              TABLES
                e_cobra   = lt_cobra
                e_cobrb   = lt_cobrb
              EXCEPTIONS
                not_found = 1
                others    = 2.
      if SY-SUBRC <> 0.
    raising E_MESSAGE.
      endif.
    Now Prepare/call BADI to check the custom rules
      class CL_EX_CO_SRULE_CHECK definition load.
    create an instance of BADI
      call method cl_exithandler=>get_instance
           changing
            instance = exit.
    call the check method of the BADI
      call method: exit->DISTRIBUTION_RULE_CHECK
           EXPORTING
               DISTRIBUTION_RULE = lt_cobrb
      EXCEPTIONS
         not_allowed                = 1
         not_allowed_with_msg       = 2.
    either use a standard message function or create your
    own
      IF sy-subrc = 1.
        PERFORM message_send
          USING 'KD' 'E' '027' space space space space space.
      ELSEIF sy-subrc = 2.
        PERFORM message_send
          USING sy-msgid sy-msgty sy-msgno
                sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                space.                   "...
      ENDIF.
    endform.
    (4) Test, Test, Test. Hope it works for you.
    Sam

  • Where can I define Account assignment category for order settlement rules

    Dear Gurus,
        When I used Tcode: CO07 to create a rework order for parent order. But I cann't find the Account assignment category = Ord (Order) in the maintain Settlement rule overview.
      Where can I define Account assignment category for order settlement rules?
      Please help me. Thanks!
    Regards
    Paul.

    I've resolved this question.
        Firstly, run OPJH - Define Order Types, we should assign settlement profile for the order type.
        Secondly, Run OKO7-Maintain Settlement Profile, find and mailtain the settlement profile. In 'Valid Receivers' we should set the field 'Order' = 1-(Settlement Optional).
        Thirdly, run CO07 - Create Order without material. We can find account assignment catetory 'ORD' in maintaining Settlement rule.
    Edited by: Paul Chan on Feb 16, 2009 5:15 AM

  • 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

  • KO8G-sudden surge of error mess(Maintain the settlement rule of the sender)

    hi!
    we encountered a lot of error message(Maintain the settlement rule), more than 4k, after we run KO8G, this is the first time happened to us. when we checked the PM orders from the error message, most of it came from previous periods even previous years, which are already closed. we can understand if there are posting for the said order for the period, but there is none. why those closed orders with no postings, still read by the settlement? were having a diffuclty of checking it one by one, we only expect less than 100. we hope you can help us.
    thanks in advance
    vince

    Dear,
    As found...
    Maintain only the FROM DATE... Remove the TO DATE as 10.2010 (Extend the TO DATE)
    OR
    Create a new settlement rule which is valid in the Period of Execution of settlement
    Regards,
    Syed Hussain.

  • Problem in maintaining the settlement rule in the maintenance order

    Dear Friends,
    I have a problem ,When  I am trying to maintain the settlement rule in the maintenance order ,I am getting information like below
    Decentralized system -> note settlement rule is not distributed
    Message no. /ISDFPS/PM124
    Diagnosis
    You navigated to the settlement rule.
    System Response
    The system informs you that a settlement rule can be created but that it will not be distributed to the target system. Settlement is carried out in the target system, where the order is usually settled to the WBS element of the operation.
    Can anyone throw some light on how this is happeing and remedy?
    Appreciating your early response

    Hello
    Please check
    TC --> KSR2_ORC
    Please maintain the Strategy Sequences for Automatic Generation of Settlement Rule.
    You define a strategy sequence for automatic generation of settlement rules for internal orders.
    Regards,
    Rakesh
    Edited by: RAKESH ASHOK MANE on Sep 3, 2010 12:37 PM

  • How do I see the changes made in the settlement rule?

    Dear Experts,
    I would like to see the changes that was done in the settlement rule. I have perform the following:
    In the 'maintain settlement rule' screen in project builder (CJ20N) - Goto > Change Document > All Rules.
    The system gives message that 'no change documents found - message no KD128'.
    Q: Is there any difference between settlement rule and distribution rule?
    Q: Is there anywhere else that I need to do to get the change document in settlement rule or distribution rule?
    FYI - I have change the project profiles to include(tick) change document in the Basic Data and Status Management. I believe this is not relevant to change in settlement rule.
    I appreciate your help. Thanks.
    Regards

    Hi,
    Abt your first question,
    You need a settlement rule to carry out settlement. You define the settlement rule in the sender object. The settlement rule contains the distribution rules and the settlement parameters for a sender object.
    You can maintain the settlement rule for WBS elements or networks/activities in an overview screen. You use distribution rules to stipulate which proportions of the costs are to be settled to which receiver. Costs can be distributed on the basis of:
    1. Percentages
    2. Equivalence numbers
    3. Fixed amounts
    To check changes done , you can also check t code CN60.
    Regards
    Tushar

  • Delet the settlement rule

    hi 
    How to delet the settlement rule , after realease project.
    if i check in settlement rule for Activity it will show all option in disply mode .
    thanks
    sunil

    Has settlement from the Network Activity already ran?
    On the settlement rule line ....check the values in the First Used & Last Used fields
    If both of these are not blank, then settlement has already ran.
    To delete you would need to undo each run of settlement to remove the date.
    If in Production this is probably not an option. Therefore you will need to end the existing settlement rule with an end date in end period & year.
    Then create new settlement rule.
    If both First Used and Last used are blank then I would try entering /SU53 into the command field to check for missing authorisations.
    I am automatically generating settlement rules from Activity to parent WBS and have no problem changing or deleting the settlement rule prior to settlement running.
    Steve

  • GR/IR expenses not affected with the settlement rule run process in the GL

    <i><b>Please neglect by previous post with the same title</b></i>
    There is a problem I face while running the settlement rule process related to internal orders on the GR/IR expenses.
    According to the internal order settlement rule every expense associated to an Internal order no. whether its an account payable or manual journal accounts it should be settled (distributed) on the cost centers specified in each internal order after the monthly settlement run process is done through T.Code "KO8G", and this actually happens on the entries that are booked manually through T.Code "FB50", but the GR/IR entries is the biggest problem, it didn't reflect the settlement rule distributions in the GL it just gives me the original transaction once its was automatically created through T.Code "MIGO" they are only allocated to a one profit center with no cost center and without being distributed to a multiple cost centers according to the distribution strategy.
    After a long search I found that the cost center distribution occurred only on a secondary none GL account named A&P Settlement (720010), all GR/IR expenses was settled correctly only on this account not through the ordinary GL accounts (e.g. Gifts, printed materials) and of course the correct distribution didn't appear in the GL,
    So is there a transaction or any way to allocate the GR/IR expenses to there correct cost centers with the correct cost element in the GL?
    Is there anything to do with the GR/IR calculation that depends on quantity base not value base?
    <i><b>The Process as follows:</b></i>
    (<b>1) Creating Internal order with a settlement rule (E.g. Cost center 1 (50%) Cost center 2 (50%)</b>
    <b>2) Creating a purchase order associated to an internal order</b>
    <b>3) The Goods received and creating the GR transaction T.Code "MIGO"</b>
    Acc/DR Expenses accounts
    Acc/CR GI/IR Account 400301
    Profit enter ###### (eg. 111177)
    Cost Center <blank>
    Internal order no. ####### (e.g. 9810512)
    <b>
    4) Closing the GR/IR accounts when receiving the invoice T.Code "MIRO"</b>
    <b>When we receive vendor invoice:</b>
    Acc/Dr GI/IR Account 400301
    Acc/Cr Vendor Account
    Profit enter ###### (eg. 111177)
    Cost Center <blank>
    Internal order no. ####### (e.g. 9810512)
    <b>5) Performing the Internal order settlement rule run process</b>
    <b>(N.B.</b> By entering the report of the cost center (Actual/Plan/ Variance) T.Code S_ALR_87013611
    I found that GR/IR expenses was not charged on the concerned cost centers as shown in the GL <b>)</b>
    <b>Your Reply is highly appreciated</b>

    Thanks for your kind reply,
    But is there a way solve this problem?
    And what is the use of leaving a field in the account assignment tab for an internal order while creating a PO and it will not take advantage of the settlement rule????????
    And as you know the internal order settlement is a way to create a multiple account assignment
    Can we solve the problem by making an automatic fake transaction that reverse the value of the GR/IR and creating another transaction can apply on it the settlement rule??
    You know that settlement rule process is one of the best features in the SAP system it save time and effort to make distributions manually

Maybe you are looking for

  • Plz tell me difference

    hi all thanks plz tell me difference between sy-index,sy-tabix and sy-dbcnt ect. or any other feilds like above plz tell detail which r usefull me for programming thanks anand

  • Lose of focus (mouse click/enter key)

    Hello, we have a problem customers are complaining about for quite a while now, but despite our efforts, we can not fix it or at least determine with certainty the problem cause. We have an application launching forms apps, and from time-to-time we c

  • 5800 screen not responding

    Im having a slight issue with my 5800, it went flat last night so I put it on charge, now when I try turning it on it starts up then just before it gets to entering the pin code the screen dims like the keygaurd has turned on and it wont respond to a

  • WHERE AND HOW CAN I HAVE AND INSTALL msvbvm50.exe IN MY LAP?

    I NEED THIS DOLLAR TO RUN A PROGRAM , AMD I DO NOT KNOW WHERE CAN I GET IT AND INSTALL

  • Batch rename reel number

    I'm new to FCP. I captured 4 DV tapes and have not edited the file names yet. It looks like I have 4 tapes that were each added to a new bin. 3 of the tapes have a unique reel number (1,2,3) and one is a repeat. How can I change all the reel numbers