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

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

[SAP ABAP] ๋„ค์ด๋ฐ ๋ฃฐ(Naming Rule) ์ž‘์„ฑ๋ฒ•(gv_data, gt_data ๋“ฑ) ๋„ค์ด๋ฐ ๋ฃฐ(Naming Rule)์ด๋ž€? ํ”„๋กœ๊ทธ๋žจ ๊ฐœ๋ฐœ ๋ฐฉ๋ฒ•๋ก  ์ค‘์— ๊ฐ€์žฅ ๊ธฐ๋ณธ์ด ๋˜๋Š” ๊ฒƒ์€ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•˜๋Š” ๋ณ€์ˆ˜์˜ ์ด๋ฆ„์„ ์ •ํ•˜๋Š” ๊ทœ์น™์ด๋ผ๊ณ  ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.๋ณ€์ˆ˜ ๋˜๋Š” ์˜คํ”„์ ํŠธ์˜ ์ด๋ฆ„์„ ์ •ํ•˜๋Š” ๊ทœ์น™์„ Naming Rule์ด๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค.๋ชจ๋“  ํ”„๋กœ๊ทธ๋žจ ์–ธ์–ด์—์„œ๋Š” ๊ฐ€๋…์„ฑ์„ ๋†’์ด๊ณ , ๋ณ€์ˆ˜ ๊ฐ„์˜ ์ถฉ๋Œ์„ ํ”ผํ•˜๋ฉฐ ํ”„๋กœ๊ทธ๋žจ์˜ ๊ตฌ์กฐ์  ํ†ต์ผ์„ฑ์„ ์œ„ํ•˜์—ฌ Naming Rule์„ ์ •ํ•  ๊ฒƒ์„ ๊ถŒ๊ณ ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. SAP์—์„œ๋Š” ๊ณ ๊ฐ์‚ฌ์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ABAP Dictionary์˜ Naming Rule์€ 'Z' ๋˜๋Š” 'Y'๋กœ ์‹œ์ž‘ํ•˜๋Š” ๊ฒƒ์„ ๊ธฐ๋ณธ์œผ๋กœ ํ•˜๊ณ  ์žˆ์œผ๋ฉฐ, INSERT/APPEND์™€ ๊ฐ™์€ Keyword๋Š” ์‚ฌ์šฉํ•  ์ˆ˜ ์—†๋„๋ก ํ•˜๋Š” ํ•„์ˆ˜์ ์ธ ์‚ฌํ•ญ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ด์™ธ์—๋Š” ๊ณ ๊ฐ์‚ฌ๋งˆ๋‹ค ๊ทœ์น™์„ ์ •ํ•˜์—ฌ ํ”„๋กœ๊ทธ๋žจ์— ํ†ต์ผ์„ฑ์„ ๊ฐ–์ถœ ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋ฉด.. 2024. 5. 22.
[SAP ABAP] ํŠน์ • ํ•„๋“œ ๊ฐ’ ๋ณ€๊ฒฝ TRANSPORTING ์ด๋ž€? (์˜ˆ์‹œ ํฌํ•จ) MODIFY . . . TRANSPORTING`TRANSPORTING` ์€ ํŠน์ • ํ•„๋“œ๋งŒ ์—…๋ฐ์ดํŠธํ•  ๋•Œ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ ์‚ฌ์šฉ๋ฒ•MODIFY itab FROM work_area TRANSPORTING field1 field2`itab`์ด๋ผ๋Š” ์ธํ„ฐ๋„ ํ…Œ์ด๋ธ”์˜ ํŠน์ • ํ•„๋“œ( field1 field2) ๊ฐ’์„ `work_area`์˜ ํŠน์ • ํ•„๋“œ(field1 field2) ๊ฐ’์œผ๋กœ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค. MODIFY . . . TRANSPORTING ์˜ˆ์‹œ์ธํ„ฐ๋„ ํ…Œ์ด๋ธ” `gt_flights`์™€ ์ž‘์—… ์˜์—ญ `gs_flight`๊ฐ€ ์žˆ๋‹ค๊ณ  ๊ฐ€์ •ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.์ด ์ž‘์—… ์˜์—ญ์—๋Š” ์—ฌ๋Ÿฌ ํ•„๋“œ๊ฐ€ ์žˆ์ง€๋งŒ, ํŠน์ • ํ•„๋“œ๋งŒ ์—…๋ฐ์ดํŠธ ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. DATA ์ •์˜* ์ž‘์—… ์˜์—ญ(gs_flight) ๋ฐ ์ธํ„ฐ๋„ ํ…Œ์ด๋ธ”(gt_flights) ์ •์˜DATA: BEGIN.. 2024. 5. 22.
[SAP ABAP] INTO CORRESPONDING FIELDS OF ๋ž€? (์˜ˆ์ œ ํฌํ•จ) INTO CORRESPONDING FIELDS OF ๋ž€? ABAP์—์„œ `SELECT` ๋ฌธ์„ ํ†ตํ•ด ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ์กฐํšŒํ•  ๋•Œ `INTO CORRESPONDING FIELDS OF` ์ ˆ์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํ…Œ์ด๋ธ”์˜ ํ•„๋“œ์™€ ์ธํ„ฐ๋„ ํ…Œ์ด๋ธ”์˜ ํ•„๋“œ๋ฅผ ์‰ฝ๊ฒŒ ๋งคํ•‘ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. `INTO CORRESPONDING FIELDS OF` ์„ ์‚ฌ์šฉํ•˜๋ฉด ๋งคํ•‘๋œ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํ…Œ์ด๋ธ” ๊ฐ’์„ ์ธํ„ฐ๋„ ํ…Œ์ด๋ธ”์— ์ž๋™์œผ๋กœ ํ• ๋‹นํ•ฉ๋‹ˆ๋‹ค. CORRESPONDING๋Š” '์ผ์น˜ํ•˜๋Š”, ์ƒ์‘ํ•˜๋Š”' ์ด๋ผ๋Š” ๋œป์ž…๋‹ˆ๋‹ค. ์ฆ‰, ์ผ์น˜ํ•˜๋Š” ์ปฌ๋Ÿผ๋ช…๋ผ๋ฆฌ ๋ฐ์ดํ„ฐ๋ฅผ ๊ทธ๋Œ€๋กœ ๋ณต์‚ฌํ•ด์„œ ์‚ฝ์ž…ํ•œ๋‹ค๋Š” ์˜๋ฏธ์ž…๋‹ˆ๋‹ค. INTO CORRESPONDING FIELDS OF ์˜ˆ์‹œ `INTO CORRESPONDING FIELDS OF` ์ ˆ์€ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํ…Œ์ด๋ธ”์˜ ์ธํ„ฐ๋„ ํ…Œ์ด๋ธ”.. 2024. 4. 17.
[SAP ABAP] ํ”„๋กœ๊ทธ๋žจ์˜ INCLUDE ๋ž€? INCLUDE ๋ž€? SAP ABAP - Keyword Documentation์˜ Programming Guidelines์„ ๋ณด๋ฉด INCLUDE ํ”„๋กœ๊ทธ๋žจ์€ ์†Œ์Šค์ฝ”๋“œ์˜ ๋ชจ๋“ˆํ™”๋ฅผ ์œ„ํ•ด ์‚ฌ์šฉ๋œ๋‹ค๊ณ  ๋ช…์‹œ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ์˜ˆ์‹œ INCLUDE ๋„ค์ด๋ฐ๋ฃฐ ํ”„๋กœ๊ทธ๋žจ๋ช… + '_' + TOP/O01/I01 ๋“ฑ๋“ฑ TOP: ์ „์—ญ๋ณ€์ˆ˜ ๊ด€๋ฆฌ O01: PBO ๊ด€๋ฆฌ ๋ชจ๋“ˆ I01: PAI ๊ด€๋ฆฌ ๋ชจ๋“ˆ INCLUDE ํŠน์ง• `INCLUDE`๋ฅผ ํ™œ์šฉํ•˜๋ฉด ํ”„๋กœ๊ทธ๋žจ์˜ ๊ตฌ์„ฑ๊ณผ ๊ด€๋ฆฌ๋ฅผ ํšจ์œจ์ ์œผ๋กœ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ง€๋‚˜์น˜๊ฒŒ ๋งŽ์€ `INCLUDE`๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ํ”„๋กœ๊ทธ๋žจ์˜ ๋ณต์žก์„ฑ์ด ์˜พ์•„์งˆ ์ˆ˜ ์žˆ์œผ๋ฏ€๋กœ ์ ์ ˆํ•œ ์ˆ˜์ค€์œผ๋กœ ํ™œ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ฝ”๋“œ ์žฌ์‚ฌ์šฉ: ๊ณตํ†ต๋œ ๊ธฐ๋Šฅ์ด๋‚˜ ๋…ผ๋ฆฌ๋ฅผ ํ•œ ๋ฒˆ๋งŒ ์ž‘์„ฑํ•˜๊ณ  ์—ฌ๋Ÿฌ ํ”„๋กœ๊ทธ๋žจ์—์„œ ์žฌ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ์ฝ”๋“œ์˜ .. 2024. 4. 17.
728x90
๋ฐ˜์‘ํ˜•