Hi Jacob,
Follow below steps:
1. Create a new custom functional module e-g Z_LOC_CHECK1 and follow Steffen direction on Local Interfaces which he referred.
E-g
FUNCTION z_check_loc1.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(EVENT) TYPE /SAPTRX/EH_EXPEV_DYN
*" REFERENCE(MESSAGE) TYPE /SAPTRX/EVM_HDR_STR
*" REFERENCE(EH_MODEL) TYPE REF TO /SAPTRX/CL_EH_PROCESS_MODEL
*" EXPORTING
*" REFERENCE(RESULT) TYPE SYBINPT
*" EXCEPTIONS
*" NOT_VALID
*"----------------------------------------------------------------------
*Check Expected event Location id 1 matches with Actual Event Message Location1
IF NOT event-LOC_ID_1 EQ message-LOCID1.
RAISE not_valid.
ENDIF.
ENDFUNCTION.
ABAP'er know how to take it from above code.
2. Create new Location Matching Functions in IMG -> Event Management -> Event Handlers and Event Handler Data -> Expected Events -> Define Functions for Expected Events -> click Location Matching Functions -> Create name like Z_CHECK_LOC1 and assign step 1 function module z_check_loc1.
3. Go to IMG -> Event Management -> Event Handlers and Event Handler Data -> Expected Events -> Define Profiles for Expected Events -> Update Expected Event Profiles -> Select your expected event profile -> Update Profile Group -> Update profile items -> Select Arrival Destination -> Assign
Step 1 name activity name Z_CHECK_LOC1 in Check Location field and uncheck "Do not check" then save.
Please check and let me know.
Regards
GGOPII