Query for employee information
Good afternoon.
I'm having trouble on how to determine the employee department, division, organization as well as the company.
Any idea guys??
Thank you,
Rey
Hi Vignesh,
This is my query.. our user gave me this navigation(Global Super HRMS Manager > Work Structures > Organization > Description) for the department, division etc. but couldn't find a relationship between employee record and this navigation.
SELECT
hr_general.decode_position_latest_name(assignment.position_id),
sck.concatenated_segments,
grp.group_name,
people.employee_number,
people.last_name,
people.first_name,
people.middle_names,
hr_general.decode_position_latest_name(assignment.position_id),
org_struc.d_parent_name,
sck.concatenated_segments,
org.NAME,
locations.location_code LOCATION,
jobs.NAME JobName,
hr_general.decode_lookup('EMPLOYEE_CATG', assignment.employee_category),
sck.segment1,
people.person_id,
assignment.organization_id
FROM per_people_f people ,
per_all_assignments_f assignment ,
hr_locations_all_tl locations ,
per_org_structure_elements_v org_struc,
per_jobs_tl jobs ,
per_grades_tl grade,
per_all_organization_units org,
HR_SOFT_CODING_KEYFLEX sck,
PAY_PEOPLE_GROUPS grp
WHERE people.person_id = assignment.assignment_id
AND people.business_group_id = assignment.business_group_id
AND assignment.location_id = locations.location_id
AND assignment.soft_coding_keyflex_id = sck.soft_coding_keyflex_id
AND assignment.organization_id = org.organization_id
AND sck.segment1 = org_struc.organization_id_child
AND assignment.job_id = jobs.job_id
AND assignment.people_group_id = grp.people_group_id
AND assignment.grade_id = grade.grade_id
AND assignment.assignment_type IN ('E','C')
AND SYSDATE BETWEEN people.effective_start_date AND people.effective_end_date
AND SYSDATE BETWEEN assignment.effective_start_date AND assignment.effective_end_date
AND assignment.business_group_id=people.business_group_id
ORDER BY people.last_name, people.first_name asc;
Similar Messages
-
Odata Service For Employee Information
Hi Everyone,
I want to call the odata service related to employee profile. But unable to find that service in my sap system.
Can anybody tell me the name of the odata service which need to call from the gateway or from where I will get the name of the odata service related to employee information?
Regards,
SoumyaHi Soumya,
getting bad request means your URI is not correct. try with
http://<hostname>:<port>/sap/opu/sdata/iwcnt/employee/EmployeeCollection
let me know if you get any specific error with above query.
how can I connect to the HR system with GW? Is that can be done by using GW?
it depends if you will be getting employee details from SAP HR system which is separate from SAP NW GW or part of it. ie. based on your deployment scenarios(http://help.sap.com/saphelp_nw74/helpdata/en/3e/b1ea508f88bb7ee10000000a445394/content.htm ) and accordingly confuguration should be in place
you can also refer https://help.sap.com/saphelp_gateway20sp05/helpdata/en/fa/dffd46fc024158927dfdfc2ea68891/content.htm and https://help.sap.com/saphelp_gateway20sp05/helpdata/en/d6/9044e0d1c440148b3bc43d76e22ae4/content.htm -
HR table for employee information
Hi All,
Which is the HR table which stores employee information?
personal cell number and which salesgroup he related?
Message was edited by:
Rakesh Ramanathhi rakesh,
All infotypes stores the employee info
database tables are listed below , PAnnnn
IType Infotype text 1
0000 Actions 2
0001 Organizational Assignment 3
0002 Personal Data 4
0003 Payroll Status 5
0004 Challenge 6
0005 Leave Entitlement 7
0006 Addresses 8
0007 Planned working time 9
0008 Basic pay 10
0009 Bank details 11
0010 Capital Formation 12
0011 Ext. Bank Transfers 13
0012 Fiscal Data D 14
0013 Social Insurance D 15
0014 Recur. Payments/Deds. 16
0015 Additional Payments 17
0016 Contract Elements 18
0017 Travel Privileges 19
0019 Monitoring of Dates 20
0020 DEUEV 21
0021 Family/Related Person 22
0022 Education 23
0023 Other/Previous Employers 24
0024 Qualifications 25
0025 Appraisals 26
0026 Company Insurance 27
0027 Cost Distribution 28
0028 Internal Medical Service 29
0029 Workers' Compensation 30
0030 Powers of Attorney 31
0031 Reference Personnel Numbers 32
0032 Internal Data 33
0033 Statistics 34
0034 Corporate Function 35
0035 Company Instructions 36
0036 Social Insurance CH 37
0037 Insurance 38
0038 Fiscal Data CH 39
0039 Add. Org. Assignment CH 40
0040 Objects on Loan 41
0041 Date Specifications 42
0042 Fiscal Data A 43
0043 Family Allowance A 44
0044 Social Insurance A 45
0045 Loans 46
0046 Company Pension Fund CH 47
0048 Residence Status 48
0049 Red. Hrs/Bad Weather 49
0050 Time Recording Info 50
0051 ASB/SPI Data 51
0052 Wage Maintenance 52
0053 Company Pension 53
0054 Works Councils 54
0055 Previous Employer A 55
0056 Sickness Certificates A 56
0057 Membership Fees 57
0058 Commuter Rate A 58
0059 Social Insurance NL 59
0060 Fiscal Data NL 60
0061 Social Insurance S 61
0062 Fiscal Data S 62
0063 Social Ins. Funds NL 63
0064 Social Insurance F 64
0065 Tax Data GB 65
0066 Garnishment Order CA 66
0067 Garnishment Debt CA 67
0068 Garnishment Adjustment CA 68
0069 National Ins. GB 69
0070 Court Orders GB 70
0071 Pension Funds GB 71
0072 Fiscal Data DK 72
0073 Private Pension DK 73
0074 Leave Processing DK 74
0075 ATP Pension DK 75
0076 Workers' Comp. NA 76
0077 Additional Personal Data 77
0078 Loan Payments 78
0079 SI Additional Ins. D 79
0080 Maternity Protection/Parental Leave 80
0081 Military Service 81
0082 Additional Abs. Data 82
0083 Leave Entitlement Compensation 83
0084 SSP Control GB 84
0085 SSP1(L) Form Data GB 85
0086 SSP/SMP Exclusions GB 86
0087 87
0088 SMP Record GB 88
0090 Additional Income E 89
0092 Seniority E 90
0093 Previous Employers D 91
0094 Residence Status 92
0098 Profit Sharing F 93
0100 Social Insurance B 94
0101 Fiscal Data B 95
0102 Grievances NA 96
0103 Bond Purchases 97
0104 Bond Denominations 98
0105 Communication 99
0106 Family/Related Person 100
0107 Working Time B 101
0108 Personal Data B 102
0109 Contract Elements B 103
0110 Pensions NL 104
0111 Garnishment/Cession D 105
0112 Garnishment Claim D 106
0113 Garnish. Interest D 107
0114 Garnishment Amount D 108
0115 Garnishment Wages D 109
0116 Garn. Transfer D 110
0117 Garn. Compensation D 111
0118 Child Allowance 112
0119 Definition of child allow.(pre1996) 113
0120 Company pension fund transaction CH 114
0121 RefPerNo Priority 115
0122 CA Bonus 116
0125 Garnishment B 117
0126 Supplem. Pension D 118
0127 Commuter Traffic NL 119
0128 Notifications 120
0130 Test Procedures 121
0131 Garnishment/Cession 122
0132 Garnishment Claim A 123
0133 Garn. Interest A 124
0134 Garnishment Amount A 125
0135 Spec. Garn. Cond. A 126
0136 Garn. Transfer A 127
0137 Garn. Compensation A 128
0138 Family/Rel. Person B 129
0139 EE's Applicant No. 130
0140 SI Basic Data JP 131
0141 SI Premium Data JP 132
0142 Residence Tax JP 133
0143 Life Ins. Ded. JP 134
0144 Property Accum. Sav. JP 135
0145 Personnel Tax Status JP 136
0146 Y.E.A. Data JP 137
0147 Pers. Appraisals JP 138
0148 Family JP 139
0149 Taxes SA 140
0150 Social Insurance SA 141
0151 External Insurance SA 142
0154 Social Security data (IT) 143
0155 Additional administrative data (IT) 144
0156 Tax Deductions (IT) 145
0157 User Administration Data (IT) 146
0158 Amounts paid by Third Parties (IT) 147
0159 Seniority (IT) 148
0160 Family allowance (IT) 149
0161 IRS Limits USA 150
0162 Ins. Y.E.T.A. Data JP 151
0165 Deduction Limits 152
0167 Health Plans 153
0168 Insurance Plans 154
0169 Savings Plans 155
0170 Flexible Spending Accounts 156
0171 General Benefits Information 157
0172 FSA Claims 158
0173 Tax card information (Norway) 159
0177 Registration of Country of Birth NL 160
0179 Tax SG 161
0181 Additional Funds SG 162
0182 Alternatative Names Asia 163
0183 Awards 164
0184 Resume Texts 165
0185 Personal IDs 166
0186 CPF 167
0187 Family Add. (TH) 168
0188 Tax Australia 169
0189 Construction Pay: Funds Procedure 170
0190 Construction Pay: Previous ER 171
0191 Construction Pay: Expenses 172
0192 Construction Pay: Assignment 173
0194 Garnishment Document 174
0195 Garnishment Order 175
0196 Employees Provident Fund 176
0197 Employees' Social Security 177
0198 Schedular Deduction Tax 178
0199 Addl. tax deduction 179
0200 Garnishments DK 180
0201 Basic Pension Payments CPS 181
0202 Entitlements CPS 182
0203 Pension/Valuation Status BAV 183
0204 DA/DS Statistics DK 184
0207 Residence Tax Area 185
0208 Work Tax Area 186
0209 Unemployment State 187
0210 Withholding Info W4/W5 US 188
0211 COBRA-Qualified Beneficiary 189
0212 COBRA Health Plans 190
0213 additional family info 191
0214 Loan Supplement, Denmark 192
0215 CP: Transaction Data 193
0216 Garnish. Adjustment 194
0217 Code INSEE F 195
0218 Pensioner Fund No. F 196
0219 External Organizations 197
0220 Superannuation Aust. 198
0221 Payroll Results Adjustment 199
0222 Company Cars GB 200
0224 Canadian Taxation 201
0225 Company Car Unavail. GB 202
0227 TFN Australia 203
0230 Supplement to P0008 PSG 204
0231 Supplement to P0001 PSG 205
0232 Child Allowance D 206
0233 Bilan Social' (FR) 207
0234 Add. Withh. Info. US 208
0235 Other Taxes US 209
0236 Credit Plans 210
0237 Supplement to P0052 PSG 211
0241 Tax Data Indonesia 212
0242 Jamsostek Insurance Indonesia 213
0261 Loading Leave Aust. 214
0264 Family NL 215
0265 Special Regulations 216
0266 Supplement to P0027 PSG 217
0267 One-Time Payments Off-Cycle 218
0268 Company Loans JP 219
0269 ADP File Number 220
0270 COBRA Payments 221
0271 Statistics, Public Sector Germany 222
0272 Garnishment (F) 223
0273 Taxes - SE 224
0275 Garnishments - SE 225
0277 Exceptions - SE 226
0278 Basic Data Pension Fund (CH) 227
0279 Individual Values PF (CH) 228
0280 GB View for Contractual Elements 229
0281 GB View for Beneficial Loans 230
0283 Archived Objects 231
0288 Family CH 232
0302 Additional Actions 233
0303 Premium Reduction NL 234
0304 Additional Basic Pay Information 235
0305 Previous Employers (IT) 236
0306 Family add. 237
0309 IRD Nbr New Zealand 238
0310 Superannuation NZ 239
0311 Leave Balance Adj 240
0312 Leave History Adj 241
0313 Tax New Zealand 242
0315 Time Sheet Defaults 243
0317 Spec. Provisions NL 244
0318 Family view Indonesia 245
0319 Private Insurances Indonesia 246
0320 Official Housing 247
0321 Employee Accommodations 248
0322 Pension Payments 249
0323 Entitlement Group Type BAV 250
0326 Imputation of Pension 251
0329 Sideline Job 252
0330 Non-Monetary Remuneration 253
0331 Tax PT 254
0332 Social Security PT 255
0333 Disability PT 256
0334 Suppl. it0016 (PT) 257
0335 Suppl. it0021 (PT) 258
0336 Suppl. it0002 (PT) 259
0337 Prof.Classificat. PT 260
0338 Absence payment clearing PT 261
0341 DEUEV Start 262
0342 Personal Data HK 263
0343 Contract Elements HK 264
0344 Additional Family HK 265
0345 General Tax HK 266
0346 Contribution Plan HK 267
0347 Entitlement Plan HK 268
0348 Appraisal & Bonus HK 269
0349 Cont/Ent Eligibility HK 270
0351 Country Information 271
0352 Additional Family Information (TW) 272
0353 Income Tax (TW) 273
0354 Labor Insurance (TW) 274
0355 National Health Insurance (TW) 275
0356 Empl. Stab. Fund (TW) 276
0357 Saving Plan (TW) 277
0358 EE Welfare Fund (TW) 278
0359 Tax Data Ireland 279
0360 PRSI Ireland 280
0361 Pensions Ireland 281
0362 Membership view Indonesia 282
0363 Previous Employment Period 283
0364 Tax TH 284
0365 Social Security TH 285
0366 Provident Fund TH 286
0367 SI Notification Supplements A 287
0368 No longer used 288
0369 Social Security Data 289
0370 INFONAVIT Loan 290
0371 Retenciones en otros empleos 291
0372 Integrated daily wage 292
0373 Loan Repayment JP 293
0374 General Eligibility 294
0375 HCE Information 295
0376 Benefits Medical Information 296
0377 Miscellaneous Plans 297
0378 Adjustment Reasons 298
0379 Stock Purchase Plans 299
0380 Compensation Adjustment 300
0381 Compensation Eligibility 301
0382 Awards 302
0383 Compensation Component 303
0384 Compensation Package 304
0386 Health Insurance Ireland 305
0387 Starters Details Ireland 306
0388 Union due Ded. JP 307
0389 Impuesto a las Ganancias AR 308
0390 Impto.Ganancias: Deducciones AR 309
0391 Impto.Ganancias: Otro empleador AR 310
0392 Seguridad Social AR 311
0393 Datos familia: Ayuda escolar AR 312
0394 Datos familia: información adic. AR 313
0395 External Org. assignment 314
0396 Expatriate attributes 315
0397 Dependents BR 316
0398 Contractual Elements BR 317
0399 Income Tax 318
0400 Social Insurance 319
0401 Prestaciones/Antigüedad 320
0402 Payroll Results 321
0403 Payroll Results 2 322
0404 Military Service (TW) 323
0405 Absence Event 324
0406 Pension Information 325
0407 Absences (Additional information) 326
0408 CBS NL 327
0409 External Agencies NL 328
0410 329
0411 Taxation Philippines 330
0412 Reserved PL 331
0415 Export Status 332
0416 Time Quota Compensation 333
0419 Additional tax statement info (NO) 334
0421 Special remunerations (IT) 335
0422 Social Security Philippines 336
0423 HDMF Philippines 337
0424 Work Stopped (F) 338
0425 IJSS Summary (F) 339
0426 Orden jurídica México 340
0427 Deudas por órden jurídica México 341
0428 Additional data on beneficiary 342
0433 GB View for Bank Details 343
0434 GB view for External Transfers 344
0435 ITF ADP 309 Free Format 345
0436 ITF ADP 409 Free Format 346
0437 347
0438 Annual Tax additions - SE 348
0439 Data transfer information 349
0440 Receipts HK 350
0442 Company car 351
0446 Payroll US Fed Taxes 352
0447 Payroll US Fed Taxes MTD 353
0448 Payroll US Fed Taxes QTD 354
0449 Payroll US Fed Taxes YTD 355
0450 Payroll US State Taxes 356
0451 Payroll US State Taxes MTD 357
0452 Payroll US State Taxes QTD 358
0453 Payroll US State Taxes YTD 359
0454 Payroll US Local Taxes 360
0455 Payroll US Local Taxes MTD 361
0456 Payroll US Local Taxes QTD 362
0457 Payroll US Local Taxes YTD 363
0458 Monthly Cumulations 364
0459 Quarterly Cumulations 365
0460 Annual Cumulations 366
0467 Add'l SI Notif.Data f.Comp.Agts A 367
0468 Travel Profile (not specified) 368
0469 Travel Profile (not specified) 369
0470 Travel Profile 370
0471 Flight Preference 371
0472 Hotel Preference 372
0473 Rental Car Preference 373
0474 Train Preference 374
0475 Customer Program 375
0476 Garnishments: Order 376
0477 Garnishments: Debt 377
0478 Garnishments: Adjustment 378
0480 Enhancement: Contracts Processing 379
0482 Addit. data family/related person 380
0483 CAAF data clearing (IT) 381
0486 Military Service (PS-SG) 382
0487 Security/ Medical Clearance 383
0488 Leave Scheme 384
0489 Voluntary Service/ ECA 385
0490 Staff Suggestion Scheme 386
0491 Reserved RO Social Insurance 387
0493 Education (PS-SG) 388
0494 Staff Suggestion Scheme - Evaluator 389
0496 Payroll US Benefits data 390
0497 Payroll US Benefits data MTD 391
0498 Payroll US Benefits data QTD 392
0499 Payroll US Benefits data YTD 393
0500 Statistical Data 394
0501 Other Social Insurance Data 395
0502 Letter of appointment 396
0503 Pensioner Definition 397
0504 Pension Advantage 398
0505 Holiday certificate (B) 399
0506 Tip Indicators 400
0510 Tax-Sheltered Pension (US) 401
0511 Cost-of-living allowance/amount 402
0512 Reserved HR 403
0521 Semiretirement D 404
0525 Child Care 405
0526 Work & Remuneration Confirmation A 406
0527 Payment Upon Leaving A 407
0546 Termination Data 408
0548 Supplementary pension funds (IT) 409
0551 410
0552 Time Specification/Employ. Period 411
0553 Calculation of Service 412
0559 Commuting allowance Info JP 413
0560 Overseas pay JP 414
0561 Datos Impuestos 415
0565 Retirement Plan Valuation Results 416
0566 US Pension Plan QDRO Information 417
0569 Additional Pension Payments 418
0570 Offshore Tax GB 419
0571 Offshore Social Security GB 420
0572 Absence Scheme Override 421
0578 PBS Accumulator Correction 422
0592 Public Sector - Foreign Service 423
0593 Rehabilitants 424
0595 Family-Related Bonuses 425
0596 PhilHealth Philippines 426
0602 Retirement Plan Cumulations 427
0611 Garnishments: Management Data 428
0612 Garnishments: Interest 429
0900 Sales and Distribuition Data 430
0901 Purchasing Data 431
2001 Absences 432
2002 Attendances 433
2003 Substitutions 434
2004 Availability 435
2005 Overtime 436
2006 Absence quotas 437
2007 Attendance Quotas 438
2010 Employee Remuneration Info 439
2011 Time Events 440
2012 Time Transfer Specifications 441
2013 Quota Corrections 442
2050 Annual Calendar 443
2051 Monthly Calendar 444
2052 Weekly Entry w/Activity Allocation 445
2500 Personal Work Schedule Times 446
2501 Employee Times 447
2502 Quota Transaction 448
3003 Materials Management 449
4000 Applicant Actions 450
4001 Applications 451
4002 Vacancy Assignment 452
4003 Applicant Activities 453
4004 Applicant Activity Status 454
4005 Applicant's Personnel Number 455
thanks
Naveen
reward points if useful -
Datasources used in HR for employee information
Hi,
Can anyone please tell me the datasources through which i can fetch the detail salary information of employees.
RomaHi Roma,
Check the below data sources
0HR_PY_1
0HR_PY_1_CE
You can find documentation for this in help.sap
http://help.sap.com/saphelp_nw70/helpdata/en/a5/94e8288eec11d4b2fb00010220c65f/frameset.htm
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/6a/cccc6015484464b25605375a5db965/frameset.htm
Regards,
Venkatesh. -
I am attempting to find the number employees in the System using RFC's and cant use BAPI_EMPLOYEE_GETDATA. Below are a list of RFC's which I believe may help me accomplish this, Is my assumption correct??
If its is I cannot seem to get the RFC's To work because I dont know the approriate syntax for populating the FUNCAREA field and SELID field. Can some one provide the syntax and sample of how to populate these RFC's
HR_CREATE_QUERY_FOR_INFO_GET
HR_INFO_GET
HR_INFO_GET_USING_QUERY
Greatly appreciate Your help,
SAP NewbieThanks for the sites, but not exactly whats I was looking for. It didnt tell me how to use the bapis.
Let me explain my issue in further detail, Im using BAPI_EMPLOYEE_GETDATA and it is called through the SAP .Net Connector. When calling this BAPI on system with the number of employees > 50k i get an RFC time out error. So im tryin to refine the search but first I would like to check know many matches I will get for a specified search string, before performing that search using BAPI_EMPLOYEE_GETDATA. That is why I am trying to use the bapis listed below, but cant get them to work.
HR_CREATE_QUERY_FOR_INFO_GET
HR_INFO_GET
HR_INFO_GET_USING_QUERY
What are some sample values for the fields?
Thanks for Your help in advance,
SAP newbie -
Query for Employee Salary Details
Hi,
I have requirement like to generate pay slip using XML Reports. I am unable to get Salary details in my query. How I will get the Salary details (All Element Values), what are all the effected tables.
Thanks
Madhu..You get alternatively use the pay_balance_pkg.get_value(<pAssignmentActionId>,<definedbalanceid>) to get the Net Payments values
where pAssignmentActionId is Assignment Action id of Payroll Run.
definedbalanceid is Defined Balance Id of <TOTAL_PAY>ASGPTD
<TOTAL_PAY> Can be found from Balance screen whose "Use For Remuneration" flag is checked. -
Select Device_Person_id,personal_id,Date1,(
cASE WHEN eXISTS(
sELECT Device_Person_id FROM tempDeviceLogs AT WHERE T.personal_id=AT.Device_Person_id AND T.date1=AT.logDateTime
) then 'P' Else 'A' End )as Emp_Status
FROM
Select Device_Person_id,personal_id,Cast(logDateTime as DATE)AS DATE1 from Emp_setting a,(Select Distinct logDateTime from tempDeviceLogs) b
) T
it causing error like "Invalid column name 'Device_Person_id'."
how inout can be used in this query to get result.
this is my first project don't have much idea so please help me.
dbo.tempDeviceLogs table
columnname datatype allownulls
LogsID int Unchecked
Device_Person_id int Unchecked
Device_id int Unchecked
logDateTime datetime Unchecked
logVerifyMode nchar(10) Unchecked
workCodeID int Unchecked
Machin_install_id int Unchecked
data_loaded_dt datetime Checked
Inout int Checked
dbo.Emp_setting
columnname data type allownulls
Empset_id int Unchecked
personal_id int Unchecked
DesignationID int Checked
DivisionID int Checked
Emp_status char(1) Checked
Emp_TypeId int Checked
Dept_Id int Checked
Group_Id int Checked
NDIVGRP_CODE bigint Checked
dbo.persons_profile
column name datatype allow nulls
pesonal_id int Unchecked
Emp_Code nchar(15) Checked
Title nchar(4) Unchecked
First_name varchar(35) Unchecked
Middle_name varchar(35) Checked
last_name varchar(35) Checked
Father_Husband_Name varchar(35) Unchecked
Dob datetime Unchecked
Age int Unchecked
gender nchar(1) Unchecked
Marital_status nchar(1) Unchecked
Nationality nchar(10) Unchecked
bloodGroup nchar(10) Unchecked
perAddress nchar(100) Unchecked
PerStreet nchar(100) Checked
PerLocation nchar(50) Unchecked
PerCity nchar(20) Checked
PerPincode nchar(6) Checked
CorAddress nchar(50) Checked
CorStreet nchar(50) Checked
CorLocation nchar(50) Checked
CorCity nchar(20) Checked
CorPincode nchar(6) Checked
LandlinePhone nchar(24) Checked
cellNo nchar(24) Checked
EmailId nchar(35) Checked
NosofDependendants int Checked
Dependendants_details ntext Checked
Emergency_FirstName nchar(35) Checked
Emergency_Middle_name nchar(35) Checked
Emergency_Last_name nchar(35) Checked
Emergency_WithRelation nchar(25) Checked
Emergency_PhoneNo nchar(22) Checked
Emergency_CellNo nchar(22) Checked
Emergency_emailId nchar(35) Checked
Office_PF_ac_no nchar(20) Checked
ESI_ac_no nchar(20) Checked
JoinedDate datetime Checked
Photofile nchar(50) Checked
ReportTo varchar(50) Checked
Brief_Notes nchar(150) Checked
dateofTermination varchar(10) Checked
termination_note nchar(50) Checked
Print_Priority int Checked
DeviceEmployeeID nchar(25) Checked
LogsPermitted int Unchecked
Machin_install_id int Checked
Designation nchar(100) Checked
Dept nchar(100) Checked
Section nchar(100) Checked
Groups nchar(100) Checked
EmpWorkingTypeT nchar(100) CheckedSelect Device_Person_id,personal_id,Date1,
cASE WHEN eXISTS(
sELECT Device_Person_id FROM tempDeviceLogs AT WHERE T.personal_id=AT.Device_Person_id AND T.date1=AT.logDateTime
) then 'P' Else 'A' End as Emp_Status
FROM
Select Device_Person_id,personal_id,Cast(logDateTime as DATE)AS DATE1 from Emp_setting a,(Select Distinct logDateTime from tempDeviceLogs) bfrom TBL
) TLooks you missed FROM clause in T Subquery
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Hi Everyone,
I want oracle query with which we can retrieve information about oracle RAC.
This information is, No of Clusters, Db instances...
Which Tables i can query for this information?
Thank You In Advance...
RoshanHi,
I think you would mean active instances on your cluster....
Query v$active_instances
04/05/[email protected]=287> select * from v$active_instances;
INST_NUMBER INST_NAME
1 rac1:ORCL1
2 rac2:ORCL2
2 rows selected.
Regards,
Rodrigo Mufalani
http://mufalani.blogspot.com -
Is there any standard report for employee Personal information.
hi
is there any standard report for employee Personal information regarding
Persoanal No.
Name of employee.
Designation.
Department.
Joining Date.
Birthdate.
Basic Salary.
DA.
HRA.
ThanksHi,
Refer to
Tcode S_AHR_61016369 - Employee List
And for payroll result refer to Function module "HRCM_PAYROLL_RESULTS_GET"
Hope that helps.
Regards
Mr Kapadia
***Assigning points is the way to say thanks in SDN.*** -
Release Employee Information-MSS for a number of employees
Hi,
Through the Release Employee Information in MSS, a manager can grant access of an employee's record to another manager.
There is a requirement where in a Manager can grant access of many employees to a manager at one go.
Is this possible.
ThanksAs per seeded functionality Manager can give access one by one.
-
SQL Query for SSRS has data but fields don't show that data
I am having a strange issue here with my new report;
First off, this report is an availability report for employees. If they are busy then a 0 should be displayed for that Hour and if they are free then a 1 is to be displayed. There are 2 parameters setup for use in this query, one is a Date/Time parameter
and the other is a Text parameter where another Dataset Query is grabbing the data for (Departments)
I have 2 Parameters, 1 is for a Department and the other is to select the date.
Hour1 Hour2 Hour3 Hour4 Hour5
Hour6 Hour7
Smith, John | 1 | 0 | 0 | 0 |
1 | 1 | 1 |
Som, One | 1 | 1 | 1 | 0
| 0 | 1 | 1 |
When I run the query in the Query Designer for the Dataset the information is displayed correctly and as I would expect it, however, when I run the Report and choose the same information for the 2 parameters then the report only ever shows all 1's;
Smith, John | 1 | 1 | 1 | 1 |
1 | 1 | 1 |
Som, One | 1 | 1 | 1 | 1
| 1 | 1 | 1 |
I've tried searching but didn't know what term to use that describes what is going on.
Like I said, this works if ran in SSMS and works when ran in the Query Builder of SSRS but when it comes to displaying the data on the report the incorrect information is displayed.
Any help would be appreciated.
EDIT
I have also ran the Report Table Wizard with the same query and chosen Names as the row and Hours as the columns and the same thing happens - just all 1's are displayed even thought the query in Query Builder shows correct information.The difference running the query directly in query designer and when the report runs is that you manually type in values for the parameters when running query designer. It is likely that the parameter values from the report have a different syntax than you
expect. This will happen especially when setting the available values of a parameter from a data cube query. A value from an analysis cube may be displayed in the query designer as "\Project\Iteration Node" while the actual value is "[Work Item].[Iteration
Hierarchy].[Iteration2].&[-7189901615194941888]&[-8272609059741292246]". Very different as you can see. This example is from the TFS analysis server.
The best way to validate that your parameters are passing the values (and syntax) you expect is to add text boxes to your report for each parameter and set them to display Parameters!ParameterName.Value.
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek. -
How to take report for Employee past pay results!!!
Hi Experts,
I would like to know how to generate report for employee's past pay roll, which gives information pertaining to employee's pay hike if any and other details.
Please advice...subbu14blueatgmail.com
Thank you in advance for your help.
Regards,
SubbuHi,
Pc00_M40_calc though you can do the live run then
go PC00_m99_CWTR here you can select the payroll period button
There you can give the payroll area and selection periods.
Then you can give the company code, and what ever you can personnel area wise and all.
Below that screen you need to select the Lay out variant.
Then you can execute that report.
Then you will get the wage types and the amount.
Any query's let me know.
Thanks and Regards,
Revathi. -
Need to execute Dynamic query for the report
I was wondering if we can have the option of choosing at runtime from the report builder parameter so that if the end-user selects 'Yes' then the report will run one specific query and if he chooses 'No' then another particular query is invoked. What I mean to say that by choosing between Yes and No at runtime one should have the option of returning query results based on the same table but having different columns selected via the SELECT statement
means we have two querires on our report & upon the chosen parameter we should execute only one of them ... wht should i do to apply tht ???As the previous post noted lexicals are a terrific way to accomplish dynamic queries in Oracle reports.
Another way you could accomplish this would be to use a UNION, whereas the first select in the UNION represents one user option, then second query represents the second option.
For example:
SELECT customer_name name, customer_address address
FROM customer_table
WHERE :p_choice = 'Customer Info'
UNION
SELECT employee_name name, employee_address address
FROM employee_table
WHERE :p_choice = 'Employee Info'If when running the report, the user chooses 'Customer Info' the first query would return results, if the user chose 'Employee Info' then just information from the second query would return information.
So there are different ways to accomplish what you are looking for, you just need to find which is going to work best for you.
Hope this helps! -
Query for Sales Order Analysis
Dear Experts
I have written a Query for Sales Order Analysis and would like to have help on this.
The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales Order. The query is written as below:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum] ORDER BY T0.[DocNum]
where U_Total_GP is a UDF for storing the GP of each order.
After executing the query, a selection criteria of date appears and after a date is selected, the report shown information required. However, the query does not calculate column total for total amount and total GP. Although I know the total for each column can be displayed by pressing "Ctrl" + Click on the column title, it would have to be done from time to time.
Therefore, I would like to modify my query in order to calculate the column totals when executed. Are there any suggestions for this?
Thank you
Regards
EltonHi Elton,
Try this:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
Union ALL
SELECT '', SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0]
ORDER BY T0.[DocNum]
Thanks,
Gordon -
SharePoint Foundation 2013 - report / chart / Graph for Employee vacation.
In SharePoint Foundation 2013 I want to create a report / chart / Graph for Employee (Employee Id,Employee Name & Department) which will show month wise from which date to which date Employee are on vacation in particular department.
I'm thinking to create one List where where user will enter there vacation details and from that list report I will create chart / Graph Department wise to check the Employees availability.
Please provide some good example or idea in detail for this.Hi,
Chart Web Parts are useful for visually representing data in line charts, bar charts, and other views. Charts enable you and other users to view performance information at a glance.
In SharePoint 2013, chart web part is one of the discontinued features. We usually use Excel Service to replace it, however, Excel Service is only available in Enterprise edition, so we need to figure out coding methods or third party tool if you are using
Foundation edition.
Here are some links for workaround in your situation, please check if they can be help:
http://sivarajan.me/post/SharePoint-2013-Chart-WebPart-Using-HTML-5-RGraph-with-WCF-REST-Services
http://charts4sharepoint.codeplex.com/
Regards,
Rebecca Tu
TechNet Community Support
Maybe you are looking for
-
Airplay mirroring works great for apps (mostly video-related ones) with native Apple TV support, but for other apps - most notably Hulu Plus, it will only show letterbox on my 16:9 plasma TV. Again, my movies, tv shows and in-app videos like in CNN w
-
How do i manually manage my new iphone without erasing everything?
OK, so i got a new iphone 5 for christmas. i already have an ipod touch so through icloud i restored everything to my new phone. then i went on to my computer to add my cds since you cant do that through icloud, and when i tried i couldnt. then when
-
Hello, just wanted to know if I can install os x on my external hard drive. I have WD firewire HD, and my pc is a macbook 1.83GB intel. thank you.
-
Every time I get a new email the phone beeps, even though the option "E-mail alert tone" in the meeting profile I am using is set to "off". Thanks in advance
-
Upgrade to latest OS or not...honest answers welcome
I have the iPhone 3G, running on software version 3.1.3 No problems with anything running, but have read about issues in the past with upgrading. Now I read that upgrading isn't so bad. I'm wanting to get honest feedback. Is it worth it to grade? Wha