CRM_PRT_GET_SINGLE_PCD_LOCATOR is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name CRM_PRT_GET_SINGLE_PCD_LOCATOR into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CRMC_PRT_NAV
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'CRM_PRT_GET_SINGLE_PCD_LOCATOR' "
EXPORTING
im_object_type = " crmt_prt_otype
im_method = 'DEFAULT' " crmt_prt_mtd
* im_object_id = " swo_typeid
* im_ep_version = '6.4.200502102229' " char64
IMPORTING
ex_pcd_locator = " crm_url_string_remote
ex_nav_context = " crmt_id_portal_context
ex_query_string = " crmt_url_remote
* TABLES
* it_parameters = " crmc_url_parameter_tab_remote
EXCEPTIONS
INVALID_OBJECT_TYPE_METHOD = 1 "
QUERY_STRING_LENGTH_EXCEPTION = 2 "
. " CRM_PRT_GET_SINGLE_PCD_LOCATOR
The ABAP code below is a full code listing to execute function module CRM_PRT_GET_SINGLE_PCD_LOCATOR including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_ex_pcd_locator | TYPE CRM_URL_STRING_REMOTE , |
| ld_ex_nav_context | TYPE CRMT_ID_PORTAL_CONTEXT , |
| ld_ex_query_string | TYPE CRMT_URL_REMOTE , |
| it_it_parameters | TYPE STANDARD TABLE OF CRMC_URL_PARAMETER_TAB_REMOTE,"TABLES PARAM |
| wa_it_parameters | LIKE LINE OF it_it_parameters . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_ex_pcd_locator | TYPE CRM_URL_STRING_REMOTE , |
| ld_im_object_type | TYPE CRMT_PRT_OTYPE , |
| it_it_parameters | TYPE STANDARD TABLE OF CRMC_URL_PARAMETER_TAB_REMOTE , |
| wa_it_parameters | LIKE LINE OF it_it_parameters, |
| ld_ex_nav_context | TYPE CRMT_ID_PORTAL_CONTEXT , |
| ld_im_method | TYPE CRMT_PRT_MTD , |
| ld_ex_query_string | TYPE CRMT_URL_REMOTE , |
| ld_im_object_id | TYPE SWO_TYPEID , |
| ld_im_ep_version | TYPE CHAR64 . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CRM_PRT_GET_SINGLE_PCD_LOCATOR or its description.