Ansicht
Dokumentation

EXIT_SAPLEEWA_ORDER_002 - Confirmation of Item and Weight Data Check

EXIT_SAPLEEWA_ORDER_002 - Confirmation of Item and Weight Data Check

ABAP Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to run your own checks on the confirmation of item data and weighing data.

Example

Before you can check the values, you must retrieve them:

  1. Get the new cell value using the method GET_CELL_VALUE of log class CL_ALV_CHANGED_DATA_PROTOCOL:
Example
call method er_data_changed->get_cell_value
exporting i_row_id = x_row_id
i_fieldname = ' WASTE_WEIGHT'
importing e_value = l_weight .
  1. Run your check.
  2. If you identify an error, for example in field WASTE_WEIGHT, use method ADD_PROTOCOL_ENTRY to create an entry in the error log:
Example
call method pr_data_changed->add_protocol_entry
exporting
i_msgid = '0K'
i_msgno = '000'
i_msgty = 'E'
i_msgv1 = 'confirmed value'
i_msgv2 = l_weight
i_msgv3 = 'contains error'
i_fieldname = 'WASTE_WEIGHT'
i_row_id = x_row_id.
If an error occurs, set the changing parameter VALID to 'Initialize'.





Parameters

ER_DATA_CHANGED
VALID
X_ROW_ID

Exceptions

INPUT_ERROR

Function Group

XEWAORDER

BAL_S_LOG - Application Log: Log header data   General Material Data  
This documentation is copyright by SAP AG.

Length: 1457 Date: 20240523 Time: 064332     sap01-206 ( 20 ms )