Manage messages more easily
This project contains three tools :
It helps developper to store/retrieve messages from different sources types in one instruction.
DATA li_messages TYPE REF TO lif_messages.
DATA lt_messages TYPE STANDARD TABLE OF bapiret2.
DATA ls_messages TYPE bapiret2.
DATA ls_bdcmsgcoll TYPE bdcmsgcoll.
DATA lx_error_occurs TYPE REF TO lcx_error_occurs.
"...
" append a messagefrom BAPIRET2 structure
li_messages->add( ls_messages ).
" append messages from BAPIRET2 table
li_messages->add( lt_messages ).
" append messages from BDCMSGCOLL table
li_messages->add( lt_bdcmsgcoll ).
" append messages from system
li_messages->add( sy ).
"... is the same like...
li_messages->add( ).
" append message from char
li_messages->add( EXPORTING messages = 'TEST' iv_msgty = 'I' ).
" append message from string
li_messages->add(
|This is a very long string| &&
|with many...| &&
|many...| &&
|lines.| ).
" append message from exception
li_messages->add( lx_error_occurs ).
In the same way, it provides a one instruction effort to retrieve all the messages into a target type.
"...
DATA lt_ballog TYPE bal_t_msg.
li_messages->get( IMPORTING messages = lt_ballog ).
DATA lt_messages TYPE STANDARD TABLE OF bapiret2.
li_messages->get( IMPORTING messages = lt_messages ).
- BAPIRET2
- Table of BAPIRET2
- Table of BDCMSGCOLL
- STRING
- Table of BAL_S_MSG
- Structure of BAL_S_MSG
- BALLOGHNDL
- CHAR
- IF_MESSAGE interface
- LIF_MESSAGES interface (self)
- SY
- BAPIRET1
- Table of BAPIRET1
- Any kind of exception
- BAPIRET2
- Table of BAPIRET2
- Table of BAL_S_MSG
- BALLOGHNDL
todo
It helps create/save/display messages from LIF_MESSAGES using BAL_LOG
It helps create/display messages from LIF_MESSAGES using BAL_LOG
Create 2 includes by copy of MESSAGE_DEF and MESSAGE_IMP files. Then you can include them directly in your program.
You can find examples in the file MESSAGES_N_LOG_SAMPLE
- Issue Tracker: https://github.com/yohannweber/messages_n_log/issues
- Source Code: https://github.com/yohannweber/messages_n_log
The project is licensed under the BSD license.