Ansicht
Dokumentation

EXIT_SAPLWVK1_003 -

EXIT_SAPLWVK1_003 -

BAL Application Log Documentation   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Use

This user exit is used to check and (if necessary, reject) an individual pricing item.

The pricing item to be checked is transferred to the user exit in the import structure "PI_I_KALP". If a pricing item is rejected, the export structure "PE_I_ERRO" must be filled accordingly.

Notes

When rejecting a pricing item, the following fields in export structure "PE_I_ERRO" should be filled:

  • MSGID (message identification)
  • MSGTY (message type)
  • MSGNO (number of system message)
  • MSGV1 (messages, message variable)
  • MSGV2 (messages, message variable)
  • MSGV3 (messages, message variable)
  • MSGV4 (messages, message variable)

The message identification defines the message class from which the message is to be taken. Message classes can be maintained using transaction "SE91". If the message class is not entered in the export structure "PE_I_ERRO", the program calling up the structure sets message class "WV" as the default.

The message type defines which place value the outgoing message has. "W" (Warning) or "E" (Error) can be used. If message type "W" is used, the pricing item in the pricing table turns yellow, and the user can acknowledge the error using "Return" and continue working as normal. For message type "E", the procedure depends on when the error occurs. If the error occurs during construction of the pricing table, that is, before the user has changed the data interactively, the item appears in the error log. If the error occurs once the data has been changed interactively, the item in question turns red and the user can only continue working once the error has been dealt with.

The number of the system message is the message number within the selected message class.

Using the message variables "MSGV1" to "MSGV4", placeholders within a message can be replaced with current values.

Note the supplied sample code that rejects a pricing item if a material is sold for less than the delivered price.






General Material Data   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2305 Date: 20240329 Time: 150015     sap01-206 ( 48 ms )