관리 메뉴

JIHYUN JEONG

[SAP ERP] SAP ABAP 1-5. Modularization 본문

SAP ERP System/ABAP 교재정리

[SAP ERP] SAP ABAP 1-5. Modularization

StopHyun 2013. 4. 2. 23:21

오늘부터 SAP ABAP 정식교재에 대해서 공부를 해볼려고 합니다.


그 다섯번째 시간으로 SAP ABAP 1-5. Modularization 입니다.



ㅁ Unit 8 : Modularization

 

ㅁ Options for Using Modularization Units

 - 공통적인 부분을 모듈화 > 가독성을 높인다.


ㅁ Local Program Modularization

 - 다른 모듈에서 재사용 불가능


ㅁ Global Modularization

 - 재사용 가능

 - Function module, 클래스


ㅁ Separating Data

 - 


ㅁ Data Transports Between the Program and the Modularization Unit

 - Interface : 호출하는 프로그램과 재사용할 수 있는 Unit이 통신할 수 있는 것, 이것을 통해 데이터를 주고 받을 수 있다.



ㅁ Lesson : Modularization with Subroutine


ㅁ Simple Example of Subroutine

 - PERPORM


ㅁ Passing Parameters - Visibility of Global Variables

 - Global 변수는 Subroutine에서도 사용 가능


ㅁ Passing Parameters - Defining an Interface

 

ㅁ Ways of Passing Interface Parameters

 - Call by Value : 데이터 값을 Copy, 글로벌 변수는 안 바뀜

 - Call by Reference : 

 - Call by Value and Result : Call by Value와 비슷한 속성, 해당 루틴이 마무리 되면 바뀐 값을 던져줌, 메세지 2를 줌


ㅁ Defining and Calling Subroutines

 - PERFORM xyz  -> Call


 - FORM xyz -----------> Definition

   USING

value(f1)        ....        " Call by value

   CHANGING

value(f2)        ....        " Call by Value and Result

   (f3)        ....        " Call by Reference


ㅁ Typing the Interface Parameters

 - Actual parameter : 전송되어지는 부분, 값을 던지는 부분

      ex) PERFORM xyz ~~~

 - Formal parameter : 값을 받는 부분

       ex) Form

Using

  value ~~

CHANGING

  value ~~~


ㅁ Visibility of Global and Local Data Objects

 

ㅁ Syntax Example 


ㅁ Implementing a Subroutine Call

 - 드래그로 소스코드를 뿌릴 수 있다.


ㅁ Subroutines in Debugging Mode

 - Execute : 하나의 명령을 실행하고 다음 라인으로 넘어감

 - Return 


ㅁ Debugging - Call Stack


ㅁ Lesson Summary



ㅁ Lesson : Modulatrization with FUnction Modules


ㅁ Function Group

 - 다각형으로 표현 된다.

 - 외부와 통신된다 (인터페이스를 통해)


ㅁ Function module

 - Interface의 종류 

  * import

  * Export

  * Changing

  * Exceptions


ㅁ Data Objects Within a Function Group

 

ㅁ Searching for Function Module


ㅁFunction Module Interface


ㅁ Documentation and Test Environment

 

ㅁ Calling a Function Module

 

ㅁ Creating Source Code for a Function Module Call


ㅁ Handling Exceptions


ㅁ Creating a Function Group


ㅁ Creating a Function Module

 

ㅁ Editing the Source Code


ㅁ Business Objects and BAPIs

 

ㅁ Using BAPIs 

 

ㅁ Standard BAPIs

 - Business Object안에 포함되어 있음

 - GetList

 - GetDetail

 - Create, Change, Delete, Cancel

 - AddItem, RemoveItem


ㅁ BAPI Explorer

 

ㅁ Properties of a BAPI Function Module

 - No Exception

 - No Dialog


ㅁ BAPIs Call in an ABAP Program

 

ㅁ Lesson Summary



ㅁ Lesson : Modularization with Methods of Global Classes

 

ㅁ Representation of a Global Class

 

ㅁ Example of the Access Options for a Global Class

 

ㅁ Classes and Objects

   

ㅁ Definition of Attributs


ㅁ Definition of Methods


ㅁ Method Parameters

 

ㅁ Method Exceptions


ㅁ The Class Builder Testing Environment


ㅁ Method Calls Using Drag and Drop


ㅁ Handling Classic Exceptions


ㅁ Handling Class Based Exceptions

 

ㅁ Handling Exceptions with Exception Classes

 

ㅁ Creating Objects and Calling Methods

 

ㅁ Calling the Source Code Editor


ㅁ Showing the Signature in the Source Code Editor

 - 파라미터에 대한 시그니처를 알수 있음.


ㅁ Lesson Summary



ㅁ Lesson : Modularization with Methods of Local Classes(Preview)

 

ㅁ Defining a Local Class (SE24)


ㅁ Syntax for Static Methods

 

ㅁ Implementing and Using a Static Method

 

ㅁ Lesson Summary


ㅁ Unit Sumarry

 























Comments