Salary Advance
HI
Salary Advace can be conifgured in Dynamic Action, instead of Loan Configuration
in Infotype 0014 Salary advance, 0015 Advance deduction.
i have done my Salary Advance Quite Simple ... is't OK
regards
Sekar
Hi,
Let us know, how you are paying the Salary Advance. You need to configure the corresponding WT in the WT model, so that, system will pay the Salary advance either in normal payroll run or in Off Cycle.
You can include the WT in IT0014 or 0015 by dynamic action and default the amount for the WT. But, that WT must be assigned to the respective WT group.
Good Luck
Om
Reward it, if u feel helpful.
Similar Messages
-
Advance payment to vendor through FBCJ
Hi,
While we are paying salary/imprest/other/travel advance to Employee vendor through t/code u2013 FBCJ which has no Spl GL. This payment gets debited automatically in Employees account ( 350110). Whereas salary advance should go to GL code 320080, imprest/other advances should go to GL code 320140 and Tour advance should go to GL code 320100.
Kinldy tell me if we want to pay vendor advance through FBCJ in cash where Special GL indicator option is not given in SAP, how we can pass entry through this FBCJ ?. Because in F-48 there is a option for Bank A/C GL.
With Regards,
SamratHi,
Thnks for your reply. You have opened Clearing Account in your company. Because in our compnay they are doing this type of scenario thorugh Contra Account. Pass the entry through FB60 then F-43. Here nullifies conta account and then pass through FBCJ.
Kindly tell me while you are using Clearing A/c Dr. to Cash A/c Cr, which t code you are using. Is it F-02 and doc type SA. And while you use FB01 for Vendor A/C Dr. To Clearing A/C Cr. which doc type you use ? And Dr and Cr posting keys are 25 and 50.
And finally while you pass Vendor A/c Dr. To Cash a/c, you are using FBCJ in payment tab. Am I right ? Kindly tell me above queries..
With Regards,
Samrat -
Hi everyone,
In our comp they have created Employee salary advance, site advance and travel advance. where employee is treated as vendor. and a special gl is created for each of this. my question here is how wil i do the user manual for this??.. and process flow..??..
Regards,
bagi..Process:
1. Create advance account, site advance etc as an reconciliation account.
2. Post payment employee advance using TCode: F-48
Entry Passed: Advance to employee (Special GL)
To Outgoing bank / Cash Account
3. When tour voucher recieved, post the expenses incurred with 'post with clearing' using TCode:F-51
Entry Passed: Expenses A/c... Dr
To Advance to employee (Special GL)
To Bank Account (If expenses incurred is more than advance given)
Using F-51, it is possible to adjust expense incurred by the employee and advance given to employee immediately
The above entries will stand good for site advances also.
For giving user manual, you can paste the SAP Menu path, TCode and Screen shots. -
hello,
if we want to give advance to the employee,how will we make the entry for this.
Thanks.Hi Pari
In this Case u use Special GL
there are different types of Special GL
for example Tour advance , Salary advance, imprest, simple advance, earnest money deposit, security deposit ,
in this case u create a Special GL, settings in SPRO, where u maintain Special GL
if u use simple advance to vendors then use T.code F-43 / F02 and A special GL use, A for advance
entry post
29A Vendor Dr 500
50 Bank A.c Cr 500
if u see this amount in Vendor Ledger
Going to Fbl1n
Select vendor
Company code
Posting date
down Click on left side Special GL Button then execute
if any query revert back
Regards
Roobal -
Dear All,
My clients wants Spilts in Vendor line items while hitting that particular vendor.
Clearly,
We are giving all Advances like Loan advance, Salary advance to employeees as a vendor and
will deduct, while doing salary process by putting deduction wage type in 14 info type.
While doing Payroll posting 2 documents will be genarated one by one (simply 2 line items) for the same posting run because those 2 symbolic accounts are customized in vendor account in SPRO.
My Quesation and Requirement is,
After do the live Posting, if an employee have 2 deductions, say 2500 advance deduction,1500 Loan deduction (Total 4000 rupees
Will appear in as a one line item if u go for FBL1N transaction.
My client wants 2 line items, one line item shold have 2500 Rupess, Second line item 1500 Rupess,
Then he can strightforward one is for advance deduction, one is for Loan deduction.
is there is any chance to spilt the one vendor line iten which comes from by payroll posting in two.
Please help me on this.
VenkatPlease give any suggesition on this
-
Error while processing Payroll
Hi Experts,
Please help...
While processing Payroll getting an error.
Please lower the loan repayment in IT0045.
His gross pay is 13974 and there is a deduction of Rs.8120/- (including PF ESI and other loans deduction with interest amount) and Nett payable to the employee is 5854/-. Though there is amount payable, the pay roll is not running successfully and the following error occurs.
The same error occured during last month pay roll (May'10) and we have given salary advance and recovered the same in the same payroll and then we were able to process the salary.
Amount deducted per month is 1333.33 even after rounding off getting the same error.
Regards,
SRAJ.1BAS Basic Salary 5,670.00 INR 0.00 0.00
1CON Conveyance Allowanc 800.00 INR 0.00 0.00
1HRA House Rent Allowanc 2,835.00 INR 0.00 0.00
1SPL Special Allowance 1,669.00 INR 0.00 0.00
1PRI Prodcution Incentiv 3,000.00 INR 0.00 0.00
Total 13,974.00 INR 0.00 0.00
0015 Additional Payments 1EDU 30.04.2009-30.04.2009
1EDU Education Allowance 3,000.00 INR 0.00 0.00
0015 Additional Payments 1EDU 29.04.2010-29.04.2010
1EDU Education Allowance 3,000.00 INR 0.00 0.00
0015 Additional Payments 1EMR 28.02.2010-28.02.2010
1EMR Emergency Advance 120,000.00 INR 0.00 0.00
0015 Additional Payments 1LTA 30.11.2009-30.11.2009
1LTA Leave Travel Allowa 3,900.00 INR 0.00 0.00
0015 Additional Payments 1ONT 31.03.2010-31.03.2010
1ONT Other Payments(Not 855.00 INR 0.00 0.00
0015 Additional Payments 1OPM 30.09.2009-30.09.2009
1OPM Other Payments (Tax 810.00 INR 0.00 0.00 -
GL A/c related to HR payroll - some entries are missing
Dear All,
I have an issue with 1 GL A/c which is for Advance- Salary.
1) On 26.11.2009, Advance against salary of Rs. 5000 is paid to one employee by cheque. (The same is recovered in the payroll of Nov, 2009. (30.11.2009))
2) In Dec, 2009, advance against salary of Rs. 500 is given to employee by cash. (The same is recovered in the payroll of Jan, 2010 (31.01.2010))
Accounting entries for Advance given to employees against salary are appearing correctly as :
Advance-salary A/c Dr.
To Bank / Cash A/c
As I mentioned above, both the advances are recovered in the next payroll. All the entries in these payroll (including salary advance recovery of other employees) are posted correctly. However, only these 2 entries are not posted & untraceable. (No credit of these amounts in Advance-Salary A/c). Now, the Advance-Salary A/c is showing Debit Balance of Rs. 5,500/- which is summation of above 2 entries.
I checked :
PC00_M99_DKON - Correct GL A/c is assigned for Salary Advance Wage Type
PC00_M99_CWTR - Wage type reporter - which is showing the salary deduction against Salary Advance
PC00_M40_CEDT - Remuneration statement - correctly showing deductions from salary against advance
I do not think this can be HR-FI integration issue as all other salary advance recoveries are getting posted correctly.
Can somebody help me in finding out how I can trace where those to entries have got posted?
If the entries are untraceable, is there any other way where I can create some dummy GL (? not sure) & clear Advance-Salary GL A/c?
Thanks & Regards,
ReshmaHi,
Thanks for the response.
But while giving advance, entry hit to Bank Clearing A/c & then in BRS, Open Item in Bank Clearing A/c got cleared with Main Bank.
So I do not think there is any issue with BRS.
Any other possibility or solution on this?
Thanks & Regards,
Reshma -
Business packages, Business Functions and Business Components
Dear All,
I am new to ESS/MSS.
We are going to implement the following applications. (Company is Indian based).
Version : EHP6 and Portal 7.3
1. Employee Search
2. Personal Information
2. Working Time
3. Benefits and Payments (Reimbursements, Salary Advance, URL iviews have to create for PF and ESI)
4.Travel Management (No 3rd party integration for booking tickets)
5. Performance Management Systems (360* Degree Appraisal)
6. E- Separation
7. Corporate Information
8. E- Recruitment
9. MSS
What are the Business Packages have to deploy?
What are the Business Functions have to deploy?
What are the Business Components have to deploy?
Regards
SomuWhat are the Business Packages have to deploy?
In portal side you need to deploy the below packages.
-> BP ERP05 ESS 1.41
-> BP ERP05 MSS 1.51
-> BP ERP05 COMMON PARTS 1.51
-> BPERPESSWDA1.50
-> BP MSS ADDON 1.0
-> BP Recruiter
-> BP Recruiter Administrator
If you want implement TMS applications then you required below BP's
-> BP ERP TMS 1.51
-> BP ERP05 TALENT DEV 1.01
And the components should be SP level compatibility with SAP ECC system
-> SAP ESS
-> SAP MSS
-> SAP PCUI_GP
What are the Business Functions have to deploy?
You need to activate the below BF's in ECC HR system
HCM_ESS_CI_1
HCM_ESS_WDA_1
HCM_ESS_WDA_2
HCM_MSS_WDA_1
HCM_MSS_WDA_2
FIN_TRAVEL_1
FIN_TRAVEL_2
FIN_TRAVEL_3
HCM_ASR_CI_1
HCM_ASR_CI_2
HCM_ASR_CI_3
HCM_ECM_CI_1
HCM_ECM_CI_2
HCM_LSO_CI_1
HCM_LSO_CI_2
HCM_LSO_CI_3
HCM_OSA_CI_1
HCM_OSA_CI_2
HCM_PD_UI_1
HCM_TMC_CI_1
HCM_TMC_CI_2
CA_HAP_CI_1
HCM_OSA_CI_1
HCM_OSA_CI_2
HCM_TMC_CI_1
HCM_TMC_CI_2
HCM_HCP_CI_1
HCM_ECM_CI_2
HCM_ERC_CI_4
HCM_PD_UI_1
FIN_CO_MSSBUA_NWBC
FIN_REP_SIMPL_1
ERP_ENTERPRISESEARCH
What are the Business Components have to deploy?
In ECC side import the addon components based on your system component levels.
MSS Addon 1.0
ERECRUTIMENT -
Employee Vendor Account posting
hi all.
i have to configure the Vendor Accounts posting.
there are few wage types, that need to be posted to employee vendors in FI.
If the following wage types are to be posted, please explain me the following one.
wage type : 1122 personal expenses
wage type :1123 Business expenses
symbolic account :1122
symbolic account : 1123
i have used the same for both wage types and symbolic accounts.
employee vendor numbers : 50001, 50002, 50003, 50004.
please let me know whether, under the node of Posting in IMG, should i take all these vendors and link the symbolic account or any other porcedure.like shown below.
1122-50001
1122-50002
1122-50003
1122-50004
1123-50001
1123-50002
1123-50003
1123-50004
is this how i should link all the vendor to the concerned Symbolic accounts.
please give me a solution. .
waiting for your reply
prathaphi all .
i am really thankful to all of you.
i have Basic, HRA, Transportation, Food allowance.
for the month April, i have made the test data and confirmed that the G/L accounts are readily available in FI.there is no problem in posting.
but when i tried to post the salary advance payment to vendor account, it is throwing error.
i have configured, as follows
created Symbolic account with the specification K
assigned the symbolic account to the wage type
assigned *0002 to the symbolic account.
when i tried to post to accounts, it is throwing the error. i am sure that the error is only because of this.
i have cross checked whether the vendor account is created in FI , which is available.
please tell me apart from this configuration, any thing is missing.
please help me.
prathap -
Use of Spl GL in document parking
We have a defined Spl GL for Salary Advance as "S". Advances are paid as down payments and the recovery happens through the monthly payroll processing. This is not through SAP and we only pass a JV through F-02. This JV contains line items with Spl GL "S" and posting key "39" for the recovery through Salary and this is posted to individual Employee Vendor accounts.
We now want to stop direct posting of the salary JV and instead want the same to be parked by the user and approved by the users senior. F-65 does not allow use of Spl GL.
Can anyone please guide how to achieve park and post in this scenarioDear,
It is not mandatory that you should always create your miscellaneous advance made/receipt must be create as Down Payment/Down payment request
To meet your requirement just go to FBKP select special G/L "S" enter your chart of accounts and go into properties, change
Special G/L transaction types to Others from Payment/Down payment request.
Advances can be created as Special G/L transaction types Others
System is stopping you because down payment functionality is provided exhaustively in SAP so you should follow that.
Regards,
Chintan Joshi. -
Dear Friends,
1.Can we pay Loan(IT 45) through off-cycle payment. 2.How to pay Advance through Off-Cycle payment.
Detailed explanation is much appreciated.
Points will be rewarded.
Rgds,
Sekar.Dear Sekar,
By the IT 0045 only you can do the loan payment but for the payment under the specific head like house loan, vehicle loan or any other you need to configue subtype. Salary advance payment also you will need subtype. Select an It0045 and than select the subtype as your need and entre the data.
If its helpful please reward points.
Regards
Zankhana -
Hi,
We are facing problem when we try to reverse the payroll (that has been posted and all third party payments done).
The error message that we are getting while reversing the payroll is 'Amount mismatch'
Any help on this will be useful.
Thanks,
SriramFirst thing you should tell your business team is the that reversal should be performed only if the Check is not cashed or DD is not made in EE's account. It is simple as that.
even if you delete the result or rerun the payroll it is not going to help!!!
check your payroll results from Sep to Dec and find out when the reversed check's net was paid again to the employee? (for example if it happened in Nov pay, the EE would have almost double net in his DD)
Then tell the employee that he got paid double for Sept - once in Sept and then again in Nov.
Now that the company will recover that money from his next pay as Advance Recovery! (Let us assume that the 2nd net was paid as Salary advance. The Gross is accounted only once and Gross will be reported only once in W2. )
You can either enter as a deduction via IT15 with one of you existing wagetype if the employee has enough pay next month
(if you dont have a wagetype then create a new one call Pay Advance recovery)
or
Recovery in 3 installments if employee does not have enough pay. So enter wagetype in IT15 for 3 different pay periods. -
Hi Gurus,
Request your advice on this one.
After payroll posting run, the GL linked /559 wagetype is populated. What is the best way to transfer the amount in this to the GL of bank account automatically. i.e Debit the GL linked to /559 wagetype and Credit the company bank GL.
One way to do this is through FB50, but am looking for a more automated solution
Is this possible via DME ? if so how and what is the configuration required ? Would appreciate being linked to some useful information.
Warm Regards
SanchitDear Expert,
Please help me to resolved the following scenario:
Issue:
The issue is related to reconciliation of information, for the employeesu2019 claims (LTA, Journals, Driver Allowance, Leave encashment, advances). The payments related to such claims get credited to Wages payable a/c (GL a/c 340501), for all payroll areas (01 u2013 Workers), during salary processing. During reconciliation, segregation of the information becomes time consuming.
Analysis:
The present process needs to be re-visited. If possible, the separate G/L codes to be provided for accounting employeeu2019s claims. This will expedite the reconciliation process.
I.As-Is: Employee claims handling
1. Employee raises claim in the SAP (LTA/Journals/Driver allowance/Leave encashment/salary advance).
2. Claim is approved in the system & payment is processed.
3. The claim related payment/s, for all the payroll areas, gets credited to employeeu2019s account through G/L code u2013 340501.
Pay Roll Area (01 u2013 Workers)
Salary and Wages -
> G/L - 340501
LTA -
> G/L - 340501
Journals -
> G/L - 340501
Driver Allowance -
> G/L - 340501
II. TO-BE (Business Requirement): Employee claims handling
1. Employee raises claim in the SAP (LTA/Journals/Driver allowance/Leave encashment/salary advance).
2. Claim is approved in the system & payment is processed.
3. The payment related to claim gets credited to G/L code u2013 XXXXXX.
4. The payment get
Pay Roll Area (01 u2013 Workers)
Salary and Wages -
> G/L - 340501
LTA -
> G/L - 340502
Journals -
> G/L - 340503
Driver Allowance -
> G/L - 340504
Thanks and best regards
DucTV1 -
Expense A/c / Balance Sheet A/c
Hi Gurus,
Please clearify my doubt about Expense A/c / Balance Sheet A/c,
As per my knowledge what ever is amount / allowance is paid that will come under Expense A/.c (C),
All Deductions and Employer's contributions comes under Balance Sheet A/c (F). Here my doubt is emplyee having some deductions like statutory deductions comes under Whcih A/c, is it C or F.
And give me your valuable suggestions on this and let me get knowledge about my querry from you people.
I appreciate your valuable support and encouragement,
Thanks,
HasiniHi Sai Vindhya Hasini
Here r the balance sheet account
Text A/c Summation
Administration charges EPF&FPF-Payable Business Area
Bank loan Personnel number
Bonus Payable Business Area
T D S Payable - Salary (Sec 192) - ECESS Personnel number
EPF Payable Business Area
ESI Payable Business Area
Festival Advance Personnel number
Incentive Vendor wise
Labour Welfare fund Payable Business Area
Leave Encashment Payable Business Area
LIC Premium Payable Business Area
Other Loan Personnel number
Profession Tax Payable Business Area
Salary Advance Personnel number
Salary payable Personnel number
Staff Personal loan Personnel number
T D S Payable - Salary (Sec 192) - Surcharge Personnel number
T D S Payable - Salary (Sec 192) - Basic Personnel number
Tour Advance Personnel number
Vehicle Advance Personnel number
Bonus Adavance Personnel number
Medical advance Personnel number
Superannuation Payable Business Area
Other Deduction Payable Business Area
Gratuity Payable Business Area
Stamps in Hand & Food Coupon Stock Business Area
Consultancy Charges - Payable Personnel number
P&L Account
Text A/c Summation
Employer Contribution ADM Charges Cost centre
Bonus - Employees Cost centre
Drivers Salary - Re-Imbursement Personnel number
Employer contribution EDLI Cost centre
Employer Contribution EPF Cost centre
Employer Contribution ESI Cost centre
Employer Contribution FPF Cost centre
Employer Contribution LWF Cost centre
Employer Contribution Gratuity Cost centre
Incentive - Employees Personnel number
Leave Encashment Personnel number
Leave Travel Expenses - Re-Imbursement Personnel number
Medical expenses/Reimbursement Personnel number
Salaries-employees Cost centre
Employer Contribution Superannuation Cost centre
Vehicle Maintenance - Petrol Personnel number
Employer Contribution to GSLI Cost centre
Reagrding C,F,K,Q
this is maintanin in symbolic account
this should be maintained according to ur client requriement how the each line iten should be get posted in FI
Thanks & regards
Vikram.n -
Execution takes time for the report in Application
I have developed a report for payroll runresult.Its execution time is 3 minutes,but when i run in application it takes half an hour
The query i use is...
SELECT round((sum(nvl(DECODE(PET.element_name,'Basic Salary',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'House Rent Allowance',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'Transport Allowance',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'Petrol Allowance',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'Vehicle Allowance',ROUND(prrv.result_value,3),0),0)) +
sum(nvl(DECODE(PET.element_name,'Additional HRA',ROUND(prrv.result_value,3),0),0)) +
sum(nvl(DECODE(PET.element_name,'Other Allowance',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'Carried Balance',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'Mobile Allowance',ROUND(prrv.result_value,3),0),0)) +
sum(nvl(DECODE(PET.element_name,'Fixed Over Time',ROUND(prrv.result_value,3),0),0)) +
sum(nvl(DECODE(PET.element_name,'Rent Deduction',ROUND(prrv.result_value,3),0),0)) -
sum(nvl(DECODE(PET.element_name,'Vehicle Allowance Deducted',ROUND(prrv.result_value,3),0),0)) -
sum(nvl(DECODE(PET.element_name,'HRA Deducted',ROUND(prrv.result_value,3),0),0)) -
sum(nvl(DECODE(PET.element_name,'Rent Deduction',ROUND(prrv.result_value,3),0),0)) -
sum(nvl(DECODE(PET.element_name,'Insurance Deduction',ROUND(prrv.result_value,3),0),0)) +
sum(nvl(DECODE(PET.element_name,'Medical Insurance',ROUND(prrv.result_value,3),0),0)) +
sum(nvl(DECODE(PET.element_name,'Family Passage Allowance',ROUND(prrv.result_value,3),0),0)) +
sum(nvl(DECODE(PET.element_name,'Salik Allowance',ROUND(prrv.result_value,3),0),0)) -
sum(nvl(DECODE(PET.element_name,'Family Insurance Deduction',ROUND(prrv.result_value,3),0),0)) +
sum(nvl(DECODE(PET.element_name,'Fixed Incentive',ROUND(prrv.result_value,3),0),0)) +
sum(nvl(DECODE(PET.element_name,'Company Accomodation Provided',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Mess Deduction',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'Normal Overtime',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'Special Overtime',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'Telephone Allowance',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'Other Allowance',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'Other Earnings',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Other Deductions',ROUND(prrv.result_value,3),0),0)) -
sum(nvl(DECODE(PET.element_name,'Salary Advance Recovery',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Air Ticket Refund',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Vehicle Fines and Charges',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Abroad Emergency Leave',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Abscond Leave',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Air Fare Paid',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Recovery Carried Balance',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Hajj Leave',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Local Leave',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Sick Leave Deduction',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Sick Leave Without certificate',ROUND(prrv.result_value,3),0),0))-
sum(nvl(DECODE(PET.element_name,'Round Off Deduction',ROUND(prrv.result_value,3),0),0))+
sum(nvl(DECODE(PET.element_name,'Round Off Earnings',ROUND(prrv.result_value,3),0),0))),0)Net_Salary,papf.national_identifier groupcode,papf.FULL_NAME,paav.effective_date,
haout.name costcentre,pg.name grade, pj.name designation ,paaf.ASSIGNMENT_NUMBER employee_number,decode(pop.org_payment_method_name,'RI_CASH','C','B')Payment
FROM pay_run_results_v prrv,pay_run_results prr,pay_assignment_actions paa,per_all_assignments_f paaf,per_all_people_f papf,hr_all_organization_units_tl haout,
per_grades pg, per_jobs pj,pay_assignment_actions_v paav,pay_personal_payment_methods_f ppp,pay_all_payrolls_f pap,pay_payroll_actions ppa,
pay_org_payment_methods_f_tl pop,pay_element_types_f PET
WHERE --prrv.assignment_action_id = 49449 and
ppp.assignment_id(+) = paa.assignment_id
AND pop.org_payment_method_id(+) = ppp.org_payment_method_id AND
paa.ASSIGNMENT_ACTION_ID=prrv.ASSIGNMENT_ACTION_ID and paaf.ASSIGNMENT_ID=paa.ASSIGNMENT_ID
and haout.organization_id=paaf.ORGANIZATION_ID
and papf.EMPLOYEE_NUMBER=paaf.ASSIGNMENT_NUMBER
AND prrv.run_result_id = prr.run_result_id
AND ppa.effective_date BETWEEN pet.effective_start_date
AND pet.effective_end_date
AND prr.element_type_id = pet.element_type_id
and prrv.CLASSIFICATION_NAME not like 'Info%'
-- and prrv.element_name not like 'Gross Salary%'
-- and prrv.element_name not like 'Annual%'
and pj.job_id(+)=paaf.job_id
and haout.name=nvl(:P_Dept,haout.name)
and ppa.PAYROLL_ACTION_ID=paa.PAYROLL_ACTION_ID
and pap.PAYROLL_ID=ppa.PAYROLL_ID
and paav.ASSIGNMENT_ID=paaf.ASSIGNMENT_ID
and paav.ASSIGNMENT_ACTION_ID=paa.ASSIGNMENT_ACTION_ID
and pap.PAYROLL_NAME=NVL(:P_PAYROLL_NAME,pap.PAYROLL_NAME)
--and papf.national_identifier = 03917
and paav.effective_date >= TO_DATE ('01-' || :p_start_date, 'DD-MON-YYYY')
AND paav.effective_date <= LAST_DAY (TO_DATE ('01-' || :p_start_date, 'DD-MON-YYYY'))
-- and paav.DATE_EARNED=to_char(:p_date,'DD-MON-YYYY')
and pg.grade_id(+)=paaf.grade_id group by papf.national_identifier,papf.FULL_NAME,paav.effective_date,
haout.name ,pg.name , pj.name,paaf.ASSIGNMENT_NUMBER,pop.org_payment_method_name,papf.employee_number
Cant analyse where it takes time...
Regards,
MeraI don't think that the "SUM" structure in the SELECT makes a difference in performance (And DO NOT use PL/SQL for this!) And as long as you SUM most PET.element_name values you do not need to filter by them.
But, of course, the solution of "Sven W." would make the code MUCH nicer (took me a while to get it) and the "format" of the join conditions would take anyone ages to maintain that code!
But your problem is that the execution differs massively right?
Do you do the same thing? E.g. bind variables in the interactive part? Do the variables have the same value?
Do you filter on the other variables like "P_DEPT" etc. ?
"and haout.name=nvl(:P_Dept,haout.name)"
The good thing is that you have an execution which makes you happy so you need to compare the SQL and the execution for both. Somewhere must be a difference. (Is the result the same by the way (just in case your parameters differ)?)
If the results and parameters are the same, then do you not work with parameters in the "interactive" test and ORACLE is choosing a different execution plan as it knows more about your question. If that's the case, try to hint the query so that it's using the desired execution plan when you work with parameters.
And how did you get that "execution plan" it's missing so much data and it's not formated. (put around it and check in "Preview" if it looks as desired)
-- andy
Maybe you are looking for
-
Error while adding condition Imports PO
Dear Sir, We want add Freight charges and Custom Clearing Charges in Imports PO as Misc. Charges in condition ZMIS. But we try to add these as 3 % it gives following error Provision account key missing for condition type ZMIS in schema ZHILI1 Message
-
Billing Qty in Third party sales
Hi , I am MM person , executing a Cycle for third party Sales. I have query regarding Item category , in std SAP Billing relevance field value for Item category TAS is set as F ... what does it mean ? What if i set it to B , what would be difference
-
How to hide. textInput in UIX file....
Hi, I need to hide.. textInput in the UIX file... is their any way to do it! following is the part of UIX file, in which i just need to hide the textInput <cellFormat> <contents> <textInput name="${uix.data.constants.RESPONSIBILITY_PARAM}" columns="4
-
How to map a custom enum list to a custom form property in an extended incident class
Hi, I'm struggeling to understand how to map a custom enum list to a custom form property in an extended incident class. Here's what i want to have happen: I am going to publish a request offering on my SMPortal for allowing users to submit basic IT
-
Validate and block vendor master while creating or changing vendor master
Hi, I need to validate the vendor master country against a ztable which has list of restricted countries and block the vendor (lfb1-sperr = 'x posting block') if the country is found in ztable. This check should happen while creation or change