Ansicht
Dokumentation

FMCA_SAMPLE_P318 - Handling BRF messages

FMCA_SAMPLE_P318 - Handling BRF messages

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

After a form bundle is checked using BRF+, the returned messages are compared with old messages (messages from previous checks) for the form bundle. Event P318 has to decide, if a message from current check should update one of old messages or it should be created as a new message.

Input parameters of the event are a message from current check (IS_BRF_MSG_NEW), old messages related to the current message (IT_BRF_MSG_OLD, table contains old messages with the same class and number for the same field and line number) and complete table of old messages (IT_BRF_MSG_ALL).

Expected output of the event is an index to table of related old messages in a case that the old message should be updated. Old messages, which are not included in the table of related messages, can't be updated.

You can also decide about status of current message (space - do nothing, 1 - change status to open, 2 - change status to close, X - ignore the message, message will be neither created nor used for updated in this case). Status of all old messages, which are not updated by any current message, will be set to closed after all current messages are processed.

Input parameter IS_CONTROL contains info about caller from BRF application if available.

Example

Notes

Standard implementation (function module FMCA_EVENT_P318) compares all attributes of the message (class, number, type, form field, line number in case of table forms, and all variable parameters). If an old message fits to current message, it is returned for update. If it is a warning message and the old messaged has been closed already, the current message is ignored.

When you need to avoid raising of warning messages, which have been closed manually, you need to return special status S when the event is called with IS_CONTROL-WORK_MODE = 9 (call from BRF+ function when new warning is to be raised). Standard implementation for this use case is function module FMCA_EVENT_P318_2.

Further information





Parameters

E_BRF_MSG_NEW_STATUS
E_BRF_MSG_OLD_INDEX
IS_BRF_MSG_NEW
IS_CONTROL
IT_BRF_MSG_ALL
IT_BRF_MSG_OLD

Exceptions

Function Group

FMCA_FPF_SAMPLE

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 2495 Date: 20240523 Time: 094228     sap01-206 ( 62 ms )