Professional Documents
Culture Documents
Notas OSS PY-PT 2004
Notas OSS PY-PT 2004
________________________________________________________________________
Number 90320
Version 19 vom 03.09.2002
Status Released for Customer
Set on ,17.03.2004
Language EN
Mastersprache DE
Short text No bank posting of HR/FI-TV payrolls
Responsible SAP AG
Component PY
Payroll
________________________________________________________________________
Long text
Symptom
When you create payment transfer media for payments to employees from HR
or Travel Management, then the standard system does not automatically
perform the corresponding postings.
Neither the 'DME preliminary program' (programs RPCDTAx0 or RPCDTCx0 or
HxxCDTC0 or RPRDTAx0) nor the program for creating the data medium
(programs RFFO*) perform a posting in FI general ledger.
Other terms
RPCDTAA0, RPCDTAB0, RPCDTAC0, RPCDTAD0, RPCDTAE0, RPCDTAF0, RPCDTAG0,
RPCDTAJ0, RPCDTAM0, RPCDTAN0, RPCDTAQ0, RPCDTAR0, RPCDTAS0, RPCDTAV0,
RPCDTAW0, RPCDTAW9, RPCDTAX0, RPCDTCK0, RPCDTCL0, RPCDTCU0, HIDCDTC0,
RPRDTAA0, RPRDTAB0, RPRDTAC0, RPRDTAD0, RPRDTAE0, RPRDTAF0, RPRDTAG0,
RPRDTAGI, RPRDTAJ0, RPRDTAK0, RPRDTAL0, RPRDTAM0, RPRDTAN0, RPRDTAU0,
RPRDTAW0
1. Payroll accounting:
Upon completion of payroll accounting in HR, the 'FI/CO transfer'
creates postings of the type:
After the transfer from FI to CO, all open payables from payroll
accounting are moved to the corresponding payables accounts.
After the FI/CO transfer, all open payables from trip cost
accounting are written to the corresponding payables accounts.
However, trips cost accounting can also transfer via customer/vendor
posting and not via the described expense account posting to FI. In this
case the attached solution for trips cost accounting is not required.
or
4. Exceptions:
However, there are also some exceptional cases in which this posting
is too large to be carried out manually. This is usually the case if
accounting is divided into a very large number of company codes.
Solution
Note:
Note that this is a consulting note. There is no plan at present to
incorporate the function in this form in the standard system.
The report can only be used, if the HR application and financial
accounting (FI/CO) are in the same system and client. A decoupling of HR
and financial accounting to separate systems is not supported by this
consulting solution.
Type 1
Logical database PY
Application F
(As of Release 4.0: Logical database PYF)
c) Texts/Text elements
When you post cashed check files of the bank with program RFEBCK00,
checks are not cleare individually as with customer checks and vendor
checks but a collective posting is performed. If you want to clear HR
checks individually like customer checks and vendor checks, apply the
specified modification in program RFEBCK00. HR checks can only be
cleared individually if program RFPYHR00 performs a posting for each
check respectively (selection parameter 'Summarize checks in one
document' (PAR_VERD) is not selected.
Note:
Only apply this modification in program RFEBCK if you actually require
individual posting of HR checks and if you create a posting in FI for
each check.
If you start the program in the test mode, the system can display the
totals accumulated by the program and the bank clearing accounts
determined. One line of the list created in the test mode corresponds to
a posting in the update run. For this, you can choose from three
different processing modes. Mode 'A' allows online processing of the
posting transaction fields filled by the program, Mode 'E' online
response in the event of errors, while in Mode N, the system does not
allow any user intervention. In the event of an error, the posting is
not carried out and the system outputs the reason for the error in the
form of an error list. By referring to the error list, you can eliminate
the problems that caused the errors and start program RFPYHR00 again.
The program is able to recognize which payables have already been posted
by the program. Program RFPYHR00 does not duplicate the posting of the
same payables as the corresponding payment orders (in table REGUH) are
not assigned a completed indicator.
On the selection screen you can also specify whether the value date
should be assigned to an account. If this is required, it is determined
from the payment date (REGUH-ZALDT) plus the days up to the value date
based on the cumulative amount (Transaction FBZP -> Bank selection ->
Value date).
You are advised to start program RFPYHR00 after you have executed the
payment medium programs, in particular if the check register is updated
(RFFOUS_C).
When the system oerforms the posting, program RFPYHR00 fills the
'Allocation number' field in the line item with the values of the run
date and run ID fields of the payment run. If you implement this program
with the latest version of the cashed checks program (program RFEBCK00,
see Note 88684), the system is able to carry out the required allocation
during automatic clearing.
Valid releases
Software component Release
from to
Other components
PY-XX
Payroll: General Parts
PY-AR
Argentina
PY-AT
Austria
PY-AU
Australia
PY-BE
Belgium
PY-BR
Brazil
PY-CA
Canada
PY-CH
Switzerland
PY-DE
Germany
PY-DK
Denmark
PY-ES
Spain
PY-FR
France
PY-GB
United Kingdom
PY-HK
Hong Kong
PY-ID
Indonesia
PY-IE
Ireland
PY-IT
Italy
PY-JP
Japan
PY-MX
Mexico
PY-MY
Malaysia
PY-NL
Netherlands
PY-NO
Norway
PY-NZ
New Zealand
PY-PH
Philippines
PY-PT
Portugal
PY-SE
Sweden
PY-SG
Singapore
PY-TH
Thailand
PY-TW
Taiwan
PY-US
USA
PY-VE
Venezuela
PY-ZA
South Africa
FI-TV
Business Trip Management
PY-XX-DT
Posting
PY-XX-DME
Preliminary DME
________________________________________________________________________
Note attributes
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120024545 0000081577 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_APPL SAP Application $*
*$ Release 30A w/o Support Packages $*
*$ Release 30B w/o Support Packages $*
*$ Release 30C To SAPKH30C14 $*
*$ Release 30D All Support Package Levels $*
*$ Release 30E To SAPKH30E02 $*
*$ Release 30F All Support Package Levels $*
*$ Release 31G To SAPKH31G13 $*
*$ Release 31H All Support Package Levels $*
*$ Release 300 w/o Support Packages $*
*$ Release 310 w/o Support Packages $*
*$------------------------------------------------------------------$*
*$ Changes/Objects Not Contained in Standard SAP System $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RFCHKL00
*& Object Header PROG RFCHKL00
*&-------------------------------------------------------------------*
*& This object has been generated from an advance correction *
*& attached to a R/3 note. *
*&-------------------------------------------------------------------*
...
ELSE.
SEL_LAUI-SIGN = 'I'.
REFRESH SEL_VBLN. "<<< delete
CLEAR SEL_VBLN. "<<< delete
SEL_VBLN-OPTION = 'EQ'. "<<< delete
SEL_VBLN-SIGN = 'I'. "<<< delete
APPEND SEL_VBLN. "<<< delete
ENDIF.
APPEND SEL_LAUI.
...
...
*&-------------------------------------------------------------------*
*&-------------------------------------------------------------------*
*& Object REPS RFCHKN00
*& Object Header PROG RFCHKN00
*&-------------------------------------------------------------------*
*& This object has been generated from an advance correction *
*& attached to a R/3 note. *
*&-------------------------------------------------------------------*
...
ELSE.
SEL_LAUI-SIGN = 'I'.
* REFRESH SEL_VBLN. "<<< delete
* CLEAR SEL_VBLN. "<<< delete
* SEL_VBLN-OPTION = 'EQ'. "<<< delete
...
...
*&-------------------------------------------------------------------*
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120024545 0000081578 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_APPL SAP Application $*
*$ Release 30A w/o Support Packages $*
*$ Release 30B w/o Support Packages $*
*$ Release 30C To SAPKH30C14 $*
*$ Release 30D All Support Package Levels $*
*$ Release 30E To SAPKH30E02 $*
*$ Release 30F All Support Package Levels $*
*$ Release 31G To SAPKH31G13 $*
*$ Release 31H All Support Package Levels $*
*$ Release 31I Fm SAPKH31I01 $*
*$ Release 40A To SAPKH40A25 $*
*$ Release 40B All Support Package Levels $*
*$ Release 45A All Support Package Levels $*
*$ Release 45B All Support Package Levels $*
*$ Release 300 w/o Support Packages $*
*$ Release 310 w/o Support Packages $*
*$------------------------------------------------------------------$*
*$ Changes/Objects Not Contained in Standard SAP System $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS LFCHKU12
*& Object Header FUGR FCHK
*&-------------------------------------------------------------------*
*& This object has been generated from an advance correction *
*& attached to a R/3 note. *
*&-------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Title: Modification for security *
*&---------------------------------------------------------------------*
...
...
...
*&-------------------------------------------------------------------*
*&-------------------------------------------------------------------*
*& Object REPS RFPYHR00
*& Object Header PROG RFPYHR00
*&-------------------------------------------------------------------*
...
*&---------------------------------------------------------------------*
*& Title: Program to post bank documents of payroll result *
*&---------------------------------------------------------------------*
*---------------------------------------------------------------------*
* Report RFPYHR00 *
*---------------------------------------------------------------------*
TABLES: BKPF,
BKPF_KEY,
DD03P,
PAYR,
REGUH,
T001,
T030B,
T042I,
T042V.
AT SELECTION-SCREEN.
IF ZW_LAUFI+5(1) NE 'P'.
MESSAGE E999(FR) WITH TEXT-007.
ENDIF.
START-OF-SELECTION.
GET REGUH.
CHECK SELECT-OPTIONS.
CHECK ( SY-SUBRC EQ 0
AND NOT BKPF-STBLG IS INITIAL )
OR SY-SUBRC NE 0.
CLEAR REGUH-NAME4.
ENDIF.
END-OF-SELECTION.
* Post ---------------------------------------------------------------*
PERFORM POST_DOCUMENTS TABLES GT_REGUH
GT_SUM_DATA.
*---------------------------------------------------------------------*
* FORM POST_DOCUMENTS *
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
IF PAR_TEST IS INITIAL.
IF PAR_MODE NE 'A' AND PAR_MODE NE 'E'.
PAR_MODE = 'N'.
ENDIF.
L_NAME = SY-UNAME.
CALL FUNCTION 'POSTING_INTERFACE_START'
EXPORTING
I_CLIENT = SY-MANDT
I_FUNCTION = 'C'
I_MODE = PAR_MODE
I_UPDATE = 'S'
I_USER = L_NAME.
LOOP AT PT_SUM_DATA.
IF pt_sum_data-rwbtr EQ 0.
l_msgid = 'F5'.
l_msgty = 'S'.
l_msgno = '097'.
l_msgv1 = space.
l_msgv2 = space.
l_msgv3 = space.
l_msgv4 = space.
PT_SUM_DATA-UKONT = T042I-UKONT.
IF SY-SUBRC NE 0.
L_MSGID = 'FZ'.
L_MSGTY = 'S'.
L_MSGNO = '661'.
L_MSGV1 = PT_SUM_DATA-RZAWE.
L_MSGV2 = PT_SUM_DATA-WAERS.
L_MSGV3 = SPACE.
L_MSGV4 = SPACE.
*---------------------------------------------------------------------*
REFRESH: LT_BLNTAB,
LT_FTPOST,
LT_FTTAX .
CLEAR: LT_BLNTAB,
LT_FTPOST,
LT_FTTAX .
IF T001-BUKRS NE PT_SUM_DATA-ZBUKR.
SELECT SINGLE * FROM T001
WHERE BUKRS EQ PT_SUM_DATA-ZBUKR.
ENDIF.
IF T001-WAERS NE PT_SUM_DATA-WAERS.
WRITE PT_SUM_DATA-RBETR TO LC_FVAL3
CURRENCY T001-WAERS NO-SIGN.
CONDENSE LC_FVAL3 NO-GAPS.
ELSE.
CLEAR LC_FVAL3.
ENDIF.
IF PT_SUM_DATA-ABSBU NE PT_SUM_DATA-ZBUKR.
PERFORM APPEND_FTPOST
TABLES LT_FTPOST
USING 'P' 2: 'RF05A-NEWBK' PT_SUM_DATA-ABSBU.
ENDIF.
*---------------------------------------------------------------------*
* post ---------------------------------------------------------------*
CLEAR SY-SUBRC.
CALL FUNCTION 'POSTING_INTERFACE_DOCUMENT'
EXPORTING
I_TCODE = 'FB01'
IMPORTING
E_MSGID = L_MSGID
E_MSGNO = L_MSGNO
E_MSGTY = L_MSGTY
E_MSGV1 = L_MSGV1
E_MSGV2 = L_MSGV2
E_MSGV3 = L_MSGV3
E_MSGV4 = L_MSGV4
E_SUBRC = L_SUBRC
TABLES
T_BLNTAB = LT_BLNTAB
T_FTPOST = LT_FTPOST
T_FTTAX = LT_FTTAX
EXCEPTIONS
ACCOUNT_MISSING = 1
COMPANY_CODE_MISSING = 2
POSTING_KEY_INVALID = 3
POSTING_KEY_MISSING = 4
RECORD_TYPE_INVALID = 5
TRANSACTION_CODE_INVALID = 6
AMOUNT_FORMAT_ERROR = 7
TOO_MANY_LINE_ITEMS = 8
OTHERS = 9.
*---------------------------------------------------------------------*
ADD SY-SUBRC TO L_SUBRC.
READ TABLE LT_BLNTAB WITH KEY BUKRS = PT_SUM_DATA-ZBUKR.
IF L_SUBRC NE 0 OR SY-SUBRC NE 0.
*--------------------- error occurs ----------------------------------*
PERFORM STORE_ERRMSG USING L_MSGID
L_MSGNO
L_MSGTY
L_MSGV1
L_MSGV2
L_MSGV3
L_MSGV4
CHANGING PT_SUM_DATA.
ELSE.
*--------------------- successfully posting --------------------------*
MOVE-CORRESPONDING LT_BLNTAB TO BKPF_KEY.
PT_SUM_DATA-BELNR = BKPF_KEY-BELNR.
LOOP AT PT_REGUH WHERE ZBUKR = PT_SUM_DATA-ZBUKR
AND ABSBU = PT_SUM_DATA-ABSBU
AND SRTGB = PT_SUM_DATA-SRTGB
AND ZALDT = PT_SUM_DATA-ZALDT
AND HBKID = PT_SUM_DATA-HBKID
AND HKTID = PT_SUM_DATA-HKTID
AND RZAWE = PT_SUM_DATA-RZAWE
AND WAERS = PT_SUM_DATA-WAERS.
IF PAR_VERD IS INITIAL.
CHECK PT_REGUH-VBLNR EQ PT_SUM_DATA-VBLNR.
ENDIF.
PT_REGUH-NAME4 = BKPF_KEY.
PERFORM UPDATE_DB USING PT_REGUH.
MODIFY PT_REGUH.
ENDLOOP.
COMMIT WORK.
ENDIF.
MODIFY PT_SUM_DATA.
ENDLOOP.
*---------------------------------------------------------------------*
ENDFORM.
*---------------------------------------------------------------------*
* FORM APPEND_FTPOST *
*---------------------------------------------------------------------*
FORM APPEND_FTPOST TABLES PT_FTPOST STRUCTURE FTPOST
USING P_STYPE LIKE FTPOST-STYPE
P_COUNT LIKE FTPOST-COUNT
P_FNAM LIKE FTPOST-FNAM
P_FVAL.
APPEND PT_FTPOST.
ENDFORM.
*---------------------------------------------------------------------*
* Form OUTPUT *
*---------------------------------------------------------------------*
FORM OUTPUT TABLES PT_SUM_DATA STRUCTURE GT_SUM_DATA.
WRITE: / SY-ULINE(132).
FORMAT COLOR COL_HEADING.
LOOP AT PT_SUM_DATA.
IF PT_SUM_DATA-XERR IS INITIAL.
FORMAT COLOR COL_NORMAL.
IF PAR_POST IS INITIAL.
*-------------- testing was successfull ------------------------------*
LC_BELNR = TEXT-004.
ELSE.
*-------------- posting was successfull ------------------------------*
LC_BELNR = PT_SUM_DATA-BELNR.
ENDIF.
ELSE.
*-------------- error occurs -----------------------------------------*
FORMAT COLOR COL_NEGATIVE.
LC_BELNR = PT_SUM_DATA-MSGNOID.
IF NOT PT_SUM_DATA-MSGTX IS INITIAL.
READ TABLE LT_ERRTAB WITH KEY MSGNOID = PT_SUM_DATA-MSGNOID.
IF SY-SUBRC NE 0.
LT_ERRTAB-MSGNOID = PT_SUM_DATA-MSGNOID.
LT_ERRTAB-MSGTX = PT_SUM_DATA-MSGTX.
APPEND LT_ERRTAB.
ENDIF.
ENDIF.
ENDIF.
*---------------------------------------------------------------------*
WRITE PT_SUM_DATA-RWBTR TO LC_RWBTR CURRENCY PT_SUM_DATA-WAERS
NO-SIGN.
WRITE: / SY-ULINE(132).
*---------------------------------------------------------------------*
* Form UPDATE_DB *
*---------------------------------------------------------------------*
FORM UPDATE_DB USING PT_REGUH STRUCTURE REGUH.
BKPF_KEY = PT_REGUH-NAME4.
UPDATE PAYR SET GJAHR = BKPF_KEY-GJAHR
VBLNR = BKPF_KEY-BELNR
WHERE PERNR EQ PT_REGUH-PERNR
AND SEQNR EQ PT_REGUH-SEQNR
AND BTZNR EQ PT_REGUH-BTZNR
AND VOIDR EQ 0.
*---------------------------------------------------------------------*
* Form WRITE_COLUMNS *
*---------------------------------------------------------------------*
FORM WRITE_COLUMNS USING P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11.
NEW-LINE.
WRITE AT: 1 '|', 2(10) P1,
12 '|', 13(10) P2,
23 '|', 24(10) P3,
33 '|', 34(10) P4,
44 '|', 45(10) P5,
55 '|', 56(10) P6,
66 '|', 67(10) P7,
77 '|', 78(10) P8,
88 '|', 89(10) P9,
99 '|', 100(17) P10,
117 '|', 118(16) P11,
132 '|'.
*---------------------------------------------------------------------*
* FORM WRITE_COLUMNS2 *
*---------------------------------------------------------------------*
FORM WRITE_COLUMNS2 USING P1 P2 PF.
NEW-LINE.
WRITE AT: 1 '|'.
IF PF EQ 'X'.
FORMAT COLOR COL_NEGATIVE.
ELSE.
FORMAT COLOR COL_HEADING.
ENDIF.
WRITE AT 2(18) P1.
IF PF EQ 'X'.
FORMAT COLOR COL_NORMAL.
ENDIF.
WRITE AT: 20 '|', 21(99) P2,
132 '|'.
ENDFORM.
*---------------------------------------------------------------------*
* FORM get_label *
*---------------------------------------------------------------------*
FORM GET_LABEL USING PC_TABNAME
PC_FIELDNAME
PC_TARGET.
ENDFORM.
*---------------------------------------------------------------------*
* FORM STORE_ERRMSG *
*---------------------------------------------------------------------*
FORM STORE_ERRMSG USING PL_MSGID LIKE SY-MSGID
PL_MSGNO LIKE SY-MSGNO
PL_MSGTY LIKE SY-MSGTY
PL_MSGV1 LIKE SY-MSGV1
PL_MSGV2 LIKE SY-MSGV2
PL_MSGV3 LIKE SY-MSGV3
PL_MSGV4 LIKE SY-MSGV4
CHANGING PS_SUM_DATA STRUCTURE GT_SUM_DATA.
PS_SUM_DATA-XERR = 'X'.
PAR_MSGTY_MISSING = 4
OTHERS = 5.
IF SY-SUBRC EQ 0.
CONCATENATE PL_MSGNO '(' PL_MSGID ')'
INTO PS_SUM_DATA-MSGNOID.
CONDENSE PS_SUM_DATA-MSGNOID NO-GAPS.
CONCATENATE TEXT-006 PS_SUM_DATA-MSGNOID
INTO PS_SUM_DATA-MSGNOID SEPARATED BY ' '.
ELSE.
PS_SUM_DATA-MSGNOID = TEXT-006.
ENDIF.
ENDFORM.
...
*&-------------------------------------------------------------------*
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120024545 0000093504 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_APPL SAP Application $*
*$ Release 30C To SAPKH30C14 $*
*$ Release 30D All Support Package Levels $*
*$ Release 30E To SAPKH30E27 $*
*$ Release 30F All Support Package Levels $*
*$ Release 31G To SAPKH31G13 $*
*$ Release 31H All Support Package Levels $*
*$ Release 310 w/o Support Packages $*
*$------------------------------------------------------------------$*
*$ Changes/Objects Not Contained in Standard SAP System $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RFEBCK00
*& Object Header PROG RFEBCK00
*&-------------------------------------------------------------------*
*& REPORT RFEBCK00
*&-------------------------------------------------------------------*
...
ELSEIF PAYR-XBANC IS INITIAL.
* IF PAYR-XBANC IS INITIAL.
*-------- check not paid yet --------------
* IF PAYR-LAUFI+5(1) = 'P'. "<<< delete
IF PAYR-VBLNR IS INITIAL. "<<< insert
*-------- check comes from Houman Ressouces
VALUT = CKREC-VALUT.
PDATE = CKREC-PDATE.
...
*&-------------------------------------------------------------------*
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120024545 0000093505 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_APPL SAP Application $*
*$ Release 31I All Support Package Levels $*
*$ Release 40A To SAPKH40A25 $*
*$ Release 40B All Support Package Levels $*
*$ Release 45A All Support Package Levels $*
*$ Release 45B All Support Package Levels $*
*$ Release 46A To SAPKH46A34 $*
*$ Release 46B All Support Package Levels $*
*$ Release 46C All Support Package Levels $*
*$ Release 470 w/o Support Packages $*
*$------------------------------------------------------------------$*
*$ Changes/Objects Not Contained in Standard SAP System $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RFEBCK00
*& Object Header PROG RFEBCK00
*&-------------------------------------------------------------------*
*& REPORT RFEBCK00
*&-------------------------------------------------------------------*
...
ELSEIF PAYR-XBANC IS INITIAL.
*-------- check neither already paid nor voided
PERFORM COUNTER_VALID_PRENUMBERED.
* IF PAYR-LAUFI+5(1) = 'P'. "<<< delete
IF PAYR-VBLNR IS INITIAL. "<<< insert
*-------- check comes from Houman Ressouces
HR_TOTAL = HR_TOTAL + 1.
...
*&-------------------------------------------------------------------*
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000172139 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_APPL SAP Application $*
*$ Release 46A To SAPKH46A34 $*
*$ Release 46B All Support Package Levels $*
*$ Release 46C All Support Package Levels $*
*$ Release 470 w/o Support Packages $*
*$------------------------------------------------------------------$*
*$ Changes/Objects Not Contained in Standard SAP System $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RFPYHR00
*& Object Header PROG RFPYHR00
*&-------------------------------------------------------------------*
*& REPORT RFPYHR00
*&-------------------------------------------------------------------*
...
TABLES: BKPF,
BKPF_KEY,
*>>>> START OF DELETION <<<<<
DD03P,
*>>>> END OF DELETION <<<<<<<
...
*&-------------------------------------------------------------------*
*& FORM GET_LABEL
*&-------------------------------------------------------------------*
*>>>> START OF DELETION <<<<<
SELECT * FROM DD03P
WHERE TABNAME EQ PC_TABNAME
AND FIELDNAME EQ PC_FIELDNAME
AND DDLANGUAGE EQ SY-LANGU.
PC_TARGET = DD03P-SCRTEXT_S.
EXIT.
ENDSELECT.
IF PC_TARGET IS INITIAL.
SELECT * FROM DD03P
WHERE TABNAME EQ PC_TABNAME
AND FIELDNAME EQ PC_FIELDNAME
AND DDLANGUAGE EQ SY-LANGU.
PC_TARGET = DD03P-REPTEXT.
EXIT.
ENDSELECT.
ENDIF.
IF PC_TARGET IS INITIAL.
SELECT * FROM DD03P
WHERE TABNAME EQ PC_TABNAME
AND FIELDNAME EQ PC_FIELDNAME
AND DDLANGUAGE EQ SY-LANGU.
PC_TARGET = DD03P-SCRTEXT_M.
EXIT.
ENDSELECT.
ENDIF.
IF PC_TARGET IS INITIAL.
SELECT * FROM DD03P
WHERE TABNAME EQ PC_TABNAME
AND FIELDNAME EQ PC_FIELDNAME
Number 107210
Version 34 vom 22.03.2004
Status Released for Customer
Set on ,22.03.2004
Language EN
Mastersprache EN
Short text HR-PT: Update of legal limits (LCP)
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
Every year, normally on the 1st of October, the Portuguese law states
new Stamp Tax rates. This tax will finally disappear in October 1998,
and the system must therefore be updated.
Lunch Allowance exemption limits change every year and these are based
on the Public Sector Lunch Allowance rate. This constant has to be
updated as well.
Finally, the Portuguese minimum wage (SMN - Sal�rio M�nimo Nacional) -
every year a new value is published and the system must be updated
accordingly.
Other terms
SMN; Subs�dio de Refei��o;
Solution
The corrections described in this note are available in an LCP as shown
in the table below, per year and version.
o new values for Lunch Allowance constants LASTD, LAELC and LAELT;
Relevant LCPs
------------------------
| Version | Year | LCP |
------------------------
| | 1998 | 02 |
| | 1999 | 20 |
| 3.1I | 2000 | 51 |
| | 2001 | 65 |
| | | 71 |
------------------------
| | 1999 | 01 |
| | 2000 | 27 |
| 4.5B | 2001 | 40 |
| | | 46 |
| | 2002 | 68 |
| | | 70 |
| | 2003 | 94 |
| | | 98 |
| | 2004 | A8 |
| | | B0 |
------------------------
| | 2000 | 09 |
| | 2001 | 22 |
| 4.6B | | 28 |
| | 2002 | 50 |
| | | 52 |
| | 2003 | 76 |
| | | 80 |
| | 2004 | 90 |
| | | 92 |
------------------------
| | 2000 | 02 |
| | 2001 | 13 |
| 4.6C | | 19 |
| | 2002 | 41 |
| | | 43 |
| | 2003 | 67 |
| | | 71 |
| | 2004 | 81 |
| | | 83 |
------------------------
| 4.7 | 2003 | 12 |
| | | 16 |
| | 2004 | 26 |
| | | 28 |
------------------------
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Number 142218
Version 15 vom 12.03.2003
Status Released for Customer
Set on ,12.03.2003
Language EN
Mastersprache EN
Short text HR-PT: Update of IRS tables (LCP)
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
New IRS tables, containing the rates for tax deduction during the
current fiscal year are available and need to be delivered to the
customers.
Other terms
Table T5P1R;
Relevant LCPs
------------------------
| Version | Year | LCP |
------------------------
| 3.1I | 1999 | 19 |
| 3.1I | 2000 | 51 |
| 3.1I | 2001 | 71 |
------------------------
| 4.5B | 1999 | 01 |
| 4.5B | 2000 | 27 |
| 4.5B | 2001 | 46 |
| 4.5B | 2002 | 72 |
| 4.5B | 2003 | 95 |
| 4.5B | 2003 | 96 |
------------------------
| 4.6B | 2000 | 09 |
| 4.6B | 2001 | 28 |
| 4.6B | 2002 | 54 |
| 4.6B | 2003 | 77 |
| 4.6B | 2003 | 78 |
------------------------
| 4.6C | 2000 | 02 |
| 4.6C | 2001 | 19 |
| 4.6C | 2002 | 45 |
| 4.6C | 2003 | 68 |
| 4.6C | 2003 | 69 |
------------------------
| 4.7 | 2003 | 13 |
| 4.7 | 2003 | 14 |
------------------------
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
Number 331123
Version 3 vom 15.01.2004
Status Released for Customer
Set on ,09.12.2002
Language EN
Mastersprache EN
Short text HR-PT: New leave entitlement and vacation allowance
processi
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
The Vacation Allowance functionality has been redesigned to easily and
efficiently process the employee's vacation allowance.
There is a new functionality for the leave entitlement accrual and a
complete new way of processing the allowance using processing variants.
A major redesign regarding the all functionality dealing with leave
entitlement was undertaken. The changes are listed below:
b) all the PCR's used in the old solution are no longer used, they
are substituted by payroll functions.
Other terms
Vacation Allowance, IT2006, IT0005
Solution
The correction described in this note are includede in an HR Support
Package. See below for the package number.
This support package includes:
- new wage types: VA05, VA10, VA30, VA40, VA70, VAT1, /EVA,
/138;
- new type pool PPT04, with types declaration specific for the
VA process;
Valid releases
Software component Release
from to
Other components
PA-PA-PT
Portugal
PT-RC-AA
Attendances/Absences
________________________________________________________________________
References to related notes
________________________________________________________________________
________________________________________________________________________
Number 403163
Version 94 vom 01.04.2004
Status Released for Customer
Set on ,01.04.2004
Language EN
Mastersprache EN
Short text CONSULT.: HCM Portugal - News - Novidades
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
This note is used to record the latest news regarding the Portuguese HR
country version. All legal changes with an impact on components PA-PA-PT
or PY-PT will be mentioned, as well as the release of LCPs and other
important milestones in the life cycle of the product.
Other terms
Solution
01/04/2004
The Variable Income table have been included in note 712333 for upload.
Please, take in consideration that the code of report RPUTAXP0 had to be
changed. Please, install the Advanced Delivery with the new program
before uploading Variable Income table.
24/03/2004
The change of Social Insurance number from 9 to 11 digits will be
delivered according to note 721081 in the next months.
It is important to consider that this note will provide Advance Delivery
of the solution, but it will be mandatory that the customer has the last
version of HR Support Package installed, if not the corrections will
have to be installed using Correction Instructions.
17/03/2004
The new limits for Lunch Allowance have been published.
New values and delivery HR Support Packages are informed in note 107210.
12/03/2004
The IRS tables for 2004 have been published.
The installation process of this tables has been changed.
Please, read notes 712368(creates new table T5P1P) and
712333(upload file with rates for 2004).
04/03/2004
The amount for the incoming category 'H' includes the amounts paid
for the pre-retirement and retirement. The declaration must split
these values according the Portaria 3/2004 from Di�rio da Republica
published on 10/01/2004 - n� 8, 1� S�rie B.
Please see the note #712653.
21/01/2004
The new national minimum wages was published in the 'Di�rio da
Rep�blica I s�rie A, n.� 16, de 20-01-2004'. The new value is 365,60
Euros.
This modification is available via LCP, please see the note 107210.
While you don't apply the note you can modify the value manually in the
table T511P.
24/11/2003
The modifications for the new labor law are now available. Please see
the note #671876.
30/10/2003
Due to the new Labor Law several modifications to the vacation
allowance process will be delivered during the next month.
For this modification we recommend that you apply the latest LCP's:
- 4.5B - LCPA4
- 4.6B - LCPB86
- 4.6C - LCP77
- 4.7 - LCP022
04/09/2003
Personnel Summary report has more complete printed version and field 18
of employee's register which is related to Law 20/98 is also available.
Please see note 650326.
01/09/2003
New legal changes are required to the Structured Employment Survey by
the DEPP (Departamento de Estudos, Prospectiva e Planeamento).
See note 649978.
14/07/2003
Relevant to Social Balance report, counting of Paid Public Holidays(hrs)
to wage type /844 has been changed according to note 639338.
02/07/2003
New legal declarations are required by the Portuguese legal entities:
These declarations are now available in the system, please see the note
620283.
17/04/2003
Some corrections to Leave Annual Summary (RPLESUP0).
Please see the note 607234.
17/04/2003
According to "Portaria 303/2003 de 14 de Abril", the limits regarding
the lunch allowance are modified.
This modification is available via LCP, please see the note 107210.
While you don't apply the note you cam modify the value manually in the
table T511P.
15/04/2004
Update of Economical Activity Code (table T5PEA)
See the note 612279.
10/04/2003
According to the instrutions of the DGCI "Direc��o Geral de
Contribui��e e Impostos" for the Annual Income Declaration the field
"Tipo de Rendimentos" in record type 2 should have value "A1" for the
wage type /111.
20/03/2003
The Annual income declaration in electronic format has been modified
by the legal authority DGCI. The Record type for attach. J was changed
from 'J03' to 'J99'. See the note 606082.
11/02/2003
All the new IRS tables are now available via SAPserv3, please see the
note 596048. To know in which LCP they will be delivered, see note 14221
26/02/2003
According the new article 74 from the CIRS, the Individual Income
Declaration must contain additional data related to the reported income
from previous years.
Please apply the note number 599236 to keep the system up to date.
18/02/2003
The new IRS tables for the Continent and A�ores are now available via
SAPserv3, please see the note 596048. To know in which LCP they will be
delivered, see note 142218.
14/02/2003
The new IRS tables for the Continent are now available via SAPserv3,
please see the note 596048. To know in which LCP they will be
delivered, see note 142218.
13/01/2003
According to "DL.n.� 320-C/2002, de 30 de Dezembro", the national
minimum wages have changed to 356,60 Euros.
This modification is available via LCP, please see the note 107210.
While you don't apply the note you cam modify the value manually in the
table T511P.
02/12/2002
The schema PTX0 has been changed and was created a report to check the
employees according to the standard tax retrocalculation process.
The solution for correcting wrong values is provided and is also valid
for the customers which did not implement the old notes on time.
Please see note 569186.
21/10/2002
Changes related to reference periods for the Personnel Summary are
included in note 561310.
02/10/2002
According to "DL.n.� 194/2002, de 25 de Setembro", among others changes
20/09/2002
According to 'Dec-lei n� 123/2002, de 4 de Maio" some changes are
necessary in the Personnel Summary.
This change is available via SAPSERV3.
Path: /general/R3server/abap/note.0553215
See note 553215.
13/09/2002
Incorrect payment of VA when using payment methods 'B', 'C' or 'E' after
installing note 529855, please see note 552475 for additional
correction.
22/08/2002
Variable Remunerations 'Tabela de Remunera��es n�o fixas' 2002 in
table T5P1R.
Please see note 547949.
15/08/2002
Some corrections to Personnel Summary (RPCPRSP0).
Please see the note 544007.
06/08/2002
Some corrections to Remuneration sheet (RPCSSRP0).
Please see the note 532143.
30/07/2002
Some corrections to Personnel Summary (RPCPRSP0).
Please see the note 531742 and 541176.
28/06/2002
Some corrections to Remuneration sheet (RPCSSRP0).
Please see the note 527133.
12/06/2002
Time dependency table for entity data is necessary.
Before no historical of changes in entity data was possible.
Table T5PFN was substituted by T5PFD, please see note 523020.
12/06/2002
Some corrections to Social Balance related to the Cover Page,
Statistical Information and the Time Data.
Please see the note 522161.
04/06/2002
Reminder: the old vacation allowance process and the use of IT0005 is
not supported anymore since May 2002.
23/05/2002
Personnel Summary(RPCPRSP0) has the reference for Working Time Data
changed. Please see note number 510473.
14/05/2002
The new legal changes in RPCAIDP0 are available in an advanced delivery.
Please see note 511686.
12/04/2002
The new legal changes in the Anual Income Declaration - attachment J
will be available during the second week of May.
The related note will have the number 511686.
26/03/2002
According to "Decreto-Lei n� 8-B/2002" of January 15, the tax number of
the contributor (NIF) must be included in the record type R1 (magnetic
file), and in the Summary Sheet (paper) which is sent together with the
magnetic file.
For additional information please consider note number 496845.
This change is available via SAPSERV3.
Path: /general/R3server/abap/note.0496845
Valid Releases: 45B ; 46B; 46C
13/03/2002
Due to some incidents when retrocalculating periods with negative
differences from previous years (/607) it is mandatory to implement the
note 502345 before running RPCALCP0 in March, 2002.
All the new IRS tables are now available by SAPserv3, please see the
note 496680. To know in which LCP they will be delivery see the note
142218.
21/02/2002
The Tax Reform changes in schema PTX0 will be delivered in the next LCP.
Please, see the last LCP number in note 396216.
19/02/2002
The report RPCFEEP0 has a new field selection screen "output currency"
which defines the currency in which the output of the report will be.
This report converts the results read from the cluster to the indicated
output currency of the report, whether they are in a different currency.
19/02/2002
The new IRS tables for Madeira and Continent are now available by
SAPserv3, please see the note 496680. To know in which LCP they will be
delivered, see note 142218.
04/02/2002
Note: 489526 (HR-PT: Corrections to legal reports)
A new field "The last period" has been added in the selection screen.
This means that the report must read the data processed until the last
period
indicated on the additional field.
Now, the reports provide the last data processed, in case of the
retroactive calculation is done after the selected period.
10/01/2002
Note 0480575 (HR-PT: Tax reform - additional changes) has been updated
with a special correction for those customers who have implemented
note 396216 for December 2001 payroll, and not note 480575.
19/12/2001
According to "Anexo II da Portaria n� 1039/2001" of August 27,
the remuneration sheet relating to December 2001 must be delivered up
to 15th of January, 2002 in EURO. This applies ONLY for the contributors
still using ESCUDOS during 2001.
For additional information please consider note number 457989.
This change is available via SAPSERV3.
Path: /general/R3server/abap/note.0457989
Valid Releases: 45B ; 46B; 46C
30/11/2001
The Tax Reform of 2001 has been delivered in the last LCP.
For additional information consider note number 396216.
24/10/2001
In order to simplify the update of the postal code table T5PCP a new
report RPUCODP0 is available. It can be used to update the already
existing codes or only to include the new codes.
For further information please read note number 439165.
05/10/2001
According to Circular 9 of May 21, 2001 the reports RPCIIDP0 and
RPCAIDP0 must have the amounts in Euro next year.
These changes will be delivered for 4.6B in LCP number 44 and for 3.1I
in LCP number 88.
For further information please read note number 422848.
02/10/2001
The new Vacation Allowance (VA) functionality will be delivered via
LCP62 for the 45B releases and via LCP44 for the 46B releases.
A rollout paper will be available in the Portuguese Payroll page in
SAPNet. This document describes the procedure to customize the new VA.
Furthermore, all the customizing steps are in the IMG.
For detailed information about the new functionality please see the
following notes:
331123 - HR-PT: New leave entitlement and vacation allowance processing
399468 - HR-PT: Transfer data from IT0005 to IT2006
399471 - HR-PT: New Overtime functionality due to IT2006
19/09/2001
According to Circular 9 of May 21, 2001 the reports RPCIIDP0 and
RPCAIDP0 must have the amounts in Euro next year.
These changes will be delivered for 4.5B in LCP number 61, the other
releases will be delivered as soon as possible. For further information
please consider note number 422848.
10/08/2001
09/08/2001
The report RPTSSBP0 (Strike Statistical Bulletin) was changed to
generate the data that is necessary for filling out the official
Strike Statistical Bulletin . Now, it lists the different numbers
of strike hours (strike duration) and the respective number of
strikers for each working period.
Further information:
The report below was changed to take data from table T5PAB instead of
table T5PTC.
If you did not convert the old table T5PTC to the news tables T5PAB and
T5PWS, you need to run the report RPUCTCP0 (see note 199143) to transfer
the customization done in table T5PTC to the new corresponding
tables T5PAB (Absence classific.) and T5PWS (Work sched.classification).
Valid Releases:
02/07/2001
According to Circular 9 of May 21, 2001 the reports RPCIIDP0 and
RPCAIDP0 must have the amounts in Euro next year.
The changes will be done as soon as possible and the information
about the respective LCP number will be available in this note.
08/06/2001
A new Vacation Allowance (VA) functionality will be delivered via LCP27
for the 46C releases. The new functionality includes several changes,
such as using IT2006 instead of IT0005 to create the leave entitlement.
A rollout paper will be available in the Portuguese Payroll page in
SAPNet. This document describes the procedure to customize the new VA.
Furthermore, all the customizing steps are in the IMG.
For detailed information about the new functionality please see the
following notes:
PA-PA-PT
Portugal
________________________________________________________________________
Note attributes
FILE
Transaction codes SUCH
SURVEY
________________________________________________________________________
Number 439165
Version 8 vom 05.11.2003
Status Released for Customer
Set on ,06.11.2003
Language EN
Mastersprache EN
Short text HR-PT: Update T5PCP with postal codes from file of
CTT
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
The new postal codes need to be updates every time the CTT publish new
codes. This update is necessary for each customer in different periods
during the year.
Other terms
T5PCP
Reason and Prerequisites
Solution
The file including the new postal codes should be imported from the
internet site WWW.CTT.PT in the section "Codigos postais" to a file
which has the name "todos_cp.txt" into directory "c:\temp\".
Attention:
Because the file is too big it is suggested to be run in background,
otherwise the file should be divided.
The codes and districts update in table T5PCP is done when running the
report RPUCODP0.
The entries in the transport have to be done manually.
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000607479 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B90 $*
*$ Release 45B To SAPKE45BA8 $*
*$ Release 46C To SAPKE46C81 $*
*$ Release 470 To SAPKE47026 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPUCODP0
*& Object Header PROG RPUCODP0
*&-------------------------------------------------------------------*
*& REPORT RPUCODP0
*&-------------------------------------------------------------------*
...
DATA: BEGIN OF COL_DEF OCCURS 5,
COL(2) TYPE N,
BEG(3) TYPE N,
END(3) TYPE N,
END OF COL_DEF.
SELECTION-SCREEN SKIP 1.
...
*&-------------------------------------------------------------------*
SAP note number 522143
________________________________________________________________________
Number 522143
Version 9 vom 13.01.2004
Status Released for Customer
Set on ,13.01.2004
Language EN
Mastersprache EN
Short text HR-PT: Corrections to the VA operation PSVA
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
2. When creating a rule using operation PSVA with the parameter '?' and
the corresponding possible values (T, P, C), the rule will display a
sintax error.
3. The new operation value 'B' could cause a short dump in the
RPCALCP0.
4. When using the operation with the parameter '?' the RPCALCP0 could
stop with an error message, this happens due a missing return value.
Other terms
PSVA, VA, FIXCO
Solution
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000286192 $*
*$ Req. Corr. Instructions 0120061532 0000408537 Note 0000522143 $*
*$ 0120061532 0000477623 Note 0000522143 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B89 $*
*$ Release 45B To SAPKE45BA7 $*
*$ Release 46C To SAPKE46C80 $*
*$ Release 470 To SAPKE47025 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCBURPF
*& Object Header PROG RPCBURPF
*&-------------------------------------------------------------------*
*& FORM GET_VAFIELD
*&-------------------------------------------------------------------*
...
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
tabname = 'PC2PF'
fieldname = p_fieldname
langu = sy-langu
all_types = 'X'
TABLES
dfies_tab = p_dfies_tab
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000408537 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B71 $*
*$ Release 45B To SAPKE45B89 $*
*$ Release 46C To SAPKE46C62 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCBURPF
*& Object Header PROG RPCBURPF
*&-------------------------------------------------------------------*
*& FORM OPPSVA
*&-------------------------------------------------------------------*
...
PERFORM FILLVARGT.
WHEN 'A'. "Add amount or number to field in VA
MOVE C_REGULAR_ALL TO ALL_TYPE. "Regular allowance
PERFORM ADD_VAFIELD USING ALL_TYPE.
LOOP AT VA.
P_FIELDNAME = OP+5(5).
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
TABNAME = 'PC2PF'
FIELDNAME = P_FIELDNAME
LANGU = SY-LANGU
ALL_TYPES = 'X'
TABLES
DFIES_TAB = P_DFIES_TAB
EXCEPTIONS
NOT_FOUND = 1
INTERNAL_ERROR = 2
OTHERS = 3.
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000477623 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B71 $*
*$ Release 45B To SAPKE45B89 $*
*$ Release 46C To SAPKE46C62 $*
*$ Release 470 To SAPKE47007 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCBURPF
*& Object Header PROG RPCBURPF
*&-------------------------------------------------------------------*
*& FORM OPPSVA
*&-------------------------------------------------------------------*
...
*---------------------------------------------------------------------*
FORM OPPSVA.
ELSE.
EE_REJECT_TPP_C '554' SPACE SPACE.
ENDIF.
*>>>> START OF DELETION <<<<<
MODIFY OT.
*>>>> END OF DELETION <<<<<<<
...
*&-------------------------------------------------------------------*
Number 596048
Version 7 vom 01.04.2004
Status Released for Customer
Set on ,12.03.2003
Language EN
Mastersprache EN
Short text HR-PT: IRS tables for year 2003 (Advance Delivery)
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
Customers want to import as soon as possible the new IRS tables,
containing the rates for tax deduction during the fiscal of 2003.
Therefore, an advanced delivery is provided via sapserv3.
Other terms
T5P1R; Tax
Solution
An advance delivery is being provided containing all entries of table
T5P1R.
This delivery does not contain objects for any other country version,
nor does it contain objects from other R/3 modules (FI, LO, etc.).
o 4.5B
- K100738.L4D
- R100738.L4D
o 4.6B
- K100526.L9B
- R100526.L9B
o 4.6C
- K127805.L9C
- R127805.L9C
o 4.7
- K028505.L6B
- R028505.L6B
Import this delivery into your system following the instructions in note
13719, replacing the example transport with L4DK100738 or
L9BK100526, and the example note number with the number of this note.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Number 599236
Version 5 vom 03.02.2004
Status Released for Customer
Set on ,01.03.2004
Language EN
Mastersprache EN
Short text HR-PT:Legal Changes in Individual Income Declaration
(2003)
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
The Individual Income declaration has been modified by the legal
authority DGCI (Direc��o Geral de Contribui��es e Impostos).
According the new article 74 from the CIRS, the declaration must contain
additional data related to the income amount reported from previous
years with the year reference.
Other terms
RPCIIDP0
Solution
The correction and enhancements described in this note are included in
an HR Support Package. See below for the package number.
The support package includes:
o 4.5B
- K100178.L4D
- R100178.L4D
o 4.6B
- K099803.L9B
- R099803.L9B
o 4.6C
- K126572.L9C
- R126572.L9C
o 4.7
- K027222.L6B
- R027222.L6B
Import this delivery into your system following the instructions in note
13719, replacing the example transport with L9BK099673 or
L9CK126572, and the example note number with the number of this note.
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000280069 $*
*$ Req. Corr. Instructions 0120061532 0000500972 Note 0000585374 $*
*$ 0120061532 0000522495 Note 0000599236 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B88 $*
*$ Release 45B To SAPKE45BA6 $*
*$ Release 46C To SAPKE46C79 $*
*$ Release 470 To SAPKE47024 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object FUNC EXIT_RPCIIDP0_001
*& Object Header FUGS XRP0
*&-------------------------------------------------------------------*
*& FUNCTION EXIT_RPCIIDP0_001
*&-------------------------------------------------------------------*
...
FUNCTION EXIT_RPCIIDP0_001.
*"----------------------------------------------------------------------
*>>>> START OF DELETION <<<<<
*"*"Local interface:
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
*"*"Interface local:
*>>>> END OF INSERTION <<<<<<
...
*" IMPORTING
*" REFERENCE(YEAR) TYPE N
*" REFERENCE(WAERS) LIKE T500C-WAERS
*" REFERENCE(COMPANY) TYPE PPT02_COMPANY
*" TABLES
*" PERSONNEL TYPE PPT02_PERS
*" TAX_DATA TYPE PPT02_TAXD
*" DEDUCTION TYPE PPT02_DEDU
*" REPORT TYPE PPT02_REPO
*>>>> START OF DELETION <<<<<
*" CHANGING
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
*" INC_PREV_YEARS TYPE PPT02_INC_PREV_YEARS_TAB OPTIONAL
*" CHANGING
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
*&-------------------------------------------------------------------*
*& Object REPS RPCIIDP0
*& Object Header PROG RPCIIDP0
*&-------------------------------------------------------------------*
*& END-OF-SELECTION
*&-------------------------------------------------------------------*
...
CALL CUSTOMER-FUNCTION '001'
EXPORTING
year = aux_year
waers = waers
company = company
TABLES
personnel = personnel
tax_data = tax_data
deduction = deduction
report = report
*>>>> START OF DELETION <<<<<
CHANGING
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
inc_prev_years = g_tab_inc_prev_years
CHANGING
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000295467 $*
*$ Req. Corr. Instructions 0120061532 0000500972 Note 0000585374 $*
*$ 0120061532 0000502742 Note 0000585374 $*
*$ 0120061532 0000522495 Note 0000599236 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B91 $*
*$ Release 45B To SAPKE45BA9 $*
*$ Release 46C To SAPKE46C82 $*
*$ Release 470 To SAPKE47027 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCIIDP0
*& Object Header PROG RPCIIDP0
*&-------------------------------------------------------------------*
*& GET PERNR
*&-------------------------------------------------------------------*
...
PERFORM READ_CLUSTER_RP USING PERNR-PERNR
CHANGING RETURN_CODE.
IF RETURN_CODE NE 0.
PERFORM PROCESS_ERRORS USING RETURN_CODE.
ENDIF.
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000522495 $*
*$ Req. Corr. Instructions 0120061532 0000500972 Note 0000585374 $*
*$ 0120061532 0000502742 Note 0000585374 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B77 $*
*$ Release 45B To SAPKE45B95 $*
*$ Release 46C To SAPKE46C68 $*
*$ Release 470 To SAPKE47012 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCIIDP0
*& Object Header PROG RPCIIDP0
*&-------------------------------------------------------------------*
*& GET PERNR
*&-------------------------------------------------------------------*
...
PERFORM read_cluster_rp USING pernr-pernr
CHANGING return_code.
IF return_code NE 0.
PERFORM process_errors USING return_code.
ENDIF.
IF ok_print EQ '0'.
*>>>> START OF DELETION <<<<<
PERFORM print_data TABLES personnel tax_data
deduction report
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
PERFORM print_data TABLES personnel
tax_data
deduction
report
g_tab_inc_prev_years
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
*&-------------------------------------------------------------------*
*& Object REPS RPCIIDPD
*& Object Header PROG RPCIIDPD
*&-------------------------------------------------------------------*
...
*----------------------------------------------------------------------*
* INCLUDE RPCIIDPD *
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
* <--P_G_TAB_INC_PREV_YEARS text
*----------------------------------------------------------------------*
FORM fill_income_prev_years CHANGING g_tab_inc_prev_years
TYPE ppt02_inc_prev_years_tab.
DATA: l_tab_pay_result TYPE pptgs_result_tab,
l_wa_pay_result TYPE pptgs_result,
l_wa_rt TYPE pc207,
l_wa_inc_prev_years TYPE ppt02_inc_prev_years,
l_year TYPE num4,
l_begda TYPE d,
l_endda TYPE d.
CLEAR: l_tab_pay_result,
l_wa_pay_result,
l_wa_rt,
l_wa_inc_prev_years.
REFRESH l_tab_pay_result.
l_year = year - 1.
IF sy-subrc NE 0.
* No error message, maybe exists some periods without results
ENDIF.
l_wa_inc_prev_years-pernr = pernr-pernr.
l_wa_inc_prev_years-inc_type = income_a.
l_wa_inc_prev_years-amount = l_wa_rt-betrg.
l_wa_inc_prev_years-year = l_year - l_wa_rt-v0znr.
COLLECT l_wa_inc_prev_years INTO g_tab_inc_prev_years.
CLEAR l_wa_inc_prev_years.
ENDLOOP.
* calculate the amount for the type of income 'H'
LOOP AT l_wa_pay_result-inter-rt INTO l_wa_rt
WHERE lgart = '/Z13' OR lgart = '/Z23'.
l_wa_inc_prev_years-pernr = pernr-pernr.
l_wa_inc_prev_years-inc_type = income_h.
l_wa_inc_prev_years-amount = l_wa_rt-betrg.
l_wa_inc_prev_years-year = l_year - l_wa_rt-v0znr.
COLLECT l_wa_inc_prev_years INTO g_tab_inc_prev_years.
CLEAR l_wa_inc_prev_years.
ENDLOOP.
ENDLOOP.
CLEAR: l_wa_inc_prev_years.
SKIP 2.
WRITE: /5 text-038.
ULINE /5(66).
ULINE /5(76).
WRITE:/5 sy-vline, 8 text-015, 30 sy-vline, 35 text-014,
54 sy-vline, 58 text-039, 80 sy-vline.
ULINE /5(76).
WRITE:/5 sy-vline.
IF l_wa_inc_prev_years-inc_type EQ income_a.
WRITE: 6 text-019.
ELSEIF l_wa_inc_prev_years-inc_type EQ income_h.
WRITE: 6 text-020.
ENDIF.
ENDLOOP.
*&-------------------------------------------------------------------*
Number 614276
Version 4 vom 24.02.2004
Status Released for Customer
Set on ,24.02.2004
Language EN
Mastersprache EN
Short text HR-PT: Report RPCIIDP0 available via ESS
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
The RPCIIDP0 generates a declaration for the employee and in order to
simplify the process it should be available via ESS.
Other terms
RPCIIDP0
Solution
The system is customized in order to allow the employee to generate the
declaration via ESS.
The table T77WWW_REP is customized with the new transaction code to be
used via the ESS.
The correction and enhancements described in this note are include
an HR Support Package. See below for the package number.
The support package includes:
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
Number 648574
Version 2 vom 05.02.2004
Status Released for Customer
Set on ,05.02.2004
Language EN
Mastersprache EN
Short text HR-PT:Files downloaded are not filled with spaces in
the end
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
***********************************************************************
The changes described in this note were undone in January, 2004.
The correct solution for this problem is described in note 676416.
***********************************************************************
When downloading the file the last bytes with spaces were omitted.
The file would be rejected by Social Insurance.
Other terms
RPCSSRP0; RPUTSVP0; DOWNLOAD;
Reason and Prerequisites
Solution
***********************************************************************
The changes described in this note were undone in January, 2004.
The correct solution for this problem is described in note 676416.
***********************************************************************
The inclusion of field CR_LF in the end of each register guarantee that
function GUI_DOWNLOAD will keep the spaces.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000245576 $*
*$ Req. Corr. Instructions 0120061532 0000441228 Note 0000532143 $*
*$ 0120061532 0000468666 Note 0000563598 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 470 To SAPKE47019 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCSSRP1
*& Object Header PROG RPCSSRP1
*&-------------------------------------------------------------------*
*& FORM CREATE_RECORD_R0
*&-------------------------------------------------------------------*
...
* <-- p2 text
*----------------------------------------------------------------------*
FORM create_record_r0
CHANGING p_temse_file TYPE REF TO cl_hr99s00_temse.
l_s_r0-tipreg = 'R0'.
l_s_r0-modelo = 'RC3008 '.
l_s_r0-versao = '01'.
*>>>> START OF DELETION <<<<<
CLEAR l_s_r2-spaces.
*>>>> START OF DELETION <<<<<
CLEAR l_s_r3-spaces.
*>>>> START OF DELETION <<<<<
** Temse records
types: t_tab_r0 type pptr0 occurs 1,
t_tab_r1 type pptr1 occurs 0,
t_tab_r2 type pptr2 occurs 0,
t_tab_r3 type pptr3 occurs 0.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
** Records structure
** The field CR_LF had to be include in the end of each structure
** because if not when using function GUI_DOWNLOAD the spaces would
** not be included in the end and the file would be rejected by
** Social Insurance
types:
begin of t_pptr0.
include structure pptr0.
types: teste(104) type c.
types: cr_lf(2).
types: end of t_pptr0.
types:
begin of t_pptr1.
include structure pptr1.
types: cr_lf(2).
types: end of t_pptr1.
types:
begin of t_pptr2.
include structure pptr2.
types: cr_lf(2).
types: end of t_pptr2.
types:
begin of t_pptr3.
include structure pptr3.
types: cr_lf(2).
types: end of t_pptr3.
** Temse records
types: t_tab_r0 type t_pptr0 occurs 1,
t_tab_r1 type t_pptr1 occurs 0,
t_tab_r2 type t_pptr2 occurs 0,
t_tab_r3 type t_pptr3 occurs 0.
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
*&-------------------------------------------------------------------*
*& Object REPS RPUTSVPD
*& Object Header PROG RPUTSVPD
*&-------------------------------------------------------------------*
...
*----------------------------------------------------------------------*
* INCLUDE RPUTSVPD - Data declaration *
*----------------------------------------------------------------------*
* Global data
*>>>> START OF DELETION <<<<<
CONSTANTS: C_CREMP0_RECORDSIZE(3) VALUE 116,
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
CONSTANTS: C_CREMP0_RECORDSIZE(3) VALUE 118, " 2 bytes for field CR_LF
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
*&-------------------------------------------------------------------*
*& Object REPS RPUTSVPF
*& Object Header PROG RPUTSVPF
*&-------------------------------------------------------------------*
*& FORM DOWNLOAD_CREMP0
*&-------------------------------------------------------------------*
...
FORM DOWNLOAD_CREMP0.
Number 662903
Version 15 vom 09.01.2004
Status Released for Customer
Set on ,09.01.2004
Language EN
Mastersprache EN
Short text HR-PT: Corrections to VA annual payment method 'A'
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
2. If the leave quota type has more than 22 days but the payroll
calculations is defined 22 in T5PVA a incorrect adjustment may
happens after the employee take all the leave days.
3. When doing a payroll retrocalculation and using the estimation
method 'Annual estimation corrected over all leave days' the number
of the adjustment days may be incorrect.
Other terms
PVACE; /632; adjustment
Solution
After applying this note a retrocalculation until the pay raise month is
recommended.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000266782 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B86 $*
*$ Release 45B To SAPKE45BA4 $*
*$ Release 46C To SAPKE46C77 $*
*$ Release 470 To SAPKE47024 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCALLP1
*& Object Header PROG RPCALLP1
*&-------------------------------------------------------------------*
*& FORM DET_ESTIM_PART_ANNUAL
*&-------------------------------------------------------------------*
...
DATA: l_wa_ort LIKE pc207.
CLEAR: l_wa_ort.
*>>>> END OF INSERTION <<<<<<
...
* When no immediate adjs. this wage type is processed until the month of
* the adjustment payment
READ TABLE ort INTO l_wa_ort WITH KEY lgart = '/637'.
*>>>> START OF DELETION <<<<<
IF sy-subrc = 0.
MOVE l_wa_ort TO rt.
APPEND rt.
* Difference to be added to the cumulated paid amount until the month
* of the adjustment payment
l_dif_cpamt = l_wa_ort-betrg.
ENDIF.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
IF sy-subrc = 0 AND aper-paper+4(2) <> '01'.
MOVE l_wa_ort TO rt.
APPEND rt.
* Difference to be added to the cumulated paid amount until the month
* of the adjustment payment
l_dif_cpamt = l_wa_ort-betrg.
ELSE.
MOVE-CORRESPONDING l_va TO va.
ENDIF.
*>>>> END OF INSERTION <<<<<<
...
IF r_t5pva-adjpy IS INITIAL
AND l_aux_estam <> 0
AND va-estam > l_aux_estam
AND ( aper-paper NE r_t5pva-ladjd OR aper-paper+4(2) <> '12' ).
IF rt_need = true.
*>>>> END OF INSERTION <<<<<<
...
APPEND rt.
ENDIF.
MOVE rt TO ot.
PERFORM hr_pt_addcu. "Cumulate adjustm. to /1*
*>>>> START OF DELETION <<<<<
ENDIF.
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000280460 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B88 $*
*$ Release 45B To SAPKE45BA6 $*
*$ Release 46C To SAPKE46C79 $*
*$ Release 470 To SAPKE47024 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCALLP1
*& Object Header PROG RPCALLP1
*&-------------------------------------------------------------------*
*& FORM DET_ESTIM_PART_ANNUAL
*&-------------------------------------------------------------------*
...
ELSEIF NOT va-payfl IS INITIAL.
temp_betrg = 0.
temp_anzhl = max_days - va-cvday + va-vdays.
ELSE.
temp_betrg = fact_betrg - va-cpamt - va-ediff - l_dif_cpamt.
*>>>> START OF DELETION <<<<<
* "Days yet to be taken
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
* If the pay raise occurs in the VA payment then the estimation
* is already correct and the value of adjustment (/637) in December
* is correct as well
IF temp_betrg < 0.
temp_betrg = 0.
l_dif_cpamt = 0.
ENDIF.
* "Days yet to be taken
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000284857 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B89 $*
*$ Release 45B To SAPKE45BA6 $*
*$ Release 46C To SAPKE46C80 $*
*$ Release 470 To SAPKE47025 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCALLP0
*& Object Header PROG RPCALLP0
*&-------------------------------------------------------------------*
*& FORM CHECK_PAYDATE
*&-------------------------------------------------------------------*
...
ENDIF.
ENDLOOP.
LOOP AT p_payment_tab.
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000589523 $*
*$ Req. Corr. Instructions 0120031469 0000255997 Note 0000657871 $*
*$ 0120031469 0000261039 Note 0000609252 $*
*$ 0120031469 0000261114 Note 0000609252 $*
*$ 0120061532 0000534778 Note 0000607926 $*
*$ 0120061532 0000536595 Note 0000609252 $*
*$ 0120061532 0000545075 Note 0000614986 $*
*$ 0120061532 0000546990 Note 0000615582 $*
*$ 0120061532 0000556064 Note 0000609252 $*
*$ 0120061532 0000567543 Note 0000609252 $*
*$ 0120061532 0000573952 Note 0000609252 $*
*$ 0120061532 0000583969 Note 0000642329 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B84 $*
*$ Release 45B To SAPKE45BA2 $*
*$ Release 46C To SAPKE46C75 $*
*$ Release 470 To SAPKE47020 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCALLP1
*& Object Header PROG RPCALLP1
*&-------------------------------------------------------------------*
*& FORM DET_ESTIM_PART_ANNUAL
*&-------------------------------------------------------------------*
...
DATA: temp_anzhl LIKE pc207-anzhl,
temp_betrg LIKE pc207-betrg,
temp_amt LIKE pc207-betrg.
CLEAR: l_wa_ort.
* Old VA estimation
l_aux_estam = va-estam.
* When no immediate adjs. this wage type is processed until the month of
* the adjustment payment
READ TABLE ort INTO l_wa_ort WITH KEY lgart = '/637'.
IF sy-subrc = 0.
MOVE l_wa_ort TO rt.
APPEND rt.
* Difference to be added to the cumulated paid amount until the month
* of the adjustment payment
l_dif_cpamt = l_wa_ort-betrg.
*>>>> END OF INSERTION <<<<<<
...
temp_anzhl = max_days.
ELSEIF NOT va-payfl IS INITIAL.
temp_betrg = 0.
temp_anzhl = max_days - va-cvday + va-vdays.
ELSE.
*>>>> START OF DELETION <<<<<
temp_betrg = fact_betrg - va-cpamt - va-ediff.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
temp_betrg = fact_betrg - va-cpamt - va-ediff - l_dif_cpamt.
*>>>> END OF INSERTION <<<<<<
...
ENDIF.
MULTIPLY temp_betrg BY temp_anzhl.
DIVIDE temp_betrg BY max_days.
* Then: Add amount already paid
ADD va-cpamt TO temp_betrg.
*>>>> START OF DELETION <<<<<
ELSE.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
* When no immediate adjs. is used
ADD l_dif_cpamt TO temp_betrg.
ELSE.
*>>>> END OF INSERTION <<<<<<
...
ENDIF.
IF sy-subrc = 0.
l_aux_betrg = va-estam - l_aux_estam.
ADD rt-betrg TO l_aux_betrg.
ELSE.
l_aux_betrg = va-estam - va-cpamt.
ENDIF.
CLEAR: rt.
rt-abart = '*'.
rt-lgart = '/637'.
rt-betrg = l_aux_betrg.
rt-anzhl = temp_anzhl.
IF sy-subrc = 0.
MODIFY rt INDEX sy-tabix.
else.
* Generating for the first time the wt /637
APPEND rt.
ENDIF.
MOVE rt TO ot.
PERFORM hr_pt_addcu. "Cumulate adjustm. to /1*
ENDIF.
CLEAR: l_wa_rt.
* By default, assume an adjustment is never to be made
*>>>> END OF INSERTION <<<<<<
...
ENDIF.
ENDIF.
ENDIF.
IF need_adjust EQ true.
*>>>> START OF DELETION <<<<<
* Correct amount paid over annual estimation
temp_betrg = va-estam - va-cpamt.
*>>>> END OF DELETION <<<<<<<
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000591236 $*
*$ Req. Corr. Instructions 0120031469 0000261039 Note 0000609252 $*
*$ 0120031469 0000261114 Note 0000609252 $*
*$ 0120061532 0000509665 Note 0000581081 $*
*$ 0120061532 0000534177 Note 0000602585 $*
*$ 0120061532 0000555941 Note 0000617471 $*
*$ 0120061532 0000556064 Note 0000609252 $*
*$ 0120061532 0000567543 Note 0000609252 $*
*$ 0120061532 0000573952 Note 0000609252 $*
*$ 0120061532 0000583969 Note 0000642329 $*
*$ 0120061532 0000589523 Note 0000662903 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B84 $*
*$ Release 45B To SAPKE45BA2 $*
*$ Release 46C To SAPKE46C75 $*
*$ Release 470 To SAPKE47020 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCALLP1
*& Object Header PROG RPCALLP1
*&-------------------------------------------------------------------*
*& FORM DET_LEAVE_TAKEN
*&-------------------------------------------------------------------*
...
ELSEIF sy-subrc = 0.
l_it-anzhl = l_wa_p0015-anzhl.
ENDIF.
ENDIF.
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000596451 $*
*$ Req. Corr. Instructions 0120061532 0000589523 Note 0000662903 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B85 $*
*$ Release 45B To SAPKE45BA3 $*
*$ Release 46C To SAPKE46C76 $*
*$ Release 470 To SAPKE47020 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCALLP1
*& Object Header PROG RPCALLP1
*&-------------------------------------------------------------------*
*& FORM DET_ESTIM_PART_ANNUAL
*&-------------------------------------------------------------------*
...
DATA: l_aux_betrg LIKE pc207-betrg,
l_dif_cpamt LIKE pc207-betrg,
l_aux_estam LIKE pc207-betrg.
CLEAR: l_wa_ort.
*>>>> END OF INSERTION <<<<<<
...
DIVIDE fact_betrg BY bas_days.
ENDIF.
* Old VA estimation
l_aux_estam = va-estam.
*>>>> START OF DELETION <<<<<
PERFORM import USING 'L' space space.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
MOVE VA TO L_VA.
IF sy-subrc = 0.
l_aux_betrg = va-estam - l_aux_estam.
ADD rt-betrg TO l_aux_betrg.
ELSE.
l_aux_betrg = va-estam - va-cpamt.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
L_AUX_BETRG = VA-ESTAM - L_AUX_ESTAM.
IF sy-subrc = 0.
ADD rt-betrg TO l_aux_betrg.
ELSE.
IF VA-CPAMT = 0.
L_AUX_BETRG = 0.
ENDIF.
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
Number 671876
Version 10 vom 08.01.2004
Status Released for Customer
Set on ,28.11.2003
Language EN
Mastersprache EN
Short text HR-PT: New Labor Law from August 27th, 2003
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
The contract law has been modified and the system needs to be maintained
in order to be able to deal with the new law. This law will be
compulsory after December the 1st of the current year.
1. The new law brings changes regarding the number of days for
vacations and how they should be generated.
2. The hourly rate calculation for the overtime work has been changed
by the new law. If an employee has the "Regime de Adaptabilidade"
the calculation for the hourly rate changes.
4. The way to process the night shift has been modified as well. The
night shift is now consider after 22 o'clock except for all the
employees that satisfy the conditions according the article 11.�,
published on August 27th, 2003.
Other terms
C�digo do Trabalho ; Labor Law ;
4.5B - LCPA4
4.6B - LCP86
4.6C - LCP77
4.7 - LCP22
It's important that for the L9B, L9C and L6B the note #660891 is
implemented in the system before you apply the new LCP or the advance
delivery attached in this note.
Attached files
Solution
c) The solution for the legal change for the overtime limits
depending on the company can be found in the note #683795.
d) The solution for the new process of the night shift can be found
in the note #675177.
HR_QTACC_ACCRUAL_ENTITLE_19;
HR_CHANGE_QUOTAS_GEN_19;
Note: The files are attached in this note. To download the files please
check the note 13719, 212876 and 480180.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Number 675177
Version 29 vom 26.04.2004
Status Released for Customer
Set on ,26.04.2004
Language EN
Mastersprache EN
Short text Legal Changes on the subject of Night Shift
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
Article 11.�, published on August 27th,2003, says that the employee will
continue to receive an additional remuneration for night shift between
20:00 and 22:00 if :
From August 27th,2003 on, the night shift is considered after 22:00.
Other terms
Portugal , M185 , Trabalho nocturno , Retribui��o , night shift
Solution
The company must find the total of worked hours between 20:00 and 22:00
and after 22:00, for the period between August 27th,2002 and August
27th,2003, for each employee.This is needed to check which employees
still have the right to receive this bonus in the future (Article 11.�).
The following solution is only a possible one, which was tested in our
standard system.
A new field is added in IT0334 in order to allow the customer to
customize for each employee how the system should behave regarding the
night shift. For instance if an employee still have the right to receive
the bonus according the new law, the field 'Night Shift' must be
checked.
In order to read this information a nem Time Management operation is
needed, please create a TM operation. This operation must have the same
parameters as the payroll operation PT334 and must be created in the
customer include 'RPTMOZ00' with the following code:
*&---------------------------------------------------------------------*
*& Form OPPT334
*&---------------------------------------------------------------------*
* Reads de fields for the night shift and "Regime de
* Adaptabilidade" from it0334
*----------------------------------------------------------------------*
FORM oppt334.
INFOTYPES: 0334.
CLEAR vargt.
IF p0334[] IS INITIAL.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
tclas = 'A'
pernr = pernr-pernr
infty = '0334'
begda = wpbp-begda
endda = wpbp-endda
TABLES
infty_tab = p0334.
ENDIF.
CASE op+5(5).
WHEN 'NIGHT'.
PROVIDE night FROM p0334
BETWEEN wpbp-begda AND wpbp-endda.
WHEN 'RGOVT'.
PROVIDE rgovt FROM p0334
BETWEEN wpbp-begda AND wpbp-endda.
WHEN OTHERS.
ENDCASE.
IF vargt EQ space.
IF psp-datum < '20031201'.
vargt = 'X'.
ELSE.
vargt = '*'.
ENDIF.
ENDIF.
ENDFORM. "oppt334
1. To read the new field from it0334 use the operation PT334 created
above.
Create a Time Management personnel calculation rule ZYYY with the
following code:
2. This rule could be called from the sub-schema PC00 before the wage
types generation for the night shift.
3. New records must be created into table T510S for the new day
grouping 02 according to the company policy.
Note
The new field in infotype 0334 is included in the advance delivery in
the note #671876 which contains all the modifications to apply the new
labor law. These modifications will be included as well in the following
LCP's:
4.5B - LCPA4
4.6B - LCP86
4.6C - LCP77
4.7 - LCP22
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
Number 682923
Version 1 vom 20.11.2003
Status Released for Customer
Set on ,27.11.2003
Language EN
Mastersprache EN
Short text HR-PT: RPICHRP0 - period to be defined manually
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
When running the report RPICHRP0 for a informed year the employees
were selected when being active at any time in that year.
Now the period can be informed and the report will process only the
employees active in the informed periods.
Other terms
RPICHRP0; CA; Christmas Allowance;
Reason and Prerequisites
Solution
The correction described in this note is included in an HR Support
Package. See below for the package number.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000267928 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B90 $*
*$ Release 45B To SAPKE45BA8 $*
*$ Release 46C To SAPKE46C81 $*
*$ Release 470 To SAPKE47026 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPICHRP0
*& Object Header PROG RPICHRP0
*&-------------------------------------------------------------------*
*& AT SELECTION-SCREEN ON URLJJ
*&-------------------------------------------------------------------*
...
at selection-screen on urljj. "XFIR45K021299
*>>>> START OF DELETION <<<<<
pnpbegda = '19000101'. "XFIR45K021299
pnpbegda+0(4) = urljj. "XFIR45K021299
pnpendda = '19001231'. "XFIR45K021299
pnpendda+0(4) = urljj. "XFIR45K021299
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
if pnpbegda is initial.
pnpbegda = '19000101'.
endif.
pnpbegda+0(4) = urljj.
if pnpendda is initial.
pnpendda = '19001231'.
endif.
pnpendda+0(4) = urljj.
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
Number 687491
Version 6 vom 30.01.2004
Status Released for Customer
Set on ,30.01.2004
Language EN
Mastersprache EN
Short text HR-PT: Corrections to generic statistical (RPCGSRP0)
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
According to Legal Entity (Departamento de Estudos, Estat�stica e
Planeamento), the Earning Survey and the Work Schedule Survey are
unified to one Survey.
Other terms
RPCGSRP0;
Reason and Prerequisites
Solution
The correction described are included in a LCP. Please look below for
the correction number.
The LCP includes:
The LCP's are the prefered method for implementing standard changes in
your system or advance delivery attached in this note.
To know which file (in attachment of this note) corresponding to your
release, please see below:
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Number 691640
Version 6 vom 20.04.2004
Status Released for Customer
Set on ,21.04.2004
Language EN
Mastersprache EN
Short text HR-PT: Corrections to the New Labor Law 2003
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
3. If an fixed term employee is hired for one year and the finish date
is in the next year he/she must be entitle to 20 days of vacations,
and the system is generating 22.
Other terms
New law 2003;
Solution
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000279876 $*
*$ Req. Corr. Instructions 0120061532 0000294703 Note 0000416743 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B88 $*
*$ Release 45B To SAPKE45BA6 $*
*$ Release 46C To SAPKE46C79 $*
*$ Release 470 To SAPKE47024 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object FUNC HR_QTACC_ACCRUAL_ENTITLE_19
*& Object Header FUGR 3P04
*&-------------------------------------------------------------------*
*& FUNCTION HR_QTACC_ACCRUAL_ENTITLE_19
*&-------------------------------------------------------------------*
...
ENDIF.
* according the absence that the employee had in the last completed year
* he/she will be entitled to more or less days of vacations
* Contrato de trabalho art. 213� 27 Agosto de 2004
IF l_abday LE 1.
*>>>> START OF DELETION <<<<<
xqtnum = 25.
ELSEIF l_abday BETWEEN 1 AND 2.
xqtnum = 24.
ELSEIF l_abday BETWEEN 2 AND 3.
xqtnum = 23.
ELSE.
xqtnum = 22.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
* xqtnum = 25.
xqtnum = xqtnum + 3.
ELSEIF l_abday BETWEEN 1 AND 2.
* xqtnum = 24.
xqtnum = xqtnum + 2.
ELSEIF l_abday BETWEEN 2 AND 3.
* xqtnum = 23.
xqtnum = xqtnum + 1.
ELSE.
* xqtnum = 22.
* Nothing is done the number of days remains the same
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000287928 $*
*$ Req. Corr. Instructions 0120061532 0000390932 Note 0000511101 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B89 $*
*$ Release 45B To SAPKE45BA7 $*
*$ Release 46C To SAPKE46C80 $*
*$ Release 470 To SAPKE47025 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCMASPF
*& Object Header PROG RPCMASPF
*&-------------------------------------------------------------------*
*& FORM FUPVACT
*&-------------------------------------------------------------------*
...
CALL FUNCTION 'HR_PT_HIRE_FIRE'
EXPORTING
beg = '18000101'
end = aper-endda
IMPORTING
fire_date = l_fire_date
hire_date = l_hire_date
TABLES
pp0000 = p0000
pp0001 = p0001
pp0016 = p0016
pp0041 = p0041
EXCEPTIONS
entry_date_not_found = 1
feature_error = 2
OTHERS = 3.
IF sy-subrc NE 0.
RAISE error_hire_fire.
ENDIF.
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000628835 $*
*$ Req. Corr. Instructions 0120031469 0000279876 Note 0000691640 $*
*$ 0120061532 0000294703 Note 0000416743 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B92 $*
*$ Release 45B To SAPKE45BB0 $*
*$ Release 46C To SAPKE46C83 $*
*$ Release 470 To SAPKE47028 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object FUNC HR_CHANGE_QUOTAS_GEN_19
*& Object Header FUGR 3P04
*&-------------------------------------------------------------------*
*& FUNCTION HR_CHANGE_QUOTAS_GEN_19
*&-------------------------------------------------------------------*
...
IF ( l_tentr = c_full_year
AND l_2nd_year = xbegda(4)
* AND l_nr_months GE 6
AND l_contr_years LT '1' )
* fixed term EE with change of year
OR ( l_tentr = c_1st_year
*>>>> START OF DELETION <<<<<
AND l_nr_months LT 10
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
AND l_nr_months LE 10
*>>>> END OF INSERTION <<<<<<
...
ENDIF.
...
IF ( l_tentr = c_full_year
AND l_2nd_year = xacbeg(4)
* AND l_nr_months GE 6
AND l_contr_years LT '1' )
* fixed term EE with change of year
OR ( l_tentr = c_1st_year
*>>>> START OF DELETION <<<<<
AND l_nr_months LT 10
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
AND l_nr_months LE 10
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
SAP note number 695893
________________________________________________________________________
Number 695893
Version 2 vom 04.02.2004
Status Released for Customer
Set on ,04.02.2004
Language EN
Mastersprache EN
Short text HR-PT: Enhancements to the VA payment method 'D'
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
Other terms
payment method D ; VA ;
Reason and Prerequisites
Solution
The correction and enhancements described in this note are included an
HR Support Package. See below for the package number.
The support package includes:
- code modifications to the includes RPCALLP0, RPCALLP1 and RPCMASPF.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000295878 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B90 $*
*$ Release 45B To SAPKE45BA8 $*
*$ Release 46C To SAPKE46C81 $*
*$ Release 470 To SAPKE47026 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCALLP0
*& Object Header PROG RPCALLP0
*&-------------------------------------------------------------------*
*& FORM GET_PAY_DATA
*&-------------------------------------------------------------------*
...
IF r_t5pva-paytr EQ c_before_every_lp.
IF need_adjust EQ true.
IF need_adjust EQ true.
IF aper-paper+4(2) = '01'
AND add_days = true.
...
*&-------------------------------------------------------------------*
*&-------------------------------------------------------------------*
*& Object REPS RPCMASPF
*& Object Header PROG RPCMASPF
*&-------------------------------------------------------------------*
*& FORM FUPVACG
*&-------------------------------------------------------------------*
...
PERFORM get_pay_data TABLES i_ptquoded
USING va
r_t5pva
pn-begda pn-endda
begyear endyear
CHANGING fl_now
pay_data.
*>>>> START OF DELETION <<<<<
* Should a payment be made in the current period?
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
Number 696406
Version 4 vom 24.01.2004
Status Released for Customer
Set on ,24.01.2004
Language EN
Mastersprache EN
Short text HR-PT: Legal Changes to the Social Security number
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
The Social Security number has been modified by the Portuguese legal
authority 'Minist�rio da Seguran�a Social e do Trabalho'.
According the Portaria n.� 1360/2003 from December 13th, 2003, the new
S.S. number will have 11 digits. Therefore some enhancement needs to be
done to IT0332 and to the legal report remuneration sheet.
Other terms
IT0332 ; S.S. ; RPCSSRP0
Solution
1. The IT0332 has been modified in order to accept 9 digits or the new
length according the customize in table T5P2I.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000291596 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B89 $*
*$ Release 45B To SAPKE45BA7 $*
*$ Release 46C To SAPKE46C81 $*
*$ Release 470 To SAPKE47025 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object FUNC HR_P_CHECK_SS_NUMBER
*& Object Header FUGR RPP1
*&-------------------------------------------------------------------*
*& FUNCTION HR_P_CHECK_SS_NUMBER
*&-------------------------------------------------------------------*
...
FUNCTION HR_P_CHECK_SS_NUMBER.
*"----------------------------------------------------------------------
*"*"Local interface:
*" IMPORTING
*" VALUE(SS_NUMBER) LIKE P0332-SSNUM
*" VALUE(SS_INSTITUTION) LIKE P0332-SSINS
*" EXCEPTIONS
*" NUMBER_OF_DIGITS_NOT_OK
*"----------------------------------------------------------------------
I = STRLEN( SS_NUMBER ).
IF I NE T5P2I-NRDIG.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
CONSTANTS: c_old_ss_number TYPE numc2 VALUE '9'.
i = strlen( ss_number ).
IF i NE c_old_ss_number
AND i NE t5p2i-nrdig.
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
*&-------------------------------------------------------------------*
*& Object REPS RPCSSRP1
*& Object Header PROG RPCSSRP1
*&-------------------------------------------------------------------*
*& FORM FILL_BENEFICIARY
*&-------------------------------------------------------------------*
...
stat_numben TYPE t_s_beneficiary-numben,
stat_nomben TYPE t_s_beneficiary-nomben,
Number 698535
Version 1 vom 20.01.2004
Status Released for Customer
Set on ,20.01.2004
Language EN
Mastersprache EN
Short text HR-PT: Personnel Summary - Promotion date
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
The promotion date is not correct when the date type P8 doesn't exist
in Infotype 0041 and the entries in Infotype 0008 have the same Pay
Scale Group and Pay Scale Level.
Other terms
RPCPRSP0; Personnel Summary;
Solution
The correction described are included in a LCP. Please look below for
the correction number.
The LCP includes:
The LCP's are the prefered method for implementing standard changes in
your system. Still, if you wish, you can implement them yourself by
performing the source code corrections as indicated below.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000289138 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B90 $*
*$ Release 45B To SAPKE45BA8 $*
*$ Release 46C To SAPKE46C81 $*
*$ Release 470 To SAPKE47026 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCPRSPF
*& Object Header PROG RPCPRSPF
*&-------------------------------------------------------------------*
*& FORM GET_PROMOTION_DATE
*&-------------------------------------------------------------------*
...
*----------------------------------------------------------------------*
FORM get_promotion_date CHANGING p_prmda LIKE p0008-begda.
DATA: trfgr LIKE p0008-trfgr,
trfst LIKE p0008-trfst.
IF p_prmda IS INITIAL.
*>>>> START OF DELETION <<<<<
CLEAR: trfgr, trfst.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
CLEAR: trfgr, trfst, lv_count.
*>>>> END OF INSERTION <<<<<<
...
LOOP AT p0008.
IF trfgr NE p0008-trfgr OR trfst NE p0008-trfst.
MOVE p0008-begda TO p_prmda.
MOVE p0008-trfgr TO trfgr.
MOVE p0008-trfst TO trfst.
*>>>> START OF DELETION <<<<<
ENDIF.
ENDLOOP.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
lv_count = lv_count + 1.
ENDIF.
ENDLOOP.
if lv_count = 1.
clear p_prmda.
endif.
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
Number 698916
Version 1 vom 20.01.2004
Status Released for Customer
Set on ,21.01.2004
Language EN
Mastersprache EN
Short text HR-PT: Operation PEVLA - Duplicate instruction
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
Duplicate instruction (NUM-TAAX**) in operation PEVLA.
Other terms
PEVLA; RPCBURPF;
Reason and Prerequisites
Solution
The correction described are included in a LCP. Please look below for
the correction number.
The LCP includes:
The LCP's are the prefered method for implementing standard changes in
your system. Still, if you wish, you can implement them yourself by
performing the source code corrections as indicated below.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
Assigned correction instructions
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000290029 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B89 $*
*$ Release 45B To SAPKE45BA7 $*
*$ Release 46C To SAPKE46C80 $*
*$ Release 470 To SAPKE47025 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCBURPF
*& Object Header PROG RPCBURPF
*&-------------------------------------------------------------------*
*& FORM OPPEVLA
*&-------------------------------------------------------------------*
...
FORM oppevla.
LOCAL: as-parm2,
as-parm3.
DATA: average LIKE it-betrg.
saveot = ot.
*>>>> END OF INSERTION <<<<<<
...
average = t511k-kwert.
it-anzhl = ( wpbp-asoll * average ) / gasoll. "Factoring.
* Number of days per month included in a PCRule.
WHEN ' '.
IF NOT t5pla-dcycl IS INITIAL.
*>>>> START OF DELETION <<<<<
Number 701479
Version 2 vom 30.01.2004
Status Released for Customer
Set on ,30.01.2004
Language EN
Mastersprache EN
Short text HR-PT: Corrections to Overtime Communication
(RPCOVCP0)
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
According to the new labor, the description of the text elements 011 and
012 must be changed in report RPCOVCP0:
Other terms
RPCOVCP0; Overtime Communication;
Solution
The corrections described here are included in a LCP. Please look below
for the correction number.
The LCP includes:
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
Language EN
Mastersprache EN
Short text HR-PT: Corrections to Social Balance report
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
o Cover Page:
o Personnel Costs:
Other terms
RPCSOCP0; RPCSOCPC; RPCSOCP7; RPCPRSP0; RPCGSRP0; Social Balance;
Personnel Costs; Cover Page; Personnel Summary; Generic statistical
report;
Solution
The correction described are included in a LCP. Please look below for
the correction number.
The LCP includes:
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
Number 707017
Version 1 vom 13.02.2004
Status Released for Customer
Set on ,16.02.2004
Language EN
Mastersprache EN
Short text HR-PT: Unpaid absence days relevant for Social
Security days
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
The unpaid absence days are not correctly taken from table CABC for
calculating the number of days for Social Security (WT /3WD).
Other terms
SS; /3WD; Absence;
Reason and Prerequisites
Solution
The correction described in this note is included in an HR Support
Package. See below for the package number.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
Number 707678
Version 2 vom 17.02.2004
Status Released for Customer
Set on ,27.02.2004
Language EN
Mastersprache EN
Short text HR-PT:Social Insurance/Work Center data with old
information
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
In the Membership Fee report the Social Insurance and Work Center data
were being wrongly taken from old period results.
Other terms
Membership; RPCFEEP0;
Reason and Prerequisites
Solution
The correction described in this note is included in an HR Support
Package. See below for the package number.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000301292 $*
*$ Req. Corr. Instructions 0120061532 0000406476 Note 0000518247 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B91 $*
*$ Release 45B To SAPKE45BA9 $*
*$ Release 46C To SAPKE46C82 $*
*$ Release 470 To SAPKE47027 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCFEEP0
*& Object Header PROG RPCFEEP0
*&-------------------------------------------------------------------*
*& GET PERNR
*&-------------------------------------------------------------------*
...
read table evpdir with key fpper = evpdir-fpper
srtza = 'P'.
if sy-subrc eq 0.
perform fill_tables tables i0057 xmf
using evpdir.
endif.
*>>>> START OF DELETION <<<<<
endif.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
else.
* Get SS data - Professional categoria
perform get_ss_data.
endif.
*>>>> END OF INSERTION <<<<<<
...
if exist_rec = false.
perform error_handling using pernr-pernr '72' 'E' '103'
pernr-pernr 'P0057' space space.
endif.
*>>>> START OF DELETION <<<<<
Number 711780
Version 2 vom 23.03.2004
Status Released for Customer
Set on ,26.03.2004
Language EN
Mastersprache EN
Short text HR-PT: Corrections to the VA payment method 'D'
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
When using the proportional payment type 'D' the following error occurs:
Other terms
payment method D ; VA ;
Solution
The correction described in this note are included an HR Support Package
See below for the package number.
The support package includes:
- code modifications to the include RPCMASPF.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
Assigned correction instructions
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120031469 0000307214 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B91 $*
*$ Release 45B To SAPKE45BB0 $*
*$ Release 46C To SAPKE46C82 $*
*$ Release 470 To SAPKE47028 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCALLP1
*& Object Header PROG RPCALLP1
*&-------------------------------------------------------------------*
*& FORM VA_ADJUST_PERIOD
*&-------------------------------------------------------------------*
...
ENDIF.
ENDIF.
ELSE.
* in case that the leave period is deleted from it2001
IF ova-pdays > va-vdays.
*>>>> START OF DELETION <<<<<
temp_betrg = va-fixco - ova-fixco.
temp_betrg = ova-pdays / max_days * temp_betrg.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
IF ova-pdays NE ova-vdays AND ova-obegd+4(2) = '02'.
temp_betrg = va-clamt.
IF temp_betrg > 0
AND days_npaid = aux_anzhl
AND days_npaid <> 0.
* The it2001 was created after the payroll process and a
* retro until the correct payment month wasn't done
add_days = true.
ENDIF.
ELSE.
temp_betrg = va-fixco - ova-fixco.
temp_betrg = ova-pdays / max_days * temp_betrg.
ENDIF.
*>>>> END OF INSERTION <<<<<<
...
IF va-cpayf EQ 'A' OR va-cpayf EQ 'N'.
* Correct number of days paid with old /EVA
IF ( ova-pdays <> 0 AND aux_anzhl < 0 )
* in case that the leave period is deleted from it2001
OR ( ova-pdays > va-vdays ).
*>>>> START OF DELETION <<<<<
temp_anzhl = ova-pdays.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
IF ova-pdays NE ova-vdays AND ova-obegd+4(2) = '02'.
temp_anzhl = va-vdays.
ELSE.
temp_anzhl = ova-pdays.
ENDIF.
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
Number 712333
Version 7 vom 01.04.2004
Status Released for Customer
Set on ,01.04.2004
Language EN
Mastersprache EN
Short text HR-PT: Upload of IRS tables 2004 into T5P1P
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
The IRS tables and Variable Income published every year need to be
upload from files into table T5P1P.
This process has to be done by the customer.
Other terms
T5P1R; T5P1P; IRS; 2004;
Reason and Prerequisites
Solution
The upload of the IRS and Variable Income tables is based in two type of
files which have extention DAT(created in Notepad) and CSV(created in
Excel).
For IRS tables you should have a file with name yyyy_COD.DAT which will
contain the table configuration and many yyyy_tt_Er.CSV which contain
the rates and ranges, where "yyyy" is the year of the tables you are
uploading, "tt" is the number of the table for example 01, 02, etc. The
"r" means the region which could be C(ontinent), M(adeira) or A(�ores).
For Variable Income table you should have a file with name yyyy_VAR.DAT
which will contain the table configuration and one yyyy_V1_EC.CSV, where
"yyyy" is the year of the tables you are uploading
"05;6"
"06;6"
"07;3"
"08;3"
"09;3"
The files with extention CSV have to be created, one for each IRS table,
copying the columns which contain the amounts and rates from the files
delivered by the legal institution which are attached in this note.
After copying the table to the new excel sheet it is necessary to fill
the limit of the last range the one in the line that has indication
"Superior a" with 9's(with 9 digits), like 9999999,99.
File IRS2004.zip in attachment has examples of the files for IRS tables
of this year.
File VAR2004.zip in attachment has examples of the files for Variable
Income table of this year.
After having the files correctly created you have to run report RPUTAXP0
for each region(Continent, Madeira and Acores).
STEPS SUMMARY:
1. Install Advance Delivery with new report RPUTAXP0 (Attention: a
new version of this report is provided in Advance Delivery, if you
had already created it, please update it before running it for
Variable Income tables 2004);
2. install files in directory "C:\TEMP\";
3. run report RPUTAXP0 independently for IRS and Variable Income tables.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
SAP note number 712368
________________________________________________________________________
Number 712368
Version 6 vom 30.03.2004
Status Released for Customer
Set on ,30.03.2004
Language EN
Mastersprache EN
Short text HR-PT: New table T5P1P for IRS since 2004
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
When updating table T5P1R with the new values of IRS tables every year
the table had to be completely delivered what means a Support Package
with thousands of table entries.
It represents a heavy process when installing the Support Package in
any customer.
Other terms
IRS; T5P1R; T5P1P;
Reason and Prerequisites
Solution
This note creates a new table in the dictionary so in case of release
migration it is mandatory to have installed the HR Support Packages
refered below in this note.
instruction below and to create and run a report with the following code
which will copy all the entries of table T5P1R to the new table T5P1P
converting the key to the new format.
IMPORTANT:
Be aware of an Advance Delivery delivers the last version of the object,
it means that if you do not have the last HR Support Package installed
in you system you could get errors, either Syntax Errors or process
errors. In this case the only option is to undo the changes from Advance
Delivery and do the changes manually.
STEPS SUMMARY:
REPORT xxxxxxP0.
START-OF-SELECTION.
001 Deseja converter TODAS entradas da tabela T5P1R para tabela T5P1P ?
002 Tabela T5P1P j� existe e n�o pode ser carregada novamente
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
References to Support Packages
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000610849 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B91 $*
*$ Release 45B To SAPKE45BA9 $*
*$ Release 46C To SAPKE46C83 $*
*$ Release 470 To SAPKE47028 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPCFTBP0
*& Object Header PROG RPCFTBP0
*&-------------------------------------------------------------------*
...
TABLES: T5P2M,
T5P2R,
T5P2S,
T5P2P. "XCPPH4K020810
* IRS (Tax)
TABLES: T5P1S,
*>>>> START OF DELETION <<<<<
T5P1R,
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
T5P1P,
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
*&-------------------------------------------------------------------*
*& Object REPS RPCI97P0
*& Object Header PROG RPCI97P0
*&-------------------------------------------------------------------*
*& REPORT RPCI97P0
*&-------------------------------------------------------------------*
...
report rpci97p0 message-id rp.
tables: pernr.
if curr ne 'EUR'.
alt_curr = 'PTE'.
else.
alt_curr = 'EUR'.
endif.
if sy-subrc ne 0.
ret_code = 3.
exit.
endif.
endif.
ret_rate = t5p1p-rate.
...
*&-------------------------------------------------------------------*
*& FORM RE5P1R
*&-------------------------------------------------------------------*
*>>>> START OF DELETION <<<<<
*&---------------------------------------------------------------------*
*& Form RE5P1R
*&---------------------------------------------------------------------*
* Reads table T5P1R
*-----------------------------------------------------------------------
form re5p1r using brut tabl column actualdate curr
changing ret_rate
ret_code.
if curr ne 'EUR'.
alt_curr = 'PTE'.
else.
alt_curr = 'EUR'.
endif.
if sy-subrc ne 0.
ret_code = 3.
exit.
endif.
endif.
ret_rate = t5p1r-rate.
...
*&---------------------------------------------------------------------*
* Store determined wage types in IT
*----------------------------------------------------------------------*
FORM COLLECT_IT USING $WTYPE LIKE IT-LGART
$AMT TYPE PPT01_GAMT
*>>>> START OF DELETION <<<<<
$RATE LIKE T5P1R-RATE.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
$RATE LIKE T5P1P-RATE.
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
*& FORM COLLECT_IT_PER
*&-------------------------------------------------------------------*
...
*&---------------------------------------------------------------------*
* Store determined wage types in IT using WPBP split indicator *
*----------------------------------------------------------------------*
FORM COLLECT_IT_PER TABLES $AMT_TAB LIKE MOD_AMOUNT[]
USING $WTYPE LIKE IT-LGART
*>>>> START OF DELETION <<<<<
$RATE LIKE T5P1R-RATE.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
$RATE LIKE T5P1P-RATE.
*>>>> END OF INSERTION <<<<<<
...
*&-------------------------------------------------------------------*
*&-------------------------------------------------------------------*
*& Object REPS RPCSOCP7
*& Object Header PROG RPCSOCP7
*&-------------------------------------------------------------------*
*& FORM DETERMINE_NETPAY
*&-------------------------------------------------------------------*
...
FORM DETERMINE_NETPAY USING P_ENDDA LIKE SY-DATUM
P_WAERS LIKE T500C-WAERS
P_CURRDEC LIKE TCURX-CURRDEC
CHANGING NETPAY_TABS STRUCTURE NETPAY_TABS
P_RETURN_CODE LIKE SY-SUBRC.
Number 713110
Version 2 vom 08.04.2004
Status Released for Customer
Set on ,08.04.2004
Language EN
Mastersprache EN
Short text HR-PT: Constant CTLAW for new labor law - article
213o.
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
Whether to apply or not the new labor law article 213� for year 2004.
Other terms
article 213; HR_QTACC_ACCRUAL_ENTITLE_19;
Solution
o To create the new payroll constant CTLAW that will allow to apply
or notthis law.
The corrections described are available in a LCP. Please look below for
the correction number.
The LCP includes:
The LCP's are the prefered method for implementing standard changes in
your system. Still, if you wish, you can implement them yourself by
performing the source code corrections as indicated below.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
Number 718951
Version 2 vom 26.03.2004
Status Released for Customer
Set on ,26.03.2004
Language EN
Mastersprache EN
Short text HR-PT: Corrections to Leave annual summary -
RPLESUP0
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
when selecting leave year YYYY and deducted to current year quota, the
system does consider only the leave period of year YYYY.
The system should also consider the leave period of year YYYY + 1.
Other terms
RPLESUPF; Leave annual summary; Mapa de F�rias;
Solution
The correction described are included in a LCP. Please look below for
the correction number.
The LCP's are the prefered method for implementing standard changes in
your system. Still, if you wish, you can implement them yourself by
performing the source code corrections as indicated below.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________
*$*$--------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000617002 $*
*$------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_HR R/3 Standard Human Resource $*
*$ Release 46B To SAPKE46B92 $*
*$ Release 45B To SAPKE45BB0 $*
*$ Release 46C To SAPKE46C83 $*
*$ Release 470 To SAPKE47028 $*
*$*$--------------------------------------------------------------$*$*
*&-------------------------------------------------------------------*
*& Object REPS RPLESUPF
*& Object Header PROG RPLESUPF
*&-------------------------------------------------------------------*
*& FORM CHECK_SUM_TYPE
*&-------------------------------------------------------------------*
...
FORM check_sum_type TABLES p_p0416 STRUCTURE p0416
p_p2001 STRUCTURE p2001
p_p2006 STRUCTURE p2006
USING p_pn_begda LIKE pn-begda
p_pn_endda LIKE pn-endda
CHANGING ret_code LIKE return_code.
* data definition
DATA: prevyear LIKE leyear,
actyear LIKE leyear,
valid TYPE boolean,
*>>>> START OF DELETION <<<<<
lin LIKE sy-tfill.
* initialisation
CLEAR: prevyear,
actyear.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
lin LIKE sy-tfill,
nextyear LIKE leyear.
* initialisation
CLEAR: prevyear,
actyear,
nextyear.
*>>>> END OF INSERTION <<<<<<
...
Number 721401
Version 1 vom 25.03.2004
Status Released for Customer
Set on ,25.03.2004
Language EN
Mastersprache EN
Short text HR-PT: RPCOVCP0 not able to print complete number of
hours
Responsible SAP AG
Component PY-PT
Portugal
________________________________________________________________________
Long text
Symptom
Report RPCOVCP0 is not able to show/print completely the number of hours
when it has hundred unit and negative sign.
Other terms
RPCOVCP0 ;
Reason and Prerequisites
Solution
The correction described in this note is included in an HR Support
Package. See below for the package number.
________________________________________________________________________
Valid releases
Software component Release
from to
________________________________________________________________________
________________________________________________________________________