Processing 'Time Data'.
· Dependence of time data on validity period
· Importing time data
· Processing time data using internal tables
Time Data and Validity Period
· Time data always applies to a specific validity period.
· The validity periods of different types of time data are not always the same as the date selection period specified in the selection screen.
Date selection period |---------------|
Leave |-------------|
· PROVIDE in this case is therefore not used for time infotypes.
Importing Time Data
· GET PERNR reads all time infotypes from the lowest to highest system data, not only those within the date selection period.
· To prevent memory overload, add MODE N to the infotype declaration. This prevents the logical database from importing all data into infotype tables at GET PERNR.
· Use macro RP-READ-ALL-TIME-ITY to fill infotype table.
INFOTYPES: 2001 MODE N.
GET PERNR.
RP-READ-ALL-TIME-ITY PN/BEGDA PN/ENDDA.
LOOP AT P0021.
If P0021-XYZ = ' '. A=B. Endif.
ENDLOOP.
Processing Time Data
· Once data is imported into infotype tables, you can use an internal table to process the interested data.
DATA: BEGIN OF ITAB OCCURS 0,
BUKRS LIKE P0001-BUKRS, "COMPANY
WERKS LIKE P0001-WERKS, "PERSONNEL AREA
AWART LIKE P2001-AWART, "ABS./ATTEND. TYPE
ASWTG LIKE P2001-ASWTG, "ABS./ATTEND. DAYS
END OF ITAB.
GET PERNR.
RP-PROVIDE-FROM-LAST P0001 SAPCE PN/BEGDA PN/ENDDA.
CLEAR ITAB.
ITAB-BUKRS = P0001-BURKS. ITAB-WERKS = P0001-WERKS.
RP-READ-ALL-TIME-ITY PN/BEGDA PN/ENDDA.
LOOP AT P2001.
ITAB-AWART = P2001-AWART. ITAB-ASWTG = P2001-ASWTG.
COLLECT ITAB. (OR: APPEND ITAB.)
ENDLOOP.
** 출처 : http://www.erpgenie.com/
* e-abap님에 의해서 게시물 이동되었습니다 (2007-04-24 11:53)
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
50 | HR Infotype 설명서 [12] | 둘리67 | 2007.10.03 | 4637 |
49 | SAP HR BPS [2] | 둘리67 | 2007.10.03 | 2399 |
48 | hr쪽 기본 자료입니다. [11] | 은 | 2007.10.26 | 3178 |
47 | PD 인포타입 생성 [3] | 하얀천군 | 2007.11.06 | 3089 |
46 | HR 350 [1] | 아멜리에 | 2007.11.06 | 2846 |
45 | Enterprise NEW HCM1 자료 입니다. [4] | 너구리 | 2007.11.20 | 2073 |
44 | SAP R3 Module Training [4] | 너구리 | 2007.11.20 | 2159 |
43 | 제가 자주 사용하는 T-Code를 정리한것입니다[20080220업데이트] [24] | 혀나미 | 2007.12.04 | 4959 |
42 | HR관련(테이블,T-CODE 등) [16] | 나더몰라 | 2008.03.14 | 6656 |
41 | 근태 삭제 (CLUSTER B2 삭제) 방법 [5] | baper | 2008.04.02 | 3913 |
40 | HR 족보 [10] | 푸~ | 2008.04.09 | 3267 |
39 | HR 모듈정리자료(시험대비) [14] | 애니유 | 2008.04.10 | 4320 |
38 | 급여스키마 흐름이해 [25] | 바다 | 2008.05.14 | 5176 |
37 | pm01 payroll infotype 생성 [6] | 흙 | 2008.05.22 | 3247 |
36 | HR Recruitment [3] | zelos | 2008.07.21 | 2647 |
35 | HR자료 [12] | 김기욱 | 2008.09.10 | 4810 |
34 | HR자료 [11] | 김기욱 | 2008.09.10 | 4520 |
33 | hr_용어집 [16] | 동키호테 | 2008.09.16 | 4944 |
32 | STRUCTURAL AUTHORIZATIONS [7] | 시대유감 | 2008.11.06 | 3327 |
31 | PeopleSoft HCM vs SAP 비교자료 [4] | GURI | 2008.11.11 | 5060 |