๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
728x90
๋ฐ˜์‘ํ˜•

๐Ÿง‘‍๐Ÿ’ผ SAP/ABAP79

[SAP ABAP] ๋ชจ๋“ˆ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ ์ฝ”๋“œ ์ž๋™ ์™„์„ฑ ํ•˜๋Š”๋ฒ• cl_bc400_flightmodel๋ผ๋Š” ๋ชจ๋“ˆ์„ ๋ถˆ๋Ÿฌ์˜ค๋Š” ์˜ˆ์ œ์ž…๋‹ˆ๋‹ค. 1. cl_bc400_flightmodel=> ๊นŒ์ง€ ์น˜๊ณ  ctrl + spacebar2. ์›ํ•˜๋Š” ๋ฉ”์†Œ๋“œ ์ฐพ๊ณ  shift + enter 3. ์ฝ”๋“œ ์ž๋™์™„์„ฑ๋จcl_bc400_flightmodel=>get_flight( EXPORTING iv_carrid = " Airline Code iv_connid = " Flight Connection Number iv_fldate = " Flight Date* IMPORTING* es_flight = " Flight time).* CATCH cx_bc400_no_data. " * CATCH.. 2024. 4. 15.
[SAP ABAP] TYPES ๋ž€? BEGIN OF - END OF ๋ž€? TYPES ๋ž€? TYPES๋Š” ๋ณ€์ˆ˜๊ฐ€ ์•„๋‹Œ ๋ณ€์ˆ˜๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•ด ์ฐธ์กฐํ•˜๋Š” `ํƒ€์ž…` ์ด๋ผ๊ณ  ์ƒ๊ฐํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ, TYPES๋Š” ๋ฉ”๋ชจ๋ฆฌ์— ์˜ฌ๋ผ๊ฐ€์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๋ณ€์ˆ˜ ์ƒ์„ฑ์„ ์œ„ํ•œ ์ฐธ์กฐ์ผ ๋ฟ์ž…๋‹ˆ๋‹ค. BEGIN OF - END OF๋ž€? `BEGIN OF`๋Š” ABAP์—์„œ ๊ตฌ์กฐ์ฒด(Structure)๋ฅผ ์ •์˜ํ•  ๋•Œ ์‚ฌ์šฉ๋˜๋Š” ํ‚ค์›Œ๋“œ์ž…๋‹ˆ๋‹ค. ๊ตฌ์กฐ์ฒด๋Š” ์—ฌ๋Ÿฌ ๊ฐœ์˜ ๋ฐ์ดํ„ฐ ์š”์†Œ๋ฅผ ํ•˜๋‚˜๋กœ ๋ฌถ์–ด์„œ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐ์ดํ„ฐ ํ˜•์‹์„ ๋งํ•ฉ๋‹ˆ๋‹ค. `BEGIN OF`๋Š” ๊ตฌ์กฐ์ฒด์˜ ์‹œ์ž‘์„ ํ‘œ์‹œํ•˜๋ฉฐ, `END OF`๋กœ ๊ตฌ์กฐ์ฒด์˜ ๋์„ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. BEGIN OF๋ฅผ ํ†ตํ•ด ๋งŒ๋“  ๊ตฌ์กฐ์ฒด๋Š” Local Type ์ด๊ธฐ ๋•Œ๋ฌธ์— Function Module parameter๋กœ ์‚ฌ์šฉํ•˜์ง€ ๋ชปํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ ์˜ˆ์‹œ REPORT ZEXAMPLE. TYPES: BEGIN OF .. 2024. 3. 28.
[SAP ABAP] Function Module ๋งŒ๋“œ๋Š” ๋ฒ• Function Module ์ด๋ž€? Function Module์€ sap ์‹œ์Šคํ…œ์—์„œ ์‚ฌ์šฉ๋˜๋Š” ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์ฝ”๋“œ ๋ธ”๋ก์ž…๋‹ˆ๋‹ค. Function Module ํŠน์ง• ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์ฝ”๋“œ: Function Module์€ ํ•œ ๋ฒˆ ์ž‘์„ฑํ•˜๊ณ  ๋‚˜๋ฉด ์—ฌ๋Ÿฌ ๊ณณ์—์„œ ํ˜ธ์ถœํ•˜์—ฌ ์žฌ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋Š” ์ฝ”๋“œ ์ค‘๋ณต์„ ์ค„์ด๊ณ  ์œ ์ง€ ๊ด€๋ฆฌ๋ฅผ ์‰ฝ๊ฒŒ ๋งŒ๋“ญ๋‹ˆ๋‹ค. ๋…๋ฆฝ์ ์ธ ๋‹จ์œ„: Function Module์€ ๋…๋ฆฝ์ ์ธ ์ฝ”๋“œ ๋‹จ์œ„๋กœ ์ž‘์„ฑ๋ฉ๋‹ˆ๋‹ค. ์ฆ‰, ๋‹ค๋ฅธ ๋ชจ๋“ˆ์—์„œ ํ˜ธ์ถœ๋˜์–ด ์‚ฌ์šฉ๋  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ํ˜ธ์ถœ๋  ๋•Œ๋งˆ๋‹ค ๋…๋ฆฝ์ ์œผ๋กœ ์‹คํ–‰๋ฉ๋‹ˆ๋‹ค. ์ธํ„ฐํŽ˜์ด์Šค: Function Module์€ ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ํ†ตํ•ด ํ˜ธ์ถœ๋  ๋•Œ ์ „๋‹ฌ๋˜๋Š” ๋งค๊ฐœ๋ณ€์ˆ˜์™€ ๋ฐ˜ํ™˜ ๊ฐ’์— ๋Œ€ํ•œ ๋ช…์„ธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด ์™ธ๋ถ€์—์„œ ๋ชจ๋“ˆ์„ ํ˜ธ์ถœํ•  ๋•Œ ํ•„์š”ํ•œ ๋ฐ์ดํ„ฐ๋ฅผ ์ „๋‹ฌํ•˜๊ณ  ๊ฒฐ๊ณผ๋ฅผ ๋ฐ˜ํ™˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.. 2024. 3. 28.
[SAP ABAP] ์„œ๋ธŒ๋ฃจํ‹ด(Subroutine)์˜ Actual Parameter์™€ Formal Parameter ๋ž€? Subroutine์ด๋ž€?https://jay-din.tistory.com/95 [SAP ABAP] Subroutine ํŒŒ๋ผ๋ฏธํ„ฐ(Call by Value, Call by Reference, Call by Value and Result)ํŒŒ๋ผ๋ฏธํ„ฐ(Parameter) ํŒŒ๋ผ๋ฏธํ„ฐ(Parameter)๋Š” Subroutine์„ ํ˜ธ์ถœํ•˜๋Š” ๊ตฌ๋ฌธ๊ณผ ํ˜ธ์ถœ๋ฐ›๋Š” ๊ตฌ๋ฌธ ์‚ฌ์ด์— ์ฃผ๊ณ ๋ฐ›๋Š” ๊ฐ’์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค. Subroutine ๋‚ด์—์„œ ํŒŒ๋ผ๋ฏธํ„ฐ๋Š” DATA ๊ตฌ๋ฌธ์œผ๋กœ ์ •์˜ํ•˜๋Š” ์ผ๋ฐ˜์ ์ธ Local๋ณ€์ˆ˜์™€ ๊ฐ™jay-din.tistory.com  Actual Parameter์™€ Formal Parameter ์š”์•ฝ ์ •๋ฆฌSubroutine์—์„œ๋Š” Actual Parameter์™€ Formal Parameter๋ฅผ ํ†ตํ•ด ๊ฐ’์„ ์ „๋‹ฌํ•˜์—ฌ ํ•ธ๋“ค๋งํ•ฉ๋‹ˆ๋‹ค.Actual .. 2024. 3. 21.
728x90
๋ฐ˜์‘ํ˜•