Add_Months is allowed in a fast formula?
HelloIm 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
Andrew
Hi 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#6280105
On 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
Tags: Oracle Applications
Similar Questions
-
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
-
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
-
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
-
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.
-
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.
-
To_Number fast formula conversion
Hi all
I 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_amountHello
Try this once.
days_deduction = days_between (L_last_day, EMP_TERM_DATE)
Kind regards
Aneesh N -
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 -
With Oracle discoverer fast formula
Hello
Does anyone have any experience of the quick use of formula in Discoverer - can be called from a PL/SQL function that would then be registered in the normal way in discoverer?
Thank you
RachaelHello
Yes, you can encapsulate the call FF_EXEC.run_formula in your own pl/sql function and map this function in the EUL so that the formula can be called from a workbook.
Rod West
-
How to make knot faster formula?
Hi all
I am trying to identify a known model of the Spectra peaks in a code from Labview real-time data collection. My data collection occurs on intervals of 50 ms (20 Hz). Unfortunately, my analysis routines take ~ 160 ms to complete, and for this purpose the causes my material missing data collects.
Using the profile tool, it seems that one of the principal offenders is a subroutine that predicted what should be the entire spectrum, assuming that a few common summits of the desired spectral design are in the spectrum. It creates a spectrum of Gaussians for prediction, which he then compares to the heights of the real. If it isn't well correlate, then the proposal is false; If it is proportional, the code returns then what are the masses of the peaks. I can then find the limits of the peaks (I need the area of the Summit, not only the location of the tip) and use them to science.
In any event, it must cover the subroutine to make frequencies predicted several times. In general, I plan the locations of 4 peaks in the spectrum, and the spectrum is usually long 3000 points. My routine to a predicted spectrum has the following entries:
When the size is the number of points, width is the width of 1/2 of all summits, the amplitude is the height of an individual peak and Center is the location of the peak in the spectrum of 3000 point. Table Gaussian is the output.
The code looks like this:
(vi attached below)
My question is: can I can do something to improve the speed of calculation (in other words, I do something stupid?)? Or is it just about as effective a subroutine as is possible?
Thank you very much for your understanding!
RipRock
-
Management of absences - formula fast PTO accumulation
Hi all
We intend to implement the module management of absence and we do not run oracle payroll. As a result, we use the quick formula PTO_PAYROLL_CALCULATION in our plans of accrual accounting. But this default formula uses the week of pay period to expire. Now, the last day of our two-week pay period falls on December 19, 2010. If I plan to take PTO after 19 Dec that I should the system does not allow that as it falls the year next plan. So, for me, it looks like the fast formula must be be customized to calculate exercise time per calendar day (jan1 2010 - dec 31 2010) rather than the default value of the week of the pay period. Is this the right approach... Can someone please advise...
Thank you
VinayHi Vinay,
The created adjustment item should be a piece of information with two input values 1. hours and 2. effective date it as of (date).
Set the element in the net calculation rules.2. for an employee attach element entries to operational control and give hours of the input value and the effective date. Give the date in the entry into force value while hours will be reflected in the form of accrual accounting.
Maybe you are looking for
-
How to view the PSA screenshot on front panel
Anyone know how to view the screenshot of the specturm Analyzer the PSA series on the façade. I can put the JPEG file in the C drive, but I can not display on the front panel. Please see my labview code.
-
"High computer use" system error appears frequently.
"High computer use" system error appears frequently. Minimum of 768 MB of virtual memory and 1149MB max, but using 902 MB. Also when this error occurs I'll check the details and parameters, and it shows that everything is normal. Do I have to change
-
Wirless g6t-2000 upgrade card Pavilion
Hello! I want to change the pci card on my laptop that has integrated bluetooth, but I can't find a part number for it. can someone help me Thank you -Victor
-
I welcomed upcoming window for an update and then they took down my firewall and all my sucurity for a vista 2011 junk and want me to pay. Why and how can I go back? IT DON'T ME LET HIM DO ANYTHING. I'm using another computer to do this because it wo
-
I hate the way Windows Explorer works in Windows 7. I do not want my files to be included more than once i. e. in different libraries.