SAP Function Modules

CRM_PRT_GET_SINGLE_PCD_LOCATOR SAP Function module







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
remote enabled module settings


Pattern for FM CRM_PRT_GET_SINGLE_PCD_LOCATOR - CRM PRT GET SINGLE PCD LOCATOR





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

ABAP code example for Function Module 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).

DATA:
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 .

DATA(ld_im_object_type) = 'Check type of data required'.
DATA(ld_im_method) = 'Check type of data required'.
DATA(ld_im_object_id) = 'Check type of data required'.
DATA(ld_im_ep_version) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_parameters to it_it_parameters. . CALL FUNCTION 'CRM_PRT_GET_SINGLE_PCD_LOCATOR' EXPORTING im_object_type = ld_im_object_type im_method = ld_im_method * im_object_id = ld_im_object_id * im_ep_version = ld_im_ep_version IMPORTING ex_pcd_locator = ld_ex_pcd_locator ex_nav_context = ld_ex_nav_context ex_query_string = ld_ex_query_string * TABLES * it_parameters = it_it_parameters EXCEPTIONS INVALID_OBJECT_TYPE_METHOD = 1 QUERY_STRING_LENGTH_EXCEPTION = 2 . " CRM_PRT_GET_SINGLE_PCD_LOCATOR
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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 .

ld_im_object_type = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_parameters to it_it_parameters.
ld_im_method = 'Check type of data required'.
ld_im_object_id = 'Check type of data required'.
ld_im_ep_version = 'Check type of data required'.

Contribute (Add Comments)

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.