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)
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
30 | Overview_HCM_SAP_ERP [2] | 겸이 | 2008.12.25 | 3646 |
29 | SAP HR Overview [31] | 윤뚱 | 2009.06.24 | 7154 |
28 | [re] SAP HR Overview | 바보사랑 | 2009.07.03 | 5092 |
27 | ECC6.0 업그레이드 후 프로그램에서 Custom인포타입의 Syntax error [1] | 으랏차차 | 2009.07.25 | 4542 |
26 | HR 프로세스 자료입니다. [28] | 서키트 | 2009.11.25 | 7314 |
25 | 해당 T-code 에서 IMG 찾는 법 [3] | 슈퍼아밥퍼가되련다 | 2010.09.02 | 5689 |
24 | HR 급여 스키마 셋팅 및 보는 방법 [4] | 슈퍼아밥퍼가되련다 | 2010.09.16 | 9742 |
23 | Payroll Engine ? [1] | 윤뚱 | 2010.09.16 | 5761 |
22 | HR Certi 관련 질문 | 슈퍼아밥퍼가되련다 | 2010.11.23 | 5054 |
21 | 발령 - 시작일자 변경 방법 문의 [3] | 왕창부셔다부셔 | 2010.12.23 | 7122 |
20 | 년차는 어떻게 생성해주나여? [1] | 날아 | 2010.12.28 | 7486 |
19 | HR img Setting [1] | 너구리 | 2011.03.28 | 15 |
18 | HR 공부 방법~ | 히로2000 | 2011.09.02 | 7502 |
17 | 안녕하세요 도움좀 부탁드립니다.^^; | 월계동정씨 | 2012.01.06 | 4842 |
16 | HR 족보가 필요합니다 ㅠ.ㅡ | 낭망야옹이 | 2012.03.15 | 4995 |
15 | info 타입 만드는 방법 | v.persie | 2012.05.22 | 4256 |
14 | 인포 타입 생성 방법 | v.persie | 2012.05.30 | 5174 |
13 | 월평균인원 펑션 있을까요? [1] | 츄리닝 | 2012.12.20 | 3733 |
12 | 근태 마감 기간 변경 관련 | 코딩시로 | 2013.03.31 | 4180 |
11 | 테이블 t001p(사원 영역/하부영역) 에 값 넣는 방법 [1] | SAP 사랑 | 2013.05.21 | 4165 |