To_Number fast formula conversion
Hi allI do a quick calculation of simple formula where I'm trying to convert the date of return to number.
It start error. But what I am doing wrong. I'm trying to convert the returned date value of number.
***
APP-FF-33983: type mismatch in parameter for the function "TO_NUMBER" on line 15
Cause: The user has specified a function whose name was recognized but whose types of parameters are not all versions known to the service.
Action: Please verify that the variables or literals passed to the function are types appropriate for the function definition. ***
This is my code
----------------------------------------------------
IS the DEFAULT for EMP_TERM_DATE '' 1-JAN-4712 (date)
DEFAULT value FOR PAY_PROC_PERIOD_START_DATE IS 1 January 1951"(date)
Value by DEFAULT FOR PAY_PROC_PERIOD_END_DATE IS 31-DEC-4712' (date)
DEFAULT for C_Allowance_Balance_ASG_YTD is 0
DEFAULT for L_paid_amount IS 0
DEFAULT for Day_amount IS 0
DEFAULT for days_deduction IS 0
DEFAULT for deducted_amount IS 0
Is the DEFAULT for L_last_day '' 31-JAN-4712 (date)
L_last_day = TO_DATE (' 31 - DEC-'+ TO_CHAR (PAY_PROC_PERIOD_END_DATE, 'YYYY'), 'DD-MON-YYYY')
Day_amount = (C_Allowance_Balance_ASG_YTD) / 365
/ * 15 * / days_deduction = to_number(l_last_day-EMP_TERM_DATE)
deducted_amount = days_deduction * days_amount
return deducted_amount
Hello
Try this once.
days_deduction = days_between (L_last_day, EMP_TERM_DATE)
Kind regards
Aneesh N
Tags: Oracle Applications
Similar Questions
-
Fast formulas, and user-defined Table
Hello world
I defined a udt as follows:
Structure of the table >
Name: TEST_SLAB
Key of the user Table: TEST_SLAB
Match type: range
Unit of measure for the key: number
Rank title: Null
The values in the table >
Table: TEST_SLAB
Unit of measure for the key: number
Column name: TEST_SLAB
Value upper limit lower limit
0 1000 10
How to write my quick formula:
By DEFAULT for the union 'IS'
The ENTRIES ARE union (text)
deduction = 0
OTHERWISE the union WAS in default
THEN
deduction = TO_NUMBER (GET_TABLE_VALUE ('?', '?',?))
Deduction of RETURNThe syntax is
GET_TABLE_VALUE ('Table_Name', 'Column_Name', l_input_value)
More information are using the values in table in the fast formulas
Kind regards
Stephanie.
-
Hello
Is it possible to add an item to the next payroll month calculalation? Thanks to the fast formula?
Please guide.
Thank you
Hi, the result type of the JUDGMENT has the effect of end - date of the entry of the item that was the formula that generated the stop statement.
The use is in the formula, set a local variable, i.e. L_STOP. So, if you are in a situation within the formula where it is necessary to effectively stop the entry of the element, you must set L_STOP 'Y' and BACK as well as the other things that you would normally returned. For example:
:
IF L_REMAINING_DEBT - L_PERIOD_DEDUCTION = 0 THEN
(L_MESSAGE = "Entirely free from debt"
L_STOP = 'Y '.
RETURN L_MESSAGE, L_PERIOD_DEDUCTION, L_STOP)
ON THE OTHER
(RETURN L_PERIOD_DEDUCTION)
:
Then to your rules of the formula result for this element/formula, in addition to the existing rules for example L_PERIOD_DEDUCTION and L_MESSAGE, you must also set a rule of the formula result of L_STOP which is a type of "Stop".
Hope this helps
Clive
-
How to debug the code for fast formula OTL plsql?
Hello
I have trouble understanding the flow of my code PLSQL (function), which is called by a fast formula HRMS.
I don't know how to debug.
Can I add lines of hr_utility.trace to the PLSQL? If so, see where you put it?
Help, please.
Thank you
Germain
Hi, Germain,.
You can start the trace in the form and complete it in the formula. The handle of the trace will display all messages of the formula and the pl/sql functions that formula calls internally. So, indeed, you should get all the trace messages in your trace file.
If you want to only draw a pl/sql function, add this in pl/sql code from the point you want to draw, and then add the trace_off at the end-
hr_utility. TRACE_ON (null, 'VBATTU_TRACE');
hr_utility.trace ('# START #');
..
..
..
..
hr_utility.trace_off;
Cheers,
Vignesh
-
Please, could someone confirm if a quick formula can include a statement to automatically generate the input element?
I created a formula to produce the value I need, but I don't want the item to appear in the entries of the item unless the value is greater than 0.
For the moment, I need to have the added element first on the inputs of the element for the formula to work, as I did not of course above all upward.
So in summary I never used the fast formulas that the item is already in the entries of the element, before the execution of payroll. I would like to now the element to automatically generate than if a value is filled in the FF by operating on the payroll.
Thank you very much
SteveOK, race results are literally the results of what happened at an entrance of the specific item in a list of specific payroll executed. Normally, the payroll team will get to see these if they watch an assignment in a race on the payroll. If you access
View-> transfer process results
You will be able to examine the process of payroll for this assignment (these bananas are referred to as transfer Actions) - for payroll (or Express) types, there is the possibility, via a button at the bottom of the screen, display the results. Subsequently, you can see what results and values of result of track have been generated
In a formula, when it returns something, this can go somewhere. Where he goes depends on how you have configured rules formula result. There are many mechanisms available, but the most common is "Indirect result". This allows you to fire a formula element 'X' type and are the result of a calculation that is sent as an indirect element result 'Y '. There is no actual entry element for the element 'Y', but there is an execution result and in fact a result execution for the element value 'Y' for that pay for this assignment.
Hope this helps, but come back if you want more details.
Clive
-
Last day of the year in fast formula
Hi all
I have to deal with something special, based on the last day of the current year.
How can I get the last day of the year? Is there a function available in the fast formulas?
Appreciate all entries...
Thank you
SRSWhat is
:
L_last_day = TO_DATE (' 31 - DEC-'+ TO_CHAR (PAY_PROC_PERIOD_END_DATE, 'YYYY'), 'DD-MON-YYYY')
:Clive
-
Add_Months is allowed in a fast formula?
Hello
Im trying to add the following to carry him on a quick formula.
: Mid_Month_DDMM = to_char (to_date (to_char (ADD_MONTHS (Continuous_Service_Date, + 1), "YYYYMM"), "YYYYMM")-1, "JJMM")
But it seems that the formula does not like "Add_months. Im trying to get the formula to work when a continuous_service_date of employees is not the 1st of the passing months will happen by the end of the month.
Thank you
AndrewHi André,.
Have you tried using the Last_Day function.
select last_day(sysdate) from dual; or select to_char(last_day(sysdate),'DDMM') from dual;
I also see that LAST_DAY and ADD_MONTHS functions are provided with the application.
http://docs.Oracle.com/CD/E18727_01/doc.121/e14567/T1774T1776.htm#6280105On the other-
Snandard sql functions can be created in function formula from the front-end server.The functions TRUNC, ROUND etc... Use built-in Sql directly.
So, you can create a new SQL - LAST_DAY function-based LAST_DAY say function.The engine Fast formula would decode those during execution.
See you soon,.
Vignesh -
Descriptive flexfield using fast formula
Dear all,
How to use the de FACTO forces in fast formula.
Thank you
Mr. BilalCheck-
select user_entity_id,definition_text from ff_database_items -- user_entity_id where user_name = 'ACP_SERVICE_START_DATE'; -- change this to your DBI select route_id from ff_user_entities -- route_id where user_entity_id = 1228; -- user_entity_id from the previous query select text from ff_routes -- text where route_id = 286; -- route_id from previous query
Now you can build a sql statement-
Select /* definition_text */ -- from the 1st query from /* text */ -- from the 3rd query
The above query returns you the value that is the same as used in a FF DBI
Also, try to delete the aliases in your formula, instead use the DBIs directly and see if that makes a difference.
see you soon,
VB -
Urgent: How differentiate between retro and payroll in fast formula
I wrote a quick formula. This quick form is attached to the element of "basic salary".
"Base salary" item has retro setting and proration.
We use retro processes strengthened.
Improved retro process calls this quick formula to verify the amount of the difference.
Similarly, oracle payroll will also call the same formula fast when running on the payroll.
Now, our requirement is:
----------------------------------
A few lines in fast formula should not run when FF is called by retro, but it must be run when it is called by the payroll.
So, how could we know if FF is called process retro or payroll?
If I have a way to find this, I can run that code using this condition.
Any pointer in this regard will be highly appreciated.None of the above... Just write a function custom PLSQL who will be ID action of payroll as a context parameter & returns the table PAY_PAYROLL_ACTIONS... action_type column to the fast formula. L is for Retro throw.
In the quick formula, place the specific code in the if condition.
ATTENTION: Make the formula calculate differently in normal payroll & retro you can cause serious problems of consistency in payments/deductions and their debugging might become impossible in the long term.
Published by: Maxime bushel Sep 22, 2011 07:00
-
OTL entry sets the time - fast formula not triggered
Requirement: Throw an error during the registration of the time, if time is < 40 and overtime are > 0
Approach:
(1) created PLSQL function and defined in HRMS
(2) created a quick formula, using the above function
(3) created a new TER
(4) fixed to the TERG existing (operation TERG prod)
Details:
My function (only for a CEP). Returns 1 always (error throw)
SET DEFINE OFF
CREATE OR REPLACE
APPS PACKAGE. XXXXX_HXC_CUST_RULES as
-Description:
-History
FUNCTION XXXXX_CHK_OT_ELIGIBLE return number (p_resource_id in NUMBER);
END XXXXX_HXC_CUST_RULES;
/
CREATE OR REPLACE
PACKAGE BODY XXxxx_HXC_CUST_RULES AS
FUNCTION XXxxx_CHK_OT_ELIGIBLE (p_resource_id NUMBER)
RETURN number
IS
l_return_rule_status number: = 0;
l_timecard_info hxc_self_service_time_deposit.timecard_info;
l_tbb_array HXC_BLOCK_TABLE_TYPE;
BEGIN
l_timecard_info: = hxc_self_service_time_deposit.get_building_blocks;
l_tbb_array: = hxc_deposit_wrapper_utilities.blocks_to_array (p_blocks = > l_timecard_info);
RETURN 1;
-0 is not an error
-1 is error
EXCEPTION
WHILE OTHERS THEN
null;
END;
END XXxx_HXC_CUST_RULES;
/
DEFINITION FORMULA FAST
/* *****************************************************************
Name of the form: XXXX_CHK_OT_ELIGIBLE
Description: Prevent OT when not eligible (40 hrs of ST)
Contexts: no
*****************************************************************
*/
/*
Initialize Variables that may be null
*****************************************************************
*/
the default for db_pre_period_start is ' '
the default for db_pre_period_end is ' '
the default for db_post_period_start is ' '
the default for db_post_period_end is ' '
the default for db_ref_period_start is ' '
the default for db_ref_period_end is ' '
default value of timecard_hrs is 0
/* ******************************************************************
READ IN THE INPUT VARIABLES
****************************************************************** */
The ENTRIES ARE id_ressource (number)
submission_date (text)
db_pre_period_start (text)
db_pre_period_end (text)
db_post_period_start (text)
db_post_period_end (text)
db_ref_period_start (text)
db_ref_period_end (text)
timecard_hrs (number)
IF (XXxx_HXC_CHK_OT_ELIG_FN (resource_id) = 1)
THEN
(rule_status = 'E'
Message1 = "XXxxx_CHK_OT_ELIGIBLE."
return rule_status, message1)
ON THE OTHER
(s = rule_status"
return rule_status)
The above formula is verified successfully. I can see the FFP plsql pkg also created in the DB.
The RULES of SEIZURE of TIME are created to record and SEND/QUOTE
Then, they are attached to an existing rule GROUP on the TIME ENTRY. Yes, at least it is not the question, because it's a group of working time entry rules.
MY QUESTIONS ARE BELOW
(1) the function accepts id_ressource as an entry, should I set this as a FDF segment or is not not necessary?
(2) even if I attach a formula seeded to my TER, it is not triggered. I suppose, then, that there is nothing wrong with the quick formula atleast.
Pointers would be a great help.
Thank you
Germain
I found the reason why it was not a device.
The quick formula was an effective start date of November 7, 2013, the TER also had effective start date of November 7, 2013.
The score card I used was in October.
Silly, but he did.
Thanks for your help.
-
BSO in ASO formula Conversion - need help
ASO is not my forte... I'm trying to get a simple formula to work in cube ASO as part of the OSI - & gt; Conversion of the ASO.
If this is the entity of level 0, the formula is (last shipped (PU) * Volume of the part)... works very well.
If its higher level, it should simply add up the values of his children. The OSI equivalent that we use generally is @SUM (@CHILDREN (@CURRMBR("Entity"))).
I tried the same thing in the ASO MDX script as shown below, it is not giving me good result... of ideas why this is not working?
Thanks in advance.
Nima
Formula Member*.
BOX WHEN ISLEVEL (Entity.CurrentMember, 0) THEN+.
Last shipped (PU) Volume of the part x+.
Else+.
Sum (Children (Entity.CurrentMember))+.
END+.
Published by: Nima.V on November 12, 2008 19:12Have you tried to specify how you want the NAP?
for example
CASE WHEN ISLEVEL (Entity.CurrentMember, 0) THEN
Last shipped (PU) x Volume of the part
ON THE OTHER
Sum (Children (Entity.CurrentMember), [measures]. [Part Volume])
ENDalso I'm not sure if the SUM is correct. This might work as it certainly specified tuples:
SUM ({Products.CurrentMember.children}, [Measures]. [Part Volume])
It will be useful,
Gee -
Hi all
I'm new with the ASO MDX formulas and I can't seem to understand the problem here for the help NOT in the formula.
When I use IS in syntax of the formula withdraws, but when I replace it with NOT the slightest mistake what I'm doing wrong here? can someone help me reach this goal
CASE WHEN (IS([scenario]. CurrentMember, [real])) THEN
([ACCT1] * [ACCT3]) + [ACCT2]
END
Basically, with the first line, I'm trying to achieve in OSB is IF (NOT (@ISMBR("Actual"))), but I can't convert that into MDX
Any help will be greatly appreciated and links or documents that you can share for my to improve my skills MDX will also be appreciated
Thank you
I don't not a ton of experience with MDX, but my understanding is that IT is a function, it returns True or False, but is NOT an operator who basically returns a Boolean value, try using this:
BOX WHEN (IS NOT ([scenario]. CurrentMember, [real])) THEN
([ACCT1] * [ACCT3]) + [ACCT2]
END
There is useful information about MDX in Essbase Technical Reference
-
Dear Sir.
Please give me the solution for this error.
I wrote this formula it is compile correctly, I joined with element, when I enter the value for the item in the item screen in the form of assignment field, so I GA this error.
APP-FF-33629: unexpected end of "=: control.entry_value ENTRY_VALUE (T).
"line (trigger for SCHOOL_FEES_REIMBURSEMENT__ASG_YTD).
Cause: A formula has been invoked via Foundation Application. It was called by using a step of relaxing #USR. One of the ENTRIES =, or UIDCOL = or OUTPUT = lines seems to have been truncated.
Action: Please consult with your local technical support representative.
I wrote this formula
----------------------------------
default value of l_amount is 0
Default for entry_value is '0'
Default for SCHOOL_FEES_REIMBURSEMENT__ASG_YTD is '0'
default value of GRADE_SCHOOL_FEES_VALUE is '0'
The entries are entry_value (text), SCHOOL_FEES_REIMBURSEMENT__ASG_YTD (text)
l_amount = to_num (entry_value) + to_num (SCHOOL_FEES_REIMBURSEMENT__ASG_YTD)
If l_amount > to_num (GRADE_SCHOOL_FEES_VALUE)
Then
(formula_status = 'E'
Formula_message = "the amount paid")
On the other
("formula_status = of ')
Formula_message = "the amount has not paid")
Return formula_status, Formula_message
It looks like a problem of wage EBS?
The administrators/moderators: thank you to move it to the forum proper.
-
Can we call HRMS fast formula in others
Dear
I wrote three formula, which is basic, House salary and compensation of salary, but I just want to get amount of these three tax formula, is there any maybe, how to call them.i write an example below.
Base = 10000
House = 3000
Indemnity = 2000
Tax ((10000 + 3000 + 2000) * 15) / 100;
There, I wrote an example, but I want to home base, re-writer and formula for calculating tax that just I want to get the values calculated in the tax the compensation formula.
Thank youHello
To do this.
You must first create a balance (total compensation > basic > balance)
GoTo feeds and include items whose value needs to be summarised
Like Basic, housing etc and choos the salary value value under the entry name...
in Add or subtract, select 'Add '.
Save it
GoTo dimensions add the dimension > assignment run
This balance will now give the floor to your tax form
ex if the balance name is "XX_ABC", then the name of your balance in the formula will be XX_ABC_ASG_RUN
Thank you
Ben -
Hello
Can you please help me in converting the BSO formula ASO. This is common is a member of the year (time) dimension.
IF (@ISMBR (Current)) 'Member' = ('Member'-'member_In' + 'member_Out');
ELSE 'Member' = @PRIOR (member);
ENDIF
Thanks in advance for your help.
Kind regards
UB
Published by: user640496 on January 20, 2010 22:44Try something like
CASE WHEN IS([Year].CurrentMember, [Current]) THEN [MCEB] - [Net_In] + [Net_Out] ELSE [MCEB].lag(1) END
I just wrote this from memory, don't have the time to test at the moment, but should be close.
Maybe you are looking for
-
I'm sure this question somewhere, but I was unable to quickly find an answer... anyone have this problem which is solved?
-
I have a HP 1210v all-in-one printer scan feature stopped working?
I ran the HPPSdr.exe diagnostic tools 2.0 untility and he said I have a HP TWAIN scanning error, a required component could not be found or has been incorrectly installed. Uninstalling, reinstalling the HP IMaging device and try to scan the image. I
-
HelloJust got a T23 2647-2TU.Where can a download a free copy of the user or owner manual? Many choices in maintenance and the main Google service.I read in your site, the article on the extension of battery life, so I need to go to some parameter/po
-
I would like an option that reads 'check at startup' on when windows 7 checks the automatic updates. Some people still turn off their computers when you are not using it. And if they do not check to turn on, they will begin the navigation with an ope
-
I use an American program and who wants to egliish (USA) language perfect performance. I changed the look of the amounts (1,000.00) in the United States, glance (1,000.00) and date/time and now Outlook express checks my German text against engish! Bu