UNIT 10 Modularization Techniques in ABAP
p 267
Global Modularization - function ( function module ) / class ( Method ) 사용
Local로 만들게 되면 다른 클라이언트가 사용하지 못하는데, 사용하게 하려면 Global Modularization.
Subroutines call by using PERFORM
p 278
Call by Value USING value ( p_c1 ) | - Use this pass type to make the value of a global variable available to the subroutine in the form of a variable copy. without allowing the subroutine to change the respective global variable. | |
Call by Value and Result CHANGING value ( p_c2 ) | - transfer the value of a global variable to the subroutine in the form fully proocessed final value of the copy back to the original. - transfer the value of a global variable after meeting ENDFORM. | |
Call by Reference ( CHANGING ) p_c3. | run subroutine processing directly on the specified actual parameter. |
cf) Using 값을 바꿀 수 있지만 - miss use
Function Groups
p 294
- Package > Function Groups > Function Module
- How to make : /n se80 -> function 만들기 -> 더블클릭 후 - Master Program
- name 앞에 SAPL 이 붙은 아이들은 function group (생성과 동시에 붙음)
~FGTOP : global data로 선언하는 것들이 모여있음 ~UXX : function module 저장장소 ( function 99개 한계)
cf) se37 / POPUP_TO_CONFIRM_LOSS_OF_DATA
만든 후 우클릭 -> ' active '
tip. ) prog 에서 function 편하게 불러오기 : ctrl + f6 ( Pattern )
Describe Business Application Programming Interfaces ( BAPIs )
p 322
Business Obj Repository
BAPI - Business Object 내의 각각의 Method들을 BAPI라고 함.
- BAPI는 screen을 가질 수 없으며, exception에 대한 handling 불가, export parameter로 내보내야 함.
/n bapi ( RFC라고 불러요 )
Class는 다음 주에 합니다.
p 287 연습해보기
p 303 연습 ****************************************
이건 뭔 소린지 들어가보기. day 5 _ p 295 POPUP_TO_CONFIRM_LOSS_OF_DATA : 예시
cf) exception 처리는 fuction module에서 |
cf) http://abapsharebyreza.blogspot.kr/2014/01/taw10-modularization.html
댓글