Hi Experts,
I have a new requirement apart from the one which was solved yesterday. The thread of yesterday is Data Manager "Clear Package" Customization.
The one of yesterday (in the link above) consists of Clearing out a single value but in the below requirement, I have to clear out Multiple values and also if you see the SALESOFFICE, i will have to clear out BAS(X005 TOTAL). Please let me know which is the better option for this type of scenario, whether, to write a script logic and call the script in the CLEAR package or Customizing the "CLEAR" package would be a better solution.
My script logic is below;
*XDIM_MEMBERSET TIME = %TIME_SET%
*XDIM_MEMBERSET INGREDIENT = <ALL>
*XDIM_MEMBERSET KEYFIGURE = PPV,REVAL,UY,FOREX
*XDIM_MEMBERSET KIT = <ALL>
*XDIM_MEMBERSET LOCATION = %ENTITY_SET%
*XDIM_MEMBERSET M_P = M
*XDIM_MEMBERSET RptCurrency = USD
*XDIM_MEMBERSET SALESDIST = <ALL>
*XDIM_MEMBERSET SALESOFFICE = BAS(X005 TOTAL),X004
*WHEN_REF_DATA = MASTER_DATA
*WHEN SALESOFFICE
*IS BAS(X005 TOTAL),X004
*WHEN KEYFIGURE
*IS PPV,REVAL,UY,FOREX
*REC(FACTOR = 0)
*ENDWHEN
*ENDWHEN
I have customized the "CLEAR" package to a certain extent but it is still clearing out all the Sales office. Please see the code below.
PROMPT(SELECTINPUT,,,,"%ENTITY_DIM%,%TIME_DIM%")
PROMPT(RADIOBUTTON,%CHECKLCK%,"Do you want to check Work Status when clearing?",1,{"Yes, delete comments with work status settings","No, do not delete comments with work status settings"},{"1","0"})
INFO(%SELECTION_KEYDATE%,)
INFO(%HARDCODEDDIM1%,DIMENSION:M_P|M|)
INFO(%HARDCODEDDIM2%,DIMENSION:KEYFIGURE|PPV|REVAL|UY|FOREX|)
INFO(%HARDCODEDDIM3%,DIMENSION:SALESOFFICE|X005 TOTAL|X004|)
TASK(/CPMB/CLEAR_CUBE,CHECKLCK,%CHECKLCK%)
TASK(/CPMB/CLEAR_CUBE,SELECTION,%SELECTION%%HARDCODEDDIM1%)
TASK(/CPMB/CLEAR_CUBE,SELECTION,%SELECTION%%HARDCODEDDIM2%)
TASK(/CPMB/CLEAR_CUBE,SELECTION,%SELECTION%%HARDCODEDDIM3%)
TASK(/CPMB/CLEAR_CUBE,DUMPLOADMODE,3)
TASK(/CPMB/CLEAR_CUBE,KEYDATE,%SELECTION_KEYDATE%)
TASK(/CPMB/CLEAR_COMMENTS_FOR_CLEAR,ENABLETASK,1)
TASK(/CPMB/CLEAR_COMMENTS_FOR_CLEAR,CHECKLCK,%CHECKLCK%)
TASK(/CPMB/CLEAR_COMMENTS_FOR_CLEAR,CHECKJOUR,0)
TASK(/CPMB/CLEAR_CUBE,SELECTION,%SELECTION%%HARDCODEDDIM1%)
TASK(/CPMB/CLEAR_COMMENTS_FOR_CLEAR,SELECTION,%SELECTION%%HARDCODEDDIM1%)
TASK(/CPMB/CLEAR_CUBE,SELECTION,%SELECTION%%HARDCODEDDIM2%)
TASK(/CPMB/CLEAR_COMMENTS_FOR_CLEAR,SELECTION,%SELECTION%%HARDCODEDDIM2%)
TASK(/CPMB/CLEAR_CUBE,SELECTION,%SELECTION%%HARDCODEDDIM3%)
TASK(/CPMB/CLEAR_COMMENTS_FOR_CLEAR,SELECTION,%SELECTION%%HARDCODEDDIM3%)
My requirement is;
1. If I can call the above Script logic in the "CLEAR" Package, can you please let me know what changes have to be made in the "CLEAR" Package.
2. If I have to make changes directly in the "CLEAR" Package instead of using the above script, how can i customize the "CLEAR" package especially for clearing out the BASE Members of the Parent for e.g. (BAS(X005 TOTAL), X004 and clearing out Multiple Keyfigures PPV,REVAL,UY,FOREX.
Thanks in advance,
Best Regards,
Venkat