Ansicht
Dokumentation
WB2_CHECK_DATE_INTER - BAdI: Commodity Item Date Interval Check
Vendor Master (General Section) SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3upThis documentation is copyright by SAP AG.
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 date interval checks. The method has the following parameters:
- IV_DATE_FROM: Date from
- IV_DATE_TO : Date to
- 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 =
iv_fieldname = 'DATE_FROM' " or 'DATE_TO'
iv_tabname = if_wb2_con=>comsub_db ).
RAISE EXCEPTION TYPE cx_wb2_maintain_error
EXPORTING
mo_protocol = lo_protocol.
ENDIF.
CL_GUI_FRONTEND_SERVICES - Frontend Services ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 3494 Date: 20240523 Time: 200606 sap01-206 ( 85 ms )