Process Infotypes
- RMAC Modules - RMAC module as referred to Macro, is a special construct of ABAP/4 codes. Normally, the program code of these modules is stored in table 'TRMAC'. The table key combines the program code under a given name. It can also be defined in programs.The RMAC defined in the TRMAC can be used in all Reports. When an RMAC is changed, the report has to be regenerated manually to reflect the change.
- Reading Infotypes - by using RMAC (macro) RP-READ-INFOTYPE
REPORT ZHR00001.
INFOTYPE: 0002.
PARAMETERS: PERNR LIKE P0002-PERNR.
RP-READ-INFOTYPE PERNR 0002 P0002 <BEGIN> <END>.
PROVIDE * FROM P0002
if ... then ...endif.
ENDPROVIDE.
- Changing Infotypes - by using RMAC (macro) RP-READ-INFOTYPE.
· Three steps are involved in changing infotypes:
1. Select the infotype records to be changed;
2. Make the required changes and store the records in an alternative table;
3. Save this table to the database;
The RP-UPDATE macro updates the database. The parameters of this macro are the OLD internal table containing the unchanged records and the NEW internal table containing the changed records. You cannot create or delete data. Only modification is possible.
INFOTYPES: Pnnnn NAME OLD,
Pnnnn NAME NEW.
GET PERNR.
PROVIDE * FROM OLD
WHERE .... = ... "Change old record
*Save old record in alternate table
NEW = OLD.
ENDPROVIDE.
RP-UPDATE OLD NEW. "Update changed record
Infotype with repeat structures
· How to identify repeat structures.
a. On infotype entry screen, data is entered in table form.
IT0005, IT0008, IT0041, etc.
b. In the infotype structure, fields are grouped by the same name followed by sequence number.
P0005-UARnn P0005-UANnn P0005-UBEnn
P0005-UENnn P0005-UABnn
Repeat Structures
· Data is entered on the infotype screen in table format but stored on the database in a linear
structure.
· Each row of the table is stored in the same record on the database.
· When evaluating a repeat structure, you must define the starting point, the increment and the
work area which contains the complete field group definition.
Repeat Structures Evaluation (I)
· To evaluate the repeat structures
a. Define work area.
The work area is a field string. Its structure is identical to that of the field group.
b. Use a DO LOOP to divide the repeat structure into segments and make it available for
processing in the work area, one field group (block) at a time.
Repeat Structures Evaluation(II)
* Define work area
DATA: BEGIN OF VACATION,
UAR LIKE P0005-UAR01, "Leave type
UAN LIKE P0005-UAN01, "Leave entitlement
UBE LIKE P0005-UBE01, "Start date
UEN LIKE P0005-UEN01, "End date
UAB LIKE P0005-UAB01, "Leave accounted
END OF VACATION.
GET PERNR.
RP-PROVIDE-FROM-LAST P0005 SPACE PN/BEGDA PN/ENDDA.
DO 6 TIMES VARYING VACATION
FROM P0005-UAR01 "Starting point
NEXT P0005-UAR02. "Increment
If p0005-xyz then ... endif.
ENDDO.
** 출처 : http://www.erpgenie.com/
* e-abap님에 의해서 게시물 이동되었습니다 (2007-04-24 11:53)
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
30 | PD Infotype 생성 방법 | mami | 2014.04.28 | 3885 |
29 | 근태 삭제 (CLUSTER B2 삭제) 방법 [5] | baper | 2008.04.02 | 3913 |
28 | 테이블 t001p(사원 영역/하부영역) 에 값 넣는 방법 [1] | SAP 사랑 | 2013.05.21 | 4163 |
27 | 근태 마감 기간 변경 관련 | 코딩시로 | 2013.03.31 | 4178 |
26 | info 타입 만드는 방법 | v.persie | 2012.05.22 | 4254 |
25 | HR 모듈정리자료(시험대비) [14] | 애니유 | 2008.04.10 | 4321 |
24 | HR자료 [11] | 김기욱 | 2008.09.10 | 4520 |
23 | ECC6.0 업그레이드 후 프로그램에서 Custom인포타입의 Syntax error [1] | 으랏차차 | 2009.07.25 | 4542 |
22 | HR Infotype 설명서 [12] | 둘리67 | 2007.10.03 | 4637 |
21 | HR자료 [12] | 김기욱 | 2008.09.10 | 4810 |
20 | 안녕하세요 도움좀 부탁드립니다.^^; | 월계동정씨 | 2012.01.06 | 4837 |
19 | hr_용어집 [16] | 동키호테 | 2008.09.16 | 4944 |
18 | 제가 자주 사용하는 T-Code를 정리한것입니다[20080220업데이트] [24] | 혀나미 | 2007.12.04 | 4960 |
17 | HR 족보가 필요합니다 ㅠ.ㅡ | 낭망야옹이 | 2012.03.15 | 4993 |
16 | HR Certi 관련 질문 | 슈퍼아밥퍼가되련다 | 2010.11.23 | 5054 |
15 | PeopleSoft HCM vs SAP 비교자료 [4] | GURI | 2008.11.11 | 5060 |
14 | Processing Payroll infotypes/Cluster [1] | 김대영 | 2007.04.24 | 5079 |
13 | [re] SAP HR Overview | 바보사랑 | 2009.07.03 | 5092 |
12 | 인포 타입 생성 방법 | v.persie | 2012.05.30 | 5172 |
11 | 급여스키마 흐름이해 [25] | 바다 | 2008.05.14 | 5176 |