How to load Hierarchy master data for varying length ID's
Currently we are working on NW BPC 10.0
we are loading ACCOUNT Dimension Hierarchies from BW.
Here ID's coming from BW are Similarly like:
having different lengths.
In transformation file we wrote like below
ID=*IF(NODENAME(1:4)=*STR(0010) then *STR(AC_)+NODENAME(5:8);*STR(AC_)+NODENAME)
Here 0010 is chart of account and we are using EXTERNAL format while loading the data.
while loading the data we are getting the duplicate records error because of 3rd and 4th records.
Later we used the below conversion file, but we got the syntax error.
Please suggest us how to load the data for varying length ID's.