SAP Function Modules

SCRMRF_GET_REFERENCE SAP Function module







SCRMRF_GET_REFERENCE 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 SCRMRF_GET_REFERENCE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SCRMFR
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM SCRMRF_GET_REFERENCE - SCRMRF GET REFERENCE





CALL FUNCTION 'SCRMRF_GET_REFERENCE' "
  EXPORTING
    im_swcomp =                 " crm_comps     Release Status of Software Components in System
*   im_sel_conds =              " crm_field_selection_conditions  Check Results Management: Selection Criteria for Fields
*   im_keys =                   " crm_check_result_key  Check Results Management: Key of Check Results
*   im_env_info =               " crmchkenvx    Check Results Management: Environment Info
  IMPORTING
    ex_reference =              " crm_reference
    ex_refres =                 " crm_check_result_fa  Reference Results Table
    ex_ref_t100 =               " crm_reft100
    ex_swcomps =                " crm_comps     Installed Software Components
    ex_expvers =                " crm_expvrs    Single-Character Flag
    ex_envinfo =                " crm_chkenve   Environment test information
    .  "  SCRMRF_GET_REFERENCE

ABAP code example for Function Module SCRMRF_GET_REFERENCE





The ABAP code below is a full code listing to execute function module SCRMRF_GET_REFERENCE 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_reference  TYPE CRM_REFERENCE ,
ld_ex_refres  TYPE CRM_CHECK_RESULT_FA ,
ld_ex_ref_t100  TYPE CRM_REFT100 ,
ld_ex_swcomps  TYPE CRM_COMPS ,
ld_ex_expvers  TYPE CRM_EXPVRS ,
ld_ex_envinfo  TYPE CRM_CHKENVE .

DATA(ld_im_swcomp) = 'Check type of data required'.
DATA(ld_im_sel_conds) = 'Check type of data required'.
DATA(ld_im_keys) = 'Check type of data required'.
DATA(ld_im_env_info) = 'Check type of data required'. . CALL FUNCTION 'SCRMRF_GET_REFERENCE' EXPORTING im_swcomp = ld_im_swcomp * im_sel_conds = ld_im_sel_conds * im_keys = ld_im_keys * im_env_info = ld_im_env_info IMPORTING ex_reference = ld_ex_reference ex_refres = ld_ex_refres ex_ref_t100 = ld_ex_ref_t100 ex_swcomps = ld_ex_swcomps ex_expvers = ld_ex_expvers ex_envinfo = ld_ex_envinfo . " SCRMRF_GET_REFERENCE
IF SY-SUBRC EQ 0. "All OK 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_reference  TYPE CRM_REFERENCE ,
ld_im_swcomp  TYPE CRM_COMPS ,
ld_ex_refres  TYPE CRM_CHECK_RESULT_FA ,
ld_im_sel_conds  TYPE CRM_FIELD_SELECTION_CONDITIONS ,
ld_ex_ref_t100  TYPE CRM_REFT100 ,
ld_im_keys  TYPE CRM_CHECK_RESULT_KEY ,
ld_ex_swcomps  TYPE CRM_COMPS ,
ld_im_env_info  TYPE CRMCHKENVX ,
ld_ex_expvers  TYPE CRM_EXPVRS ,
ld_ex_envinfo  TYPE CRM_CHKENVE .

ld_im_swcomp = 'Check type of data required'.
ld_im_sel_conds = 'Check type of data required'.
ld_im_keys = 'Check type of data required'.
ld_im_env_info = '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 SCRMRF_GET_REFERENCE or its description.