Use of various balance dimensions
Can some tell me what is the use of various balance dimensions
i.e when to use the following dimensions:
Assignment Level within a run
Assignment Level in the current earnings period
Assignment Level all time
Assignmnet Level in the current processing year
ASGYTD= Assignment Level in the year
ELEMENTITD= Element Entry level for all time
ELEMENTPTD= Element Entry level for this period
Please can some one throw some light on the above Balance Dimensions so as to know how one has to use these in the FF.
Please help
Hii
Don't create unique key with a column of a fact table which refers with a foreign key to another table (dimension)! This data must be unique in the dimension table!
But indexes in the columns of foreign keys will speed up your queries.
Ott Karesz
http://www.trendo-kft.hu
Similar Messages
-
Balance Dimension for Elements
Hi,
Anyone can tell what is difference between ASGLTD and ASGCOMP_LTD? Can we use ASGCOMP_LTD for Balance Dimensions for Elements?
Pl.help.
Thanks
KaviHello
I think you can try PERYTD (Person Calendar Year To Date) OR ASGYTD (Assignment Calendar Year To Date). Also Create Balance Dimension is a UK Legislative specific program and is not available in other Legislation so if you want it for UK and PERYTD or ASGYTD doesn't work then you can try it.
Hope this helps !
Gaurav -
How to use a balance dimension in a FastFormula
Hello all,
How can I call a certain balance dimension and store it in a local variable like SALARY_ASG_RUN.
Regards,
UsherHi,
You cannot get a previous month's balance value from a DBI in the formula.
You need to write a formula function which gets you the data -
We have used the below for the same
-- GET_PREV_SALARY
FUNCTION get_prev_salary(p_assignment_action_id IN NUMBER
,p_balance_name IN VARCHAR2
,p_database_item_suffix IN VARCHAR2
,p_period_start_date IN DATE
,p_no_month IN NUMBER
,p_flag IN VARCHAR2
,p_context IN VARCHAR2
,p_context_val IN VARCHAR2
,p_days IN OUT NOCOPY NUMBER) RETURN NUMBER
IS
CURSOR get_prev_periods_dates (c_assignment_action_id NUMBER
,c_period_start_date DATE) IS
SELECT ptp.start_date start_date
,ptp.end_date end_date
,ppa.action_type
,MAX(paa2.assignment_action_id) assignment_action_id
FROM pay_assignment_actions paa1
,pay_assignment_actions paa2
,per_all_assignments_f paaf1
,per_all_assignments_f paaf2
,pay_payroll_actions ppa
,pay_payroll_actions ppa1
,per_time_periods ptp
,per_time_period_types ptpt
WHERE paa1.assignment_action_id = c_assignment_action_id
AND ppa1.payroll_action_id = paa1.payroll_action_id
AND ppa1.business_group_id = paaf1.business_group_id
AND paa1.assignment_id = paaf1.assignment_id
AND paaf1.person_id = paaf2.person_id
AND paaf2.business_group_id = paaf1.business_group_id
AND paaf2.assignment_id = paa2.assignment_id
-- AND paa1.tax_unit_id = paa2.tax_unit_id
AND paa2.payroll_action_id = ppa.payroll_action_id
AND paa2.source_action_id IS NULL
AND ptp.start_date < c_period_start_date
AND ppa.payroll_id = ptp.payroll_id
AND ppa.business_group_id = paaf2.business_group_id
AND ptp.period_type = ptpt.period_type
AND ppa.action_type IN ('R','Q','I','B')
AND ppa.action_status IN('C','U')
AND ppa.date_earned BETWEEN ptp.start_date AND ptp.end_date
AND ptp.end_date BETWEEN paaf1.effective_start_date AND paaf1.effective_end_date
AND ptp.end_date BETWEEN paaf2.effective_start_date AND paaf2.effective_end_date
GROUP BY ptp.start_date, ptp.end_date, ppa.action_type
ORDER BY 1 desc;
/* SELECT ptp.start_date start_date
,ptp.end_date end_date
,ppa.action_type
,MAX(paa2.assignment_action_id) assignment_action_id
FROM pay_assignment_actions paa1
,pay_assignment_actions paa2
,per_all_assignments_f paaf1
,per_all_assignments_f paaf2
,pay_payroll_actions ppa
,per_time_periods ptp
WHERE paa1.assignment_action_id = c_assignment_action_id
AND paa1.assignment_id = paaf1.assignment_id
AND paaf1.person_id = paaf2.person_id
AND paaf2.assignment_id = paa2.assignment_id
AND paa1.tax_unit_id = paa2.tax_unit_id
AND paa2.payroll_action_id = ppa.payroll_action_id
AND paa2.source_action_id IS NULL
AND ptp.start_date < c_period_start_date
AND ppa.payroll_id = ptp.payroll_id
AND ppa.time_period_id = ptp.time_period_id
AND ppa.action_type IN ('R','Q','I','B')
AND ppa.action_status IN('C','U')
AND ptp.end_date BETWEEN paaf1.effective_start_date
AND paaf1.effective_end_date
AND ptp.end_date BETWEEN paaf2.effective_start_date
AND paaf2.effective_end_date
GROUP BY ptp.start_date, ptp.end_date, ppa.action_type
ORDER BY 1 desc;
CURSOR get_legal_employer_id(c_work_center_id NUMBER) IS
SELECT hoi.organization_id
FROM hr_organization_information hoi
WHERE hoi.org_information1 = c_work_center_id
AND hoi.org_information_context = 'ES_WORK_CENTER_REF';
l_def_bal_id NUMBER;
l_amount NUMBER;
l_amt NUMBER;
l_ctr NUMBER;
l_cnt NUMBER;
l_start_date DATE;
l_date DATE;
l_legal_employer_id hr_All_organization_units.organization_id%TYPE;
BEGIN
hr_utility.trace('~~Entering pay_es_ss_calculation.get_prev_salary');
l_def_bal_id := get_defined_bal_id(p_balance_name, p_database_item_suffix);
hr_utility.trace('~~~~ p_balance_name'||p_balance_name);
hr_utility.trace('~~~~ p_database_item_suffix'||p_database_item_suffix);
hr_utility.trace('~~~~ l_def_bal_id'||l_def_bal_id);
l_amount := 0;
l_amt := 0;
l_ctr := 0;
l_cnt := 0;
p_days := 0;
l_date := to_date('01-01-0001','dd-mm-yyyy');
IF p_context = 'TAX_UNIT_ID' THEN
OPEN get_legal_employer_id(to_number(p_context_val));
FETCH get_legal_employer_id INTO l_legal_employer_id;
CLOSE get_legal_employer_id;
pay_balance_pkg.set_context('TAX_UNIT_ID', l_legal_employer_id);
hr_utility.trace('~~~~ Setting TAX_UNIT_ID Context '||l_legal_employer_id);
END IF;
hr_utility.trace('~~~~ Start loop p_period_start_date '||p_period_start_date);
hr_utility.trace('~~~~ p_assignment_action_id '||p_assignment_action_id);
FOR i IN get_prev_periods_dates( p_assignment_action_id, p_period_start_date) LOOP
IF l_date = i.start_date AND l_amt <> 0 THEN
NULL;
ELSE
l_amt := 0;
IF l_date <> i.start_date THEN
l_ctr := l_ctr + 1;
END IF;
l_amt := pay_balance_pkg.get_value (l_def_bal_id, i.assignment_action_id);
IF l_amt <> 0 THEN
l_cnt := l_cnt + 1;
END IF;
l_amount := l_amount + l_amt;
hr_utility.trace('~~~~ Inside loop start_date '||i.start_date);
hr_utility.trace('~~~~ assignment_action_id '||i.assignment_action_id);
hr_utility.trace('~~~~ l_ctr '||l_ctr);
hr_utility.trace('~~~~ l_cnt '||l_cnt);
hr_utility.trace('~~~~ l_amt '||l_amt);
hr_utility.trace('~~~~ l_amount '||l_amount);
hr_utility.trace('~~~~ p_no_month '||p_no_month);
IF l_amt <> 0 OR p_flag = 'N' THEN
p_days := p_days + last_day(i.start_date) - last_day(add_months(i.start_date,-1));
END IF;
IF l_ctr >= p_no_month THEN
IF l_cnt = p_no_month OR p_flag = 'N' THEN
RETURN l_amount;
/*ELSE
l_ctr := p_no_month - 1;*/
END IF;
END IF;
l_date := i.start_date;
END IF;
END LOOP;
hr_utility.trace('~~Exiting pay_es_ss_calculation.get_prev_salary');
RETURN l_amount;
END get_prev_salary;
To get the previous month value -
Previous_Month_val = ES_GET_PREVIOUS_BALANCE('Gross','_ASG_PTD',Start_Date, 1, 'Y',' ',Work_Center_ch,num_days)
To get the previous 3 months value -
Previous_3_Month_val = ES_GET_PREVIOUS_BALANCE('Gross','_ASG_PTD',Start_Date, 3, 'Y',' ',Work_Center_ch,num_days)
Assignment_action_id is passed as a context to the formula function.
You need to tweak the code to suit your requirements.
Cheers,
Vigneswar
PS :
-- GET_DEFINED_BAL_ID
FUNCTION get_defined_bal_id(p_bal_name IN VARCHAR2
,p_db_item_suffix IN VARCHAR2) RETURN NUMBER
IS
CURSOR get_def_bal_id is
SELECT pdb.defined_balance_id
FROM pay_balance_types pbt
,pay_balance_dimensions pbd
,pay_defined_balances pdb
WHERE pdb.balance_type_id = pbt.balance_type_id
AND pdb.balance_dimension_id = pbd.balance_dimension_id
AND pbt.balance_name = p_bal_name
AND pbd.database_item_suffix = p_db_item_suffix;
l_def_bal_id NUMBER;
BEGIN
OPEN get_def_bal_id;
FETCH get_def_bal_id into l_def_bal_id;
CLOSE get_def_bal_id;
RETURN l_def_bal_id;
END get_defined_bal_id; -
Camera Raw crashes with use of white balance eye dropper.
Using PS CC2014.2.1
Since this update, whenever I use the white balance eyedropper in Camera Raw, if placed over an over exposed region, instead of the dialogue box popping up to warn that the area is too bright, the system just freezes. Have to launch task manager and close PS.
If eyedropper is placed on non-over exposed (not clipped) area, it seems alright. Anyone else experiencing this?Due to the current unavailability of clairvoyants and mind-readers in the forum, we respectfully request you supply sensible, complete details.
BOILERPLATE TEXT:
Note that this is boilerplate text.
If you give complete and detailed information about your setup and the issue at hand,
such as your platform (Mac or Win),
exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
your settings in Photoshop > Preference > Performance
the type of file you were working on,
machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
what troubleshooting steps you have taken so far,
what error message(s) you receive,
if having issues opening raw files also the exact camera make and model that generated them,
if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
etc.,
someone may be able to help you (not necessarily this poster, who is not a Windows user).
a screen shot of your settings or of the image could be very helpful too.
Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
http://forums.adobe.com/thread/419981?tstart=0
Thanks! -
Hi Friends,
Balance Dimension in Payroll :
Is der any Balance dimension which will hold the value of Previous year YTD?
As per my requirement, i want to use the previous year accumulated balance value(from 01-Apr-2010 to 31-Mar-2011) in the current year (in the month of April 2011).
Thanks & Regards,
Raghu
Edited by: Raghu on Apr 20, 2011 7:16 PM
Edited by: Raghu on May 2, 2011 12:17 AMHi,
I am not sure what is your requirement.As far as my knowledge is concerned there is no Previous YTD balance dimension.
You have balance_dimension suc as YTD,QTD,RUN etc.When you call function the pay_balance_pkg.get_value , you need to pass the balance_dimension,
assignment_id and date_earned parameter andit will retrun the appr value.In your case pass the previous year date for which you need data.
Hope this helps.
regards,
A -
Create Balance Dimension process
Hi I am using International HRMS.
I need to know that whether User Defined balances are supported for International HRMS or not.
Has anyone used it with Global HR. By default "Create Balance Dimension process" is not available in the request group "Global HR and Payroll Processes"
Regards
Anwar
Edited by: faanwar on Jul 1, 2009 10:17 AMBalances are supported in International Hrms.
You should run first a concurrent program to create your proper legislation (copy from ZZ), and as such some balance dimensions will be available to your legislation. "International HRMS Setup" if i recall well. -
Hi All,
The sick leave is paid leave for the first 30 days and unpaid for the next 30 days during one year (starting from the first day of the leave).
For Example: if an employee take the sick leave on 1-sep-2008 the balance of the leave must keep the taken days of this leave untill 31-aug-2009 (one year)
Can anyone tell me what is the proper balance dimension to use with this case please?
or any another solution or suggestion please.
Best Regards,I do not see how a balance dimension will do that for you.
Maybe you need some fast formula logic on the start date of your absence. That is sometimes done via user defined (plsql) functions. -
Need to change acct to Canadian from American but it won't let me without using up my balance of $1.27. There is no way to spend exactly this amount. I do not want to use a credit card. I have a Canadian iTunes card that I want to redeem now that I'm living in Canada.
If you can't find anything for exactly that amount then you can try contacting iTunes support and see if they will remove the balance for you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
-
I have moved from the US to Norway, and want to change my apple ID to the Norwegian appstore. However, I am not allowed ot change from the US store before I use up my balance, which is 0.17 dollar. The problem is that nothing costs 0.17 dollar and I do no longer have an american visa card, only Norwegian. Is there any way I can erase the credit on my account so I can change the appstore country? Or osmething I can use this credit on? Thank you very much
Try contacting the store support staff at: http://www.apple.com/emea/support/itunes/contact.html they are usually pretty good at sorting out these issues.
-
I have a redeemed gift card balance of more than $60.00, but when I try to make an in app purchase, I am asked to verify my apple ID and payment info and when I do it charges my card and I am not given a choice to use my remaining balance. How do I use my balance first?
Hi ...
Select None for payment method > iTunes Store: Changing account information
Be aware, an auto renewing subsciption by require a credit card. -
I redeemed my iTunes money card, now how do i use the full balance
it goes like this, you pay your money to get an iTunes store credit redeemable as a gift.
then you wind up with 2 dollars and 10 cents left. you aren't an iTunes aficionado, and you won't ever use it if you don't use it on something that you want right now but what you want costs 5 dollars and 25 cents................
what can i do with my credit on my account, because it will say insufficient funds.
i know what google play does, they won't let you use it unless you have enough play money.
now come one they can't be as dumb as google on this issue can they?
i mean, any store you go to you can use gift card balance plus credit card to make up the difference.
that's all I'm asking here a small courtesy for a company that owns more money than my state. come to think of it, there's not much way of dealing with my state either. unless you're earnest p warrellAdd your credit card to your account - if your next purchase is more than your account's balance then the remainder will be taken from the credit card.
-
HT201359 I want to use my account balance to gift a song
I want to use my account balance to gift a song. How do I do this? It keeps asking for my credit card
That's not possible.
(84156) -
How do use my ITunes balance to pay for Apps
How do use my ITunes balance to pay for Apps?
You just buy what you want. If you have a credit (balance), it is automatically used before you are billed (if you run over your balance).
How to manage unused iTunes Gift Card and Gift Certificate balances
"Each time you purchase content, iTunes will deduct funds from the credit until it's depleted." -
Hi,
We are impelmenting HRMS&Payroll Rel1.02. This is not UK or US install. It is a Global Install
1. The Pay advice Report does not show up the Deductions. The Earnings and Total Pay comes up.
How do we get the Deductions on the Pay Advice
2. How do you create a balance dimension which would accumulate the balances from the start of the payroll processing year and never reset it to zero?
To hold YTD,QTD,PTD balances we can run the create balance dimension program and define the dimension. But the balances would be reset to zero depending on the frequency specified when running the program. Our requirement is to create a dimension which will never reset the balance to zero. How do we achieve this?Your suggestions are most welcome.
Note: We have already applied global hrms patch and run zz legislation program for Pakistan.
Regards
MajidI have completed all the prereq which includes
1- implementation of global hr patch.
2- Run international hrms setup.
With out all these i couldn't be able to define a single element in global hrms.
My question was, how to stop oracle payroll to set the balance zero.
Because here in Pakistan, personal loans are sanctioned
for more than 1 year e.g.
A company provide me loan of 120000 and I have to pay it in 2 years of
equal installment of 10000 Rs.
Now if payroll set the balance of installment to zero due to the balance dimension defined after
completion of an year, how it would be possible for payroll to deduct
installment amount in another month of next year when the balance has
already been set to zero by payroll...??
I hope you understand the scenario and reply soon.
Regards
Majid -
I have an account balance in the Itunes store. When I try to purchase a book by redeeming part of this balance, the system asks for a Redeem Code.
I do not have one, nor do I remember ever establishing such a code. The balance arises from entering a number of previous gift cards which I no longer have. What can I do to use my account balance?Once you redeem an iTunes card or gift certificate you no longer need the code. If you see a credit balance in your iTunes Store account, just go ahead and buy what you want. As long as it's not a gift for someone else, the cost will be automatically deducted from your balance.
Regards.
Maybe you are looking for
-
Parameter Exit Function in Planning Folder
Hi all, I created the planning function in SEM BPS using exit function. And then I added the parameter exit function 0VERSION to this function. After that, I tried to put this function in the planning folder. Does anybody know how to put the paramete
-
Can i use the iphone 4 if i bought it in U.S.A. I can use it in mexico
I purchased the iphone 4 in U.S.A. I can use it in mexico?
-
Windows automatically updated to 8.1 and now, the Elements 12 that I bought to work with windows 8 won't load the Photo Organizer at all.
-
12c SOA multiple composite deployment using maven
Hi, I am facing issue with 12c SOA composite deployment using maven. I execute the below command for deploying any composite. mvn pre-integration-test –f soa-pom.xml –Dcomposite.name=TestMVNProj –Dcomposite.version=1.1 Issues: As seen above by using
-
hi all We have a group of pumps & codes of all these pumps are created on that basis. Similarly the spares of these pumps are having codes under respective category. But, spare parts of a group of pumps are same (physically). Also supplier part no. f