on 2024 Jan 09 12:00 PM
Hello everyone,
We have a specific requirement for our planning scenario regarding master data in our public dimensions, such as Company Code and Cost Center, among others. Due to operational reasons, the association between Cost Center and Company Code can change. For instance, Cost Center 1111 initially matched with Company Code (CC) 0001 may later switch to CC 0002. In such cases, when we have existing transactional data for Cost Center 1111 and CC 0001, I aim to rectify this data.
My approach involves utilizing a Property within the Cost Center Public Dimension to accommodate every Company Code for each Cost Center. To achieve this, I crafted the following Data Action Script:
DATA([d/CompanyCode]=[d/CostCenter].[p/CompanyCode])=RESULTLOOKUP()
This script essentially populates the Property with the appropriate Company Code for each Cost Center. For example, Cost Center 1111 will now have CC 0002 in the Property, enabling the creation of a dataset aligned with CC 0002, replacing the previous dataset associated with CC 0001.
However, my next objective is to delete the outdated dataset linked to CC 0001. This is where I require your assistance. I'm seeking suggestions on how to remove this data when there are no Cost Center and CC combinations in the master data.
I appreciate any input or ideas you might have on this matter. Looking forward to hearing from you.
Kind regards,
Ismail
Request clarification before answering.
guenay
guenayMay be after you copy just put a IF condition and delete
DATA([d/CompanyCode]=[d/CostCenter].[p/CompanyCode])=RESULTLOOKUP()
IF [d/CompanyCode]!=[d/CostCenter].[p/CompanyCode] THEN
DELETE()
ENDIF
Br.
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
11 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.