๐Ÿ“ข Message / Report Program / INITIALIZATION

ํ™์˜ˆ๋ฆผยท2023๋…„ 7์›” 18์ผ
0

SAP ABAP(๊ฐœํŽธ์ค‘...)

๋ชฉ๋ก ๋ณด๊ธฐ
31/55
post-thumbnail

๋ฉ”์„ธ์ง€

  • ์ž‘์—…์˜ ์„ฑ๊ณต ์—ฌ๋ถ€ ํŒ๋‹จ
  • ๋‹ค์Œ ์ง„ํ–‰์„ ์–ด๋–ป๊ฒŒ ํ•ด์•ผํ•  ์ง€ ๋‹จ์„œ๋ฅผ ์ œ๊ณต

ํƒ€์ž…

ํƒ€์ž…ํ˜•ํƒœ์ฝ”๋“œํ™”๋ฉดDISPLAY LIKE 'E'.
IํŒ์—…MESSAGE 'Data not found' TYPE 'I'.
Eํ™”๋ฉด์ค‘์ง€MESSAGE 'Data not found' TYPE 'E'.
Sํ™”๋ฉด์œ ์ง€ ๋ฐ ํ•˜๋‹จ ์•ˆ๋‚ด๋ฌธMESSAGE 'Data not found' TYPE 'S'.-

๋ณ€์ˆ˜ ํ™œ์šฉํ•˜๊ธฐ

DATA : gv_msg(50) VALUE 'ํ…Œ์ŠคํŠธ์šฉ ๋ฉ”์„ธ์ง€'.
MESSAGE gv_msg TYPE 'S' DISPLAY LIKE 'E'.

Message Class

  • SE91๋กœ ๊ด€๋ฆฌ์ฐฝ์„ ์—ด ์ˆ˜ ์žˆ๋‹ค.

  • ์ฝ”๋“œ ์—๋””ํ„ฐ์—์„œ ์ด๋ฆ„์„ ๋”๋ธ”ํด๋ฆญํ•˜๋ฉด ํด๋ž˜์Šค๋ฅผ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.

  • ๊ด„ํ˜ธ ์•ˆ์— ๋ฉ”์„ธ์ง€ํด๋ž˜์Šค๋ฅผ ๋„ฃ์–ด ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ๋‹ค.

    MESSAGE E000(EU) WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

Standard Message Class

OO ์„ ์ฃผ๋กœ ์‚ฌ์šฉํ•œ๋‹ค.(General Basis texts)

์ž‘์„ฑ ๋ฐฉ๋ฒ•

  • ์ผ๋ฐ˜์ ์œผ๋กœ ์Šคํƒ ๋‹ค๋“œ ๋ฉ”์„ธ์ง€ ํด๋ž˜์Šค์—์„œ ๊ฐ€์ ธ์˜จ๋‹ค.

REPORT zc525lr0001 MESSAGE-ID eu.

MESSAGE s822.                      " <Sํƒ€์ž…์œผ๋กœ 822๋ฒˆ์˜ ๋ฉ”์„ธ์ง€๋ฅผ ๋ณด์—ฌ์ฃผ๊ฒ ๋‹ค.>
MESSAGE s822 DISPLAY LIKE 'E'.     " <Sํƒ€์ž…์œผ๋กœ 822๋ฒˆ์˜ ๋ฉ”์„ธ์ง€์ด์ง€๋งŒ ์—๋Ÿฌ์ฒ˜๋Ÿผ ๋ณด์—ฌ์ฃผ๊ฒ ๋‹ค.>
MESSAGE I822.                      " <Iํƒ€์ž…์œผ๋กœ 822๋ฒˆ์˜ ๋ฉ”์„ธ์ง€(ํŒ์—…) ๋ณด์—ฌ์ฃผ๊ฒ ๋‹ค.>
MESSAGE I822(EU) DISPLAY LIKE 'E'. " <๋‹ค๋ฅธ ๋ฉ”์„ธ์ง€ ํด๋ž˜์Šค์— ์žˆ๋Š” ๋ฉ”์„ธ์ง€๋ฅผ ๋ณด์—ฌ์ฃผ๊ฒ ๋‹ค.>

๋ฉ”์„ธ์ง€ ํด๋ž˜์Šค ํ™œ์šฉํ•ด ๋ฉ”์„ธ์ง€ ์ž‘์„ฑํ•˜๊ธฐ

  • & ์˜ ๊ฐœ์ˆ˜ ์ดํ•˜๋กœ ๋ฉ”์„ธ์ง€์— ๋‹ด์„ ์ˆ˜ ์žˆ๋‹ค.

๋ฉ”์„ธ์ง€ ํด๋ž˜์Šค ์ง์ ‘ ๋งŒ๋“ค๊ธฐ

  • SE91
  • ์ผ๋ฐ˜์ ์œผ๋กœ 000 ๋ฒˆ์—๋Š” & & & & ์‚ฌ์šฉ
  • 001 ๋ฒˆ์—๋Š” ์ž์ฃผ ์‚ฌ์šฉํ•˜๋Š” ๋ฉ”์„ธ์ง€ ์ž…๋ ฅ
  • ํ™œ์„ฑํ™”๋ฒ„ํŠผ์€ ์›๋ž˜ ์—†์œผ๋ฏ€๋กœ ์ €์žฅํ•˜๋ฉด ๋ฉ”์„ธ์ง€ ํด๋ž˜์Šค ์ƒ์„ฑ ์™„๋ฃŒ๋จ.

๋ฆฌํฌํŠธ ํ”„๋กœ๊ทธ๋žจ

  • Executable Program ์„ ์˜๋ฏธํ•œ๋‹ค.
  • E8ํ‚ค ๋˜๋Š” ์‹œ๊ณ„๋ชจ์–‘ ์•„์ด์ฝ˜์„ ๋ˆ„๋ฅด๋ฉด ์‹คํ–‰๋œ๋‹ค.

INTIALIZATION

  • ์ดˆ๊ธฐ๊ฐ’์„ ์„ค์ •ํ•œ๋‹ค.
  • ์ž…๋ ฅ ํ›„ START-OF-SELECTION.์„ ์ž…๋ ฅํ•œ๋‹ค.
REPORT zc525lr0001 MESSAGE-ID zc5m25.

TABLES : sflight.

SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE TEXT-t01.
  PARAMETERS     : pa_carr TYPE sflight-carrid.
  SELECT-OPTIONS : so_conn FOR  sflight-connid.
SELECTION-SCREEN END OF BLOCK bl1.

INITIALIZATION. <" ์ดˆ๊ธฐ๊ฐ’ ์„ค์ • *>
  pa_carr = 'AA'.

<* ์…€๋ ‰์…˜ ์Šคํฌ๋ฆฐ์€ ํ—ค๋”๋ฅผ ๊ฐ€์ง„ ์ธํ„ฐ๋„ํ…Œ์ด๋ธ”์ด๋‹ค. *>
<* ๋”ฐ๋ผ์„œ ์›Œํฌ์—์–ด๋ฆฌ์–ด๋ฅผ ์„ ์–ธํ•˜์ง€ ์•Š์•„๋„, ์ด๋ฏธ ์›Œํฌ์—์–ด๋ฆฌ์–ด๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค. *>
<* so_conn ์€ ํ—ค๋”, so_conn[] ์€ ๋ฐ”๋””๋ฅผ ์˜๋ฏธํ•œ๋‹ค. *>

  so_conn-sign   = 'I'. " include *
  so_conn-option = 'EQ'.
  so_conn-low    = '0017'.

  APPEND so_conn. <" ํ—ค๋”๊ฐ€ ์žˆ์œผ๋ฏ€๋กœ... APPEND so_conn to so_conn[]. ๋ฅผ ์˜๋ฏธํ•œ๋‹ค.>
  
  START-OF-SELECTION. <" INITIALIZATION ๋ >
profile
SYNC 3๊ธฐ 5๋ฐ˜ 2023.07 - 2023.12

2๊ฐœ์˜ ๋Œ“๊ธ€

comment-user-thumbnail
2023๋…„ 7์›” 18์ผ

๋„ˆ๋ฌด ์ข‹์€ ๊ธ€์ด๋„ค์š”. ๊ณต์œ ํ•ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

๋‹ต๊ธ€ ๋‹ฌ๊ธฐ
comment-user-thumbnail
2023๋…„ 7์›” 18์ผ

์ž˜ ์ฝ์—ˆ์Šต๋‹ˆ๋‹ค. ์ข‹์€ ์ •๋ณด ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

๋‹ต๊ธ€ ๋‹ฌ๊ธฐ