Ansicht
Dokumentation

CRM_SERVICE_LOGISTIC - Business Add-In: Filter for Reservation

CRM_SERVICE_LOGISTIC - Business Add-In: Filter for Reservation

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) filters the transaction types and item categories that should be transferred to the OLTP system for material reservation.

Insert a Business Add-In implementation to set the cv_for_reservation flag for a transaction type, and one or more item categories.

The Business Add-In is active.

The Business Add-In can be used multiple times. All implementations are active.

The Business Add-In is not filter-dependent.

The layout of the Business Add-In interface is such that all characteristics can be filtered according to the business object type (A = Header or B = Item).

Set the flag cv_for_reservation = 'X' to identify this transaction type or item category for reservation.

Do not set the flag cv_for_reservation = '(FALSE)'. Since several implementations run one after another, this means that previously executed implementations are overwritten. If the flag is already 'X', you can leave the implementation immediately.

This example sets the reservation flag for the transaction type 'REPA' and item category 'RMAT'.

METHOD if_ex_crm_filter_reserv~check_for_reservation .

FIELD-SYMBOLS:

TYPE bad_orderadm_h_mess,

TYPE bad_orderadm_i_mess.

CHECK cv_for_reservation NE 'X'.

IF NOT is_bus_trans_msg IS INITIAL.

READ TABLE is_bus_trans_msg-orderadm_h INDEX 1

ASSIGNING .

IF sy-subrc NE 0.

EXIT.

ENDIF.

* reservation for transaction "REPA"

IF -process_type NE 'REPA'.

EXIT.

ENDIF.

IF iv_object_kind EQ 'B' AND NOT is_orderadm_i IS INITIAL.

* reservation for item category "RMAT"

IF is_orderadm_i-itm_type EQ 'RMAT'.

cv_for_reservation = 'X'.

ENDIF.

ELSE.

cv_for_reservation = 'X'.

ENDIF.

ENDIF.

ENDMETHOD.

Method

Reservation Check






PERFORM Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 2610 Date: 20240523 Time: 155948     sap01-206 ( 36 ms )