BAPI or FM for settlement rule

Has anybody an idea how to cretate/update/delete the settlement rules of a production order via BAPI or FM?
Thanks
Raadha

Hello Raadha,
                          You can use the following FM's:-
SETTLEMENT_RULE_CREATE_OPR
CO_SD_SETTLEMENT_RULES_UPDATE
CK02_CO_PROD_GEN_SETTLE_RULE
Hope thsi answers your question.
Thanks,
Greetson

Similar Messages

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

  • Mass maintenance for Settlement rule

    Hi,
    I want to maintain settlement rule of Network (cn22) and Internal order (Ko02). How can I carry out mass maintenence for these business process?
    PLease mention steps or any transaction.
    Thanks
    SIM

    HI,
    I don't know a standard transaction for settlement rules mass maintenance but you can use LSMW based on a batch-input recording  for the changes you want to make.
    Best regards, Christian

  • Business object for Settlement Rules

    Hi Experts,
    Is there any Business Object available in SAP for Settlement Rules ?
    I've identified Change Document Object RKABRV for Settlement Rules but I need respective BO to do the mapping in tcode SWEC.
    Please share.
    Thanks,
    Anirban.

    Hi Naval,
    To find out a BTE for a given tcode you can try this. In a session open SE37 tcode and open the function module BF_FUNCTIONS_FIND. Set a break point at CALL FUNCTION. Then in another session open FB08 tcode. Try creating a entry and save. When you press it will call this function module. Now check for the values in the container I_EVENT. It contains the BTE that can be used for the given tcode.
    Regards,
    Raj

  • 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

  • BAPI For settlement rule for IW33 transaction

    hi,
    good day guys
    Iam searching for BAPI for iw33 for settelment rule..but i couldnt get it..
    Settlement rule is nothing but Rule that determines which portions of a sender's costs are allocated to which receivers.
    If you go to iw33 t.code.. give the order numbe and then enter..
    Go to tab--->Settlement Rule..
    plz can anyone tell me which bapi is fit for it...
    Regarsd

    hi,
    try the following BAPI
    BAPI_ALM_ORDERSRULE_CREATE
    hope this helps
    Regards
    Ritesh

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

  • Can User Exit works for Settlement Rule in Maintenance Order creation?

    Dear Experts,
    I have this situation where I tried to create an Internal Maintenance Order via IW31 for multiple equipments from different functional location (different cost centers) using the Object List.  However, the settlement rule has a problem to pull out as there's no Equipment in the reference object. That's the reason, I'm looking at the User Exit which I understand the IWO10027, can do the work.  Since I'm new to User Exit, can I enhance the settlement rule by the following condition.
    The costs spent on each equipment will be used as a basis of calculating the weightage (via equivalence no) for the settlement rule.
    Can it be done that way?
    regards,
    Abraham

    Sanjay,
    This data can be checked in the following user-exits:
    COZF0001: Change purchase req. for externally processed operation
    COZF0002: Change purchase req. for externally procured component
    PeteA

  • Table for Settlement rule in production orders

    Hi All,
    Is there any table by which I can get list of production order numbers & the details of the settlement rule maintained in that order.?
    Regards,
    MHP

    There will be object number (OBJNR)  against each production order number which you can obtain from table AUFK.
    Later pass this object number to function module K_SETTLEMENT_RULE_GET to get the settlement rules.
    Also try function module K_SRULE_PRE_READ for reading the settlement rules. Here pass the object numbers to the tables parameters

  • PM:Action log for Settlement rule

    Dear all,
    May i know are there any way that i can see the changes that being done at screen maintain settlement rule. For example if I change the settlement type, system will keep the change/action log for that changes.
    One more question, what the different between settlement type 'FUL' and 'PER' (impact to the settlement)
    thank you so much,
    Siti Norbaida

    Hi,
          I Hope this Documentation will help you ........
    Settlement type
    Depending on the processing type, the settlement type determines which settlement rule is used in a particular type of settlement processing.
    The SAP system supports four settlement types. The AUC and PRE settlement types are used for settlement of capital investment measures. You can only use the PER settlement type for planned settlement.
    PER (periodic settlement):
    Settlement with this settlement type covers only the costs for the relevant settlement period.
    The following data from internal cost allocations:
    Sender cost center/activity type sent
    Business process
    Quantities
    is allocated further to the following receivers:
    Cost center
    Internal order
    Sales order
    WBS element
    Cost object
    Business process
    Actual activity prices, elimination of internal business volume and variances can then be calculated correctly in Cost Center Accounting and Activity-Based Accounting;
    FUL (full settlement):
    You can use this settlement type in automatic settlements.
    The difference to periodic settlement is that in full settlement you settle each time all the costs that have occurred for a sender object for all the periods prior to the settlement (and are not yet settled). If PER rules exist, they take precedence over the FUL rule.
    Quantities from internal activity allocations are not sent to the receiver. This means that there is no guarantee that actual activity prices, elimination of internal business volume, and variance calculation will take place correctly. For this reason, we do not recommend that you use FUL for cost centers or business processes.
    AuC (Capitalization in asset under construction):
    This settlement is automatically generated if you enter a capital investment profile with an AuC as its capital investment measure in the order control data.
    Settlement is conducted periodically and in full to the AuC
    PRE (periodic preliminary settlement):
    You can enter PRE rules in the settlement rule for the order. They are used as part of settling capital investment measures.  Depending on the rules you entered, posted debits are settled to the CO receivers or to a G/L account before the periodic settlement.
    It is good idea to do this for particular line items if there are additional costs assigned to a capital investment measure that should not be capitalized. This may be necessary, should you wish to monitor the total costs of the measure in controlling.
    Use
    Note that settlement type FUL permits quantity settlement for primary cost elements only.  You cannot settle quantities to assets.
    Note that you cannot manually create or change a distribution rule with settlement type AUC.  This has the following effect on settlement rule maintenance:
    The required rule is generated from the asset under construction, which is stored in the master data for a capital investment measure, ( order or WBS element)when you carry out settlement for the first time.
    Regards,
    Gangadhar

  • WBSE Strategy creation for settlement rules

    For Automatcally creation of settlement rules:    I created the strategy for WBSE settlement rules at IMG but idid not find option of superior WBSE in account assignment category field at setting folder.
    can any one tell me why it did not not appear,

    this functionlaity is not standard
    apply note OSS 211324

  • 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

  • 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

  • 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

  • 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

Maybe you are looking for