/4xx wage type error in Payroll Reconciliation Report - wta C941
We recently updated our 6.04 system to SP74. Now when we run a Payroll Reconciliation Report with wage type application C941, we get a hard error message as follows: "You must include the corresponding /4XX wage type". Also same error on CCW2 and TAXT wta.
I have checked table VC_596A_F and it has entries for Y401 - Y406, with corresponding entries for /401 through /406 for all the listed wta's above.
Any thoughts on what I could check next to find this problem solution? Any help would be greatly appreciated.
David Denman
We recently updated our 6.04 system to SP74. Now when we run a Payroll Reconciliation Report with wage type application C941, we get a hard error message as follows: "You must include the corresponding /4XX wage type". Also same error on CCW2 and TAXT wta.
I have checked table VC_596A_F and it has entries for Y401 - Y406, with corresponding entries for /401 through /406 for all the listed wta's above.
Any thoughts on what I could check next to find this problem solution? Any help would be greatly appreciated.
David Denman
Similar Messages
-
Payroll Reconciliation Report - HR ABAP --- Urgent
Hi Guys,
I am having a doubt regarding a standard report very commonly used in HR Reporting in SAP.
How does it selects the Payroll Results from the cluster ? Based on which date ...?
Is it Check Date/Payment date or some other date ?
Actually I have a requirement where i need to fetch the amount for a wagetype.
In this I need to fetch the values of that wage type based on the check date, i.e. when the company has paid the amount to the person.
I have to fetch the amount of this wage type for all the payroll runs :
1 - Regular
2 - Retro.
3 - Offcycle.
I have used the Payroll Reconciliation Report and exporting the final total table which has all the results for the wage type selected on the selection screen for the person between a particular start date and end date.
But I want to be sure that this way I will get the accurate results.
If anyone has any idea or know any link to follow please help me out.Hi ,
sample code..
LOOP AT fp_i_final INTO l_wa_final.
FORM read_rgdir USING fp_v_pernr TYPE persno
CHANGING fp_i_rgdir TYPE ty_t_rgdir.
fp_i_errorlog TYPE ty_t_errorlog.
*-- Local Declaration
DATA: l_wa_errorlog TYPE ty_errorlog. " Errorlog Work Area
*----> FM for Read routines for cluster CD
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
persnr = fp_v_pernr
TABLES
in_rgdir = fp_i_rgdir
EXCEPTIONS
no_record_found = 0
OTHERS = 0.
*---> Cluster Directory details for Payroll
*---> Results is initial for perticular employee then continue .
IF l_i_rgdir IS INITIAL.
CONTINUE.
ENDIF.
*----> Off-cycle dates
IF cb_ocy NE l_c_x.
ELSE.
*---> Off-cycle dates
IF s_bondt-low IS NOT INITIAL AND
s_bondt-high IS NOT INITIAL .
DELETE l_i_rgdir WHERE fpbeg LT s_bondt-low OR
fpend GT s_bondt-high.
ENDIF.
ENDIF.
*----> Check the ARRRES check box
IF cb_arr = l_c_x.
*---> Delete the cluster directory details from check date and check the low date.
IF NOT s_paydt-low IS INITIAL.
DELETE l_i_rgdir WHERE paydt LT s_paydt-low .
ENDIF.
*---> Delete the cluster directory details from check date and check the high and low dates.
IF NOT s_paydt-low IS INITIAL AND
NOT s_paydt-high IS INITIAL.
DELETE l_i_rgdir WHERE paydt LT s_paydt-low OR
paydt GT s_paydt-high .
ENDIF.
ENDIF.
*-- Get the Payroll details for all Personnel Numbers entered
*-- on Selection Screen
LOOP AT l_i_rgdir INTO l_wa_rgdir.
*---> Check for the flag
IF l_wa_rgdir-srtza NE l_c_p AND
l_wa_rgdir-srtza NE l_c_o .
*----> Sub-Routine to get the Payroll results into the
*----> Payroll RESULTS Table
*-- Local Declaration
DATA: l_wa_errorlog TYPE ty_errorlog. " Errorlog Work Area
*----> FM to get Payroll Results table
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
EXPORTING
employeenumber = fp_v_pernr
sequencenumber = fp_v_seqnr
read_only_international = c_x
CHANGING
payroll_result = fp_i_payresult
EXCEPTIONS
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
error_reading_archive = 8
error_reading_relid = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
INTO l_wa_errorlog-line.
*-- Populate Errorlog Int table
APPEND l_wa_errorlog TO fp_i_errorlog.
CLEAR l_wa_errorlog.
ENDIF.
*----> Check the check boxs are either ARRRS,Deductions are not taken and Off-cycle.
IF ( cb_arr = l_c_x AND cb_ded = l_c_x AND cb_ocy = l_c_x ) OR
( cb_arr = l_c_x AND cb_ocy = l_c_x ) OR ( cb_ded = l_c_x AND cb_ocy = l_c_x ).
*----> Check for the Normal Run, Retroactive run and off-cycle run.
*---> Check the Normal run in pc_payresult
IF ( l_wa_rgdir-fpper EQ l_wa_rgdir-inper AND
l_wa_rgdir-ocrsn IS INITIAL AND l_wa_rgdir-inocr IS INITIAL ) OR
*----> Check the Retroactive run pc_payresult
( ( l_wa_rgdir-fpper NE l_wa_rgdir-inper ) AND
( l_wa_rgdir-ocrsn IS INITIAL ) AND ( l_wa_rgdir-inocr IS INITIAL ) ) OR
*----> Check the Off-cycle run pc_payresult
( ( l_wa_rgdir-fpper NE l_wa_rgdir-inper ) AND
( l_wa_rgdir-ocrsn IS NOT INITIAL ) OR ( l_wa_rgdir-inocr IS NOT INITIAL ) ).
*---> Get the Amount for particular Wagetype based on Wagetype
*---> entered on selection screen
CLEAR l_wa_lgart.
LOOP AT fp_p_lgart INTO l_wa_lgart.
SORT fp_l_i_payresult-inter-rt BY lgart.
CLEAR l_wa_rt.
*---> Read the rt cluster results based on the wage type
LOOP AT fp_l_i_payresult-inter-rt INTO l_wa_rt WHERE lgart = l_wa_lgart-lgart.
l_wa_final-betrg = l_wa_rt-betrg.
l_wa_final-lgart = l_wa_lgart-lgart.
*---> Read the fp_i_vendor internal table based on wage type and
*---> append the lifnr and ernam value to final internal table.
SORT fp_i_vendor BY lgart.
CLEAR l_wa_vendor.
READ TABLE fp_i_vendor INTO l_wa_vendor WITH KEY lgart = l_wa_lgart-lgart BINARY SEARCH.
IF sy-subrc EQ 0.
l_wa_final-lifnr = l_wa_vendor-lifnr.
l_wa_final-crenr = l_wa_vendor-ernam.
ENDIF.
l_v_lifnr = l_wa_vendor-lifnr.
l_v_crenr = l_wa_vendor-ernam.
ENDIF.
l_wa_final-lifnr = l_v_lifnr.
l_wa_final-crenr = l_v_crenr.
CLEAR : l_v_crenr,l_v_lifnr.
APPEND l_wa_final TO i_final1.
*---> Modify the tax authority to final internal table .
SORT fp_l_i_payresult-nat-tcrt BY lgart.
CLEAR l_wa_tcrt.
*---> Read the tcrt cluster results based on the wage type and
*---> Get the tax id and tax authority from tcrt cluster.
READ TABLE fp_l_i_payresult-nat-tcrt INTO l_wa_tcrt
WITH KEY lgart = l_wa_final-lgart BINARY SEARCH.
IF sy-subrc = 0.
READ TABLE i_final1 INTO l_wa_final WITH KEY lgart = l_wa_tcrt-lgart."l_wa_final-lgart.
IF sy-subrc = 0.
l_wa_final-txcmp = l_wa_tcrt-txcmp.
l_wa_final-taxau = l_wa_tcrt-taxau.
MODIFY i_final1 FROM l_wa_final INDEX sy-tabix.
ENDIF.
ENDIF.
ENDLOOP.
*---Crt
SORT fp_l_i_payresult-inter-crt BY lgart.
CLEAR l_wa_crt.
*---> Read the crt cluster results based on the wage type
LOOP AT fp_l_i_payresult-inter-crt INTO l_wa_crt
WHERE lgart = l_wa_lgart-lgart.
l_wa_final-betrg = l_wa_crt-betrg.
l_wa_final-lgart = l_wa_lgart-lgart.
IF ( l_wa_crt-cumty = l_c_y ) OR ( l_wa_crt-cumty = l_c_k )
OR ( l_wa_crt-cumty = l_c_d ).
l_wa_final-ytd = l_wa_crt-betrg.
ELSEIF
( l_wa_crt-cumty = l_c_f ) OR ( l_wa_crt-cumty = l_c_m ).
l_wa_final-mtd = l_wa_crt-betrg.
ELSEIF
( l_wa_crt-cumty = l_c_h ) OR ( l_wa_crt-cumty = l_c_q ).
l_wa_final-qtd = l_wa_crt-betrg.
ENDIF.
SORT fp_i_vendor BY lgart.
CLEAR l_wa_vendor.
READ TABLE fp_i_vendor INTO l_wa_vendor WITH KEY lgart = l_wa_lgart-lgart BINARY SEARCH.
IF sy-subrc EQ 0.
l_wa_final-lifnr = l_wa_vendor-lifnr.
l_wa_final-crenr = l_wa_vendor-ernam.
ENDIF.
l_v_lifnr = l_wa_vendor-lifnr.
l_v_crenr = l_wa_vendor-ernam.
ENDIF.
l_wa_final-lifnr = l_v_lifnr.
l_wa_final-crenr = l_v_crenr.
CLEAR : l_v_crenr,l_v_lifnr.
APPEND l_wa_final TO i_final1 .
*---> Modify the tax authority to final internal table .
SORT fp_l_i_payresult-nat-tcrt BY lgart.
CLEAR l_wa_tcrt.
*---> Read the tcrt cluster results based on the wage type and
*---> Get the tax id and tax authority from tcrt cluster.
READ TABLE fp_l_i_payresult-nat-tcrt INTO l_wa_tcrt
WITH KEY lgart = l_wa_final-lgart BINARY SEARCH.
IF sy-subrc = 0.
READ TABLE i_final1 INTO l_wa_final WITH KEY lgart = l_wa_tcrt-lgart."l_wa_final-lgart.
IF sy-subrc = 0.
l_wa_final-txcmp = l_wa_tcrt-txcmp.
l_wa_final-taxau = l_wa_tcrt-taxau.
MODIFY i_final1 FROM l_wa_final INDEX sy-tabix.
ENDIF.
ENDIF.
CLEAR : l_wa_crt.
ENDLOOP.
*---DDNTK
SORT fp_l_i_payresult-inter-ddntk BY lgart.
CLEAR l_wa_ddntk.
*---> Read the ddntk cluster results based on the wage type
LOOP AT fp_l_i_payresult-inter-ddntk INTO l_wa_ddntk
WHERE lgart = l_wa_lgart-lgart .
l_wa_final-betrg = l_wa_ddntk-betrg.
l_wa_final-lgart = l_wa_lgart-lgart.
*---> Read the fp_i_vendor internal table based on wage type and
*---> append the lifnr and ernam value to final internal table.
SORT fp_i_vendor BY lgart.
READ TABLE fp_i_vendor INTO l_wa_vendor WITH KEY lgart = l_wa_lgart-lgart BINARY SEARCH.
IF sy-subrc EQ 0.
l_wa_final-lifnr = l_wa_vendor-lifnr.
l_wa_final-crenr = l_wa_vendor-ernam.
ENDIF.
l_v_lifnr = l_wa_vendor-lifnr.
l_v_crenr = l_wa_vendor-ernam.
ENDIF.
l_wa_final-lifnr = l_v_lifnr.
l_wa_final-crenr = l_v_crenr.
CLEAR : l_v_crenr,l_v_lifnr.
APPEND l_wa_final TO i_final1 .
**---> Modify the tax authority to final internal table .
SORT fp_l_i_payresult-nat-tcrt BY lgart.
CLEAR l_wa_tcrt.
*---> Read the tcrt cluster results based on the wage type and
*---> Get the tax id and tax authority from tcrt cluster.
READ TABLE fp_l_i_payresult-nat-tcrt INTO l_wa_tcrt
WITH KEY lgart = l_wa_final-lgart BINARY SEARCH.
IF sy-subrc = 0.
READ TABLE i_final1 INTO l_wa_final WITH KEY lgart = l_wa_tcrt-lgart."l_wa_final-lgart.
IF sy-subrc = 0.
l_wa_final-txcmp = l_wa_tcrt-txcmp.
l_wa_final-taxau = l_wa_tcrt-taxau.
MODIFY i_final1 FROM l_wa_final INDEX sy-tabix.
ENDIF.
ENDIF.
ENDLOOP.
*---ARRRS
SORT fp_l_i_payresult-inter-arrrs BY lgart.
CLEAR l_wa_arrrs.
*---> Read the arrrs cluster results based on the wage type
LOOP AT fp_l_i_payresult-inter-arrrs INTO l_wa_arrrs
WHERE lgart = l_wa_lgart-lgart .
l_wa_final-betrg = l_wa_arrrs-betrg.
l_wa_final-lgart = l_wa_lgart-lgart.
SORT fp_i_vendor BY lgart.
CLEAR l_wa_vendor.
READ TABLE fp_i_vendor INTO l_wa_vendor WITH KEY lgart = l_wa_lgart-lgart BINARY SEARCH.
IF sy-subrc EQ 0.
l_wa_final-lifnr = l_wa_vendor-lifnr.
l_wa_final-crenr = l_wa_vendor-ernam.
ENDIF.
l_v_lifnr = l_wa_vendor-lifnr.
l_v_crenr = l_wa_vendor-ernam.
ENDIF.
l_wa_final-lifnr = l_v_lifnr.
l_wa_final-crenr = l_v_crenr.
CLEAR : l_v_crenr,l_v_lifnr.
APPEND l_wa_final TO i_final1 .
**---> Modify the tax authority to final internal table .
SORT fp_l_i_payresult-nat-tcrt BY lgart.
CLEAR l_wa_tcrt.
*---> Read the tcrt cluster results based on the wage type and
*---> Get the tax id and tax authority from tcrt cluster.
READ TABLE fp_l_i_payresult-nat-tcrt INTO l_wa_tcrt
WITH KEY lgart = l_wa_final-lgart BINARY SEARCH.
IF sy-subrc = 0.
READ TABLE i_final1 INTO l_wa_final WITH KEY lgart = l_wa_tcrt-lgart."l_wa_final-lgart.
IF sy-subrc = 0.
l_wa_final-txcmp = l_wa_tcrt-txcmp.
l_wa_final-taxau = l_wa_tcrt-taxau.
MODIFY i_final1 FROM l_wa_final INDEX sy-tabix.
ENDIF.
ENDIF.
ENDLOOP.
ENDLOOP.
ENDIF.
ENDLOOP.
**---> Cluster Directory details for Payroll Results is initial
IF l_i_rgdir IS INITIAL.
MESSAGE i393 . " no record found for the selection criteria
LEAVE LIST-PROCESSING .
ENDIF.
*---> Final internal table details for Payroll Results is initial
IF i_final1 IS INITIAL.
MESSAGE i393 . " no record found for the selection criteria
LEAVE LIST-PROCESSING .
ENDIF.
If u have any further clarification i will send one sample program..
Navin.. -
What are the different types of Wage types for Indian Payroll...??
Dear Frnds,
What are the different types of Wage types for Indian Payroll that we have to configure it...?? and please list wage types that we have to configure it for different types of TAX and Allowances in India payroll.
And also please list Info types numbers for different types of TAX and Allowances.
Many thanks in advance.
Regards
Ahmed.for the list of the wage types you can check V_512W_D for country grouping 40 Inida
for Tax related info please search the forum or search google you will get lot of inputs -
Hi Experts,
Can you please resolve this:
1) Payroll was run for pay-period 12.2008 (2008.12.01 - 2008.12.31)
FI Posting completed and Net pay paid out via check too.
2) This payroll of pp 12.2008 was reversed on 9thJan 2009. through Off-Cycle
3) HR FI Financial was processed and all necessary reversals for the reversed off cycle payroll was processed too.
Issue: When executing the Payroll Reconciliation Report, it is including the reversals from the last payroll of Dec 2008 but should not, as the reversals were from a 2008 period and should not be on a 2009 Report.
Thanks And Regards,
Somdeb Banerjee.Hi Sikindar,
In the payroll reconciliation report:
In one variant i am giving period selection i.e. pp 01.2009
In another variant I am giving date selection i.e. 2009.01.01 - 2009.01.31
In both the cases the report is pulling data for the voided result of 2008. However If I select and check 'Process Last Result Only' in the selection screen, the result is coming fine i.e. the voided result of 2008 is not showing up.
However my client says that she needs to run this report on a quarterly basis by. So Pay period will not work to run this report. Also if 'Process Last Result Only' is checked, then the report might not pick the retro's.
Thanks And Regards,
Somdeb banerjee. -
Do we need to create CPF Deduction Wage type for Singapore Payroll
Do we need to create CPF Deduction Wage type for Singapore Payroll?
Hi Vijay Kumar ,
CPF related technical wage types for Singapore Payroll are already there as per SAP standard:-
Check in table V_52D7_B
u can also check the path in SPRO
Payroll singapore : Wage Types >Processing Classes, Evaluation Classes, Cumulations>Check technical wage types for CPF -
Magnetic Media is not reconciling with Payroll Reconciliation Report..
Hello Team
Can anyone help me how to proceed/what to look at if Magnetic Media is not reconciling with Payroll Reconciliation Report..
Any insight into this will be highly appreciable.
Regards
RaspreetHi Charlene,
The Recommended way to Reconcile you tax fomrs is as follows.
1. Take the actual 941's submitted to authority.
2. Run 941 for all Quarters using SAP Tax reporter and Reconciliation report 941 application.
3. Run W-2 in Tax reporter and take copy of W-3 and 6559
4. Run Reconciliation report using W-2 Application.
Now first match the all 941 totals for all Taxable and Taxes with W-3 total. Then match your W-3 with 6559.
Remember the totals on your final report has to match by penny to penny. If there are any 941-C take them also into consideration.
I hope this helps.
Arti -
Calculation of Fed and State Taxes for one time payment wage type in US Payroll
Hi SAP Py Gurus,
I'm new to US taxes.
Configured a Tuition Reimb WT 1245 for IT 15, need to Test it now to check how and Fed Tax,State Tax is calculated on this Wage type,
need to check where this can be located in payroll log in simulation run.
Can you please explain the calculation step by step.
Thanks,
DiyaJust came back from vacation and saw your thread (which should have been posted in the HRP HCM Payroll North America forum). We applied SAPKE60061 in late November and the Canadian YE Note in mid-December and didn't come across that problem, but then again we don't have any Quebec employees.
What version are you on ?
What HRSP did you apply ? -
Hi,
i have one problem when i am coping from Model wage type i am getting one error in yellow msg,in table T539j&t539a like Wage type is not a key:please maintain manualy.
Can U any body help me how should i maintain in that tables.
Thanks in AdvanceI think...............
In this two tables we have to maintain manually.
V_T539A Default wage types for base pay
V_T539J Base wage type Valuation
The wage type which your copying is maintained in above two tables. So new wage type can't be assign in these tables. -
Other Allowance Wage Type Creation-Indian Payroll,
Dear Experts,
Client wants me to create a new other allowance (Copy of 1018) wage type, assign to 0008 infotype and then to G/L Accounts without any disturbanes to existing Configuration.
The process i am planning is to suggest client is to configure entire payroll for the new wage type.
Please let me know if you could share better ideas than this as it seems to be a critical process.
regards,
SurekhaDear Experts,
Client wants me to create a new other allowance (Copy of 1018) wage type, assign to 0008 infotype and then to G/L Accounts without any disturbanes to existing Configuration.
The process i am planning is to suggest client is to configure entire payroll for the new wage type.
Please let me know if you could share better ideas than this as it seems to be a critical process.
regards,
Surekha -
Unable to read the wage type amount in payroll report output...
Hi all,
In the program below I am not able to see the car amount incurred by the office in the output, please find the error....
Regards
john
*& Report ZHR_PY_REPORT1 *
REPORT ZHR_PY_REPORT1 .
TABLES
TABLES : PERNR.
INFOTYPES
INFOTYPES : 0000,
0001,
0002,
0006,
0105.
STRUCTURES
TYPES : BEGIN OF T_FINAL,
PERNR TYPE PERNR_D,
STAT2 TYPE STAT2,
BUKRS TYPE BUKRS,
PLANS TYPE PLANS,
ORGEH TYPE ORGEH,
ABKRS TYPE ABKRS,
VORNA TYPE VORNA,
NACHN TYPE NACHN,
GBDAT TYPE GBDAT,
STRAS TYPE STRAS,
ORT01 TYPE ORT01,
PSTLZ TYPE PSTLZ,
MAILID TYPE CHAR255,
CARAT TYPE CHAR15,
END OF T_FINAL.
INTERNAL TABLES
DATA : IT_FINAL TYPE STANDARD TABLE OF T_FINAL.
WORK AREAS
DATA : WA_FINAL TYPE T_FINAL.
PARAMETER : P_DOWN AS CHECKBOX.
START-OF-SELECTION.
GET PERNR.
*SUBROUTINE TO FETCH DATA FROM INFOTYPES
PERFORM F_FETCH_DATA_FROM_INFTY.
END-OF-SELECTION.
*SUBROUTINE TO DISPLAY DATA
PERFORM F_DISPLAY_DATA.
*& Form F_FETCH_DATA_FROM_INFTY
text
FORM F_FETCH_DATA_FROM_INFTY .
RP_PROVIDE_FROM_LAST P0000 SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND EQ '1'.
WA_FINAL-PERNR = P0000-PERNR.
WA_FINAL-STAT2 = P0000-STAT2.
ENDIF.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND EQ '1'.
WA_FINAL-BUKRS = P0001-BUKRS.
WA_FINAL-PLANS = P0001-PLANS.
ENDIF.
RP_PROVIDE_FROM_LAST P0002 SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND EQ '1'.
WA_FINAL-VORNA = P0002-VORNA.
WA_FINAL-NACHN = P0002-NACHN.
ENDIF.
RP_PROVIDE_FROM_LAST P0006 SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND EQ '1'.
WA_FINAL-STRAS = P0006-STRAS.
WA_FINAL-ORT01 = P0006-ORT01.
ENDIF.
RP_PROVIDE_FROM_LAST P0105 '0010' PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND EQ '1'.
WA_FINAL-MAILID = P0105-USRID_LONG.
ENDIF.
*SUBROUTINE TO FETCH EMPLOYEE PAYROLL RESULTS
PERFORM F_FETCH_PAYROLL_DATA.
APPEND WA_FINAL TO IT_FINAL.
CLEAR WA_FINAL.
ENDFORM. " F_FETCH_DATA_FROM_INFTY
*& Form F_DISPLAY_DATA
text
FORM F_DISPLAY_DATA .
LOOP AT IT_FINAL INTO WA_FINAL.
AT FIRST.
WRITE : / 'EMP.NO',
10 'FIRST NAME',
20 'COMPANY CODE'.
ENDAT.
WRITE : / WA_FINAL-PERNR,
10 WA_FINAL-VORNA,
20 WA_FINAL-BUKRS,
30 WA_FINAL-CARAT.
ENDLOOP.
ENDFORM. " F_DISPLAY_DATA
*& Form F_FETCH_PAYROLL_DATA
text
FORM F_FETCH_PAYROLL_DATA .
DATA : W_MOLGA TYPE MOLGA,
W_SEQNR TYPE CDSEQ,
W_RELID TYPE RELID_PCL2.
DATA : IT_RGDIR TYPE STANDARD TABLE OF PC261,
IT_RESULT TYPE PAY99_RESULT.
DATA : WA_RT TYPE PC207.
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
PERSNR = P0000-PERNR
IMPORTING
MOLGA = W_MOLGA
TABLES
IN_RGDIR = IT_RGDIR
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS = 2.
IF SY-SUBRC EQ 0.
CALL FUNCTION 'CD_READ_LAST'
EXPORTING
BEGIN_DATE = PN-BEGDA
END_DATE = PN-ENDDA
IMPORTING
OUT_SEQNR = W_SEQNR
TABLES
RGDIR = IT_RGDIR
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS = 2.
IF SY-SUBRC EQ 0.
SELECT SINGLE RELID FROM T500L INTO W_RELID WHERE MOLGA = W_MOLGA
IF SY-SUBRC EQ 0.
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
EXPORTING
CLUSTERID = w_relid
EMPLOYEENUMBER = P0000-PERNR
SEQUENCENUMBER = W_SEQNR
READ_ONLY_INTERNATIONAL = 'X'
CHANGING
PAYROLL_RESULT = IT_RESULT
EXCEPTIONS
ILLEGAL_ISOCODE_OR_CLUSTERID = 1
ERROR_GENERATING_IMPORT = 2
IMPORT_MISMATCH_ERROR = 3
SUBPOOL_DIR_FULL = 4
NO_READ_AUTHORITY = 5
NO_RECORD_FOUND = 6
VERSIONS_DO_NOT_MATCH = 7
OTHERS = 8.
IF SY-SUBRC EQ 0.
LOOP AT IT_RESULT-INTER-RT INTO WA_RT.
IF WA_RT-LGART EQ 'M810'.
WA_FINAL-CARAT = WA_RT-BETRG.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " F_FETCH_PAYROLL_DATAHi all,
In the program below I am not able to see the car amount incurred by the office in the output, please find the error....
Regards
john
*& Report ZHR_PY_REPORT1 *
REPORT ZHR_PY_REPORT1 .
TABLES
TABLES : PERNR.
INFOTYPES
INFOTYPES : 0000,
0001,
0002,
0006,
0105.
STRUCTURES
TYPES : BEGIN OF T_FINAL,
PERNR TYPE PERNR_D,
STAT2 TYPE STAT2,
BUKRS TYPE BUKRS,
PLANS TYPE PLANS,
ORGEH TYPE ORGEH,
ABKRS TYPE ABKRS,
VORNA TYPE VORNA,
NACHN TYPE NACHN,
GBDAT TYPE GBDAT,
STRAS TYPE STRAS,
ORT01 TYPE ORT01,
PSTLZ TYPE PSTLZ,
MAILID TYPE CHAR255,
CARAT TYPE CHAR15,
END OF T_FINAL.
INTERNAL TABLES
DATA : IT_FINAL TYPE STANDARD TABLE OF T_FINAL.
WORK AREAS
DATA : WA_FINAL TYPE T_FINAL.
PARAMETER : P_DOWN AS CHECKBOX.
START-OF-SELECTION.
GET PERNR.
*SUBROUTINE TO FETCH DATA FROM INFOTYPES
PERFORM F_FETCH_DATA_FROM_INFTY.
END-OF-SELECTION.
*SUBROUTINE TO DISPLAY DATA
PERFORM F_DISPLAY_DATA.
*& Form F_FETCH_DATA_FROM_INFTY
text
FORM F_FETCH_DATA_FROM_INFTY .
RP_PROVIDE_FROM_LAST P0000 SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND EQ '1'.
WA_FINAL-PERNR = P0000-PERNR.
WA_FINAL-STAT2 = P0000-STAT2.
ENDIF.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND EQ '1'.
WA_FINAL-BUKRS = P0001-BUKRS.
WA_FINAL-PLANS = P0001-PLANS.
ENDIF.
RP_PROVIDE_FROM_LAST P0002 SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND EQ '1'.
WA_FINAL-VORNA = P0002-VORNA.
WA_FINAL-NACHN = P0002-NACHN.
ENDIF.
RP_PROVIDE_FROM_LAST P0006 SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND EQ '1'.
WA_FINAL-STRAS = P0006-STRAS.
WA_FINAL-ORT01 = P0006-ORT01.
ENDIF.
RP_PROVIDE_FROM_LAST P0105 '0010' PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND EQ '1'.
WA_FINAL-MAILID = P0105-USRID_LONG.
ENDIF.
*SUBROUTINE TO FETCH EMPLOYEE PAYROLL RESULTS
PERFORM F_FETCH_PAYROLL_DATA.
APPEND WA_FINAL TO IT_FINAL.
CLEAR WA_FINAL.
ENDFORM. " F_FETCH_DATA_FROM_INFTY
*& Form F_DISPLAY_DATA
text
FORM F_DISPLAY_DATA .
LOOP AT IT_FINAL INTO WA_FINAL.
AT FIRST.
WRITE : / 'EMP.NO',
10 'FIRST NAME',
20 'COMPANY CODE'.
ENDAT.
WRITE : / WA_FINAL-PERNR,
10 WA_FINAL-VORNA,
20 WA_FINAL-BUKRS,
30 WA_FINAL-CARAT.
ENDLOOP.
ENDFORM. " F_DISPLAY_DATA
*& Form F_FETCH_PAYROLL_DATA
text
FORM F_FETCH_PAYROLL_DATA .
DATA : W_MOLGA TYPE MOLGA,
W_SEQNR TYPE CDSEQ,
W_RELID TYPE RELID_PCL2.
DATA : IT_RGDIR TYPE STANDARD TABLE OF PC261,
IT_RESULT TYPE PAY99_RESULT.
DATA : WA_RT TYPE PC207.
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
PERSNR = P0000-PERNR
IMPORTING
MOLGA = W_MOLGA
TABLES
IN_RGDIR = IT_RGDIR
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS = 2.
IF SY-SUBRC EQ 0.
CALL FUNCTION 'CD_READ_LAST'
EXPORTING
BEGIN_DATE = PN-BEGDA
END_DATE = PN-ENDDA
IMPORTING
OUT_SEQNR = W_SEQNR
TABLES
RGDIR = IT_RGDIR
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS = 2.
IF SY-SUBRC EQ 0.
SELECT SINGLE RELID FROM T500L INTO W_RELID WHERE MOLGA = W_MOLGA
IF SY-SUBRC EQ 0.
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
EXPORTING
CLUSTERID = w_relid
EMPLOYEENUMBER = P0000-PERNR
SEQUENCENUMBER = W_SEQNR
READ_ONLY_INTERNATIONAL = 'X'
CHANGING
PAYROLL_RESULT = IT_RESULT
EXCEPTIONS
ILLEGAL_ISOCODE_OR_CLUSTERID = 1
ERROR_GENERATING_IMPORT = 2
IMPORT_MISMATCH_ERROR = 3
SUBPOOL_DIR_FULL = 4
NO_READ_AUTHORITY = 5
NO_RECORD_FOUND = 6
VERSIONS_DO_NOT_MATCH = 7
OTHERS = 8.
IF SY-SUBRC EQ 0.
LOOP AT IT_RESULT-INTER-RT INTO WA_RT.
IF WA_RT-LGART EQ 'M810'.
WA_FINAL-CARAT = WA_RT-BETRG.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " F_FETCH_PAYROLL_DATA -
Hr payroll reconciliation report
Hello All,
i have a Hr reconciliation payroll report and requirement is like
After Payroll Monthly Run, Payroll Admin and FI needs to fetch detail report on employees actual and to be paid monthly earning components. Report will be used to analyze payroll result before confirming final salary payment.
and the output should in alv grid format.
Moderator Message: Refer your Functional specs
Edited by: kishan P on Sep 9, 2010 5:32 PMHello All,
i have a Hr reconciliation payroll report and requirement is like
After Payroll Monthly Run, Payroll Admin and FI needs to fetch detail report on employees actual and to be paid monthly earning components. Report will be used to analyze payroll result before confirming final salary payment.
and the output should in alv grid format.
Moderator Message: Refer your Functional specs
Edited by: kishan P on Sep 9, 2010 5:32 PM -
Hi to all SAP guru,
Greetings for the day,
I had few issue related to wage type while processing payroll, since iam not familiar with payroll, please help me out, I have maintained two wage type for a particular employee group.
1. 1200 regular working day as a time wage type, where it is configured in schema, it is coming automatically.
2. 1001 hourly wage type, which is defined in 0008- basic pay infotype.
When I am processing a payroll the 1200 wage type is coming automatically with the amount, for the days, the employee worked and the wage type 1001 is not displaying in the payroll processing (ie., in the final processing step during payroll simulation)
Here my question is, whether 1001 or 1200 wage is to be displayed in the payroll processing (ie., in the final processing step during payroll simulation), if 1001 has to come in final processing step during payroll simulation, what are the step to be done.
Please throw me a light on this issue.
Thanks in advance for giving a solution for this.
Regards
BabuBabu compare both the wage type config from PM>PA>PY Data............... then tables like V_7INA9, V_512W_B .................... You can also learn wht behind the configurationsss.............
-
Error in off cycle: u have not entered wage types
Hi experts,
when i am trying to run off cycle payroll im getting warning
You have not entered any wage types.
Should payroll be started in this way?
can u plz tell me where im wrong???Hi,
in Off cycle screen for bonus run u will get the window for entering wage types . Please enter the wage types there and start the payroll. or enter wt in IT 267
Regards,
Kapil -
Urgent-change the end date for a existing wage type.
Hi,
Can u pls let us know how to change the end date for a existing wage type.
The current end date is 30.8.2008 and we would like to change to 31.12.9999.
Rgds,Use This report RPCLGV00
The Wage Type Distribution report enables you to display wage types for several payroll periods. It does not take into consideration differences resulting from retroactive payroll. The report shows the current values (number and amount) for each wage type. The report evaluates the payroll records that are marked with update indicator A when the report is run. Subsequent reporting runs may not give the same result if - in the intervening period - retroactive payroll has taken place for the evaluation period. The wage type distribution uses the data from the results table RT for the relevant payroll result. The employees organizational assignment is also evaluated from the payroll result. This data is taken from the Work Center Basic Pay table (WPBP).
The wage type distribution offers you the following options for evaluation:
Individual reporting for a specific personnel number or name.
Totals evaluation without specifying a personnel number or name.
You cannot use wage type distribution to run a report for several countries. You can only select payroll areas from one country for reporting.
Scope of Function
You use the following parameters to determine how the appearance of the wage type statement:
Wage type for evaluation
Enter all wage types that are to be evaluated. If you do not make an entry here, the system selects all wage types. Note that you can only select wage types that occur in the RT table.
Evaluation start date
Evaluation start date and evaluation end date define the evaluation period. Enter the year and payroll period for the start of the evaluation.
Evaluation end date
This parameter delimits the evaluation period. If you do not make an entry here, only the period from the period from the parameter Evaluation start date is evaluated. -
Wage Type is not getting defaulted in it 0008
Dear Sirs,
Just now I have seen the forum on wage type errors.
I am also getting the same error while trying the configuration.
I have checked a lot on forum however none of them seems to work for my issue.
the error is
IndVal of wage type 5800: No entry in table T510 for key '10Z1ZA3MGR 015800' on 09.08.2014
Message no. RP032.
I have checked all table and still the same issues.
Please go through the screen shots and advise me some measures to over come this issue.Dear Sumana,
I suspect some where in your config start date & end date's are wrong because I've seen your total screen shots in all screen shots Date's are delimited so recheck once again are do one thing delete that wage type and re-maintain the wage type effective date from 01.01.1900 to 31.12.9999.
Maybe you are looking for
-
Macbook Air or Pro for College?
With the announcment of the new Macbook Air with all day battery life, faster graphics, and better flashstorage I don't know if I should go with the 13 MBA or the 13 MBP with Retina. I will be a engineering major but I took a private tour at Colorado
-
Error in displaying error message
Hello All, I need to display a warning message in a Sales Order transaction... I am able to do that alright...but the issue is i am using a Z class and I have to display the message "Please enter complete PO number in Header details u2013 Text u2013
-
Installation of GlibcFix-pi22-update-0-x86_64.gz
Hi, what is the correct installation way of installing GlibcFix-pi22-update-0-x86_64.gz ? I did the 2 steps in http://www.cisco.com/web/software/284272933/118126/GlibcFix-pi22-update-0-x86_64.pdf The response of PI is Save the current ADE-OS running
-
ER. about RowInconsistentException: JBO-25014:Another user Changed the Row
there is a default value in a columns. is couses RowInconsistentException: JBO-25014:Another user Changed the Row when we insert then uptede a record. if ADF entity object wizard can take default value from database columns (as default) this error ca
-
Missing mobile web app on reality
I just took over my mom's samsung reality. went to the store and had the number changed, etc. when i try to get on the mobile web app, it simply says "no application." when i go to the "get it now" to download it like the verizon page says to, it can