Pages

Showing posts with label CO-COPA. Show all posts
Showing posts with label CO-COPA. Show all posts

Wednesday, March 17, 2010

Information: RFBIBL00 - Batch document processing program

RFBIBL00 is a program which can be used to post documents or clear open items based on an input UNIX file. The programs supports the following transactions
  • FB01 Post document
  • FBB1 Foreign currency valuation
  • FBS1 Enter accrual/deferral document
  • FBV1 Park document
  • FB05 Posting with clearing
One of the basic advantages of using this program over a posting with BAPI is that it can also process profitability segment characteristic selection, which is not supported with BAPI for document posting.It also supports fields for one-time data and the data for the coding block fields.   

The Unix file structure details and more information required to implement this program can be found at the following link from SAP help portal:
http://help.sap.com/saphelp_45b/helpdata/en/35/a47e63763e0392e10000009b38f9b7/content.htm

Thursday, February 25, 2010

Information:Tables for CO-PA Transaction Data

The following link explains the concept of CO-PA data tables, which the system creates when an Operating Concern is generated.

Database Tables for CO-PA Transaction Data (SAP Library - Profitability Analysis (COPA))

Costing Based COPA

CE4XXXX - Profiability Segment Definition Table
(Assigns segment number to each characteristic combination)
CE3XXXX - Segment Level Totals table
(Provides Period Based Segment level Totals)
CE2XXXX - Plan Line Items
CE1XXXX - Actual Line Items

Account Based COPA

CE4XXXX - Profiability Segment Definition Table
(Assigns segment number to each characteristic combination)
COSS/COSP - Segment level Totals
COEP - Plan Line Items
COEJ - Actual Line Items

Friday, June 19, 2009

Issue/Solution: COPA Performance Improvement using Summarization Levels

Issue:
Very long processing time or frequent TIME_OUT errors while execution of COPA reports (KE30) or assessment cycles.

Solution:

1. Activate CO-PA log (T-Code KEDZ, Program: RKE_PROT_EVALUATE)


Purpose:
Any COPA report/cycle execution or data access from COPA tables would be recorded in the log after this activation. This allows SAP to analyze the CO-PA usage pattern /access information based on which automated summarization levels could be created to improve COPA performance.

Execution Steps:
Execute t-code KEDZ
  • Enter the Operating Concern (PI02) and click “Activate” (Ctrl+F1)


2. Collect CO-PA log data for a few weeks or months. (T-Code KE30, KEU2, etc)
This will be done automatically by the system when COPA reports or assessment cycles are executed.
For quick resolution in reports with poor performance, you may choose to execute all COPA reports /cycles, for which performance improvement is required to update the log data.

3. Create Summarization levels proposal (T-Code: KEDVP, Program: RKETRERU)

Purpose:
In this step, the system would read the access log information as recorded in step 2 and present a proposal to create summarization levels according to the database access patterns identified in the COPA log.

Execution steps:
Execute t-code KEDVP
  • Enter Operating Concern
  • Select COPA Type (Costing Based /Account Based)
  • Select the type of proposal to be created
    -Enhancement: Existing summarization levels are taken into account during optimization, and only additional summarization levels are proposed
    - Replacement: With this type of proposal, all existing summarization levels are ignored. The proposed summarization levels replace the existing levels. Even replacement proposal does not delete any existing summarization levels. However existing levels can be manually deleted using T-Code KEDV
  • Select the period (select maximum period for which log data is available) for which logged COPA transaction data should be considered to create the proposal.
  • Click “Create Levels” button to accept the summarization level proposal displayed

Note: The analysis can take quite a long time. If the program aborts during dialog processing, due to run time being exceeded, restart the program in background processing. To display the result when the program has completed, choose Display last proposal.

4. Build Summarization levels (T-Code: KEDU)

Purpose: Large volume of data available in COPA tables is organized into various summarization levels using this transaction, which allows for quick data access at the summary levels for various reports and cycle executions instead of the high time and system consuming process of direct data retrieval from COPA tables.

Execution Steps
Execute t-code KEDU
  • Enter Operating Concern
  • Choose type of Profitability analysis (Costing/Account)
  • Select “Build new Levels”
  • Execute in background mode only using menu option Program > Execute in Background (F9)
  • Click “Immediate”
  • Click “Save”
5. Wait for the summarization level build process to complete (T-Code: SM37)

Status of the background job scheduled in step 4 can be using t-code SM37 with job name “RKETRER


6. Schedule a Daily Background Job to refresh summarization level data (T-Code: KEDU/SM36)

Purpose: The summarization levels created above would hold only the data available in COPA tables as on 30 minutes before the build process. To update the summary tables with the latest transaction data, summarization level refresh process needs to be executed daily.

Execution Steps:
Execute t-code KEDU
  • Enter Operating Concern
  • Choose type of Profitability analysis (Costing/Account)
  • Select “Refresh”
  • Save as a variant “COPA Summarization Refresh”
Execute t-code SM36
  • Click “Job Wizard” button
  • Click Continue
  • Enter a descriptive job name (example: COPA summarization refresh) and priority, leave the target server blank and click “continue”
  • Select “ABAP Program Step” and click “Continue”
  • Enter ABAP program name as “RKETRERU” and choose variant “COPA Summarization Refresh” and click “Continue”
  • Do not select add additional steps and click “Continue”
  • Select option “Date/Time” and click “Continue”
  • Enter a scheduled start date and time (non- business hour) , Check “Periodic” and click “Continue”
  • Select “Daily” and click “Continue”
  • Click “Complete”
Notes:

- Report for which performance improvement is sought must be configured to use the summarization levels in the report option field for presummarized data
- Population of initial summarization level , could be a very time consuming job and hence it may require to be executed into multiple parts with different executions for different summarization levels.
- Do not execute t-code KEDV while trying to execute a background job for summarization level population using KEDU.

Wednesday, June 3, 2009

Information: Performance Analysis for COPA reports

The following notes provide helpful information for analyzing and improving performance of CO-PA reports and interfaces (KE30)
1. Note 532252 - INFO: performance analysis for CO-PA read interface - Provides basic information on how to conduct performance analysis for COPA reports, using t-code KZDP
2. Note 363890 - Long runtimes with update and selection - List some common reasons for low performance or frequent time out errors on execution of CO-PA reports.
3.
Note 35288 - Profitability Analysis: Technical Documentation