Clearing Application Data 
The Data Manager allows you to define a package to clear the data within a range or scope using the process chain /CPMB/CLEAR.
Create a package using the corresponding process chains for clearing data (see Package Usage).
Run the package.
Log onto the Planning and Consolidation Office client.
Choose .
Choose the package you created in step 1 and choose Run.
To clear the comments for the associated data region, choose Yes.
To check the work status when clearing the data, choose Yes.
Select a data region.
Choose one of the following options:
Run now
Schedule
Run now & schedule
Choose Finish.
Note
You can change the default package instructions (see Modifying the Dynamic Script of a Package).
Dynamic script task parameters
Task |
Parameter |
Default Value |
Description |
|---|---|---|---|
/CPMB/CLEAR_CUBE |
CHECKLCK |
0 |
Check work status 1 = YES 0 = NO |
/CPMB/CLEAR_CUBE |
RUNLOGIC |
0 |
Run logic after process 0 = NO 1 = YES |
/CPMB/CLEAR_CUBE |
SELECTION |
INTERNAL data selection |
|
/CPMB/CLEAR_CUBE |
SPACKAGE_SIZE |
40.000 |
Package size |
/CPMB/CLEAR_COMMENTS_FOR_CLEAR |
CHECKLCK |
0 |
Check works status 1 = YES 0 = NO |
/CPMB/CLEAR_COMMENTS_FOR_CLEAR |
ENABLETASK |
1 |
Clear comments 1 = YES 0 = NO |
/CPMB/CLEAR_COMMENTS_FOR_CLEAR |
SELECTION |
Selection |
Example
PROMPT(SELECTINPUT,%SELECTION%,,"Select the members to CLEAR","%DIMS%")
PROMPT(RADIOBUTTON,%ENABLETASK%,"Do you want to clear comments associated with the data region?",1,{"Yes","No"},{"1","0"})
PROMPT(RADIOBUTTON,%CHECKLCK%,"Do you want to check Work Status when clearing?",1,{"Yes, delete comments with work status settings","No, do no delete comments with work status settings"},{"1","0"})
TASK(/CPMB/CLEAR_CUBE,CHECKLCK,%CHECKLCK%)
TASK(/CPMB/CLEAR_CUBE,SELECTION,%SELECTION%)
TASK(/CPMB/CLEAR_COMMENTS_FOR_CLEAR,SELECTION,%SELECTION%)
TASK(/CPMB/CLEAR_COMMENTS_FOR_CLEAR,ENABLETASK,%ENABLETASK%)
TASK(/CPMB/CLEAR_COMMENTS_FOR_CLEAR,CHECKLCK,%CHECKLCK%)
TASK(/CPMB/BPC_HIER_DATA_TARGET,FORMULA_FILE_NO,%TEMPNO2%)
Any software coding and/or code lines / strings ("Code") included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended to better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or by its gross negligence.