SAP CRM_ACTLOC_SRC Function Module for search BP from activity locator
CRM_ACTLOC_SRC is a standard crm actloc src SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for search BP from activity locator processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for crm actloc src FM, simply by entering the name CRM_ACTLOC_SRC into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM_ACTIVITY_LOCATOR_SRC
Program Name: SAPLCRM_ACTIVITY_LOCATOR_SRC
Main Program: SAPLCRM_ACTIVITY_LOCATOR_SRC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CRM_ACTLOC_SRC pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CRM_ACTLOC_SRC'"search BP from activity locator.
EXPORTING
IV_VALIDFROM = "Date and time, current (application server) date
IV_VALIDTO = "Date and time, current (application server) date
IV_CATEGORY = "Category of an Activity (Communication Type)
IV_PRIORITY = "Activity Priority
IV_STATUS = "Object Status
IV_CONTACT_FLAG = "Checkbox
IV_FAVORITE_BPLIST = "business partner search from activity locator
IMPORTING
ET_BPLIST = "business partner search from activity locator
IMPORTING Parameters details for CRM_ACTLOC_SRC
IV_VALIDFROM - Date and time, current (application server) date
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
IV_VALIDTO - Date and time, current (application server) date
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
IV_CATEGORY - Category of an Activity (Communication Type)
Data type: CRMT_SEARCH_LOC-CATEGORYOptional: No
Call by Reference: No ( called with pass by value option)
IV_PRIORITY - Activity Priority
Data type: CRMT_SEARCH_LOC-PRIORITYOptional: No
Call by Reference: No ( called with pass by value option)
IV_STATUS - Object Status
Data type: CRMT_SEARCH_LOC-STATUSOptional: No
Call by Reference: No ( called with pass by value option)
IV_CONTACT_FLAG - Checkbox
Data type: XFELDOptional: No
Call by Reference: Yes
IV_FAVORITE_BPLIST - business partner search from activity locator
Data type: CRMT_BPSRCH_LISTOptional: No
Call by Reference: Yes
EXPORTING Parameters details for CRM_ACTLOC_SRC
ET_BPLIST - business partner search from activity locator
Data type: CRMT_BPSRCH_LISTOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CRM_ACTLOC_SRC Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_et_bplist | TYPE CRMT_BPSRCH_LIST, " | |||
| lv_iv_validfrom | TYPE SY-DATUM, " | |||
| lv_iv_validto | TYPE SY-DATUM, " | |||
| lv_iv_category | TYPE CRMT_SEARCH_LOC-CATEGORY, " | |||
| lv_iv_priority | TYPE CRMT_SEARCH_LOC-PRIORITY, " | |||
| lv_iv_status | TYPE CRMT_SEARCH_LOC-STATUS, " | |||
| lv_iv_contact_flag | TYPE XFELD, " | |||
| lv_iv_favorite_bplist | TYPE CRMT_BPSRCH_LIST. " |
|   CALL FUNCTION 'CRM_ACTLOC_SRC' "search BP from activity locator |
| EXPORTING | ||
| IV_VALIDFROM | = lv_iv_validfrom | |
| IV_VALIDTO | = lv_iv_validto | |
| IV_CATEGORY | = lv_iv_category | |
| IV_PRIORITY | = lv_iv_priority | |
| IV_STATUS | = lv_iv_status | |
| IV_CONTACT_FLAG | = lv_iv_contact_flag | |
| IV_FAVORITE_BPLIST | = lv_iv_favorite_bplist | |
| IMPORTING | ||
| ET_BPLIST | = lv_et_bplist | |
| . " CRM_ACTLOC_SRC | ||
ABAP code using 7.40 inline data declarations to call FM CRM_ACTLOC_SRC
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single DATUM FROM SY INTO @DATA(ld_iv_validfrom). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_iv_validto). | ||||
| "SELECT single CATEGORY FROM CRMT_SEARCH_LOC INTO @DATA(ld_iv_category). | ||||
| "SELECT single PRIORITY FROM CRMT_SEARCH_LOC INTO @DATA(ld_iv_priority). | ||||
| "SELECT single STATUS FROM CRMT_SEARCH_LOC INTO @DATA(ld_iv_status). | ||||
Search for further information about these or an SAP related objects