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 | Overview_HCM_SAP_ERP [2] | 겸이 | 2008.12.25 | 3646 |
29 | SAP HR Overview [31] | 윤뚱 | 2009.06.24 | 7152 |
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 | 7311 |
25 | 해당 T-code 에서 IMG 찾는 법 [3] | 슈퍼아밥퍼가되련다 | 2010.09.02 | 5689 |
24 | HR 급여 스키마 셋팅 및 보는 방법 [4] | 슈퍼아밥퍼가되련다 | 2010.09.16 | 9738 |
23 | Payroll Engine ? [1] | 윤뚱 | 2010.09.16 | 5760 |
22 | HR Certi 관련 질문 | 슈퍼아밥퍼가되련다 | 2010.11.23 | 5053 |
21 | 발령 - 시작일자 변경 방법 문의 [3] | 왕창부셔다부셔 | 2010.12.23 | 7122 |
20 | 년차는 어떻게 생성해주나여? [1] | 날아 | 2010.12.28 | 7485 |
19 | HR img Setting [1] | 너구리 | 2011.03.28 | 15 |
18 | HR 공부 방법~ | 히로2000 | 2011.09.02 | 7501 |
17 | 안녕하세요 도움좀 부탁드립니다.^^; | 월계동정씨 | 2012.01.06 | 4836 |
16 | HR 족보가 필요합니다 ㅠ.ㅡ | 낭망야옹이 | 2012.03.15 | 4992 |
15 | info 타입 만드는 방법 | v.persie | 2012.05.22 | 4254 |
14 | 인포 타입 생성 방법 | v.persie | 2012.05.30 | 5172 |
13 | 월평균인원 펑션 있을까요? [1] | 츄리닝 | 2012.12.20 | 3732 |
12 | 근태 마감 기간 변경 관련 | 코딩시로 | 2013.03.31 | 4178 |
11 | 테이블 t001p(사원 영역/하부영역) 에 값 넣는 방법 [1] | SAP 사랑 | 2013.05.21 | 4162 |