BAPI/FM to create WBS settlement rules.

Hi,
I would like to know if there is a FM or BAPI to create WBS settlement rules. I use CJ20N transaction to create manually. Any qucik response will be much appreciated and Obviously rewarded
Thanks,
Vivek.T

U can use the user exit
COPCP005 and its function exit EXIT_SAPLCKAZ_001. Try this out....
Or choose any one options from the below list which suits ur requirement:
Develop Enhancements for Material Costing
The following SAP enhancements are available for the area Cost Estimate with Quantity Structure:
o Costing Reports (SAPLXCKA)
o Costing Production Resources and Tools (COPCP003)
o Material Valuation with Cross-Company Costing (COPCP001)
o Costing Bulk Materials (COPCP004)
o Valuation Price for Materials from User Exit (COPCP005)
1. Costing Reports: SAPLXCKA
Here you can create your own reports for displaying cost estimates with quantity structure or activate the example reports in the standard system.
This enhancement contains the following components:
· EXIT_SAPLCKAZ_001 Display/print itemization
This enhancement contains example program code from SAP that you can modify and use for your own enhancement, or activate directly as a report for the itemization.
· EXIT_SAPLCKAZ_002 Display/print cost components
This enhancement contains example program code from SAP that you can either modify and use for your own enhancement, or activate as a report for the cost components.
· EXIT_SAPLCKAZ_003 Display/print cost components and itemization
This enhancement does not contain example program code.
In the cost estimate with quantity structure you access the reports with Costs -> Display user exit. The report refers to the first cost component view listed. If you want to see the costs with reference to another cost component view, choose Settings -> Cost display and choose the desired report under Select view.
You can display your own reports in the information system by adding them to the report list for product costing.
See also:
Check report list for material cost estimate
2. Costing production resources/tools: COPCP003
This enhancement contains the component EXIT_SAPLCK01_001.
The costs for production resources and tools are calculated as a flat rate within production overhead.
This enhancement enables you to plan the costs for production resources in costing with quantity structure in different ways. Here you can specify how the production resources are to be costed.
In the cost component structure, the production resources can be shown in separate cost components.
This enhancement contains example program code from SAP that you can modify or use as is.
3. Material valuation with cross-company costing: COPCP001
This enhancement contains the component EXIT_SAPLCK21_001.
Here you can enter the prices for valuation of a material that is transferred between company codes.
You have the following options for the valuation of materials that are transferred between company codes:
o You are using the standard system without cross-company costing. In this case the system uses a price in the material master record in accordance with the valuation strategy. The material is treated as if it were externally procured.
o You activate cross-company costing. In this case the material is recosted in the other company code or transferred according to the transfer control ID.
If you have not activated cross-company costing, you can use this enhancement to define alternative prices for valuation of a material that is transferred between company codes. That is, this enhancement allows you to specify which price should be used instead of the price from the material master record.
In include LXCKAF)) you can find an example program code. However, this code example can not be directly copied and used
4. Costing Bulk Materials: COPCP004
This enhancement contains the component EXIT_SAPLKKEX_001.
You can use this enhancement to plan the costs for bulk materials and show in the cost element itemization.
If the indicator Bulk material is set in the material master, the indicator Relevant to costing in in the BOM does not accept input for the item. The enhancement allows you to determine the costing relevancy. The items with the bulk materials indicator at item level of BOM are also included as relevant to costing.
This enhancement contains example program code from SAP that you can modify or use as is.
5. Valuation Price with Valuation Strategy U: COPCP005
This enhancement contains the component EXIT_SAPLCK21_002.
You can use this enhancement to specify prices for valuation of materials if you want to use valuation strategy U (valuation with USER EXIT) for material valuation to find a price for the materials.
This enhancement does not contain any example program code from SAP.
Activities
To activate the SAP example reports (the procedure is similar forthe other enhancements):
1. Create a new project or use an existing one.
2. Set the indicator SAP enhancements and choose Change.
3. Enter SAPLXCKA as the SAP enhancement and choose Save.
4. Set the indicator Enhancement components and choose Change.
5. Position the cursor on the enhancement component EXIT_SAPLCKAZ_001 and choose Edit -> Use SAP source code.
6. The system asks whether you want to create ZXCKAU01. Answer Yes.
7. Maintain the attributes.
8. Save the program and choose Back.
9. Position the cursor on the enhancement component EXIT_SAPLCKAZ_002 and choose Edit -> Use SAP source code.
10. The system asks whether you want to create ZXCKAU02. Answer Yes.
11. Maintain the attributes.
12. Save the program and choose Back.
13. Activate the project.
14. To display the reports, you must perform costing again.
Further notes
Unlike modifications, enhancements are always upgrade-compatible because they are implemented in a name range reserved for the customer rather than in the SAP original.
The general procedures for creating enhancements can be found in the enhancement transaction CMOD under Goto -> Online Manual. This takes you to the SAP library where you can find detailed information on customer exits.For more information on the above enhancements, see the associated function module documentation.
Reward if useful...
Regards
Karthik D

Similar Messages

  • Generation of WBS Settlement Rule

    Hi Folks!
    I was wondering if there is any function module that allow me to generate a WBS Settlement Rule for a specific project and for elements on level 3.
    If there is no FM for this, is there any workaround to do this.
    Thx for any advise.
    Regards,
    Gilberto Li

    Hi Gilberto,
    Hm, not a question that has a simple answer. 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.
    Let us first assume that customizing is done with a settlement profile named ZZ_PROF for instance. This is defined in customizing like path (from R/3 4.7): Trans SPRO -> Project System -> Costs -> Automatic and Periodic Allocations -> Settlement -> Settlement Profile -> Create Settlement Profile.
    My first advice would be to use the "automatic settlement derivation feature" that can be setup in customizing alike. Trans SPRO -> Project System -> Costs -> Automatic and Periodic Allocations -> Settlement -> Settlement Rule for Work Breakdown Structure Element. 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 project profile. There is also an option to define a BADi whereby you you can somewhat influence the automatic generation of settlement rules. You must "obey" the rules in the "settlement strategy" but can do some filtering of SD orders influence and derive a "settlement strategy" baseed on some coding logic of your choice.
    To execute these settings on operative projects you run trans CJB1 (collective processing) or CJB2 (indicidual processing).
    All in all: This is good functionality but maybe not what you are looking for due to the built in "restrictions" in the "settlement strategy" profile.
    My second advice would be: What I did in the past was to write a batch input program that was run just before period end closing (that is before settlement - of course) that did read all relevant WBS elements without a settlement rule and derived a new settlement rule. Finally, updated the setttlement coding block with this info. Processing of the BDC is then done via trans SM35 the normal way.
    I also did a check for trans CJB2: In include LKAZBF15 there is the "magic" call to the update FM with name KSRG_GENERATE_RULE. One option could be to set a break point here and run the trans to see what parameters has to be filled. This implies that the customizing is done before, of course. I have a feeling that this is NOT the easist solution to use - to fill the parameters correctly may be difficult
    I hope this helps you in deciding what action to take.
    Sometimes a simple BDC will do the trick although it may not be a "good" solution.
    Disclaimer: There might be some other relevant FM to solve your problem as I am not aware of. If you find one for WBS elements then I would certainly be interested in any findings.
    Regards, Johan

  • Creating a settlement Rule for an Asset: message error AA311

    Hi All,
    I have to create e Settlement Rule by KO02. But SAP gives me the message AA311 and doesn't allow me to go on...
    Could anyone help me?
    Thanks

    hello Gandalf ,
    Create an IO Through KO01 with extra Create AUC........
    Then post the exp to AUC........
    Then assign the settlement rule as Fixed assed and enter the Asset number and give % or amount....
    Settle the IO through K088
    Hope this will resolve your issue............
    Regards
    Kumar

  • Where to configure Account Assignment Category for WBS Settlement Rule?

    Hi,
    I would like to know where is the Account Assignment Category for WBS settlement rule (FXA, CTR, G/L, WBS)  being configured. (SPRO Path)
    Currently when I go to our settlement rule creation screen I can only see WBS and FXA, I need to add MAT (Material)
    Thanks!
    Regards,
    Vivian

    Hi Shrikant,
    Do you mean in my CJ02 WBS Settlement Rule creation screen, I cannnot put MAT as account assignment category?
    Does it mean that WBS element CANNOT be settled to material? and we can only settle PM order to material?
    Thanks!
    Regards,
    Vivian

  • 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

  • How to create distribution rules group for wbs settlement rules

    Hi,
    How can I create distribution rules group for WBS element settlement rules ?
    For some WBS elements I can see(in view mode(cj03)) distribution groups in settlement rules screen but when I try to edit settlement rules I only see default group.
    How can i create/edit those groups ?
    Regards,
    Rafał

    Self answered:
    CJIC t-code

  • WBS Settlement rule control for service orders

    Hello,
    We have an requirement to implement validation point for service order settlement rule. Currently there is no validation check of settlment rule for service order. So that the settlement is happend to incorrect receivers in service orders.
    For example :
    Service order created for company code - 400 and the settlement rule receiver should be WBS which is belongs to same company code but some case , user are maintained wrong WBS in settlement rule which belongs to some other company code.
    Can you please hlep us on this requirement and suggest any enhencement point avalible on the same.
    Thanks
    Risha

    Hi,
    Please go to okg2,
    Calculate wip or result analysis
    remove the tick for Order In Engineer to Order Production
    Now run result analysis and check whether settlement will not happen for cross company code.
    please check this and revert back.
    Thanking you
    Vengaiah Chowdary

  • 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

  • Regarding WBS settlement Rule using  WBS_SETTLEMENT_RULE BADI

    Hello every one could any one tel me about
    Settlement rule of WBS by using BADI  WBS_SETTLEMENT_RULE
    I wanted to use same settlement rule far all WBS under same project
    eg IF user enter settlement rule for WBS level 1 that should get copy into remaining all WBS thats all requirment
    I am trying it thtough BADI  WBS_SETTLEMENT_RULE  and method DETERMINE STATERGY ?
    Can i do selecting settlement rule of WBS1 and updating same table with same values for remianing WBS levels.
    Thank you in advance
    Deepak Pawar

    Hi Deepak,
    Yes, you use the that Badi, but he badi WBS_SETTLEMENT_RULE is actually not needed to fulfill the requirement, if the customizing is set accordingly.
    More important is the selection in CJB1 or CJB2, so that the inherit not happend from the project defintion(instead of WBS1) to underlying WBS.  I think, it can only be done using right variant with CJB1.
    There is a new Badi  WBS_SETTLEMENT_RULE_NEW, which allow more detailed control of the copy settlment rule action.  The method GET_TEMPLATE can be used to determine which object( e.g. WBS1 )  should be used.
    Kind regards,
    Zhenbo

  • WBS settlement rule

    Dear PS Sifu,
    What is the maximum number of settlement rule can we maintained in CJ20N by WBS element?
    Please advise.
    Thank you.
    Kind regards,
    Eila

    hi
    check in the settlement profile.

  • 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

  • Missing amount field on wbs settlement rule

    Investment Profile has Amounts and Percentages set on. We can't see the amount field in CJ02 settlement rule.

    Investment Management -> Projects as Investment Measures -> Settlement -> Maintain Settlement Profiles
    Define Settlement Profile, select the respective settlement profile which you had problem
    Under tab Indicators, check amount settlement, it will appear in the project.

  • BAPI for settlement rules in WBS Elements

    Hi,
    Is there any standard bapi, method, or whatever... to create / modify settlement rules for WBS Elements?.
    Rgds,
    Jose

    Look at BAPI/FM of FG CJ2054
    BAPI_BUS2054_CHANGE_MULTI     Change WBS Elements by BAPI
    BAPI_BUS2054_CREATE_MULTI     Create WBS Elements by BAPI
    BAPI_BUS2054_DELETE_MULTI     Delete WBS Elements by BAPI
    BAPI_BUS2054_GET_GUID_FROM_KEY     Read the GUIDs Using the WBS Keys
    BAPI_BUS2054_GET_KEY_FROM_GUID     Read the WBS Keys Using the GUIDs
    CJ2054_CHANGE     
    CJ2054_CREATE     
    CJ2054_DELETE     
    CJ2054_WBSELEMENT_CHANGE_STRU     
    MAP2I_BAPI_BUS2054_CHG_TO_PRPS     
    MAP2I_BAPI_BUS2054_NEW_TO_PRPS     
    MAP2I_BAPI_BUS2054_UPD_TO_PRPS     
    Regards

  • Settlement rules for WBS element

    Hi,
    I have a requirement to create WBS with settlement rules. Is there an FM or BAPI to call to create the settlement rule?
    Thanks.
    Lalyn

    hi
    good
    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
    Thanks
    mrutyun^

  • 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

Maybe you are looking for

  • Enterprise development for iPad

    Hi guys! Please give me understanding on some issues. We want to develop corporate applications for private users, not for the Internet. And we want to let our Flex apps to work on iPad. Is it possible? 1. Apple requires development of apps only on C

  • Blu-ray Error - Encore CS6

    Hi, I am having problems exporting my Blu-ray - I used Media Encoder to export my sequence from Premiere Pro, using the H.264 Blu-ray codec. This is the error message I recieve, which appears after it seems to have burnt the disc and is on 'building

  • Detect duplicates in ITAB

    Hi All, I want to detect all duplicates in itab and then display entries with duplicates. My itab only has one columns. How do I do this? I do not wish to delete the duplicates. Thanks. Tyken

  • Failure to install 10.2 on iMac flat panel

    Via Target mode (the imac's own cd drive is not working) I have erased the HD on the iMAc using Disk Util on a universal 10.2 install cd and then installed 10.2. The imac will now not start up past flashing question mark folder. Inspecting the HD via

  • How to send the data from jsp page to excel ???

    hi all, i want to send the data from my jsp form to excel sheet. any one can help me ??