Introduction:In the first blog I have discussed on creating sender structure for CCA Retraction and in this blog I would explain how to configure CCA Retractor in planning function for retracting Primary Costs and Quantity
Pre-requisite:Steps - Use already created RFC Destination or Create a RFC Destination to R/3 System -
- Go to SM59 and create a system of type 3, specify RFC destination name, target host
- In Login/Security tab, Specify the client, User, Password
- Test connection
- Create a Planning Level - Create a Planning under the planning area
Select Characteristics and Key Figures as required as shown below.
- Create a Package - Create a Package (0-ADHOC)
- Create a Planning Function - Create a Planning function as an Exit function by specifying the planning function name and description.
- Specify the 'UPR_COST_PLAN_EXEC' in Function Module and 'UPR_COST_PLAN_INIT' in FM initialization
- Move reqd fields into 'Fields to be changed' from 'Field list'.
- In Parameter Exit Functions specify the following parameters.
Parameter | Data Element | BUSI CASE DELTA MAPP RFC_DEST TEST VERSR3 WAIT ZARE ZELM ZTYP | I_BUSI I_CASE DEL_BOOK KCD_REPID RFCDEST TST_X I_VERS I_WAIT I_COAR I_CELM I_CTYP |
|
- Create a Parameter Group - Create a Parameter Group, Specify the name and description and maintain parameter values as shown below
Fields | Single Value | Retr. R/3 Comp. Retractor Control Delta Update Sender str. Destination Test mode Is Active R/3 Version Wait for Update Controlling Area Cost Element CElem category | 6 4 1 UPB_SND_COPS DEVCLNT100 0 01 02 03 |
|
For Ret. R/3 Comp - Select 6 (CostCenter Accounting)
Retractor Control is 4(Primary Cost)
Delta Update - 0
Test mode is Active - 0
Controlling Area - 01, Cost Element - 02, CElem category - 03
Important Steps- Avoid including the Fiscal Year / Period (0FISCPER) in the planning Level characteristics. So that aggregation is done for all the periods. (If not retractor will run for each period and only last period is updated and all other period values are blank).
- Make sure to pass the Unit of Measure when passing the Quantity else retractor wont update the Quantity in R/3. (Either you can map the field or maintain constant in the sender structure)
How to test: - Select Planning Area --> Select Planning Level --> Select Package
- Select Planning Function --> Right click on Parameter Group and click on Execute with Trace
- After successful retraction log is displayed along with the trace
Check the retracted data in R/3- - Run Tcode KSBP-Cost Center: Plan Line Items,
- Specify the Cost Center, Cost Element, Version , Period, Fiscal Year
- Click on Execute
- Verify the retracted Total Fixed Value & Total Fixed Qty for the combination of Cost Center, Cost Element, Version, Period, Fiscal Year & Activity Type
Further Documentation- Cost Center Planning: Data Retraction In my next blog I will discuss on retraction of Activities/Prices.