Вы находитесь на странице: 1из 190

HR350 HR (Unit 0)

HR350

HR
R

SAP AG

R/3
4.0
1998
50024296

SAP-AG Offline Translation Tool 3.2

Page 1

HR350 HR (Unit 0)

Copyright ( )
Copyright 1997 SAP AG. .

SAP AG

.

.
. All rights reserved.

SAP AG


SAP SAP SAP

AG.
MS-DOS EXCEL

Microsoft.
OS/2, CICS, MVS, ACF/VTAM, VSE,AIX, OS/400 AS/400

IBM.
X-Window-System MIT

University.
SINIX, UTM BS2000

Siemens.
UNIX AT&T.
HP-UX Hewlett Packard.
DECnet, DECstation, DECsystem, VAXstation VMS

DEC.
Ethernet Xerox

Corporation.
ORACLE SQL*net, SQL*+ PRO*C

ORACLE Corporation.
INFORMIX-OnLine INFORMIX-ESQL/C

INFORMIX Corporation.

SAP-AG Offline Translation Tool 3.2

Page 2

HR350 HR (Unit 0)

R/3

FI

SD

MM

CO

. .

PP

AM

R/3

-
-

QM

.
. -
-

/
ABAP/4
WF
PM

HR

PS

IS

SAP AG

R/3 SAP
.
, R/3

.

R/3

.
,
, .

SAP-AG Offline Translation Tool 3.2

Page 3

HR350 HR (Unit 0)

(2)
(1)
3
3

2
2
HR305

HR505

3HR

HR305
3


HR050

HR050

5
5

HR315

AC270
3

HR540
3

HR550
2
-

HR390

HR400
5

HR306
2


HR4xx

.

HR2
NN

HR700/HR7xx 3
NN

HR490

HR510

(

HR515)
3

HR520
2

HR310/311
4
HR801
2

HR307
2

HR350
5

HR
HR530
3
.
CA500
2
CATS:

R

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 4

HR350 HR (Unit 0)


HR050 -
ABAP

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 5

HR350 HR (Unit 0)

: 5

SAP AG

`
.


.
.

SAP-AG Offline Translation Tool 3.2

Page 6

HR350 HR (Unit 0)

HR

;

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 7

HR350 HR (Unit 1)


PNP

-
7


PCH

ABAP: HR

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 8

HR350 HR (Unit 1)

PNP:




,


SAP AG

SAP-AG Offline Translation Tool 3.2

Page 9

HR350 HR (Unit 1)

PNP:
,
:

PNP;
,

.
R

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 10

HR350 HR (Unit 1)

PNP
1.

2.

3.

SAP AG

:

, .

:

,
.

:
, , ,
.
SAPDBPNP.


,
.

SAP-AG Offline Translation Tool 3.2

Page 11

HR350 HR (Unit 1)

PA

:
Pnnnn

PSnnnn

Qnnnn

PAnnnn

PBnnnn

PCLn

SAP AG

Pnnnn -.
,

PSnnnn .
ABAP- PSnnnn
.
Qnnnn -.
PAnnnn ( ) PBnnnn (

) - nnnn.
PCLn (,
, ).
PAnnnn PBnnnn , :

- .

- ,
.

( ).

- SQL.

SAP-AG Offline Translation Tool 3.2

Page 12

HR350 HR (Unit 1)

-:
PAnnnn - 0002

PA0002

MANDT

PAKEY

PSHD1

PS0002

- Pnnnn - 0002

PSKEY

PSHD1

PS0002

SAP AG

Pnnnn
. PSnnnn
, -.
PSKEY PAKEY nnnn. .

SAP-AG Offline Translation Tool 3.2

Page 13

HR350 HR (Unit 1)


RP50M
...

INFTX ...

...

SPRTX

Q0002
...

ANREX(5)

...

- PS0002
...

ANRED(1)

...

SAP AG

, - (

), RP50M.
- Qnnnn.

. , P0002-ANRED
.
,
.
Q0002-ANREX.

SAP-AG Offline Translation Tool 3.2

Page 14

HR350 HR (Unit 1)


1. -
INFOTYPES:

0001,
0002,
0007.


2. -

GET PERNR .
R

SAP AG

PERNR

HR. , - 0000
0001, .
GET -

SAP-AG Offline Translation Tool 3.2

Page 15

HR350 HR (Unit 1)


TABLES: PERNR.
INFOTYPES: 0000,
.....
nnnn.
GET PERNR.
PROVIDE * FROM Pnnnn
BETWEEN PN-BEGDA
AND
PN-ENDDA.
ENDPROVIDE.

SAP AG

GET PERNR

-, .
- - ,

ROVIDE-ENDPROVIDE.
-, (BETWEEN-AND),

Pnnnn. ,
, ,
PN-BEGDA PN-ENDDA.

SAP-AG Offline Translation Tool 3.2

Page 16

HR350 HR (Unit 1)

GET PERNR.
Loop
i

PROVIDE * FROM P0001 ... .


P0001
ENDPROVIDE.

Loop
i

PROVIDE * FROM Pnnnn ... .


Pnnnn
ENDPROVIDE.

END-OF-SELECTION.

SAP AG

,
:

GET PERNR - .
, END-OF-SELECTION.

-
-.

SAP-AG Offline Translation Tool 3.2

Page 17

HR350 HR (Unit 1)

, (1)
-

SAP AG

- . ,

.
.

.
, ,

-.

SAP-AG Offline Translation Tool 3.2

Page 18

HR350 HR (Unit 1)

, (2)

SAP AG

, .
PROVIDE ,

.
-,

.
RP_PROVIDE_FROM_LAST RP_PROVIDE_FROMFRST.

SAP-AG Offline Translation Tool 3.2

Page 19

HR350 HR (Unit 1)

INFOTYPES: ...
GET PERNR.

PAnnnn

PROVIDE...
WRITE...

SAP AG

.
,

, ,
.
,

SAP-AG Offline Translation Tool 3.2

Page 20

HR350 HR (Unit 1)

PAnnnn

.......

GET PERNR
.......

SAP AG

- ,

.
, , :
;
,

, ..;
, .

SAP-AG Offline Translation Tool 3.2

Page 21

HR350 HR (Unit 1)

.......
PROVIDE * FROM Pnnnn
BETWEEN PN-BEGDA
AND
PN-ENDDA.
ENDPROVIDE.

SAP AG

PROVIDE

-,
.
, GET PERNR -

. ,
.

SAP-AG Offline Translation Tool 3.2

Page 22

HR350 HR (Unit 1)


INITIALIZATION.
PNPTIMED

= Y.

PNPABKRS-LOW
= D1.
PNPABKRS-HIGH
= D2.
PNPABKRS-OPTION = BT.
PNPABKRS-SIGN
= E.
APPEND PNPABKRS.
GET PERNR.
PROVIDE * FROM Pnnnn . . .
...

SAP AG

INITIALIZATION

.
QPPNP, PNPTIMED

D =
M =
Y =
P =
F = , .
Include- DBPNPSEL.

, APPEND.

SAP-AG Offline Translation Tool 3.2

Page 23

HR350 HR (Unit 1)

.......

GET PERNR
.......

A
/
- X
,
,

...

SAP AG

.
, ,

,
.
- "O ".

.
, ,

.
,

.
( ___X2001),

,
.

SAP-AG Offline Translation Tool 3.2

Page 24

HR350 HR (Unit 1)


: HR - .

ZPLIST00

ZPLIST10

1
2
3

SAP AG

IMG.
, :
1

.

.
3 1 2 .

1 3 ,

( , ).
2 3,

,
.

SAP-AG Offline Translation Tool 3.2

Page 25

HR350 HR (Unit 1)

PNP: (1)
PNP

,

. GET
Pnnnn

-.
Pnnnn

PROVIDE - ENDPROVIDE.
,
,
.
R

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 26

HR350 HR (Unit 2)

PNP: (2)


.
, .

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 27

HR350 HR (Unit 2)

- :

-

,

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 28

HR350 HR (Unit 2)

- :

,
:
-

PROVIDE - ENDPROVIDE;
-

;
,

.
R

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 29

HR350 HR (Unit 2)

SAP AG

,
-
PROVIDE, -,
PROVIDE
-.
-, .
,
- (JOIN),
. ,
.

, .


-.

. ,
-, ,
, . .

SAP-AG Offline Translation Tool 3.2

Page 30

HR350 HR (Unit 2)

/
INFOTYPES: 0001
0002.
GET PERNR.
PROVIDE * FROM P0001
* FROM P0002
* FROM Pnnnn
BETWEEN PN-BEGDA
AND
PN-ENDDA.
ENDPROVIDE.
R

SAP AG


-.
,
- .

SAP-AG Offline Translation Tool 3.2

Page 31

HR350 HR (Unit 2)

9999

SAP AG

- .
1:
2: ,

3:
-
:
... -.
-.
T, , T591A.
-
( 3),
,
. :
-
.
, -
1 2.

SAP-AG Offline Translation Tool 3.2

Page 32

HR350 HR (Unit 2)

/
INFOTYPES: 0002,
0006.

GET PERNR.
PROVIDE * FROM P0002
* FROM P0006
BETWEEN PN-BEGDA
AND
PN-ENDDA
WHERE P0006-SUBTY = <n>.
ENDPROVIDE.
R

SAP AG

- ,
. WHERE,
.

. ,
- - .
Pnnnn_VALID ,
.

- Pnnnn, .
- Pnnnn,
Pnnnn_VALID X.

SAP-AG Offline Translation Tool 3.2

Page 33

HR350 HR (Unit 2)

P0001

SAP AG

-
.
,

.
- ,
-.
.
, ,
. ,
, ,
.

,
.
, ,
.

SAP-AG Offline Translation Tool 3.2

Page 34

HR350 HR (Unit 2)

/
INFOTYPES: 0001.

GET PERNR.
PROVIDE STELL FROM P0001
BETWEEN PN-BEGDA
AND
PN-ENDDA
ENDPROVIDE.

SAP AG

* PROVIDE,
-, -,
.
* PROVIDE ,
-.
PROVIDE .
-
. .
, 1 2.
-
BEGDA ENDDA.

SAP-AG Offline Translation Tool 3.2

Page 35

HR350 HR (Unit 2)


P0001

P0002
R

SAP AG

-, ,
.
- ,
, .
- ,
.
, , ,
;
- .

SAP-AG Offline Translation Tool 3.2

Page 36

HR350 HR (Unit 2)

,

BEGDA
i0001

BEGDA
T513S

<

<

ENDDA

SELECT * FROM T513S


WHERE ...
AND BEGDA LE P0001-BEGDA
AND ENDDA GE P0001-BEGDA.
ENDSELECT.
R

SAP AG


-, , (: P0001, ). -

.
.
, .
, ,
-,
, -.
, , ,
-.

SAP-AG Offline Translation Tool 3.2

Page 37

HR350 HR (Unit 2)

: (1)



-.


.
-

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 38

HR350 HR (Unit 3)

: (2)

.
,
-,
,

-.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 39

HR350 HR (Unit 3)

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 40

HR350 HR (Unit 3)

:
,
:
;
-

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 41

HR350 HR (Unit 3)

RMAC
ABAP-
REPORT RPGnnUxx.
.
.
.
.
INITIALIZATION.
RP-SEL-EIN-AUS-INIT

TRMAC
.
.

RP-SEL-EIN-AUS-INIT
RP-SEL-EIN-AUS-INIT
RP-SEL-EIN-AUS-INIT
RP-SEL-EIN-AUS-INIT
.
.
.

001
001 REFRESH
REFRESH PNPST
PNPST
002
CLEAR
PNPST
002
CLEAR
PNPST
.
.
.

RP-SEL-EIN-AUS-INIT
RP-SEL-EIN-AUS-INIT
.
.
.

nnn
nnn
.
.
.
.
.
.

SAP AG

,
-
.
.
ABAP (TRMAC).
.

. , TRMAC,
.

SAP-AG Offline Translation Tool 3.2

Page 42

HR350 HR (Unit 3)

Pnnnn

.......
RP_PROVIDE_FROM_LAST Pnnnn SPACE PN-BEGDA PN-ENDDA.
.......
R

SAP AG

RP_PROVIDE_FROM_LAST
, .
RP_PROVIDE_FROM_LAST -,
( ,
), .

, ,
RP_PROVIDE_FROM_FRST.
SAPDBPNP (Include DBPNPMAC)
DEFINE.
, PNP.

SAP-AG Offline Translation Tool 3.2

Page 43

HR350 HR (Unit 3)

PAnnnn

START-OF-SELECTION.
RP_SET_DATA_INTERVAL Pnnnn PN-BEGDA PN-ENDDA.
.......

Pnnnn

SAP AG

RP_SET_DATA_INTERVAL ( START-OFSELECTION) : PAnnnn


Pnnnn ,
.

SAP-AG Offline Translation Tool 3.2

Page 44

HR350 HR (Unit 3)

/
ABAP-
REPORT RPGnnUxx.
.
TABLES: PERNR, T001P.
.
.

. . .

...
CABB
...

0001

01

01

GET PERNR.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
RP-READ-T001P P0001-WERKS P0001-BTRTL SPACE.

SAP AG

,
/ ,
.
.
- 0001
.
:
)
)
), :
X =
...
= SY-SUBRC 4.

SAP-AG Offline Translation Tool 3.2

Page 45

HR350 HR (Unit 3)

- (1)

PAnnnn
1.
2.
3.

SAP AG

(
- )
,
.
!
.
. ,
, ,
!
:
-,
;
. .

SAP-AG Offline Translation Tool 3.2

Page 46

HR350 HR (Unit 3)

- (2)
INFOTYPES:

nnnn NAME OLD


nnnn NAME NEW.

* -
GET PERNR.
PROVIDE * FROM OLD . . . . .
WHERE . . . . .
*
* .
NEW = OLD.
APPEND NEW.
ENDPROVIDE.
*
RP-UPDATE OLD NEW.
R

SAP AG

RPUPDATE. OLD
( ) NEW,
.

.
, ,
.

SAP-AG Offline Translation Tool 3.2

Page 47

HR350 HR (Unit 3)

- (1)

PAnnnn

CALL FUNCTION
HR_READ_INFOTYPE

SAP AG

-
.

HR_READ_INFOTYPE. ,
-
INFOTYPE.

SAP-AG Offline Translation Tool 3.2

Page 48

HR350 HR (Unit 3)

- (2)
REPORT RPREAD00.
INFOTYPES: 0002.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
...
PERNR
= <person>
INFTY
= 0002
BEGDA
= <begdat>
ENDDA
= <enddat>
IMPORTING
TABLES

SUBRC

INFTY_TAB
EXCEPTIONS
INFTY_NOT_FOUND
OTHERS

= <return>
= P0002
=1
= 2.
R

SAP AG

- HR
( )
. ,
- (
, ,
INFOTYPES). -,
.
.
:
0:
;
4:
-
;
8:
,
;
12:
- .

SAP-AG Offline Translation Tool 3.2

Page 49

HR350 HR (Unit 3)

: (1)
HR ,


TRMAC,
DEFINE.
RP_PROVIDE_FROM_LAST

,
,
-.
RP-UPDATE

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 50

HR350 HR (Unit 4)

: (2)
,


HR,
HR_READ_INFOTYPE.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 51

HR350 HR (Unit 4)

:



SQL-

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 52

HR350 HR (Unit 4)

:
,
:

;
;

SQL-.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 53

HR350 HR (Unit 4)

SAP AG

, ,
, .
.
:
.

SAP-AG Offline Translation Tool 3.2

Page 54

HR350 HR (Unit 4)

PAnnnn
A
B
. . .

GET PERNR.

A
.....

SAP AG

GET
PERNR ,
,
.
, ,

.
, ,
HR:
.

SAP-AG Offline Translation Tool 3.2

Page 55

HR350 HR (Unit 4)

PAnnnn

INFOTYPES: 0006,
0008. .
GET PERNR.

SAP AG

,
-, .
- - ,
.

SAP-AG Offline Translation Tool 3.2

Page 56

HR350 HR (Unit 4)

PAnnnn
HR:

SAP AG


,
.
,
.
.
HR:
HR: .
, ,
, .

SAP-AG Offline Translation Tool 3.2

Page 57

HR350 HR (Unit 4)

SQL-
TABLES: PAnnnn.
SELECT * FROM PAnnnn
WHERE PERNR EQ <pernr>
...
AND
BEGDA ...
AND
ENDDA ...
AUTHORITY-CHECK
ID 'INFTY'
ID 'SUBTY'
ID 'AUTHC'
ID 'PERSA'
ID 'PERSG'
ID 'PERSK'
ID 'VDSK1'

OBJECT 'P_ORGIN'
FIELD <inftyp>
FIELD <subtyp>
DUMMY
DUMMY
DUMMY
DUMMY
DUMMY.

IF SY-SUBRC NE 0.
------------------------------->
ENDIF.

SAP AG

SELECT.
.
AUTHORITY-CHECK ,
, .

() ( DUMMY).
SAP PNP,
.

SAP-AG Offline Translation Tool 3.2

Page 58

HR350 HR (Unit 5)

:
,

-,
,
.
SQL-



AUTHORITY-CHECK.
R

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 59

HR350 HR (Unit 5)

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 60

HR350 HR (Unit 5)

:
,
:

;

RP_READ_ALL_TIME_ITY;

.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 61

HR350 HR (Unit 5)

15

15
R

SAP AG

PROVIDE,
-
, .
-
.
, , ,
- .
,
.
,
-. -
,
.
- PROVIDE
.

SAP-AG Offline Translation Tool 3.2

Page 62

HR350 HR (Unit 5)

DAZ

INFOTYPES: 2001,
2nnn.
GET PERNR.

PAnnnn

SAP AG

,
GET PERNR -
,
.


.
.

-.

SAP-AG Offline Translation Tool 3.2

Page 63

HR350 HR (Unit 5)


INFOTYPES: 0001,
0002,
....
2001 MODE N.
GET PERNR.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA
PN-ENDDA.
....
RP-READ-ALL-TIME-ITY PN-BEGDA PN-ENDDA.
LOOP AT P2001.
P2001
ENDLOOP.
R

SAP AG


-, -
MODE N. , GET PERNR .
-
RP-READ-ALL-TIME-ITY,
.

SAP-AG Offline Translation Tool 3.2

Page 64

HR350 HR (Unit 5)

. .
DATA: BEGIN OF TAB OCCURS 20,
BUKRS LIKE P0001-BUKRS,
WERKS LIKE P0001-WERKS,
AWART LIKE P2001-AWART,
ABWTG LIKE P2001-ABWTG,
END OF TAB.
GET PERNR.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
MOVE-CORRESPONDING P0001 TO TAB.
RP-READ-ALL-TIME-ITY PN-BEGDA PN-ENDDA.
LOOP AT P2001.
MOVE-CORRESPONDING P2001 TO TAB.
COLLECT TAB. (oder: APPEND TAB.)
ENDLOOP.
BUKRS
BUKRS

WERKS
WERKS

AWART
AWART

ABWTG
ABWTG

()
()

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 65

HR350 HR (Unit 5)


LOOP AT tab.

AT FIRST.
....
ENDAT.
AT NEW BUKRS.
....
ENDAT.

TAB-

BUKRS WERKS ABWTG


01

01

211

01

03

314

02

01

129

02

02

177

AT NEW WERKS.
....
ENDAT.

.
AT END OF WERKS.
....
ENDAT.
AT END OF BUKRS.
....
ENDAT.
AT LAST
....
ENDAT.
ENDLOOP

SAP AG

-
LOOP/ENDLOOP
SQL-SELECT .

, . (SUM)
.
,
,
, , , .

SAP-AG Offline Translation Tool 3.2

Page 66

HR350 HR (Unit 6)


.
.

GET,
RP-READ-ALL-TIME-ITY.


.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 67

HR350 HR (Unit 6)


:
-

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 68

HR350 HR (Unit 6)

:
,
:
-

;
.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 69

HR350 HR (Unit 6)

...

25
2
1
...

15
2
1
...

10
0
0
...

28

18

10

SAP AG

-
.
,

. .
-
.

(Pnnnn-XYZ-nn).

SAP-AG Offline Translation Tool 3.2

Page 70

HR350 HR (Unit 6)

S
A1

B1

C1

A2

B2

C2

An

Bn

Cn

SAP AG

, - ,
.

. .

S, , n
, .

SAP-AG Offline Translation Tool 3.2

Page 71

HR350 HR (Unit 6)

: (1)
:
DATA: BEGIN OF VACATION,
UAR LIKE P0005-UAR01,
UAN LIKE P0005-UAN01,
UBE LIKE P0005-UBE01,
UEN LIKE P0005-UEN01,
UAB LIKE P0005-UAB01,
END OF VACATION.

SAP AG

- .
.

SAP-AG Offline Translation Tool 3.2

Page 72

HR350 HR (Unit 6)

: (2)
:
GET PERNR.
RP_PROVIDE_FROM_LAST P0005 SPACE
PN/BEGDA PN/ENDDA.
DO 6 TIMES VARYING VACATION
FROM P0005-UAR01 .
NEXT P0005-UAR02.
IF VACATION-UAR IS INITIAL.
EXIT.
ELSE.
WRITE: / VACATION-UAR....
ENDIF.
ENDDO.

SAP AG

- c
P0005.
DO
VACATION .
FROM < > .
NEXT < > .
A : WHILE... () VARY VACATION
FROM P0005-UAR01
NEXT P0005-UAR02.
ENDWHILE.
,
, .
, ,
, .

SAP-AG Offline Translation Tool 3.2

Page 73

HR350 HR (Unit 6)


HR_DISPLAY_BASIC_LIST (1)
END-OF-SELECTION.

CALL FUNCTION 'HR_DISPLAY_BASIC_LIST'


EXPORTING
BASIC_LIST_TITLE
=
FILE_NAME
=
HEAD_LINE1
=
...
...
TABLES
DATA_TAB
= <data_table>
FIELDNAME_TAB
= <fieldnames>
ERROR_TAB
= <error_table>
EXCEPTIONS
DOWNLOAD_PROBLEM
NO_DATA_TAB_ENTRIES
TABLE_MISMATCH
PRINT_PROBLEMS
OTHERS

=1
=2
=3
=4
= 5.

SAP AG


.
GUI .

.
Windows,
. 20.
,
:
(
)/ ;
/, ;
;
;
MS Excel MS Excel;
MS Word,
;
;
4 (
);
;
.
(EXCEPTIONS) SY-SUBRC
. ,
, , , SYSUBRC 2.

SAP-AG Offline Translation Tool 3.2

Page 74

HR350 HR (Unit 6)

SAP-AG Offline Translation Tool 3.2

Page 75

HR350 HR (Unit 6)


HR_DISPLAY_BASIC_LIST (2)
DATA: BEGIN OF DATA_TABLE OCCURS 10,
PERNR LIKE...
ENAME LIKE...
END OF DATA_TABLE.
DATA: BEGIN OF FIELDNAMES OCCURS 10,
TITLE(60),
TABLE(6),
FIELD(10),
TYPE(1),
END OF FIELDNAMES.
DATA: BEGIN OF ERROR_TABLE OCCURS 10.
INCLUDE STRUCTURE HRERROR.
DATA: END OF ERROR_TABLE.
R

SAP AG

DATA_TABLE ,
.
. , ,
60 ,
20 .
,
FIELDNAMES.
ERROR_TABLE
.

SAP-AG Offline Translation Tool 3.2

Page 76

HR350 HR (Unit 6)


HR_DISPLAY_BASIC_LIST (3)
FORM FILL_FIELDNAMES.
FIELDNAMES-TABLE
FIELDNAMES-FIELD
FIELDNAMES-TYPE
APPEND FIELDNAMES.
CLEAR FIELDNAMES.
FIELDNAMES-TITLE
APPEND FIELDNAMES.
ENDFORM.

= <>.
= <>.
= X.

= <>.

SAP AG

FIELDNAMES
, .

F1, TABLE
, FIELD . TITLE
ABAP-. TYPE X,
.

SAP-AG Offline Translation Tool 3.2

Page 77

HR350 HR (Unit 6)


HR_DISPLAY_BASIC_LIST (4)
PERFORM ERROR_HANDLING USING
PERNR-PERNR < >
< > < >
SPACE SPACE SPACE SPACE.
FORM ERROR_HANDLING USING PERNR
ARBGB MSGTY MSGNO MSGV1 MSGV2
MSGV3 MSGV4.
ERROR_TABLE-PERNR
= PERNR.
ERROR_TABLE-ARBGB = ARBGB.
ERROR_TABLE-MSGTY
= MSGTY.
ERROR_TABLE-MSGNO = MSGNO.
ERROR_TABLE-MSGV1
= MSGV1.
ERROR_TABLE-MSGV2
= MSGV2.
ERROR_TABLE-MSGV3
= MSGV3.
ERROR_TABLE-MSGV4
= MSGV4.
APPEND ERROR_TABLE.
ENDFORM.

SAP AG

.
:
PERNR: ;
ARBGB: T100;
MSGTY: (I, W, E . .);
MSGNO: .

SAP-AG Offline Translation Tool 3.2

Page 78

HR350 HR (Unit 6)

: (1)
- ,

,

.

DO/ENDDO WHILE/ENDWHILE


.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 79

HR350 HR (Unit 7)

: (2)

HR_DISPLAY_BASIC_LIST
.

.

.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 80

HR350 HR (Unit 7)

/ HR:

/ HR
/
/





R

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 81

HR350 HR (Unit 7)

/:

,
:
/


CU_READ_RGDIR
CD_EVALUATION_PERIODS.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 82

HR350 HR (Unit 7)

HR
PAnnnn

( )

PCL1

HR

PCL2

( ,
, )

PCL3

PCL4

PCL5

SAP AG

PAnnnn ,
-.
-
HR.
PCL1, PCL2 PCL3
,
, R,
.
PCLn /.
HR/
HRPnnnn.

SAP-AG Offline Translation Tool 3.2

Page 83

HR350 HR (Unit 7)

PCLn

PCLn
A1

A3
A2

SAP AG

, PCLn, (
).
.
HR c .
.

SAP-AG Offline Translation Tool 3.2

Page 84

HR350 HR (Unit 7)

PCL1

PCLn
B1

L1
G1

TX

PC
TE

ZI

TS

SAP AG

PCL1 , ,
:
B1 / ()
G1
L1
PC
TE /
TS / (
3.1)
TX -
ZI -> /

SAP-AG Offline Translation Tool 3.2

Page 85

HR350 HR (Unit 7)

PCL2

PCL2
B2

CU

RX
PT

PS

ZL

xy

SAP AG

PCL2 :
B2
CU CDM
PS
PT
RX ()
xy ( ), xy
,
Rn (n = HR), ISO
T500L
ZL

SAP-AG Offline Translation Tool 3.2

Page 86

HR350 HR (Unit 7)

PCLn

PCLn
IMPORT
A1

PCLn

A2
EXPORT

SAP AG

/ PCLn
ABAP- IMPORT EXPORT.

, , ,
.

() .

SAP-AG Offline Translation Tool 3.2

Page 87

HR350 HR (Unit 7)

PCLn

CLIENT
RELID
SRTFD
SRTF2


X
X
X
X

3
2
40
10

SAP AG

PCLn
.

.
.
SRTFD, 40 .
PCLn RELID
, SRTFD - .

SAP-AG Offline Translation Tool 3.2

Page 88

HR350 HR (Unit 7)


RPCnxxy0.
*
DATA: BEGIN OF xy-KEY,
FIELD1,
FIELDn,
END OF xy-KEY.
*
DATA: BEGIN OF TABLE1 OCCURS 10,
COLUMN1,
COLUMNn,
END OF TABLE1.

SAP AG


, .
INCLUDE- RPCnxxy0;
:
n = 1 PCL1 2 PCL2
xx = , RX
y = 0 ,
y = T500L .
xy-KEY,
.
.

SAP-AG Offline Translation Tool 3.2

Page 89

HR350 HR (Unit 7)


REPORT RPEXPORT.
TABLES: PCLn
INCLUDE: RPCnxxy0.

./

*
xy-KEY-FIELD = <VALUE>.
....
*
*
EXPORT TABLE1 TO DATABASE PCLn(xy)
ID xy-KEY.
IF SY-SUBRC EQ 0.
WRITE: / .
ENDIF.

SAP AG

INCLUD.
EXPORT
xy-KEY xy.
0.

SAP-AG Offline Translation Tool 3.2

Page 90

HR350 HR (Unit 7)


REPORT RPIMPORT.
TABLES: PCLn.
INCLUDE: RPCnxxy0.

./

*
*
IMPORT TABLE1 FROM DATABASE PCLn(xy)
ID xy-KEY.
IF SY-SUBRC EQ 0.
*
ENDIF.
R

SAP AG

IMPORT /
.
0,
- 4.

SAP-AG Offline Translation Tool 3.2

Page 91

HR350 HR (Unit 7)

REPORT RPEXPORT.
....
RP-EXP-Cn-xy.
....

RP-EXP-Cn-xy.

REPORT RPIMPORT.
....
RP-IMP-Cn-xy.
....

RP-IMP-Cn-xy

EXPORT OBJECT1
....
OBJECTn
....

IMPORT OBJECT1
....
OBJECTn
....
R

SAP AG

IMPORT/EXPORT ,

.
,
.
: RP-EXP-Cn-xy
RP-IMP-Cn-xy, n , xy .
Include RPCXRxy0
DEFINE.

SAP-AG Offline Translation Tool 3.2

Page 92

HR350 HR (Unit 7)

PCLn

SAP AG

,

.
RP-IMP-xySUBRC=0.
.

,

.

.
:
,
.

SAP-AG Offline Translation Tool 3.2

Page 93

HR350 HR (Unit 7)


REPORT RPEXPORT.
*
INCLUDE: RPPPXD00.
DATA: BEGIN OF COMMON PART BUFFER.
INCLUDE RPPPXD10.
DATA: END OF COMMON PART BUFFER.
*
RP-EXP-Cn-xy.
RP-EXP-Cn-xy.
........
*
PERFORM PREPARE_UPDATE
USING V.
*
INCLUDE:
RPPPXM00.

PCLn
xy
R

SAP AG


, .
USING
EXPORT,
.
, RPIMP-xy-SUBRC = 0.

PCLn.
PREPARE_UPDATE
USING V.

SAP-AG Offline Translation Tool 3.2

Page 94

HR350 HR (Unit 7)


REPORT RPIMPORT.
*
INCLUDE: RPPPXD00.
DATA:
BEGIN OF COMMON PART BUFFER.
INCLUDE RPPPXD10.
DATA:
END OF COMMON PART BUFFER.
*
RP-IMP-Cn-xy.
RP-IMP-Cn-xy.
........
*
INCLUDE: RPPPXM00.

PCLn
xy
R

SAP AG

,
PCLn.
. ,
.
, PCLn ,
.
RP-IMP-xy-SUBRC
= 0.
,
.
RPCLSTxy (xy = ).

SAP-AG Offline Translation Tool 3.2

Page 95

HR350 HR (Unit 7)

RP-IMP-Cn-xy.

xy

+
-

SAP AG

EXPORT/IMPORT
.
/
.

.
:
R , U - , S -
PCLx ( ).
,
.

SAP-AG Offline Translation Tool 3.2

Page 96

HR350 HR (Unit 7)


REPORT RPCLSTnn.



WT01
WT02
WT03
/101
....

19xx

5000 DM
300 DM
200 DM
5500 DM

SAP AG


RPCLSTxy.

.
:
A =

P =

O =
.

SAP-AG Offline Translation Tool 3.2

Page 97

HR350 HR (Unit 7)



PAnnnn
RPCALCn0

PCL2

Rn

PCL2

xy

RP-EXP-C2-xy

RP-IMP-C2-xy

RPCLSTxy

SAP AG


.
nn PCL2.

xy. RPCLSTxy ,
RPCEDTn0
(n = HR T500L).

SAP-AG Offline Translation Tool 3.2

Page 98

HR350 HR (Unit 7)

: (1)

*

*
*

ABAP-

_1
_1
_2

* .

* .

SAP AG


. INCLUDE-
RPC2xyz0, z - HR.
RX-KEY.
ABAP.

SAP-AG Offline Translation Tool 3.2

Page 99

HR350 HR (Unit 7)

: (2)


REPORT RPC2Rn00.
*
DATA: BEGIN OF RX-KEY.
INCLUDE STRUCTURE PCnnn.
DATA: END OF RX-KEY.
*
*
DATA: BEGIN OF RT OCCURS 150
INCLUDE STRUCTURE PC207.
DATA: END OF RT.

ABAP-

PCnnn
PC207

SAP AG

ABAP-.
.
.

PCnnn, nnn - -
.
PC200 ,
: PERNR ( ) SEQNO
( ).

Include- RPC2RX00 RPC2RXX0.

SAP-AG Offline Translation Tool 3.2

Page 100

HR350 HR (Unit 7)


*
DATA: BEGIN OF RGDIR OCCURS 100.
INCLUDE STRUCTURE PC261.
DATA: END OF RGDIR.
DATA: COUNTRY LIKE T001P-MOLGA.
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
PERSNR
= PERNR-PERNR
IMPORTING
MOLGA
= COUNTRY
TABLES
IN_RGDIR
= RGDIR
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS
= 2.

SAP AG

RGDIR
.
CU_READ_RGDIR RGDIR
CU.
, .

SAP-AG Offline Translation Tool 3.2

Page 101

HR350 HR (Unit 7)


*
DATA: BEGIN OF EVPDIR OCCURS 100.
INCLUDE STRUCTURE PC261.
DATA: END OF EVPDIR.
CALL FUNCTION 'CD_EVALUATION_PERIODS'
EXPORTING
BONUS_DATE
= < >
INPER_MODIF
= <. >
INPER
= <->
PAY_TYPE
= < >
PAY_IDENT
= <. >
TABLES
RGDIR
= RGDIR
EVPDIR
= EVPDIR
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS
= 2.

SAP AG

EVPDIR (
) ,
. EVPDIR
(A) (P) .
,
.
.
.
-: , .
: " ( T52BX)
" " = (
)
"A" = ( )
"B" =
"C" =
: ,
, .
,
:
CD_READ_PREVIOUS (
);
CD_READ_PREVIOUS_ORIGINAL (
).

SAP-AG Offline Translation Tool 3.2

Page 102

HR350 HR (Unit 7)

PCLn

PCLn

SAP AG

xy
- PU00.

- RPUPnD00 RPUPnD10, n
PCL1 PCL2.

RPUDEL20.
:
.
.

SAP-AG Offline Translation Tool 3.2

Page 103

HR350 HR (Unit 7)

/: (1)


.
,
.


RGDIR.
RGDIR

CU_READ_RGDIR
CU.
R

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 104

HR350 HR (Unit 8)

/: (2)
RGDIR


CD_EVALUATION_PERIODS.
EVPDIR ( )
,
.

() (P)
.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 105

HR350 HR (Unit 8)

PCH:


-
/-






R

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 106

HR350 HR (Unit 8)

PCH:
,
:

PCH;

;

;

.
R

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 107

HR350 HR (Unit 8)

/
R

SAP AG

:

.
.
(. ). , ,
,
.
() ,
.
,
,
.
, . , ,
00-99.
( )
,
( ),
( ) ..

SAP-AG Offline Translation Tool 3.2

Page 108

HR350 HR (Unit 8)

.
. .
: "
. " "
.
: " "
,

A/B 002

SAP AG

, ,
.

SAP-AG Offline Translation Tool 3.2

Page 109

HR350 HR (Unit 8)

.
.

A/B 007

.

:

.

R

SAP AG

,
, , ..

. , 20
.

, , ,
..
()
.

SAP-AG Offline Translation Tool 3.2

Page 110

HR350 HR (Unit 8)

A/B 003

SAP AG


.
, ,
.

. ,
.
:

.

.

SAP-AG Offline Translation Tool 3.2

Page 111

HR350 HR (Unit 8)

.
: -
.

A/B 008


.
R

SAP AG



- 0001
.

SAP-AG Offline Translation Tool 3.2

Page 112

HR350 HR (Unit 8)

-
-.

(1000)

(1001)

,
,

. (1002)

(1011)

(1015)

(1028)

SAP AG

- -,
. ,
, .. ,
-,
.
-,
-, , ,
(1001) (1002).
- 1000 () . .
:
,
,
( ).
- 1001 ()
. :
.
.
CO.

SAP-AG Offline Translation Tool 3.2

Page 113

HR350 HR (Unit 8)

C
S

O
S

C
S
S

O
S

SAP AG


. .
. ,
, AAA ZZZ.
. ,
,
.
.
.

SAP-AG Offline Translation Tool 3.2

Page 114

HR350 HR (Unit 8)

/-

(- 1000)

(- 1001)

SAP AG

/- :
, -
.
, , , ,
.
, -
-
, , .
,
- .
,
- , .
,
.

SAP-AG Offline Translation Tool 3.2

Page 115

HR350 HR (Unit 8)

(1)
S
Q

. :

(022)

(022)
R

SAP AG

-"
, . . ,
- ,

.
:
"/ (022)"
.

SAP-AG Offline Translation Tool 3.2

Page 116

HR350 HR (Unit 8)

(2)

- HRP1001
HRP1001

SCLAS

...

ADATANR

PADnn

HRPADnn
: ADATANR

SOBID

1 2 ...

SAP AG


PADnn HRPADnn.

T77AD.

SAP-AG Offline Translation Tool 3.2

Page 117

HR350 HR (Unit 8)

-

- HRPnnnn
HRPnnnn

...

HRTnnnn
: TABNR, TABSEQNR

: TABNR, TABSEQNR

: TABNR, TABSEQNR

TABNR

PTnnnn
. 1

. 2

. 1

. 1

...

. 2

. 2

...

...

SAP AG

-,
( -),
(HRTnnnn) .

PTnnnn.

SAP-AG Offline Translation Tool 3.2

Page 118

HR350 HR (Unit 8)


PD
:
Pnnnn

PTnnnn

PADnn

HRPnnnn

HRTnnnn

PLOGI

SAP AG

Pnnnn -.
PTnnnn -
-.
PADnn
.
HRPnnnn -
. - HRTnnnn.
HRPADnn.
PLOGI
. /
RHPLOGI0.
PCH.

SAP-AG Offline Translation Tool 3.2

Page 119

HR350 HR (Unit 8)

SAP AG

...

...


.
.
,
.

SAP-AG Offline Translation Tool 3.2

Page 120

HR350 HR (Unit 8)

SAP AG


.
.
, ,
.
, ,
,
, .
.

SAP-AG Offline Translation Tool 3.2

Page 121

HR350 HR (Unit 8)

O .
S

O .

S .
P
P

SAP AG

,
. , O-S-P

.

. ,
. ,
.
,
.
. ,
.

.
RHWEGID0
.

SAP-AG Offline Translation Tool 3.2

Page 122

HR350 HR (Unit 8)


O-S-P

OT A/B

10
20
30

O
S
O

B
A
B

003
008 .
002 .

.
*
*
*

S
P
O

O .

A/B
A =
B =

O .

S .
P

P
SAP AG

(O)
(S),
(P), .
.
" ,
,
.
, ,

A001 B001 .
,
.
A =
B = .
.

SAP-AG Offline Translation Tool 3.2

Page 123

HR350 HR (Unit 8)

:
TABLES:
INFOTYPES:

OBJEC.
0000,
.....
nnnn.

GET OBJEC.
LOOP AT Pnnnn
WHERE BEGDA LE PC-ENDDA
AND
ENDDA GE PC-BEGDA.
ENDLOOP.

SAP AG

-
Pnnnn -.
- .

SAP-AG Offline Translation Tool 3.2

Page 124

HR350 HR (Unit 8)

:
TABLES:
INFOTYPES:

OBJEC, GDSTR.
0000,
.....
nnnn.

GET OBJEC.
LOOP AT Pnnnn
WHERE BEGDA LE PC-ENDDA
AND
ENDDA GE PC-BEGDA.
ENDLOOP.

SAP AG


GDSTR
TABLES.
.
:
,
.

SAP-AG Offline Translation Tool 3.2

Page 125

HR350 HR (Unit 8)

. = 2

O .
S

= 3

O .

S .
P
P

O-S-P

12

3
.

= 1
= 4
= 5

SAP AG

.
,
- 1001 ,
.
-
. , ,
"" (1) "" (2),
12 .

. ,

.
, . ,
2, 1. ,
123
2 3 1.
,
. , 3,
,
1.
: ,
( ).
: (
, ) .

SAP-AG Offline Translation Tool 3.2

Page 126

HR350 HR (Unit 8)

SAP AG


, ,
,

.
:

.
:
.
:
.
:
, ,
, .
:
.

SAP-AG Offline Translation Tool 3.2

Page 127

HR350 HR (Unit 8)


INITIALIZATION.
PCHPLVAR
PCHOTYPE
PCHENDDA
PCHWEGID
PCHOBJID-LOW
APPEND PCHOBJID.

= 01.
= C.
= SY-DATUM.
= O-S-P.
= 00000001.

GET OBJEC.
LOOP AT Pnnnn . . .
WHERE BEGDA LE PC-ENDDA.
ENDLOOP.
R

SAP AG

INITIALIZATION
.
Include- DBPCHSEL.
(PCHOBJID),
APPEND.

SAP-AG Offline Translation Tool 3.2

Page 128

HR350 HR (Unit 8)

TABLES: OBJEC, GDSTR.


INFOTYPES: nnnn.
INITIALIZATION.
PCHWEGID
= SBES.
...
GET OBJEC.
LOOP AT Pnnnn
WHERE BEGDA LE PC-ENDDA
AND
ENDDA GE PC-BEGDA.
ENDLOOP.
R

SAP AG


,
.

, 900.

.
INCLUDE- DBPCHSEL.

SAP-AG Offline Translation Tool 3.2

Page 129

HR350 HR (Unit 8)


TABLES: OBJEC, GDSTR.
INFOTYPES: nnnn.

Pnnnn .
-

...
GET OBJEC.
LOOP AT Pnnnn . . .

OBJEC -

GDSTR

ENDLOOP.
STRUC -

SAP AG

-
Pnnnn -.
OBJEC
- 1000 ( , ,
, ).
GDSTR ,
, .
,
.
STRUC
. ,
,
.

SAP-AG Offline Translation Tool 3.2

Page 130

HR350 HR (Unit 8)

REPORT RHSELPAD.
INFOTYPES: 1001.
TABLES: OBJEC, PADnn.
...
GET OBJEC.
LOOP AT P1001 WHERE RELAT = 0nn.
PADnn = P1001-ADATA.
ENDLOOP.
REPORT RHSTRPAD.
TABLES: OBJEC, GDSTR, PADnn, STRUC.
...
GET OBJEC.
PADnn = STRUC-VADATA.
:
IF STRUC-VRELAT = 0nn.
PADnn = STRUC-VADATA.
ENDIF.
R

SAP AG

,
,
( T77AR).

SAP-AG Offline Translation Tool 3.2

Page 131

HR350 HR (Unit 8)

-
REPORT RHSELTAB.
INFOTYPES: 1002.
TABLES: OBJEC.
DATA: IPT1002 LIKE PT1002 OCCURS 10.
...
GET OBJEC.
WRITE: / OBJEC-OTYPE, OBJEC-OBJID.
LOOP AT P1002.
RH-GET-TBDAT P1002-INFTY
P1002-TABNR IPT1002.
LOOP AT IPT1002.
WRITE: / IPT1002-TLINE.
ENDLOOP.
ENDLOOP.

SAP AG

RH-GET-TBDAT
PCH. Include- DBPCHCOM.
PCH
PNP. ,
PCH PNP .

SAP-AG Offline Translation Tool 3.2

Page 132

HR350 HR (Unit 8)

: -
REPORT RHSELIND.
INFOTYPES: 1003.
TABLES: OBJEC.
START-OF-SELECTION.
RH-SET-INDEX-INFTY '1003'.
RH-CONDITION-LINE ABTEL EQ 'X' SPACE.
RH-SET-INDEX-INFTY-CONDITION.
...
GET OBJEC.
WRITE: / OBJEC-OTYPE, OBJEC-OBJID.
LOOP AT P1003 WHERE ABTEL NE SPACE.
WRITE: /3 P1003-BEGDA, P1003-ENDDA.
ENDLOOP.
R

SAP AG

PCH
-
( -).
,
, .

( ).

SAP-AG Offline Translation Tool 3.2

Page 133

HR350 HR (Unit 8)

- .

REPORT RHREAD00.
INFOTYPES: 1001 MODE N.
DATA: IHROBJECT LIKE HROBJECT OCCURS 10.
CALL FUNCTION RH_READ_INFTY'
EXPORTING
...
INFTY
= 1001
BEGDA
= <begdat>
ENDDA
= <enddat>
TABLES

INNNN
OBJECTS

EXCEPTIONS
ALL_INFTY_WITH_SUBTY
NOTHING FOUND
NO_OBJECTS
WRONG_CONDITION
OTHERS

= P1001
= IHROBJECT
=1
=2
=3
=4
= 5.

SAP AG

PCH ( ,
) -
RH_READ_INFTY
( RHDB).

- - (
INFTY = ) -.
AUTHORITY WITH_STRU_AUTH
.

SAP-AG Offline Translation Tool 3.2

Page 134

HR350 HR (Unit 8)

PCH: (1)
PCH

.


.


.

.
,
,
, ,
.
R

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 135

HR350 HR (Unit 9)

PCH: (2)

,

,
.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 136

HR350 HR (Unit 9)

ABAP - HR:



SAP AG

SAP-AG Offline Translation Tool 3.2

Page 137

HR350 HR (Unit 9)

ABAP - HR:
,
:

;
.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 138

HR350 HR (Unit 9)

0000 _
0000 _
0000 _
0000 _

06
06
06
06

MASSN
MASSN
MASSN
MASSN

900
901
902
903

_
P
P
F

*- AUSTRIA - SV-MELDUNGEN--EINTR-----------*
T001P-MOLGA='03'
P0000-MASSN='01'
MASSN_EINTR(RPLSVDA0)

SAP AG

' ' (T588Z)



-. -,
.
=
, 0, ,
.
:
'02' ,
'04' ,
'08' .
. , 06
,

=
'P' -
'I' - -
'W' -
'V' -
'F' -
'M' -

SAP-AG Offline Translation Tool 3.2

Page 139

HR350 HR (Unit 9)


REPORT RPLFST00 USING DATABASE PNP.
TABLES PERNR.
INFOTYPES: 0000, 0001, 0002.
DATA: BEGIN OF PERNRTAB OCCURS 20,
PERNR LIKE PERNR-PERNR,
ENAME LIKE P0001-ENAME,
END OF PERNRTAB.
GET PERNR.
....
END-OF-SELECTION.

EXPORT PERNRTAB TO MEMORY.


R

SAP AG



.
'
' (T588R). ,
,
.

ABAP-. ,
ABAP- EXPORT,
.

SAP-AG Offline Translation Tool 3.2

Page 140

HR350 HR (Unit 9)


RP-
.

XEDT99

01.01.1991 31.12.9999 RPCEDTX0 EXTCALL R

REPORT RPREAD00.
TABLES: T596F.
* T596f.
* PERFORM

PERFORM (T596F-MODNA) IN PROGRAM (T596F-PGMNA)


USING . . .
R

SAP AG

'RP-'(T596F)
,
.
SAP
.
( 'XEDT99'),
.
.

SAP-AG Offline Translation Tool 3.2

Page 141

HR350 HR (Unit 9)


REPORT RPREAD00.
TABLES: PMEnn.
DATA: par3,
par4.

"

INCLUDE RPUMKC00.
* .

PMEnn - BUKRS = P0001 - BUKRS. . .


*

PERFORM RE549D USING par1 par2 par3 par4.

SAP AG

par1: ( 'XXXXX',
, DATA: LIKE T549CNAMEN).
par2: :
' ' - ;
;
'1' - WRITE;
'2' - I;
'3' - S;
'4' - E;
par3: .
DATA.
par4: .
DATA.

SAP-AG Offline Translation Tool 3.2

Page 142

HR350 HR (Unit 10)

ABAP - HR:

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 143

HR350 HR (Unit 10)

,

.
,

.

.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 144

HR350 HR (Unit 10)

: PNP
:
-
PROVIDE...ENDPROVIDE.

, ,
:
a) ,
b) ,
c) ,
d) ,
e) .
.
.

SAP-AG Offline Translation Tool 3.2

Page 145

HR350 HR (Unit 10)

SAP-AG Offline Translation Tool 3.2

Page 146

HR350 HR (Unit 10)

:

:
DATA:

BEGIN OF NAME,
NACHN LIKE P0002 - NACHN,
VORNA LIKE P0002 - VORNA,
END OF NAME.

MOVE-CORRESPONDING P0002 TO NAME.


CONDENSE NAME.
WRITE: / NAME.

SAP-AG Offline Translation Tool 3.2

Page 147

HR350 HR (Unit 10)

: -
: -
- 0002 ( ) 0006
()

Pnnnn_VALID

, , ,
.
.

( CONCATENATE).

SAP-AG Offline Translation Tool 3.2

Page 148

HR350 HR (Unit 10)

: -
: -

-
,

.
.
T513S.

SAP-AG Offline Translation Tool 3.2

Page 149

HR350 HR (Unit 10)

:
:
,
,
RP_PROVIDE_FROM_LAST
/
RP-READ-T001P


, /

/
.
, , , /
.
T512T.
( MOLGA T512T)
T001P. ,
/, .
P0001-ENAME.


SAP-AG Offline Translation Tool 3.2

Page 150

HR350 HR (Unit 10)

:
:
RPREAD-ALL-TIME-ITY

:
,
,
,
.
T554T,

/ (
/ ,
/).
T001P MOABW /
.

.

SAP-AG Offline Translation Tool 3.2

Page 151

HR350 HR (Unit 10)

:

:


HR_DISPLAY_BASIC_LIST

,

.
:

.
START-OF-SELECTION
RP_SET_DATA_INTERVAL - 0001
.

SAP-AG Offline Translation Tool 3.2

Page 152

HR350 HR (Unit 10)

: /
:

ZZ
EXPORT IMPORT

Include- RPC1ZZ00
ZZ NAMES.
NAMES ZZ
PCL1.

.
PCL1.

SAP-AG Offline Translation Tool 3.2

Page 153

HR350 HR (Unit 10)

: /
:


ZZ

,
RP-EXP-C1-ZZ
RP-IMP-C1-ZZ.
Include- RPC1ZZ00.

SAP-AG Offline Translation Tool 3.2

Page 154

HR350 HR (Unit 10)

: /
:

CU_READ_RGDIR

CD_EVALUATION_PERIODS
RT

,
( RX).
RT.
, , T512T.

.

, .

- -
-
-

SAP-AG Offline Translation Tool 3.2

Page 155

HR350 HR (Unit 10)

: PCH
: ,


-
PCH

,
(,
), .
:
, , - 0002
.
- 1003 .

SAP-AG Offline Translation Tool 3.2

Page 156

HR350 HR (Unit 11)

: ,

, ,
IMG

,

,

) IMG
000000nn (nn = ),
,
,
.
:

.
) .

SAP-AG Offline Translation Tool 3.2

Page 157

HR350 HR (Unit 11)

SAP-AG Offline Translation Tool 3.2

Page 158

HR350 HR (Unit 11)

: PNP
:
-
PROVIDE...ENDPROVIDE

REPORT RPSOL010.
*--
TABLES: PERNR.
INFOTYPES: 0002.
"
DATA: BEGIN OF NAME,
NACHN LIKE P0002-NACHN,
VORNA LIKE P0002-VORNA,
END OF NAME.
SELECT-OPTIONS: NATION FOR P0002-NATIO.
*--
GET PERNR.
PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA.
CHECK NATION.
MOVE-CORRESPONDING P0002 TO NAME.
CONDENSE NAME.
WRITE: / P0002-PERNR,
NAME(50),
P0002-NATIO,
P0002-GBDAT.
ENDPROVIDE.

SAP-AG Offline Translation Tool 3.2

Page 159

HR350 HR (Unit 11)

: -
: -
- 0002 ( ) 0006
()

Pnnnn_VALID

REPORT RPSOL020.
*--
TABLES: PERNR.
INFOTYPES: 0002,
"
0006.
"
DATA: NAME(80).
SELECT-OPTIONS: NATION FOR P0002-NATIO.
*--
GET PERNR.
PROVIDE * FROM P0002
* FROM P0006 BETWEEN PN-BEGDA AND PN-ENDDA
WHERE P0006-SUBTY = '1'.
CHECK NATION.
IF P0006_VALID EQ 'X'.
CONCATENATE P0002-NACHN P0002-VORNA INTO NAME
SEPARATED BY SPACE.
WRITE: / P0002-PERNR,
P0002-BEGDA,
P0002-ENDDA,
NAME(20),
P0006-ORT01(15).
ENDIF.
ENDPROVIDE.

SAP-AG Offline Translation Tool 3.2

Page 160

HR350 HR (Unit 11)

: -
: -

-
,

REPORT RPSOL030.
*--
TABLES: PERNR,
T513S.
"
INFOTYPES: 0001,
"
0002.
"
DATA: NAME(80).
SELECT-OPTIONS: NATION FOR P0002-NATIO.
*--
GET PERNR.
PROVIDE NACHN VORNA FROM P0002
STELL
FROM P0001 BETWEEN PN/BEGDA AND PN/ENDDA.
CHECK NATION.
IF P0001_VALID EQ 'X'.
CONCATENATE P0002-NACHN P0002-VORNA INTO NAME
SEPARATED BY SPACE.
IF P0001-STELL NE SPACE.
PERFORM RE513S.
WRITE: / PERNR-PERNR,
P0002-BEGDA,
P0002-ENDDA,
NAME(20),
P0001-STELL,
T513S-STLTX(15).
ENDIF.
ENDIF.
ENDPROVIDE.

SAP-AG Offline Translation Tool 3.2

Page 161

HR350 HR (Unit 11)

*--------------------------------------------------------------*
*
FORM RE513S
*
*--------------------------------------------------------------*
*
*
*--------------------------------------------------------------*
FORM RE513S.
CHECK SY-LANGU NE T513S-SPRSL OR
P0001-STELL NE T513S-STELL OR
P0001-BEGDA LT T513S-BEGDA OR
P0001-BEGDA GT T513S-ENDDA.
SELECT * FROM T513S
WHERE SPRSL EQ SY-LANGU
AND STELL EQ P0001-STELL
AND ENDDA GE P0001-BEGDA
AND BEGDA LE P0001-BEGDA.
ENDSELECT.
IF SY-SUBRC NE 0.
CLEAR T513S.
WRITE: / ' T513S (001),
P0001-STELL.
REJECT.
ENDIF.
ENDFORM.

SAP-AG Offline Translation Tool 3.2

Page 162

HR350 HR (Unit 11)

:
:
,
,
RP_PROVIDE_FROM_LAST
/
RP-READ-T001P


, /.

REPORT RPSOL040.
*--
TABLES: PERNR,
T512T,
"
T001P.
"
INFOTYPES: 0001,
"
0002,
"
0014.
"
DATA: LINES LIKE SY-INDEX.
*--
GET PERNR.
DESCRIBE TABLE P0014 LINES LINES.
IF LINES GT 0.
RP_PROVIDE_FROM_LAST P0001 SPACE PN/BEGDA PN/ENDDA.
RP-READ-T001P P0001-WERKS P0001-BTRTL SPACE.
WRITE: / PERNR-PERNR,
P0001-ENAME(20),
P0001-WERKS.
PROVIDE * FROM P0014 BETWEEN PN/BEGDA AND PN/ENDDA.
CHECK P0014-BETRG NE 0.
PERFORM PRINT USING
P0014-LGART
P0014-BETRG
P0014-BEGDA
P0014-ENDDA.
ENDPROVIDE.
ENDIF.

SAP-AG Offline Translation Tool 3.2

Page 163

HR350 HR (Unit 11)

*--------------------------------------------------------------*
*
FORM PRINT
*
*--------------------------------------------------------------*
*
*
*--------------------------------------------------------------*
FORM PRINT USING
VALUE(WTYPE)
VALUE(AMOUNT)
VALUE(BEGDA)
VALUE(ENDDA).
PERFORM RE512T USING T001P-MOLGA WTYPE.
WRITE: / WTYPE UNDER NAME,
T512T-LGTXT,
AMOUNT,
BEGDA,
ENDDA.
ENDFORM.
*--------------------------------------------------------------*
*
FORM RE512T
*
*--------------------------------------------------------------*
*
*
*--------------------------------------------------------------*
FORM RE512T USING VALUE(COUNTRY_GROUPING)
VALUE(WTYPE).
CHECK T512T-SPRSL NE SY-LANGU
OR T512T-MOLGA NE COUNTRY_GROUPING
OR T512T-LGART NE WTYPE.
SELECT SINGLE * FROM T512T
WHERE SPRSL EQ SY-LANGU
AND MOLGA EQ COUNTRY_GROUPING
AND LGART EQ WTYPE.
IF SY-SUBRC NE 0.
CLEAR T512T.
ENDIF.
ENDFORM.

SAP-AG Offline Translation Tool 3.2

Page 164

HR350 HR (Unit 11)

:
:
RPREAD-ALL-TIME-ITY

REPORT RPSOL050.
TABLES: PERNR,
T554T,
"
T001P.
"
INFOTYPES: 0001,
"
2001 MODE N.
"
DATA: BEGIN OF ABSTAB OCCURS 20,
BUKRS LIKE P0001-BUKRS,
WERKS LIKE P0001-WERKS,
BTRTL LIKE T001P-BTRTL,
AWART LIKE P2001-AWART,
ABWTG LIKE P2001-ABWTG,
END OF ABSTAB.
INITIALIZATION.
PNPTIMED = Y.
GET PERNR.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
MOVE-CORRESPONDING: P0001 TO ABSTAB.
RP-READ-ALL-TIME-ITY PN-BEGDA PN-ENDDA.
LOOP AT P2001.
IF P2001-ABWTG GT 0.
MOVE-CORRESPONDING P2001 TO ABSTAB.
COLLECT ABSTAB.
ENDIF.
ENDLOOP.
END-OF-SELECTION.
SORT ABSTAB.
LOOP AT ABSTAB.
FORMAT INTENSIFIED OFF.
AT NEW BTRTL.
RP-READ-T001P ABSTAB-WERKS ABSTAB-BTRTL SPACE.
ENDAT.
PERFORM RE554T USING T001P-MOABW ABSTAB-AWART.
PERFORM PRINT.
SAP-AG Offline Translation Tool 3.2

Page 165

HR350 HR (Unit 11)

AT END OF BTRTL.
"
FORMAT INTENSIFIED ON.
SUM.
CLEAR T554T. PERFORM PRINT.
ENDAT.
AT END OF WERKS.
"
FORMAT INTENSIFIED ON.
SUM.
CLEAR T554T. PERFORM PRINT.
ENDAT.
AT END OF BUKRS.
"
FORMAT INTENSIFIED ON.
SUM.
CLEAR T554T. PERFORM PRINT.
SKIP.
ENDAT.
AT LAST.
FORMAT INTENSIFIED ON.
SUM.
CLEAR T554T. PERFORM PRINT.
SKIP.
ENDAT.
ENDLOOP.
*--------------------------------------------------------------*
*
FORM PRINT
*
*--------------------------------------------------------------*
*
*
*--------------------------------------------------------------*
FORM PRINT.
WRITE: / ABSTAB-BUKRS,
8 ABSTAB-WERKS,
14 ABSTAB-BTRTL,
20 ABSTAB-AWART,
26 T554T-ATEXT,
60 ABSTAB-ABWTG.
ENDFORM.
*--------------------------------------------------------------*
*
FORM RE554T
*
*--------------------------------------------------------------*
*
*
*--------------------------------------------------------------*
FORM RE554T USING VALUE(GROUPING)"

VALUE(ABSENCE).
CHECK T554T-SPRSL NE SY-LANGU
OR T554T-MOABW NE GROUPING
OR T554T-AWART NE ABSENCE.
SELECT SINGLE * FROM T554T
WHERE SPRSL = SY-LANGU
AND MOABW = GROUPING
AND AWART = ABSENCE.
IF SY-SUBRC NE 0.
CLEAR T554T.
ENDIF.
ENDFORM.
SAP-AG Offline Translation Tool 3.2

Page 166

HR350 HR (Unit 11)

:

:


HR_DISPLAY_BASIC_LIST

REPORT RPSOL060.
*--
TABLES: PERNR.
INFOTYPES: 0001,
"
0008.
"
DATA: BEGIN OF WTYPE,
"

LGANN LIKE P0008-LGA01,


BETNN LIKE P0008-BET01,
END OF WTYPE.
DATA: BEGIN OF BP_TABLE OCCURS 10, "
PERNR LIKE PERNR-PERNR,
ENAME LIKE P0001-ENAME,
TOTAL(30),
WAERS LIKE P0008-WAERS,
END OF BP_TABLE.
DATA: BEGIN OF FIELDNAMES OCCURS 3. "

TITLE(60),
TABLE(6),
FIELD(10),
TYPE(1),
END OF FIELDNAMES.
DATA: BEGIN OF ERROR_TABLE OCCURS 10. "
INCLUDE STRUCTURE HRERROR.
DATA: END OF ERROR_TABLE.
DATA: TOTAL LIKE P0008-BET01,
DATEFIELD(10),
HEADLINE(80).

"

INITIALIZATION.
PNPBEGDA = SY-DATUM.

SAP-AG Offline Translation Tool 3.2

Page 167

HR350 HR (Unit 11)

SAP-AG Offline Translation Tool 3.2

Page 168

HR350 HR (Unit 11)

START-OF-SELECTION.
RP_SET_DATA_INTERVAL P0001 PN-BEGDA PN-ENDDA.
*--
GET PERNR.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND NE '1'
* MESSAGE I102 WITH PERNR-PERNR.
PERFORM ERROR_HANDLING USING PERNR-PERNR '70' 'I' '102'
SPACE P0001-INFTY SPACE SPACE.
REJECT.
ENDIF.
RP_PROVIDE_FROM_LAST P0008 SPACE PN-BEGDA PN-ENDDA.
DO 20 TIMES
VARYING WTYPE
FROM P0008-LGA01
NEXT P0008-LGA02.
IF WTYPE IS INITIAL.
EXIT.
ENDIF.
ADD WTYPE-BETNN TO TOTAL.
ENDDO.
IF TOTAL GT 0.
MOVE-CORRESPONDING P0001 TO BP_TABLE.
MOVE-CORRESPONDING P0008 TO BP_TABLE.
WRITE TOTAL TO BP_TABLE-TOTAL DECIMALS 2.
APPEND BP_TABLE.
CLEAR: TOTAL, BP_TABLE.
ENDIF.
END-OF-SELECTION.
PERFORM FILL_FIELDNAMES.
PERFORM DEF_HEADER.
CALL FUNCTION 'HR_DISPLAY_BASIC_LIST'
EXPORTING
BASIC_LIST_TITLE = TEXT-001
FILE_NAME
= SY-REPID
HEAD_LINE1
= TEXT-002
HEAD_LINE2
= HEADLINE
*
FOOT_NOTE1
=''
*
FOOT_NOTE2
=''
*
FOOT_NOTE3
=''
*
LAY_OUT
=0
*
DYN_PUSHBUTTON_TEXT1 =
*
DYN_PUSHBUTTON_TEXT2 =
*
DYN_PUSHBUTTON_TEXT3 =
*
DYN_PUSHBUTTON_TEXT4 =
*
DYN_PUSHBUTTON_TEXT5 =
*
DYN_PUSHBUTTON_TEXT6 =
*
DATA_STRUCTURE
=''
*
HEAD_LINE3
=''
*
HEAD_LINE4
=''
*
CURRENT_REPORT
=

SAP-AG Offline Translation Tool 3.2

Page 169

HR350 HR (Unit 11)

*
*
*
*
*

LIST_LEVEL
=''
ADDITIONAL_OPTIONS = ' '
WORD_DOCUMENT
=
IMPORTING
RETURN_CODE
=
TABLES
DATA_TAB
= BP_TABLE
FIELDNAME_TAB
= FIELDNAMES
SELECT_TAB
=
ERROR_TAB
= ERROR_TABLE
EXCEPTIONS
DOWNLOAD_PROBLEM = 1
NO_DATA_TAB_ENTRIES = 2
TABLE_MISMATCH
=3
PRINT_PROBLEMS
=4
OTHERS
= 5.

IF SY-SUBRC = 2.
WRITE: ' .'(005).
ENDIF.
*--------------------------------------------------------------*
*
FORM FILL_FIELDNAMES
*--------------------------------------------------------------*
*
*
*--------------------------------------------------------------*
FORM FILL_FIELDNAMES.
FIELDNAMES-TABLE = 'PERNR'.
FIELDNAMES-FIELD = 'PERNR'.
FIELDNAMES-TYPE = 'X'.
APPEND FIELDNAMES.
CLEAR FIELDNAMES.

FIELDNAMES-TABLE = 'P0001'.
FIELDNAMES-FIELD = 'ENAME'.
APPEND FIELDNAMES.
CLEAR FIELDNAMES.
FIELDNAMES-TITLE = ' (003).
APPEND FIELDNAMES.
CLEAR FIELDNAMES.
FIELDNAMES-TABLE = 'P0008'.
FIELDNAMES-FIELD = 'WAERS'.
APPEND FIELDNAMES.
CLEAR FIELDNAMES.
ENDFORM.
*-------------------------------------------------------------*
*
FORM DEF_HEADER
*-------------------------------------------------------------*
*
*
*-------------------------------------------------------------*
FORM DEF_HEADER.
HEADLINE = ' :'(004).
SAP-AG Offline Translation Tool 3.2

Page 170

HR350 HR (Unit 11)

WRITE PN-BEGDA TO DATEFIELD DD/MM/YYYY.


CONCATENATE HEADLINE DATEFIELD INTO HEADLINE SEPARATED BY
SPACE.
ENDFORM.

SAP-AG Offline Translation Tool 3.2

Page 171

HR350 HR (Unit 11)

*--------------------------------------------------------------*
*
FORM ERROR_HANDLING
*
*--------------------------------------------------------------*
*
*
*--------------------------------------------------------------*
* --> PERNR
*
* --> ARBGB
*
* --> MSGTY
*
* --> MSGNO
*
* --> MSGV1
*
* --> MSGV2
*
* --> MSGV3
*
* --> MSGV4
*
*--------------------------------------------------------------*
FORM ERROR_HANDLING USING PERNR ARBGB MSGTY MSGNO
MSGV1 MSGV2 MSGV3 MSGV4.
CLEAR ERROR_TABLE.
ERROR_TABLE-PERNR = PERNR.
ERROR_TABLE-ARBGB = ARBGB.
ERROR_TABLE-MSGTY = MSGTY.
ERROR_TABLE-MSGNO = MSGNO.
ERROR_TABLE-MSGV1 = MSGV1.
ERROR_TABLE-MSGV2 = MSGV2.
ERROR_TABLE-MSGV3 = MSGV3.
ERROR_TABLE-MSGV4 = MSGV4.
APPEND ERROR_TABLE.
ENDFORM.

SAP-AG Offline Translation Tool 3.2

Page 172

HR350 HR (Unit 11)

: /
:

ZZ
EXPORT IMPORT

REPORT RPSOL070.
TABLES: PCL1.
INCLUDE: RPC1ZZ00.
" ZZ
*--
ZZ-KEY-GROUP = '99'.
ZZ-KEY-DATE = SY-DATUM.
ZZ-KEY-SEQNO = '001'.
*--
NAMES-LASTNAME = 'Calk'.
NAMES-FIRSTNAME = 'Kathy'.
*-- PCL1
EXPORT NAMES TO DATABASE PCL1(ZZ) ID ZZ-KEY.
IF SY-SUBRC EQ 0.
WRITE: ' PCL1
' (001),ZZ-KEY.
ENDIF.
*--
ZZ-KEY-SEQNO = '002'.
*--
NAMES-LASTNAME = 'Matthau'.
NAMES-FIRSTNAME = 'Walter'.
*-- PCL1
EXPORT NAMES TO DATABASE PCL1(ZZ) ID ZZ-KEY.
IF SY-SUBRC EQ 0.
WRITE: TEXT-001, ZZ-KEY.
ENDIF.

SAP-AG Offline Translation Tool 3.2

Page 173

HR350 HR (Unit 11)

REPORT RPSOL071.
TABLES: PCL1.
INCLUDE: RPC1ZZ00.
" ZZ
*--
ZZ-KEY-GROUP = '99'.
ZZ-KEY-DATE = SY-DATUM.
ZZ-KEY-SEQNO = '001'.
*-- PCL1
IMPORT NAMES FROM DATABASE PCL1(ZZ) ID ZZ-KEY.
IF SY-SUBRC EQ 0.
WRITE: / NAMES-LASTNAME,
NAMES-FIRSTNAME.
ELSE.
WRITE: / ' '(001), ZZ-KEY.
ENDIF.
*--
ZZ-KEY-SEQNO = '002'.
*-- PCL1
IMPORT NAMES FROM DATABASE PCL1(ZZ) ID ZZ-KEY.
IF SY-SUBRC EQ 0.
WRITE: / NAMES-LASTNAME,
NAMES-FIRSTNAME.
ELSE.
WRITE: / TEXT-001, ZZ-KEY.
ENDIF.

SAP-AG Offline Translation Tool 3.2

Page 174

HR350 HR (Unit 11)

: /
:


ZZ

REPORT RPSOL080.
TABLES: PCL1,PCL2.
INCLUDE: RPC1ZZ00.
" ZZ
INCLUDE: RPPPXD00.
" (I)
DATA: BEGIN OF COMMON PART BUFFER.
INCLUDE: RPPPXD10.
" (II)
DATA: END OF COMMON PART BUFFER.
*--
ZZ-KEY-GROUP = '99'.
ZZ-KEY-DATE = SY-DATUM.
ZZ-KEY-SEQNO = '001'.
*--
NAMES-LASTNAME = 'Calk'.
NAMES-FIRSTNAME = 'Kathy'.
*-- PCL1
RP-EXP-C1-ZZ.
IF RP-IMP-ZZ-SUBRC = 0.
WRITE: / ' '(001),
ZZ-KEY.
ENDIF.
*--
ZZ-KEY-SEQNO = '002'.
*--
NAMES-LASTNAME = 'Matthau'.
NAMES-FIRSTNAME = 'Walter'.
*-- PCL1
RP-EXP-C1-ZZ.
IF RP-IMP-ZZ-SUBRC = 0.
WRITE: / TEXT-001, ZZ-KEY.
ENDIF.
*--
PERFORM PREPARE_UPDATE USING 'V'.
*--
INCLUDE: RPPPXM00.
"

SAP-AG Offline Translation Tool 3.2

Page 175

HR350 HR (Unit 11)

REPORT RPSOL081.
TABLES: PCL1,PCL2.
INCLUDE: RPC1ZZ00.
" ZZ
INCLUDE: RPPPXD00.
" (I)
DATA: BEGIN OF COMMON PART BUFFER.
INCLUDE: RPPPXD10.
" (II)
DATA: END OF COMMON PART BUFFER.
*--
ZZ-KEY-GROUP = '99'.
ZZ-KEY-DATE = SY-DATUM.
ZZ-KEY-SEQNO = '001'.
*-- IMPORT PCL1
RP-IMP-C1-ZZ.
IF RP-IMP-ZZ-SUBRC = 0.
WRITE: / NAMES-LASTNAME,
NAMES-FIRSTNAME.
ELSE.
WRITE: / ' '(001), ZZ-KEY.
ENDIF.
*--
ZZ-KEY-SEQNO = '002'.
*-- IMPORT PCL1
RP-IMP-C1-ZZ.
IF RP-IMP-ZZ-SUBRC = 0.
WRITE: / NAMES-LASTNAME,
NAMES-FIRSTNAME.
ELSE.
WRITE: / TEXT-001, ZZ-KEY.
ENDIF.
*-INCLUDE: RPPPXM00.
"

SAP-AG Offline Translation Tool 3.2

Page 176

HR350 HR (Unit 11)

: /
:

CU_READ_RGDIR

CD_EVALUATION_PERIODS
RT

REPORT RPSOL090.
TABLES: PCL1,
PCL2,
PERNR.
TABLES: T512T,
T549A.
INFOTYPES: 0001.

"
"
"

INCLUDE: RPC2RX00.
" RX(I)
INCLUDE: RPC2RXX0.
" RX(II)
INCLUDE: RPPPXD00.
" (I)
DATA: BEGIN OF COMMON PART BUFFER.
INCLUDE: RPPPXD10.
" (II)
DATA: END OF COMMON PART BUFFER.
* , PCL2
DATA: BEGIN OF RGDIR OCCURS 100.
INCLUDE STRUCTURE PC261.
DATA: END OF RGDIR.
DATA: BEGIN OF EVPDIR OCCURS 100.
INCLUDE STRUCTURE PC261.
DATA: END OF EVPDIR.
DATA: COUNTRY LIKE T001P-MOLGA,
PERIOD LIKE PC261-INPER
SELECT-OPTIONS: P_STATUS FOR RGDIR-SRTZA DEFAULT 'A'.
START-OF-SELECTION.
SELECT SINGLE * FROM T549A
SAP-AG Offline Translation Tool 3.2

WHERE ABKRS = PNPXABKR.


Page 177

HR350 HR (Unit 11)

*--
GET PERNR.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
PERSNR
= P0001-PERNR
IMPORTING
MOLGA
= COUNTRY
TABLES
IN_RGDIR
= RGDIR
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS
=2
IF SY-SUBRC = 1.
WRITE: / ' '(001), PERNR-PERNR.
ENDIF.
PERIOD = PN-PAPER.
CALL FUNCTION 'CD_EVALUATION_PERIODS'
EXPORTING
BONUS_DATE
= '00000000'
INPER_MODIF = T549A-PERMO
INPER
= PERIOD
PAY_TYPE
=''
PAY_IDENT
=''
TABLES
RGDIR
= RGDIR
EVPDIR
= EVPDIR
*
iabkrs
=
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS
= 2.
IF SY-SUBRC = 1.
WRITE: / '' '(001), PN-PAPER.
ELSE.
LOOP AT EVPDIR WHERE SRTZA IN P_STATUS.
*-- RX
RX-KEY-PERNR = P0001-PERNR.
RX-KEY-SEQNO = EVPDIR-SEQNR.
*-- PCL2
RP-IMP-C2-RX.
IF RP-IMP-RX-SUBRC = 0.
PERFORM PRINT_RX.
ELSE.
WRITE: / ' (002).
ENDIF.
ENDLOOP.
ENDIF.

SAP-AG Offline Translation Tool 3.2

Page 178

HR350 HR (Unit 11)

*--
INCLUDE RPPPXM00.

"PCL1/PCL2-

*--------------------------------------------------------------*
*
FORM PRINT_RX
*
*--------------------------------------------------------------*
*
*
*--------------------------------------------------------------*
FORM PRINT_RX.
FORMAT INTENSIFIED ON.
WRITE: / P0001-PERNR,
P0001-ENAME(15),
P0001-WERKS,
P0001-BTRTL.
FORMAT INTENSIFIED OFF.
SKIP 1.
WRITE: / '-/ : '(003),
30 EVPDIR-FPPER+4(2),
EVPDIR-FPPER+0(4),
EVPDIR-ABKRS,
/ '-/ : '(004),
30 EVPDIR-INPER+4(2),
EVPDIR-INPER+0(4),
EVPDIR-IABKRS.
SKIP 1.
WRITE: ' : '(005).
SKIP 1.
LOOP AT RT.
PERFORM RE512T USING COUNTRY RT-LGART.
WRITE: / RT-LGART,
T512T-LGTXT,
RT-BETRG CURRENCY RT-AMT_CURR.
ENDLOOP.
ENDFORM.
*--------------------------------------------------------------*
*
FORM RE512T
*
*--------------------------------------------------------------*
*
*
*--------------------------------------------------------------*
FORM RE512T USING VALUE(COUNTRY_GROUPING)
VALUE(WTYPE).
CHECK T512T-SPRSL NE SY-LANGU
OR T512T-MOLGA NE COUNTRY_GROUPING
OR T512T-LGART NE WTYPE.
SELECT SINGLE * FROM T512T
WHERE SPRSL EQ SY-LANGU
AND MOLGA EQ COUNTRY_GROUPING
AND LGART EQ WTYPE.
IF SY-SUBRC NE 0.
CLEAR T512T.
ENDIF.
ENDFORM.

SAP-AG Offline Translation Tool 3.2

Page 179

HR350 HR (Unit 11)

: PCH
: ,


-
PCH

REPORT RHSOL010.
TABLES: OBJEC, GDSTR.
DATA: STABS LIKE P1003-STABS.
INFOTYPES: 1003, 0002
INITIALIZATION.
PCHOTYPE = 'O'.
PCHWEGID = 'O-O-S-P'
GET OBJEC.
IF OBJEC-OTYPE = 'S'.
CLEAR STABS.
LOOP AT P1003 WHERE BEGDA LE PC-ENDDA
AND ENDDA GE PC-BEGDA.
IF P1003-STABS = 'X'.
STABS = 'X'.
WRITE : / OBJEC-OBJID, OBJEC-SHORT, OBJECSTEXT.
ENDIF.
ENDLOOP.
ENDIF.
IF OBJEC-OTYPE = 'P' AND STABS = 'X'.
LOOP AT P0002 WHERE BEGDA LE PC-ENDDA
AND ENDDA GE PC-BEGDA.
WRITE : / P0002-VORNA, P0002-NACHN, P0002-GBDAT.
ENDLOOP.
ENDIF.

SAP-AG Offline Translation Tool 3.2

Page 180

HR350 HR (Unit 12)

, ,
IMG

,

,

000000nn:
IMG

.
.

,
.
.
.
.

. .

:
IMG

.
. .

SAP-AG Offline Translation Tool 3.2

Page 181

HR350 HR (Unit 12)


,
.

.
,
.

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 182

HR350 HR (Unit 12)

:


RP_EVALUATION_PERIODS

SAP AG

SAP-AG Offline Translation Tool 3.2

Page 183

HR350 HR (Unit 12)

SAP


/
, . ,

nnn
R


SAP AG

PNP,

HR -> HR.
, .
,
, SAP.

.
,
.

.
:
S: X
=
,
_
=
.
E: X
=
,
_
=
.
P: _
=
,
X
=
,
M
=
,
.
D/A:0
=
,
1
=

,
2
=
,
.

SAP-AG Offline Translation Tool 3.2

Page 184

HR350 HR (Unit 12)

IMG:

00000350

HR350

= ?
, . / ?
?

SAP AG

PNP
. ,
,
.
SAP
, ,
,
.

.
'00000000',
, ,
.

SAP-AG Offline Translation Tool 3.2

Page 185

HR350 HR (Unit 12)

IMG:

.:
0000 0000
'
'

00000350

HR350

.
.
.
ZP xxxx 00
ZP xxxx 10
ZP xxxx 20
.
.
.

SAP
R

SAP AG

, ,
'00000000' ( ).
'
'.
,
.
,
,
( , , ...).
T599B T599W.
T599B , T599W
SAP. ,
(
T599C) SAP ( T599F).

SAP-AG Offline Translation Tool 3.2

Page 186

HR350 HR (Unit 12)

(1)
/

-

CDM

nnnnn

PCL2
R

SAP AG

xy
PCL2.
PERNR ( )
SEQNO ( ).
RGDIR
. (RGDIRSEQNR),
.
,

.

(luster directory manager CDM).
CDM nnnnn.

SAP-AG Offline Translation Tool 3.2

Page 187

HR350 HR (Unit 12)

(2)


-

CDM

nnnnn

PCL2

SAP AG


(CDM).
CDM nnnnn,
.

PCL2.
.

SAP-AG Offline Translation Tool 3.2

Page 188

HR350 HR (Unit 12)

(3)
REPORT RPIMPORT.
INCLUDE: RPC2CD00.
*
PARAMETERS: PERSON LIKE PERNR-PERNR.
....
* CDM
PERFORM CD_MANAGER USING
PERSON

....
*
RX-KEY-PERNR = PERSON.
UNPACK RGDIR-SEQNR TO RX-KEY-SEQNO.
* PCL2
RP-IMP-Cn-xy.
INCLUDE: RPCMGR00.

SAP AG

,
.
PERFORM CDM
nnnnn.
.
.

SAP-AG Offline Translation Tool 3.2

Page 189

HR350 HR (Unit 12)


RP_EVALUATION_PERIODS
DATA: BEGIN OF EVP OCCURS 10.
INCLUDE STRUCTURE PEVPT.
DATA: END OF EVP.
GET PERNR.
RP-SEL-CALC.
READ TABLE P0003 INDEX 1.
CALL FUNCTION 'RP_EVALUATION_PERIODS '
EXPORTING
LAST_CALCULATED_DAY = P0003-ABRDT
LAST_DAY_IN_PERIOD
= PN/ENDDA
RETROCALCULATED_DAY = RP-SEL-CALC-RRDAT
TABLES
DIR
= RGDIR
EVP
= EVP
EXCEPTIONS
RGDIR_EMPTY
= 1.
LOOP AT EVP.
RX-KEY-PERNR = PERNR-PERNR.
RX-KEY-SEQNO = EVP-SEQNR.
RP-IMP-C2-RX.
PERFORM PRINT_RX.
ENDLOOP.
RP-READ-PAYROLL-DIR.

SAP AG

EVP (
) ,
.
.
LAST_CALCULATED_DAY:
.
P0003-ABRDT.
LAST_DAY_IN_PERIOD:
.
PN/ENDDA,
PNP.
RETROCALCULATED_DAY:
,
.
- ,
,
.
RP-SEL-CALC.
DIR ( ):
. RGDIR CD.
EVP ( ):
.
.
A,
- P.

SAP-AG Offline Translation Tool 3.2

Page 190

Оценить