Ansicht
Dokumentation

WB2_CHECK_QUANTITY_B - BAdI: Commodity Item Quantity Check

WB2_CHECK_QUANTITY_B - BAdI: Commodity Item Quantity Check

BAL Application Log Documentation   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in SAP Global Trade Management (SAP GTM) in the Trading Contract component (LO-GT-TC). You can use this BAdI to add commodity item quantity checks. The method has the following parameters:

  • IV_QUANTITY : Commodity item quantity
  • IV_UNIT : Unit
  • IS_ITEM_DATA: commodity item data

Raise exception CX_WB2_MAINTAIN_ERROR to indicate an error.

For more information about the standard settings (filters, single or multiple uses), see the Enh. Spot Definitions tab in the BAdI Builder (transaction SE18).

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

Creating an exception

DATA lo_protocol TYPE REF TO cl_wb2_protocol.

* Checks

....

* Error

IF sy-subrc <> 0.

lo_protocol = cl_wb2_protocol=>create_protocol_for_message(

iv_doc_type = if_wb2_con=>doc_type-tc

iv_doc_num = is_item_data-tkonn

iv_item_num = is_item_data-tposn

iv_side = is_item_data-side

iv_tposn_com = is_item_data-tposn_com

iv_msgid =

iv_msgty =

iv_msgno =

iv_msgv1 =

iv_msgv2 =

iv_msgv3 =

iv_msgv4 = ).

RAISE EXCEPTION TYPE cx_wb2_maintain_error

EXPORTING

mo_protocol = lo_protocol.

ENDIF.






TXBHW - Original Tax Base Amount in Local Currency   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 3325 Date: 20240523 Time: 195455     sap01-206 ( 84 ms )