SAP ABAP day1

gununoo·2024년 8월 5일
0

SAP ABAP 

목록 보기
1/5

unit 1

  • extras > settings > display technical names
    프로그램 앞에 t-code 띄우기
  • /n: 홈으로 가기
    /nse11: 바로 se11로 가기
  • quick cut and paste
    드래그하면 바로 복사됨
  • se84
    repository object 확인
  • se16 > tstc
    t-code 검색 가능

unit 2

  • package
    • transport할 패키지의 이름은 [Y*] 또는 [Z*]
    • transport 안 할 패키지의 이름은 $TMP
  • se09
    • customizing request -> client specific
    • workbench request -> cross cliet
  • cts
    • 위에거: CTS no
    • 아래거: Task no
  • pretty printer (Utilities > settings)
  • report program 동의어
    • executable program
    • 1 type program
    • list program
    • 조회용 프로그램
  • t-code 수정/관리하기: se93

unit 3

  • complete data types: 고정된 길이
    • d: date, YYYYMMDD, length 8
    • t: time, HHMMSS, length 6
    • i: integer, length 4
    • int8: integer, length 8
    • f: floating point number, length 8
    • string
  • incomplete data types: 길이 직접 지정
    • c: character
    • n: numerical number
    • x: hexadecimal string
    • p: packed number
  types tv_c_type c length 8. 
  types tv_n_type n length 5. 
  types tv_p_type p length 3 decimals 2. 
  data: pi type p length 3 DECIMALS 2 value '3.14'.
  • global types 3가지
    • data element(= field type)
    • structure
    • table type -> for internal type
  • text symbol (방법1)
write:/ 'this is text symbol'(001).
write:/ text-001.
this is text symbol
this is text symbol
  • text symbol (방법2)
write:/ text-tx1.

결과
new text symbol
  • translation (Goto > Translation)

결과

텍스트 심볼입니다
텍스트 심볼입니다
새로운 텍스트 심볼입니다
  • strLEN: 문자열 길이 반환 함수
data string1 TYPE string VALUE 'abcdefghijklmnop'.
data length1 TYPE i.

length1 = strLEN( string1 ).
write:/ length1.

결과: 16

data string1 TYPE string VALUE 'a   e'.
data length1 TYPE i.

length1 = strLEN( string1 ).
write:/ length1.

결과: 5

profile
take a look

0개의 댓글