on ‎2019 Oct 08 10:47 AM
Hello Everyone,
I am trying to Automate Master Data of Cost Center in BPC. I am achieved my first step in creating the Cost Center Ids in BPC. The ids that that are not in BPC gets created when DM package(INOBJ_MASTER) is executed. However, I am getting difficulty in creating parent members in BPC.
I have maintained the Transformation and Conversion file for both the Master data load and the Hierarchy load.
Also, I have selected in Hierarchy tab(Set Selection) Import text node - Yes
Version: SAP BPC 10.1
Could anyone please help me in resolving the issue of creating parent nodes and then maintaining the hierarchy.
Attached are screenshots of BW Hierarchy and Transformation & Conversion files.
Screenshot of BW Hierarchy:

Screenshot of MD Load Transformation file

Conversion file screenshots for MD load:
CONVERSION tab:

Screenshot of Transformation file for Hierarchy load

Conversion file screenshot for Hierarchy Load:
CONVERSION tab:

COST_CTR tab where the mapping of Parent has been done

Steps: while executing DM for MD load
Step1: Set selection of Infoprovider

Set Selection of Hierarchy

Please note when the package is executed using the second option of "Attributes OR Hierarchies". package gets failed with error:
[Message] --------------------------------------------------------------
Task name
MASTER DATA SOURCE:
Record count: 4105
Task name
TEXT SOURCE: Record count: 4047
Task name CONVERT: No 1
Round:
Error found in system Error in Admin module or a component used by Admin module
Detected duplicate member ID '100010003'
Detected duplicate member ID '100010003'
Detected duplicate member ID '100010003'
Detected duplicate member ID '100010003'
Detected duplicate member ID '10001000'
Detected duplicate member ID '10001000'
Detected duplicate member ID '10001000'
Step: Language selection: Selected English
Step 2: Chosen "Update mode"
Step 3: Chosen External format
Step 4: Chosen correct transformation file
Step 5: Clear member before overwrite mode- "No"
Step 6: Filter Master Data: "No"
Please let me know any information required.
Request clarification before answering.
In order to remove leading "1000" both from nodes and base members use:
1. External format
2. Mapping ID=ID
3. Conversion:
js:%external%.toString().replace(/^1000/,'')
"^" - means at the beginning of string
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vadim,
I tried using the conversion code you gave it worked and remove "1000" from the Ids. It was successful for Parent nodes. However, we have some cost center Id's that starts with 1000; this code removed that too.
Is there a way If this code only to be applied for the parent node. if this is possibe I will try otherwise I will check with the client and go ahead with parents containing 1000 in parent nodes.
Thank you so much for your kind help. I appreciate the efforts.
I see you have 3 cases:
Nodes:
1000x...x where x - characters
0000....0001000d...d where d - digits
Base members:
1000d...d where d - digits
And the expected result is:
Nodes:
x...x
d...d
Base members
d...d
Is it correct?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see 2 issues:
1. On the selection screen you are using: "Set filters by Attributes AND Hierarchies". Incorrect! Use: "Set filters by Attributes OR Hierarchies"
With your current setting parents will not pass filter!
2. parseint in conversion - all parents will not be loaded! strange idea!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vadim,
I tried as suggested in Point 1, Chosen - "Set filters by Attributes OR Hierarchies". But this gave an error during DM packages execution.
[Message]
--------------------------------------------------------------
Task name
MASTER DATA SOURCE:
Record count: 6763
Task name
TEXT SOURCE: Record count: 4047
Task name CONVERT:
No 1 Round:
Error found in system Error in Admin module or a component used by Admin module
Detected duplicate member ID '100010003'
Detected duplicate member ID '100010003'
Detected duplicate member ID '100010003'
Detected duplicate member ID '100010003'
Detected duplicate member ID '10001000'
Detected duplicate member ID '10001000'
Detected duplicate member ID '10001000'
Detected duplicate member ID '100010011'
Detected duplicate member ID '100010011'
It seems that the system is taking parent node of each Cost center as a separate item, Attaching the text file containing full error message.
Could you please look the message and suggest.
Also, I did not understand your second point in the Comment. "2. parseint in conversion - all parents will not be loaded! strange idea!"
Thank you,
Hello Vadim,
Adding to my above point for leading zeros, we have parent nodes containing zeros too which are of different characters length.
I tried loading MD using

But with this, Parent nodes that were created contains 1000XXX_ALL and 00000000000000000000000010001001.
Here 1000 is controlling area, is there a way I can remove 1000 from parent nodes created.
Hello Vadim,
Thank you for the suggestion, choosing "external format" created members without leading zeros,
However, after executing package for hierarchy I am getting an error as "members not found" This is because in Node name of hierarchy Cost centers start with "1000".
Is there a way to remove "1000" from the Node name(at least for Cost center) using the IF condition in the mapping section of the transformation file.
attaching the screenshot of the BW hierarchy.(Block in the image has been hidden due to Company name/Id)

Hello Vadim,
I am able to achieve the Hierarchy and resolve the error for Cost center not found by using if condition in mapping:
NODENAME=*IF(IOBJNM=*STR(0COSTCENTER) THEN NODENAME(5:14);NODENAME)
and running the package in external format.
However, still issue of parent nodes created with "1000" as leading character is there.
| User | Count |
|---|---|
| 15 | |
| 11 | |
| 11 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.