on 09-08-2014 8:02 AM
Hi Experts
we required a query which shows the change done in Employee Master Data,,(OHEM) with an option to filter with FROM >TO date
i need the following fields in the Query
SAP ID | Name Changed Field Name | Current Basic Salary | Old Basic Salary | Update Date | Updated Person Name |
i need the Updated person name, but when am trying am getting the created person name, instead of that i need Updated Person's Name
Regards
Hi,
Let me check and update query.
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use OHEM and AHEM table to get above information.
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this:
SELECT T0.[UpdateDate],T0.[empID], T2.[salary] as Newvalue, T1.[salary] as oldvalue, t3.[U_Name] as CreatedUser, t4.[U_Name] FROM AHEM T0 left join AHEM T1 on T1.[empID] = T0.[empID] and t1.loginstanc= t0.loginstanc-1 left join OHEM T2 on T0.[empID] = T0.[empID] left join OUSR t3 on t3.userid = t2.usersign left join OUSR t4 on t4.userid =t2.usersign2 WHERE T2.[salary] <> T1.[salary] group by T0.[UpdateDate],T0.[empID], T2.[salary], T1.[salary],t3.[U_Name],t4.[U_Name] order by T0.[UpdateDate]
Thanks & Regards,
Nagarajan
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.