CJB1/CJB2 will Create Settlement Rule only on Last level of WBS

In Investment projects the client want to settle last level WBS to top level WBS and from top level WBS to AUC and capitalise it. Since we have so many WBS in structure hence we want to use CJB1/CJB2 for settlement rule creation. But CJB1 and CJB2 is createing WBS on all level of WBS. Can any body tell me, what configuration/settings i need to do so that CJB1/CJB2 will create Settlement Rule only on Last level of WBS.
Edited by: Vipul Mehta on Aug 28, 2011 3:19 PM

Hi Sreekant,
I checked in SPRO; PS > Costs > Automatic & Periodic Allocations > Settlement > Sett Rule for WBS > BADI for CJB1 / CJB2, there is so many BADI is available. Please let me know BADI name, which is help me to create settlement rule create at WBS last level through CJB1 / CJB2.
Regards
Vipul Mehta

Similar Messages

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

  • Possibility of creating Settlement Rule in Background?

    Hi Gurus,
               When I am doing TECO of the Maintenance Order everytime I have to create Settlement Rule.
               My settlement receiver Category (Cost Center) and Cost Center are fixed for  Order Type.
               Is it possible to create Settlement rule in the background while doing TECO of the Order.
               Please suggest if any User Exit is there.
    With best regards,
    Narendra

    Narendra,
    We are looking at exactly the same issue.
    As you are aware, you can only default one cost centre via the equip/floc...
    The only way we can see to have a pre-defined cost centre by order type/plant is to use user-exit [IWO10027|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf] (default settlement rules).
    PeteA

  • 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

  • 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

  • Settlement rule only FUL

    Hi,
    I would like to have settlement rule only "FUL" not PER.
    how to do this?
    Regards,
    SS

    Hi,
    Check you config using tcode OKO7.
    Select the settlement profile which you want distribution rule to be 1
    at bottom there is a field Max.no.dist.rls maintain 1 over there.
    Use User exit IWO10027 to get default FUL as distribution rule.

  • Error while creating settlement rule

    We are trying to create a Settlement Rule for a Production Order for material 900010001 with following details:
    Cat:MAT
    Settlement Receiver:900010001
    % :100
    Settlement Type:FUL
    System is giving an error msg. no.KD063 'Distribution rule for an Article can only be created automatically'.
    Can anyone help us in analysing the same.
    We want that while creating a Production Order Settlement Rule shall be created by default for Cat:MAT & Settlement Receiver:900010001 (Material of Production Order).Can anyone guide us how the same can be achieved.
    With Rgds.,
    Rakesh Kumar

    Hi..
    please try this....Goto KSR2_VBP.
    THere are two strategies.. 01 and 02.
    01 for manual creation of settlement rules
    02 for auto creation..
    first check whether 01 and 02 are in your plant.
    Sales and distrib....basic functions......auto gen. of settlement rules.......
    here you ll find two activities.
    (1)maintaining the settlement strategies and
    (2)activating one among them.
    If you activate 02, your problem will be solved..
    Also check this..
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/a9/ab777d414111d182b10000e829fbfe/frameset.htm
    The settlement profile is to be defined for thee particular Order Type to generate automatically.
    Define Production Order Type in OPJH
    Under Cost controlling check the settlement profile .
    If not create the same in OPJH.
    Settlement Profile: Create settlement profile - SPRO > Controlling > Product Cost Controlling > Product cost by Order > Period End Closing > Settlement > Create Settlement Profile
    Enter Settlement profile from OPJH or Choose one for production order
    and configure Settlement profile. Indicators
    with wishes
    karthick.

  • Warning while creating settlement rule

    Hi,
    I have a scenario where user is creating distribution rule using CJIC ( Final settlement rule). Here user is getting a warning message Enter %, equivalence No, or amount.
    Please note that here even after the % = 100 to FXA, the user is getting this warning everytime.
    Can someone please help me wht could be the reason for same ?
    BR
    Anjali

    Hi
    Try to enter "Either" % "OR" Equiv no. "OR" amount only & check.
    regards

  • CJIC - Creating settlement rule

    Hello,
    When creating a settlement rule (CJIC), I used function module K_SRULE_SAVE_UTASK in ECC 5.0 . for this I created an internal table of the similar structure as of COBRB table and fill all the desired fields in that and pass this table with BAPI.
    In this case, Data is inserted to the table COBRB through BAPI . but Record is not populated with T Code (CJIC).
    Can anyone please help me.
    Thanks,
    Rehan

    Hi
    Try to enter "Either" % "OR" Equiv no. "OR" amount only & check.
    regards

  • 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

  • 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

  • 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

  • Automatic settlement rule creation

    Hello Guru's,
    I have a scenario of capital proejcts. Were I create Assets with the help of Investment profile at the top(1st level) WBS element. Now my requirment is the cost of the second level WBS should be rolled upto top level WBS element. To do this I have to manually create settlement rule for all second level WBS to settle at top level. I have to create this rule automatically throught CBJ2 tcode.
    As per SAP Note 211324 I have  Implemented the modification. Now I have Insert value '5' with short text 'Superior WBS element'. Also have assign the strategy to Acct. Assign element. This strategy is also assigned to settlement profile. Also have assigned this settleemnt profile to project profile.
    Now, when i run CJB2 tcode for my project the system issues me an error :-
    Error(s) during creation of settlement rule
    Message no. ORB509
    Diagnosis
    Errors occurred during the check on settlement receivers.
    System Response
    Processing stopped.
    Procedure
    Check whether the:
    Specific receiver Account assignment e actually exists
    Settlement profile ZPI03 permits account assignment to the specified receiver
    Please throw some light on this error
    Regards,
    Tushar

    Thanks Virendra,
    Thanks for your reply but tell me after the implementation of note do I need to implement BADI also as in past for some forums you have mentioned???
    Regards,
    Tushar

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

  • Investment order settlement rule Errror

    Dear All,
    While creating an Investment order, system will ask for creation of AUC asset if investment profile in assigned to the Order and creates an AUC asset with autoomatic generation of settlement rule.
    But when i m trying to create the said order with investment profile attachment, and AUC creation system is not allowing me to save the order with errror as below:
    Enter a distribution rule for Asset without a validity limit
    Message no. KD059
    Diagnosis
    The settlement profile used requires you to define a distribution rule for Asset. For period 003 2011, however, you have not created a distribution rule for Asset.
    Procedure
    Create a distribution rule for Asset without a validity limit, because, if the distribution rule does have a validity limit, the system always issues this message in the period following the last valid period.
    You can also use a different settlement profile that does not require such a distribution rule, or change the settlement rule used.
    Can you pls let me know what is the cause of this error message,
    Thanks & Regards,
    Ravi

    Dear Ajay,
    I have not manually created settlement rule as it is an Investment order to which Investment profile is assigned.
    When Order is created, system will prompt for AUC creation. I have done that but when saving it is showing this error.
    System will create Settlement rule automatically to this investment order, which is not happening in my case though i have assinged Investment profile.
    Pls advise
    thanks,
    ravi

Maybe you are looking for

  • ABAP + JAVA system copy

    Hi My enviroment is SAP ECC 6 (ABAP + Java add in though we don't use the Java stack) on Oracle 10g/Solaris 10. I intend to do a system copy(PRD to QAS) using offline backup/restore method.  Is this possible for a ABAP + JAVA system using this method

  • Group membership for users is not reflected at the client until full reboot

    Ok, so I am new to this: So I created two groups on the server g1 and g2. Created two server users u1 and u1. I have one client with three accounts: System Admin, u1 and u1. On the server: g1 has one member u1 g2 has one member u2 When I swap the mem

  • Java is loading slow or not working at all -- how can I fix it?

    Hi there I seem to be having problems using the Java on my iMac. When I and open Safari and go to a chat-room that I have went to for years http://chat.parachat.com/chat/login.html My Java takes so long to load. This time it took about 15 minuets to

  • Using Workflow

    Hi, I'm new to the Oracle Workflow process. I was wondering if it would make sense to use the WorkFlow Engine along with a J2EE application in the following scenario. * After user sends his information (from a web page), an email needs to be sent * T

  • My external drive and DVD/CD devices are missing from my sidebar

    The other day, my external Time Machine drive and DVD disappeared from my Sidebar. Time Machine still sees the drive and writes to it routinely. DVDs and CDs can be written to but do not show when done. They can be ejected with the keyboard button bu