update,
This commit is contained in:
7
_resources/it114105/itp4512/Lab07/README.md.original
Normal file
7
_resources/it114105/itp4512/Lab07/README.md.original
Normal file
@@ -0,0 +1,7 @@
|
||||
#### Message class Z_MESSAGE_B
|
||||
|
||||
| MessageId | Message short text |
|
||||
|-----------|----------------------------|
|
||||
| 000 | System Error |
|
||||
| 001 | Data not found |
|
||||
| 002 | Data not found in table &1 |
|
22
_resources/it114105/itp4512/Lab07/Z_07_MESSAGE.abap
Normal file
22
_resources/it114105/itp4512/Lab07/Z_07_MESSAGE.abap
Normal file
@@ -0,0 +1,22 @@
|
||||
*&---------------------------------------------------------------------*
|
||||
*& Report Z_07_MESSAGE *
|
||||
*& *
|
||||
*&---------------------------------------------------------------------*
|
||||
*& *
|
||||
*& *
|
||||
*&---------------------------------------------------------------------*
|
||||
|
||||
REPORT Z_07_MESSAGE MESSAGE-ID Z_MESSAGE_B
|
||||
|
||||
TABLES SPFLI.
|
||||
|
||||
SELECT-OPTIONS S_CARRID FOR SPFLI-CARRID.
|
||||
SELECT * FROM SPFLI WHERE CARRID IN S_CARRID.
|
||||
WRITE: / SPFLI-CARRID, SPFLI-CONNID, SPFLI-CITYFROM, SPFLI-CITYTO.
|
||||
ENDSELECT.
|
||||
|
||||
IF SY-SUBRC = 4.
|
||||
MESSAGE I002 WITH 'SPFLI'.
|
||||
ELSEIF SY-SUBRC <> 0.
|
||||
MESSAGE I000.
|
||||
ENDIF.
|
Reference in New Issue
Block a user