Ansicht
Dokumentation
WB2_CHECK_PRASP_DATE - BAdI: Pricing Aspect Date Check
BAL Application Log Documentation General Material DataThis 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 checks. The method has the following parameters.
- IS_PRASP_DATA: communication structure for DB table WB2_D_PRASP
- IV_DATE : Fixing date
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.
How to create 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_prasp_data-tkonn
iv_item_num = is_prasp_data-tposn
iv_side = is_prasp_data-side
iv_tposn_com = is_prasp_data-tposn_com
iv_pr_aspect = is_prasp_data-pr_aspect
iv_pr_count = is_prasp_data-pr_count
iv_fieldname = 'PR_DATE'
iv_tabname = if_wb2_con=>prasp_db
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.
Fill RESBD Structure from EBP Component Structure BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 4463 Date: 20240606 Time: 211317 sap01-206 ( 90 ms )