How to find out the latest Record in per_all_people_f and per_all_assignme
Hi ,
How to find out the latest Record in per_all_people_f and per_all_assignments_f
Requirement : Need to find out the latest record in per_all_people_f and per_all_assignments_f to update the attribute column with pre defined value . Its not possible to track only with person_id / assignment_id and effective end date
SELECT pp_id
FROM (SELECT app.person_id pp_id,
asf.*
FROM apps.per_all_people_f app,
apps.per_all_assignments_f asf
WHERE --app.person_id=123568 and
asf.person_id = app.person_id AND
app.effective_end_date = to_date('31-dec-4712') AND
asf.effective_end_date = to_date('31-dec-4712')
GROUP BY app.person_id)
HAVING COUNT(pp_id) > 1
GROUP BY pp_id
This query also returns more than 1 value for person_id .
It would be great if you put comment on this .. Thanks in advance ,
Arya
I am getting more records with asf.primary_flag='Y' . If you give ur mail id , i will send the sample data
ASSIGNMENT_ID EFFECTIVE_START_DATE EFFECTIVE_END_DATE BUSINESS_GROUP_ID RECRUITER_ID GRADE_ID POSITION_ID JOB_ID ASSIGNMENT_STATUS_TYPE_ID PAYROLL_ID LOCATION_ID PERSON_REFERRED_BY_ID SUPERVISOR_ID SPECIAL_CEILING_STEP_ID PERSON_ID RECRUITMENT_ACTIVITY_ID SOURCE_ORGANIZATION_ID ORGANIZATION_ID PEOPLE_GROUP_ID SOFT_CODING_KEYFLEX_ID VACANCY_ID PAY_BASIS_ID ASSIGNMENT_SEQUENCE ASSIGNMENT_TYPE PRIMARY_FLAG APPLICATION_ID ASSIGNMENT_NUMBER CHANGE_REASON COMMENT_ID DATE_PROBATION_END DEFAULT_CODE_COMB_ID EMPLOYMENT_CATEGORY FREQUENCY INTERNAL_ADDRESS_LINE MANAGER_FLAG NORMAL_HOURS PERF_REVIEW_PERIOD PERF_REVIEW_PERIOD_FREQUENCY PERIOD_OF_SERVICE_ID PROBATION_PERIOD PROBATION_UNIT SAL_REVIEW_PERIOD SAL_REVIEW_PERIOD_FREQUENCY SET_OF_BOOKS_ID SOURCE_TYPE TIME_NORMAL_FINISH TIME_NORMAL_START BARGAINING_UNIT_CODE LABOUR_UNION_MEMBER_FLAG HOURLY_SALARIED_CODE REQUEST_ID PROGRAM_APPLICATION_ID PROGRAM_ID PROGRAM_UPDATE_DATE ASS_ATTRIBUTE_CATEGORY ASS_ATTRIBUTE1 ASS_ATTRIBUTE2 ASS_ATTRIBUTE3 ASS_ATTRIBUTE4 ASS_ATTRIBUTE5 ASS_ATTRIBUTE6 ASS_ATTRIBUTE7 ASS_ATTRIBUTE8 ASS_ATTRIBUTE9 ASS_ATTRIBUTE10 ASS_ATTRIBUTE11 ASS_ATTRIBUTE12 ASS_ATTRIBUTE13 ASS_ATTRIBUTE14 ASS_ATTRIBUTE15 ASS_ATTRIBUTE16 ASS_ATTRIBUTE17 ASS_ATTRIBUTE18 ASS_ATTRIBUTE19 ASS_ATTRIBUTE20 ASS_ATTRIBUTE21 ASS_ATTRIBUTE22 ASS_ATTRIBUTE23 ASS_ATTRIBUTE24 ASS_ATTRIBUTE25 ASS_ATTRIBUTE26 ASS_ATTRIBUTE27 ASS_ATTRIBUTE28 ASS_ATTRIBUTE29 ASS_ATTRIBUTE30 LAST_UPDATE_DATE LAST_UPDATED_BY LAST_UPDATE_LOGIN CREATED_BY CREATION_DATE TITLE OBJECT_VERSION_NUMBER
931510 7-Nov-08 31-Dec-12 122 (null) (null) (null) 3978 1 (null) 14402 (null) 220150 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 2 E Y (null) 100035417-2 (null) (null) (null) 45948739 (null) (null) (null) (null) (null) (null) (null) 868007 (null) (null) (null) (null) 449 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
797386 26-Aug-08 26-Aug-08 122 (null) (null) (null) 3980 3 (null) 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 E Y (null) 100035417 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) 740071 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
916076 26-Aug-08 31-Dec-12 122 (null) (null) (null) 3980 1 4 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 B Y (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
797386 25-Feb-08 25-Aug-08 122 (null) (null) (null) 3980 1 (null) 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 E Y (null) 100035417 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) 740071 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
Similar Messages
-
How to find out the versions of family pack and mini pack installed?
There are family pack and mini pack for HRMS.
How to find out the versions of family pack and mini pack installed
just by a Unix command or sqlplus Select statement?
Thanksyou can get the Minipack version of the products by querying fnd_product_installations or ad_patchdriver_minipks, for family packs you need to query through Metalink, OR if you have u driver file which resides on $AY_TOP/discoverer, looks for the minipacks/familypack version in the driver file.
-
How to find out the missing records
Dear all,
I feel that there is some Inconsistent records between R/3 and the extracted records BI for the data source 2LIS_03_BF. some of the records may not be updated through delta.. Is this possible? as we have created Zkey figures to capture the diffrent unit of measure's quantity from the table MSEGO2 and updated to IC_c03 cube.
Can any one tell me how to go about the missed records..where to find them.. and how to extract them.
Poits will be assigned
Regards
venuhi,
inventory scenario is difficult to handle as this have non cumulative key figures which can be viewed at the repors.
extreme care is required while compression and intila loads and their compression.
run the report or ask the user to run the report and sort out the missing records.
chk out the document and chk if the procedure done by you is correct.
inventory management
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
Ramesh -
How to find out the latest changes in Planning Book
HI Experts,
Please let me know, is there any way to find out who has changed the values in Planning Book and when ??Hi Srini,
We also have a similar requirement wherein we want to know who has changed the values in DP. Fortunately we have an additional key figure, which we are not using at the moment. We intend to write a macro wherein we can copy the key figure that is to be monitored copied in that new key figure at every exit of the planning book(exit macro). When the old value is changed, we will copy the old value in the new key figure (using an exit macro) and also generate an data base alert which will help us to capture the details of the change, that is, user id, time of change and the quantity of change.
Let me know if this suggestion suits your requirement.
Rgds, Sandeep -
How to find out the duplicated records?
Hi,
I am writing a report by using Oracle6i and window 98. I have a 3 fields in the report: LAST_NAME, FIRST_NAME, ADDRESS.
In the reports, I only want to show those records that have the same last_name and first_name but different address.
Can anyone help? Thanks.
JunHi Jun
I used the following query in the sample employees table to select those employees whose first name was the same but employee_id was different. Probably you could try this query by substituting your field names and table name:
select distinct e1.employee_id, e1.first_name from employees e1, employees e2 where e1.first_name=e2.first_name and e1.employee_id<>e2.employee_id order by e1.first_name asc;
Here is a sample snapshot of the result:
EMPLOYEE_ID FIRST_NAME
103 Alexander
115 Alexander
105 David
151 David
165 David
127 James
131 James
Navneet. -
How to find out the table for Posting Key and A/R & A/P Document types
hi folks,
can you let me know which TABLE is used to Posting key and also which TABLE is used for Account Receivables and Account Payables.
Thank you in advance.To find the table of posting key, select any posting key at OB41, then press F1, then click on hammer icon the table used will be displayed. For Posting Key TBSL is the table used.
Posting Key TBSL
Customer Master (General) KNA1
Customer Master (Company Code) KNB1
Vendor Master (General) LFA1
Vendor Master (Company Code) LFB1
Satish
(please close the thred if u satisfiy with the answer) -
How to find out the image size?
How to find out the image size values(Width and height) in illustrator CS3 using any script. I tried but i got only the document height and width. I need to find out the image BoundingBox value of width and height. Kindly advice me.
Try this.
tell application "Adobe Illustrator"
set heightImage to get height of raster item 1 of current layer of current document
set widthImage to get width of raster item 1 of current layer of current document
display dialog (heightImage & " X " & widthImage) as string
end tell
JaiMS -
How to find out the max mem can be allocatedTT for 32 bit Win ?
How to find out the maximum Permanent Data Size and Temporary Data Size that can be allocated for the Oracle Times Ten for 32 bit Windows OS.
Hi Chris,
Am I write in saying that this also depends on shared memory setting as well?
If that is the case, on a platform like window 2003 32-bit, one cannot have more than 4GB of shared memory. Windows Server 2003 includes support for a startup switch (entered in the boot.ini file) that allows the allocation of memory and memory address space. Regardless of the amount of physical memory that is installed on the system, the operating system uses a virtual address space of 4 GB. Out of that amount, by default, 2 GB is allocated to user-mode processes (for example, Oracle or TimesTen) and 2 GB is allocated to kernel-mode processes (for example the operating system and others). In a nutshell on systems that have more than 1 GB of RAM, this startup switch can be used to allocate more memory to applications (3 GB) and less memory to the operating system (1 GB). However, adding adding the /3GB switch to the boot.ini file will not increase the amount of physical RAM memory, the 3GB switch just tells the computer to allocate the existing memory space differently.
For a 32-bit TimesTen the limit on memory cannot be more than 2GB (PermSize+TempSize). For example on Linux 32-bit I have 1024MB and 512MB for these two parameters.
Thanks,
Mich -
How to find out the account group information in customer master record?
how to find out the account group information in customer master record?
in which tab? thanks in advanceHi
Go to XD02 and select the Extras from the main menu , you will find Account group info -> click on the No.ranges.
reward if it helps
SR -
How to find out the n number of records inserted??
In File to JDBC Scenarios, i am inserting n records in Oracle.
How to find out the n number of records inserted??Hi,
If you are using the statement "UPDATE_INSERT", get the response on element <insert_count>count</insert_count>. It will give you the inserted rows.
This link can be very helpfull.
[http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm]
regards.
roberti -
How to find out the Hire date of an employee?
Hi All
What is effective date, Latest start date and other date fields which are are used when we create a new employee?
What is the difference between hire date and joining date?
How to find out the Hire date and joining date of an employee?
Regards
RahmanThe effective dates are related to date tracking. The effective start date shows when this version of the record became effective.
The Hire Date, or Latest Satrt Date shows the date on which the employee was last hired. If he was hired before from 01/01/01 to 31/12/01, then left but was hired again from 01/01/07, the Latest Hired Date would be 01/01/07 and the First Hired Date would be 01/01/01.
When using Oracle HR, datetracking allows you to either correct data (because it was wrong or incomplete), or update it (because a time effective change took place e.g. got married).
The[b] effective dates show when a record was updated. So, if an update was made on 07/02/07, and the update datetrack option was used, the current record would have its effective end date set to 06/02/07 (the day before the update) and a new version would be created with the updates and an effective start date of 07/02/07.
Hope this helps. -
HOW to find out the tablespace space utilized by a patch after applying the
someone has already applied the patch in test env before recording the tablespace size , so I cannot find out the figure in test env.
So is there any general practice or general guidelines on it?
hOW to find out the tablespace space utilized by a patch after applying the patch?
Thanks & Regards,
Sree.
Edited by: 846579 on Mar 22, 2011 10:50 PMI think there is no direct way to determine what tablespace is utilized by a patch from the README file. You could check the content of the patch file and see what modules are affected (assuming there are changes and the database level), then query DBA_USERS (DEFAULT_TABLESPACE column) for those schemas which are updated by a patch. Or, you could check the size of the tablespaces before and after applying the patch and you will determine what tablespaces have been utilized (provided that the application services are down, and none of the application users is connected to the application).
Thanks,
Hussein -
In DBI , how to find out the Source Query used for the Report
Hi All,
How to find out the Source Query used to display the data in the DBI Reports or Dashboards. We can get it in Apps Front end by Going to Help and Record Histroty. But DBI Runs in Internet Explorer so i dont know how to get the source query ( SELECT Query ) Used.
In IE we have View --> Source . But that does not help since it gives the HTML Coding and not the SELECT Query used.
If anyone has ever worked on it...Please help me in finding it.
Thanks,
Neeraj ShrivastavaHi neeraj,
You can see the query used to display reports.Follow these steps to get the query.
1)Login to oracle apps
2)Select "Daily Business Intelligence Administrator" responsiblity.
3)Now click on "Enable/Disable Debugging" (Now u enabled debugging)
4)now open the report which you want to see the query of
5)In view source it displays query along with the bind varilables.
Feel free to ping me if you have any doubts
thanks
kittu -
How to find out the total, subtotal in alv report
hi dears,
how to find out the total, subtotal in alv report?
pls tell me logic ,
i will be waiting for eply
regards
eswarHi,
<b>ALV Grid List with sub-totals</b>
REPORT z_demo_alv_sort.
* This program lists orders (VBAK) with sort and sub-total for *
* 'sold-to-party' (KUNNR) and 'Sales organization' (VKORG) *
TABLES : vbak.
TYPE-POOLS: slis. " ALV Global types
SELECT-OPTIONS :
s_vkorg FOR vbak-vkorg, " Sales organization
s_kunnr FOR vbak-kunnr, " Sold-to party
s_vbeln FOR vbak-vbeln. " Sales document
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
DATA:
BEGIN OF gt_vbak OCCURS 0,
vkorg LIKE vbak-vkorg, " Sales organization
kunnr LIKE vbak-kunnr, " Sold-to party
vbeln LIKE vbak-vbeln, " Sales document
netwr LIKE vbak-netwr, " Net Value of the Sales Order
waerk LIKE vbak-waerk, " Document currency
END OF gt_vbak.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
PERFORM f_read_data.
PERFORM f_display_data.
* Form f_read_data
FORM f_read_data.
SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
FROM vbak
UP TO p_max ROWS
WHERE kunnr IN s_kunnr
AND vbeln IN s_vbeln
AND vkorg IN s_vkorg.
ENDFORM. " F_READ_DATA
* Form f_display_data
FORM f_display_data.
DEFINE m_fieldcat.
add 1 to ls_fieldcat-col_pos.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = 'VBAK'.
ls_fieldcat-do_sum = &2.
ls_fieldcat-cfieldname = &3.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
DEFINE m_sort.
add 1 to ls_sort-spos.
ls_sort-fieldname = &1.
ls_sort-up = 'X'.
ls_sort-subtot = &2.
append ls_sort to lt_sort.
END-OF-DEFINITION.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv,
lt_sort TYPE slis_t_sortinfo_alv,
ls_sort TYPE slis_sortinfo_alv,
ls_layout TYPE slis_layout_alv.
m_fieldcat 'VKORG' '' ''.
m_fieldcat 'KUNNR' '' ''.
m_fieldcat 'VBELN' '' ''.
m_fieldcat 'NETWR' 'X' 'WAERK'.
m_fieldcat 'WAERK' '' ''.
m_sort 'VKORG' 'X'. " Sort by vkorg and subtotal
m_sort 'KUNNR' 'X'. " Sort by kunnr and subtotal
m_sort 'VBELN' ''. " Sort by vbeln
ls_layout-cell_merge = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = ls_layout
it_fieldcat = lt_fieldcat
it_sort = lt_sort
TABLES
t_outtab = gt_vbak.
ENDFORM. " F_DISPLAY_DATA
***************** END OF PROGRAM Z_DEMO_ALV_SORT **********************
Regards
Sudheer -
Hi,
I am trying to find out the latest delivery date(EINDT) for each purchasing document (EBELN) through graphical way.
The view contains other fields apart from the above mentioned two fields.
When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
Hence , please help me in getting the solution while the view contains other fields also.
Thanks in advance.
Thanks,
JyothirmayiHi Sreehari/Vinoth,
Thank you for your replies.
if only two fields are then I can get the max/min values of one field corresponding to other field.
But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
I hope you understood my issue.Please revert in case of questions.
Thanks & Regards,
Jyothirmayi
Maybe you are looking for
-
Itunes won't recognize ipod nano (6th gen) HELP :(
I have restarted the computer and done everything the 6th gen troubleshooter has told me. I have a packard bell desktop PC, the operating system is Windows Vista and all the USB ports are working. I previously had an ipod on my laptop but itunes did
-
MacBook Pro (Late 08) CDR empty?
I got a burned CD with some Files from a Friend. When i put in the CD finder shows it as empty CD and askes me how to open it. when another Friend (MBP early 09 and MacBook "white plastic") puts in the CD it shows as a normal CD with the files. i ask
-
Analogue input voltages railing to +/-32768
Adam Hi, I recently bought a RIO-7833R PCI card and am having weird problems with it. I would like to use it to measure analogue voltages. However, even when nothing is connected to the card, the analogue input channels are railing to +/- 32768. I'v
-
ORA-00257 - lots of disk space available
I am trying to load about 14 GBs of data, totaling ~13.5 million records. The raw data is about 14GBs, and the table space is set to 30GBs, its all text data. The data is from about 200 different site files ranging in size from 10-180 MBs. This is (r
-
Font weirdness! Is my iMac possessed?
I added some fonts from work, and coincidentally added another user account. Now when I use Firefox in either account, all the fonts are bizarre; one is a ding of some sort, another is some kind of foreign font. And when I use Safari in the new accou