Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI/FM to create WBS settlement rules.

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

0 Kudos

Hi Karthik,

Thank for ur quick reply. My requirement is we will be supplied with an excel sheet containing settlement rules for all the WBS elements already created in the system. Now we need to update the existing WBS elements with the settlement rules from the excel. This program to create/update settlement rules will be run periodically. Im not sure whether exits will be useful. I need BAPI to create settlement rules from the excel sheet.

Thanks,

Vivek.T