문바이님 블로그에서 퍼온 자료입니다.
https://blog.daum.net/rightvoice/276
ABAP Naming Rule
꼭 이렇게 하라는 것은 아니며, 국내 프로젝트 및 구글링을 통해 가이드 되는 방법을 정리해 보았다. ABAP Naming Rule Program/Transaction/Include Naming/ABAP Dic Rule Program Type-1 CBO구분자[Z] + 모듈구..
blog.daum.net
꼭 이렇게 하라는 것은 아니며,
국내 프로젝트 및 구글링을 통해 가이드 되는 방법을 정리해 보았다.
ABAP Naming Rule | |||||||
Program/Transaction/Include Naming/ABAP Dic Rule | |||||||
Program | Type-1 | CBO구분자[Z] + 모듈구분명 + [R]+ 순번 | ZQMR0010 | ||||
Module | CBO구분자[Z] + 모듈구분명 + [M]+ 순번 | ZQMM0010 | |||||
Transaction | [Program] + [의미부여] | ZQMM0010D. [ZQMM0010의 Display용] |
|||||
ZQMM0010I. [ZQMM0010의 Input용] |
|||||||
Include | TOP | Program명 + TOP [광역변수 선언같은 초기화] | ZQMM0010TOP | ||||
SEL | Program명 + SEL [Selection Screen이 복잡한경우 사용] | ZQMM0010SEL | |||||
Class | Program명 + C + 순번 | ZQMM0010C01 | |||||
PBO | Program명 + O + 순번 | ZQMM0010O01 | |||||
PAI | Program명 + I + 순번 | ZQMM0010I01 | |||||
perForm | Program명 + F + 순번 | ZQMM0010F01 | |||||
iTab | Program명 + T + 순번 | ZQMM0010T01 | |||||
parameterS | Program명 + S + 순번 | ZQMM0010S01 | |||||
CLS | Program명 + CLS [프로그램 초기화(class관련),별로안씀] | ZQMM0010CLS | |||||
ABAP Dic | Table | Z + 모듈구분명 + 오브젝트구분자 + 순번 | ZQMT0001 | ||||
View | Z + 모듈구분명 + V + 순번 | ZQMV0001 | |||||
Search Help | ZH + 모듈구분명 + 설명구분자 | ZHQM001 | |||||
Variable Naming Rule | |||||||
Format : [범위(전역/로컬] [데이터 유형(변수/구조/테이블,etc..] _ [의미요약] | |||||||
범위 | G | Global | 전역변수 | DATA Gx_XXXXX | |||
L | Local | 지역변수 | DATA Lx_XXXXX | ||||
데이타유형 (일반개념) |
D(V) | fielD, Variable | 필드/일반변수 | DATA gd_sflight Type s_carr_id. | |||
S | Structure | 구조체 | DATA gs_sflight Type sflight. | ||||
C | Constant | 상수 | DATA gc_rate Type i Value '3.14' | ||||
T | Table | 테이블 | DATA gt_sflight Type Table of Sflight. | ||||
O | Object | 개체(클레스) | DATA go_alvgrid Type Ref To cl_salv_table. | ||||
R | Range | Range | RANGES gr_carrid FOR sflight-carrid. | ||||
F | reFerence | 참조(Reference) | DATA gf_obj Type Ref To object. | ||||
PreDefined | C | Character | 문자형 | DATA lv_cTemp1 Type c Length 10. | |||
D | Date | Date형 | DATA lv_dStart Type d. | ||||
I | Integer | 정수형 | DATA lv_iCount Type i. | ||||
P | Package | 소수형 | DATA lv_pSum Type p Decimal 2. | ||||
s | String | 문자열형 | DATA lv_sCaution Type String. | ||||
Subroutine Naming Rule | |||||||
Format : PF_ [의미요약] | FORM pf_cal_Average. | ||||||
Parameter | Using | Table | ut_xxxx | ut_carrid | |||
Structure | us_xxxx | us_carrid | |||||
Class | uo_xxxx | uo_alv | |||||
Range | ur_xxxx | ur_carrid | |||||
Value | uv_xxxx | uv_iCount, uv_sName, uv_cMemo | |||||
Changing | Table | ct_xxxx | ct_carrid | ||||
Structure | cs_xxxx | cs_carrid | |||||
Class | co_xxxx | co_alv | |||||
Range | cr_xxxx | cr_carrid | |||||
Value | cv_xxxx | cv_iCount, cv_sName, cv_cMemo | |||||
Tables | Table | tt_xxxx | tt_carrid | ||||
Function Naming Rule | |||||||
Format : 모듈_[의미] | ZQM_Input_Validation. | ||||||
Parameter | Import | Table | It_xxxx | lt_carrid | |||
Structure | Is_xxxx | ls_carrid | |||||
Class | Io_xxxx | lo_alv | |||||
Range | Ir_xxxx | lr_carrid | |||||
Value | Iv_xxxx | lv_iCount, lv_sName, lv_cMemo | |||||
Export | Table | et_xxxx | et_carrid | ||||
Structure | es_xxxx | es_carrid | |||||
Class | eo_xxxx | eo_alv | |||||
Range | er_xxxx | er_carrid | |||||
Value | ev_xxxx | ev_iCount, ev_sName, ev_cMemo | |||||
Chaing | Table | ct_xxxx | ct_carrid | ||||
Structure | cs_xxxx | cs_carrid | |||||
Class | co_xxxx | co_alv | |||||
Range | cr_xxxx | cr_carrid | |||||
Value | cv_xxxx | cv_iCount, cv_sName, cv_cMemo | |||||
Table | ct_xxxx | ct_carrid | |||||
Tables | Import | ti_xxxx | ti_carrid | ||||
Tables | Export | te_xxxx | te_carrid | ||||
Tables | Change | tc_xxxx | tc_carrid |
'SAP > ABAP 기초' 카테고리의 다른 글
(ABAP) Table / Structure / View 정리 (0) | 2021.06.30 |
---|---|
(ABAP) SAP Buffer Reset (0) | 2021.06.30 |
(ABAP 코드) DISTINCT, GROUP BY, APPENDING (0) | 2021.06.24 |
(ABAP) CLASS - GLOBAL CLASS (0) | 2021.06.21 |
(ABAP) FORM 과 MODULARIZATION (0) | 2021.06.20 |