How to create a report which shows leave entitlement balances on a eff date
Hi,
customer would like to get a report, or sql statement, which shows employees net entitlements for an accrual plan. Because it is a calculated amount, I am not able to get my own quick paint or standard report.
Who can help?
ruud
You can do this in 3 steps.
1) First of all you'll need a package that wraps one of the Oracle-delivered PLSQL procedures into a SQL-callable function:
create or replace package xx_pto_balance AS
FUNCTION get_net_entitlement
(p_assignment_id in number
,p_plan_id in number
,p_calculation_date in date) return number;
end xx_pto_balance;
create or replace package body xx_pto_balance AS
FUNCTION get_net_entitlement
(p_assignment_id in number
,p_plan_id in number
,p_calculation_date in date) return number IS
l_net_entitlement number;
l_last_accrual_date date;
BEGIN
hr_pto_views.get_pto_ytd_net_entitlement
(p_assignment_id => p_assignment_id
,p_plan_id => p_plan_id
,p_calculation_date => p_calculation_date
,p_net_entitlement => l_net_entitlement
,p_last_accrual_date => l_last_accrual_date);
RETURN l_net_entitlement;
END get_net_entitlement;
end xx_pto_balance;
2) Next you'll need to initialize your apps session (if calling from SQL):
exec fnd_global.apps_initialize(<user_id>, <responsibility_id>, <responsibility_application_id>, <security_group_id>);
insert into fnd_sessions values (userenv('sessionid'), trunc(sysdate));
3) Then you can you use a SQL statement like this one (noting the call to the above package function):
SELECT papf.employee_number
,papf.full_name
,pap.accrual_plan_name
,xx_pto_balance.get_net_entitlement
(paaf.assignment_id
,pap.accrual_plan_id
,trunc(sysdate)) net_entitlement
FROM per_all_people_f papf
,per_all_assignments_f paaf
,pay_element_entries_f pee
,pay_accrual_plans pap
WHERE papf.person_id = paaf.person_id
AND nvl(papf.current_employee_flag, 'N') = 'Y'
AND paaf.assignment_type = 'E'
AND paaf.primary_flag = 'Y'
AND paaf.assignment_id = pee.assignment_id
AND pee.element_type_id = pap.accrual_plan_element_type_id
AND trunc(sysdate) BETWEEN
papf.effective_start_date AND papf.effective_end_date
AND trunc(sysdate) BETWEEN
paaf.effective_start_date AND paaf.effective_end_date
AND trunc(sysdate) BETWEEN
pee.effective_start_date AND pee.effective_end_date
ORDER BY papf.full_name;
This gets the net entitlement for all employees' accrual plans. You can of course tweak this as you like.
Don't expect this to be fast! In fact, expect it to be painfully slow: because balances are calculated on-the-fly and run Fast Formula it takes a couple of seconds per person, depending on your Fast Formula code. To improve performance these are some things you can do:
a) Put the above SQL into a materialized view and refresh it regularly (eg, daily)
b) Build a Concurrent Program that populates a 'snapshot' table of balances and then report off that
c) Use the Accrual Plan Payroll Balance architecture to store entitlements in payroll balances and then retrieve the payroll balances
I hope that helps.
Similar Messages
-
How to create a report which will show us the hierarchical stucture
Hi all,
I am using financial reporting studio for reports.
I have a planning appliaction. And i used Zones as the Entity Dimension.
Now I am trying to create a report for users to see my entity dimension hierarchy.
Something like Zones
East
West
North
South
I am able to generate the report but the hierarchy of the Zones does not show up..
Can anybody advice if there is a option in Financial Reporting to make the hierarchy structure more visible by adding proper indentation between the parent and the child?..
And yes i have used a prompt for the Entity in the report....
ThanksHi Venuramani,
Thanks for ur reply........
Let me explain you properly what I want......
I am getting the hierachical structure , but I am getting the child first,then parent and then
grant parent level members.But I want it in a different way first grant parent, then parent and then
child .Is there any way to do this?Pls advise me.........
Thanks -
How to create a report which accepts parameters from the URL
Hi,
I am trying to create a report that would only show the rows based on a criteria. My table has the following structure:
ID number(10)
Review_date date
Review varchar2(1000)
I want the report to display the following query:
Select Review_date, review from t1 where id=:ID;
I need the value of the parameter ID to be accepted through the URl. As in, the requirement wants that a url like www.abc.com:7777/abc?ID=1 should display a page where the report is run for id=1 and the results are displayed.
I have created a report in Portals where id can be entered once the customize link is pressed and the criteria is added. But the requirements state that users should not have to do this, links will be provided to them based on certain criterias, they just need to click on them. Any help is highly appreciated.You could try the forum for Financial Reporting - Hyperion Query and Reporting
Cheers
John
http://john-goodwin.blogspot.com/ -
How to create a report to show BA, Report Names, Owner and shares
Hello,
Does anyone have any sql that will show the Business Area, Report Name, Owner and who it is shared with?
I can get the three last items with no problem; the difficulty is including the BA Name.
This is for Discoverer v 4.
Many thanks
RachaelHi,
Thanks a lot. I am really new to the Discoverer Arena. We are currently using EUL5. Can you please direct me to the correct product to be installed and how will I actually get all the related worksheets for a specific workbook. Currently I have access to EUL5 tables. Is it what you are referring to? However using the EUL5 schema tables I cannot get the related worksheets of a particular workbook.
Would be really helpful if you could tell me in detail to solve this? I am somewhat confused heaps of Oracle products. Any other takers welcome
Thanks
Thomas -
How to create custom reports.
Hi ,
Could you please let us know how to create custom reports which are data based and not analytics. Which is the best method , is it to devlop reports in sites or integrate with OBIEE reports. could you please let us know the best practices for this approach.
Thank you,
Sashank P.Hi Jiri ,
Thanks a lot for your support. Below are my answers for the request:
1) what data you want to report on? Is it data from a database? file system? Web service outputs?
Ans : The Data would be mostly from Database only.
2) what is the overall purpose of your solution?
Ans: The overall purpose of this solution is to generate reports with sorting capability and should be able to export in different format documents.
3) what is your architecture?
Ans :
4) why Sites?
Ans: The customers login into our site and can be able to view the different reports and the present site is already a webcenter site. and the reporting capability is an enhancement .
Can you please provide the right approach here. We have an option of using ADF or even we can use Webcenter Portals. So which would be the best approach to go. And can you please guide us any approach or examples for integrating Webcenter Portals and Sites and even integrating ADf with Sites.
Thank you,
Sashank P. -
Creating dynamic filter which shows next 30 days
Hi,
How to create dynamic filter which shows next 30 days?
I've tried greater than or equal to TIMESTAMPADD(SQL_TSI_DAY, 30, CURRENT_DATE) but it doesn't work.Hi,
I think it should be something like below (inclusive of current month)
You may have to test this out
(YEAR("Close Date".Date) >= YEAR(CURRENT_DATE) AND
MONTH("Close Date".Date) >= MONTH(CURRENT_DATE)
) AND (YEAR("Close Date".Date) <= YEAR(TimestampAdd(SQL_TSI_MONTH,11, CURRENT_DATE)) AND MONTH("Close Date".Date) <= MONTH(TimestampAdd(SQL_TSI_MONTH,11, CURRENT_DATE)))
Hope it helps
-- Venky CRMIT -
How to create ZPS Report showing specific Project details?
Hi,
How do I create a custom ZPS report which shows Project details and progress The requirements are to see 20 fields in one single report . The fields which to be seen in the report are Labor Cost, Material Cost,Labor hrs,finish dates, billing plan, Milestones, NWA,Responsible person,Work Center,Warranty information all in one report.
Please advise how to create such a report.
Thanks much!you can use
ABAP
Query
Report Painter / Writer
to create your won reports
The choice will depend on what exactly you want -
Can we create a report painter report which shows the details of CC/CE/IO?
Hi,
I am trying to create a report painter report which shows the details of cost elements,cost centers and internal orders in a single section.I am able to create reports with 2 characteristics (like CC/CE or IO/CE etc.) but not with 3 characteristics (CE/CC/IO) which is my case.I am trying to get data something like below.Is this even possible using report painter?I will appreciate if any one could suggest how to do this.
CE CC IO Amt
600000 8190001100 1100001 $1000
1100002 $2000
1100003 $3000
$4000
620001 8190001101 1100004 $6000
1200001 $2500
. . . . . . . .and so on
Thanks,
Saurabh.>
But when i am using the same synonym in crystal report design, my report is working fine.. but the same synonym is available as invalid in database..
>
What does 'my report is working fine' mean? Are you saying that if you rerun the query it retrieves fresh data from the database?
What does 'same synonym is available as invalide in database' mean? How are you determining this.
Synonyms can be created for objects that do not yet exist.
create synonym q for table_does_not_exist
select * from user_objects where object_name = 'Q'
SYNONYM_NAME,TABLE_OWNER,TABLE_NAME,DB_LINK
Q,SCOTT,TABLE_DOES_NOT_EXIST, -
How to create Map report?
Hello experts.
I'd like to know how map report works in OBIEE 11G..
Upon researching and trials, I have successfully downloaded and loaded the MVdemo stuff into my DB. I am able to import layers and back ground map into OBIEE. So at this point, I think I have set up the map metadata successfullly and I am able to use map as one of the view.
However, I'd like to know how to actually use the map view to create reports that are meaningful with my data..
I have 1 table, base table, where I have base name, attribute 1...10, latitude and longitude. I also have some fact tables that goes with this table.
It seems, as I was going through the MVdemo metadata, the cities table doesn't store all of the cities in the world (this is understandable), so the part of Russia where my bases are located aren't found in the spatial data.
My base table only has latitude and longitude, it doesn't have geographic region names.
Now I want to create one report that shows all of my bases over east part of Russia on a map, so I want to see a map of Russia with Base names plot all over it.
How would I be able to do it? Do I need additional tables or data to do it?
The examples I get from internet seems to be too generic
Please let me know your thoughts
ThanksHello
I like this article:
http://prasadmadhasi.com/tag/obiee-11g-maps/
However, I have a few beginner's question..
1. I notice that the author has a subject area 'Map', which was used to create map.. Is this subject area any different from normal subject or is it created specifically for making maps?
2. The author has state, city columns in the DB, which was used to map to the report.. In my case, I only have longitude and altitude of my base in the base table, what can I do in this case?
Thanks -
How to create a report in Form line Style and can display Image field?
Hi,
In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
But in Paper Layout, my report can not display Image field.
I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
How to create a report in Form line Style and can display Image field?
I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
Thanks & regards,
BACH
Message was edited by:
bachnpHere you go..Just follow these steps blindly and you are done.
1) Create a year prompt with presentation variable as pv_year
2) Create a report say Mid report with year column selected 3 times
- Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
- Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
- Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
3) Create your main report with criteria as Year and Measure col
- Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
- Now put a filter on year column with Filter based on results of another request and select these:
Relationship = greater than or equal to any
Saved Request = Browse Mid Report
Use values in Column = YEAR-1
- Again,put a filter on year column with Filter based on results of another request and select these:
Relationship = less than or equal to any
Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
Use values in Column = YEAR+1
This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
This will 100% work...
http://i56.tinypic.com/wqosgw.jpg
Cheers -
How to create a report in EM from scratch level ?
Hi,
Can anybody help me on this ?
The report I want to create in EM is about where the user selects a target from a drop down and it shows the CPU utilization or memory Utilization for that respective target. Is it possible to create such kind of ? If Yes, How to create the report ?
Thanks in advance.Are you sure you want to create a report for this info?
As CPU and MEM utilization changes every second, what would be the use of a report?
I assume you are aware of the fact that CPU and MEM utilization is included for instance in the Host Homepage and can also be included in Group Pages and Dashboards.
Regards
Rob
For more information on OEM GC, like Tips and Tricks please see: http://oemgc.wordpress.com -
How to create a structure which can hold a dynamic table as a field in DDIC
Hi ,
I am designing a solution for a problem and have a unique requirement. I need to create a structure which can hold a field where dynamic table data can be stored. Let me illustrate with an example :
My structure ( say Z_output_struc ) will have the fields
Table_name Table_Data
My function module will have a table type of the above structure, so in effect ,my output can have multiple table names and related to each of them, there will be table data of that table name. The issue is how do I configure this in DDIC ?
I tried creating table_data as "Type ref to Data" but was stuck inside the func module when I tried to transfer data to this.
Any pointers as to how to think about this differently ?
Best Regards,
GirishHi Girish,
you start directly from the ref to data. You assign it to a field symbol and cast this to the type of the destination of your select. So you can directly add the reference to the cache:
I hope this example helps a bit (I took a form instead of a function module as it is easier to add here and used an hr table as kna1 is empty on my test system):
REPORT z_rwe_99_dyn_tab_cache.
* type definition
TYPES:
BEGIN OF _s_cache,
table TYPE tabname16,
cache TYPE REF TO data,
END OF _s_cache,
_t_cache TYPE STANDARD TABLE OF _s_cache.
* data declaration
DATA:
lv_table TYPE tabname16,
lv_condition TYPE string,
lt_cache TYPE _t_cache.
* define table and condition
lv_table = 'HRP1000'.
lv_condition = 'plvar = ''01'' and otype = ''S'' and objid = ''50000016'''.
* get the result of a single table into the cache
PERFORM get_dyn_table USING
lv_table
lv_condition
CHANGING
lt_cache.
* form to read a single table
FORM get_dyn_table USING
iv_table TYPE tabname16
iv_condition TYPE string
CHANGING
ct_cache TYPE _t_cache.
FIELD-SYMBOLS:
<lt_table> TYPE ANY TABLE.
DATA:
ls_cache TYPE _s_cache,
lr_data TYPE REF TO data.
CREATE DATA lr_data TYPE STANDARD TABLE OF (iv_table).
ASSIGN lr_data->* TO <lt_table>.
SELECT * FROM (iv_table) INTO TABLE <lt_table>
WHERE
(iv_condition).
ls_cache-table = lv_table.
ls_cache-cache = lr_data.
APPEND ls_cache TO ct_cache.
ENDFORM. "get_dyn_table
If you have more questions just give another post.
Best Regards
Roman -
Need to create alv report to show pan card number.
Hi,
I need to create alv report to show employee and vendor name , number , Pan card number .This is for hr module.
could any one tell me table and fields for this and how I can relate them with foriegn and primary key.
Regards,
Moderator Message: Do your own work
Edited by: kishan P on Oct 5, 2010 10:38 AMYes, but it only has one generic Date column, no start date and end date. I can't use that twice in the prompt. Although I can specify it to be 'between', but I'm not sure I can pass values to both variables like that.
Currently I have used Campaign Start Date and Campaign End Date to enter values in calender format to the variables. -
Report which shows TECO orders by date
Is there a report which shows by date which orders have been TECO ed. for example I would like to know which orders were technically completed on 5th of august by Plant
thanks a lotJohn,
I am not aware of such a report.
Technical completion date exists in table AUFK (field IDAT2). Easiest solution, for quick and dirty information, you could just browse the table using SE16.
Next easiest solution would be to create a query. I usually give the users a basic productionorder query when CO26 is not enough. Create the infoset in SQ02. Join tables AUFK, AFKO, and AFPO for basic production order data. Then, create the query in SQ01 using the infoset you just created.
If these solutions do not meet your needs, then you will have to commission a Z report. Spec it out & hand it off to the ABAP developers.
Rgds,
DB49 -
How to debug the report which isrunning in Background?
Hi all,
1.How to debug the report which is running in Background?
thanks & regards
vishnuvardhanHello,
Do like this.
Create an infinite loop before the line u want debug.
data: lf_flag.
do.
if lf_flag = 'X'.
exit.
endif.
enddo.
Now execute the report in background. In Tcode SM37 select ur job and in menu job--> Capture Active Job
IT will stop at the point of infinite loop.
Regards,
Vasanth
Maybe you are looking for
-
what i know: in /etc/inittab you can set with c1:2345:respawn:/sbin/agetty 38400 vc/1 linux c2:2345:respawn:/sbin/agetty 38400 vc/2 linux c3:2345:respawn:/sbin/agetty 38400 vc/3 linux c4:2345:respawn:/sbin/agetty 38400 vc/4 linux c5:2345:respawn:/sbi
-
I have a problem with a cd player
My boyfriend is incarcerated and he bought a Sony cd player from Access Secure Pak in 2011. The ball bearing which he says reads the cd's and makes them play came out. I just need to know how much will it cost to get it fixed and how can he go about
-
I need help on developing a elearning application that enables real time communication. Can anyone help me on how to start to who can help me?
-
Download does not start?
Hello Adobe Forums, I've been having problems installing Adobe Dreamweaver CS5.5 Trial in Adobe Download Assistant. When I click Download it doesn't load up, even for 10 min it still doesn't load up. I click it again and it gives me an error like th
-
V_V2 Changing the PO GR end date
Hi Gurus, I have set the GR processing time in the material master to 1 day. So if i create a an STO it considers it in the GR end date. However when we run V_V2, it changes the GR end date to the GR date and does not consider the GR processing time