๊ด€๋ฆฌ ๋ฉ”๋‰ด

๋ชฉ๋กperform (1)

DATA101

[SAP/ABAP] Subroutine ๊ฐœ๋… ๋ฐ Perform ๊ตฌ๋ฌธ ์ดํ•ด

๋ณธ ํฌ์ŠคํŒ…์—์„œ๋Š” Subroutine์˜ ๊ฐœ๋…๊ณผ Perform ๊ตฌ๋ฌธ์— ๋Œ€ํ•ด ์•Œ์•„๋ด…๋‹ˆ๋‹ค. 1. Subroutine ๊ฐœ๋… Subroutine์€ FORM์œผ๋กœ ์‹œ์ž‘ํ•˜์—ฌ END FORM์œผ๋กœ ์ข…๋ฃŒ๋˜๋Š” ๊ตฌ๋ฌธ์„ ์˜๋ฏธํ•˜๋ฉฐ, ์ฝ”๋“œ์˜ ๋ชจ๋“ˆํ™”(modularization), ๊ตฌ์กฐํ™”, ์žฌ์‚ฌ์šฉ์ด ์ฃผ๋ชฉ์ ์ž…๋‹ˆ๋‹ค. ์ฆ‰, Subroutine๋Š” ์˜๋ฏธ ์žˆ๋Š” ๊ธฐ๋Šฅ๋ณ„๋กœ ํ”„๋กœ๊ทธ๋žจ์„ ๊ตฌ์กฐํ™”ํ•จ์œผ๋กœ์จ ์ „์ฒด์ ์ธ ์ฝ”๋“œ ํ๋ฆ„์„ ํŒŒ์•…ํ•˜๋Š” ๋ฐ ๋„์›€์ด ๋˜๋ฉฐ ์‹œ์Šคํ…œ ์œ ์ง€๋ณด์ˆ˜์˜ ํŽธ์˜์„ฑ์„ ์ฆ์ง„ํ•˜๋Š” ์žฅ์ ์ด ์žˆ์Šต๋‹ˆ๋‹ค. PERFORM ๊ตฌ๋ฌธ๊ณผ ๋ณ€์ˆ˜, ์ธํ„ฐ๋„ ํ…Œ์ด๋ธ” ๋“ฑ์˜ ํŒŒ๋ผ๋ฏธํ„ฐ ๊ฐ’์„ ์ฃผ๊ณ ๋ฐ›๋Š” Function Module์ด Subroutine์— ํ•ด๋‹นํ•ฉ๋‹ˆ๋‹ค. 2. PERFORM ๊ตฌ๋ฌธ ํ”„๋กœ๊ทธ๋žจ์„ ์ƒ์„ฑํ•˜๊ณ  PERFORM ๊ตฌ๋ฌธ์„ ํ†ตํ•ด Subroutine์„ ํ˜ธ์ถœํ•˜๋ฉด FORM ๊ตฌ๋ฌธ์ด ์‹คํ–‰๋ฉ..

SW ๊ฐœ๋ฐœ/ABAP(SAP) 2022. 3. 28. 08:07