I created a Excel template where I will be loading the same data for all element, how do I skip the consolidated element so I won't have any issues or error after the process was ran.
appleglaze28 - ViewExtractSkipCalcsSet applies to a VIEW as a data source. Obviously if your CellPutN is on the Prolog and you are doing a while loop through an entire dimension then ViewExtractSkipCalcsSet will have no effect on the records that are processed. To use this you would define a view in the CD_customer_setting cube, set this as the data source for your process and transfer the code (minus the while loop) to the data tab.
Alternately if you want to keep your code in the prolog you could either 1/ As already suggested use a CellIsUpdateable test to wrap your CellPut statements in. For example:
IF( CellIsUpdateable('CD_customer_setting',hierarchy,'Preferred Discount') = 1 );
CellPutN(pRate,'CD_customer_setting',hierarchy,'Preferred Discount');
ENDIF; 2/ loop through only N level elements of the base_customers_and_distributors dimension by looping through a subset of N elements rather than the entire dimension
This is pretty basic stuff.
You have been trying to do TM1 for quite some time now, but quite honestly my patience has run out. Until you take time to actually sit down and read through the manuals and maybe go and get yourself some proper training then I'm not sure that there's anything more I can do to help you.