Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

/AIN/ACTVT000001 - BAdI: Modify Observation Related Data

/AIN/ACTVT000001 - BAdI: Modify Observation Related Data

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

This Business Add-In (BAdI) modifies device message data before it is processed by an activity. The BAdI works with messages from both fixed and mobile devices.

A device must trigger a rule delivered by SAP Auto-ID Infrastructure (SAP AII) 4.0.

The BAdI has the default implementation /AIN/CL_IM_DOC_DTM for automatic document assignment. This process automatically assigns a document to an SAP AII transaction without requiring you to manually change the document. There are two variations of this functionality:

  • Document assignment for non-integrated documents
In this case, the document is automatically assigned to the current transaction based on the most recent observation providing you have defined a default action type for the document type / device group role combination. For example, if a PACK transaction has been executed before, and document D1 is assigned to the transaction, when the proper parameter is set, D1 can be automatically used for all following transactions such as MOVE, LOAD, and so on.
  • Document assignment for integrated documents
In this case, the document comes from the backend system and SAP AII performs document determination based on the data in the backend document. The document type and action type must be assigned to the device group role as a prerequisite. For example, if SAP AII receives a PACK document D2 from the backend system, when the proper parameter is set, D2 can be automatically used for the current PACK transaction.

The BAdI can be used for the following:

  • Filtering of IDs (that is, to delete entries from field EPC_DATA in parameter CS_MESSAGE)
  • Document determination
  • Object hierarchy determination
  • Validation of device message data
You can also record validation information in the application log. To do so, you must populate the table ET_LOGMSG with the validation messages.
  • Stopping a rule by raising an exception defined by the interface /AIN/CX_ACT_PUB

Methods

MODIFY_EVENT_MESSAGE






BAL_S_LOG - Application Log: Log header data   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 2487 Date: 20211128 Time: 124559     sap01-206 ( 51 ms )