SAP Function Modules

CRM_OLD_PRESELECT SAP Function module







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

Associated Function Group: DA_ARCDEL_UTILITIES
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CRM_OLD_PRESELECT - CRM OLD PRESELECT





CALL FUNCTION 'CRM_OLD_PRESELECT' "
  EXPORTING
    preselect_func_old =        " header_fb-name  Function Module Name
    bor_objtype =               " tojtb-name    Object Type
    maxobjects =                " i
    numdays =                   " i
    prot_guid =                 " guid_32       GUID in 'CHAR' Format in Uppercase
    start_date =                " d
    start_time =                " t
    process_mode =              " char1         Single-Character Flag
    test_mode =                 " char1         Single-Character Flag
    icount =                    " i
  IMPORTING
    arc_terminate =             "
  CHANGING
    objects =                   " arcdel_object_tab  Central Table for Application Checks
    check_func =                " arcdel_func_tab  Table Type for Archiving/Delete Functions
    input_values =              " rsparams_tt   rsparams Table
    input_text =                " arcdel_seltext_tab  Text For Input Paramter (Data Archiving)
    .  "  CRM_OLD_PRESELECT

ABAP code example for Function Module CRM_OLD_PRESELECT





The ABAP code below is a full code listing to execute function module CRM_OLD_PRESELECT 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_arc_terminate  TYPE STRING .

DATA(ld_objects) = 'Check type of data required'.
DATA(ld_check_func) = 'Check type of data required'.
DATA(ld_input_values) = 'Check type of data required'.
DATA(ld_input_text) = 'Check type of data required'.

DATA(ld_preselect_func_old) = some text here

SELECT single NAME
FROM TOJTB
INTO @DATA(ld_bor_objtype).

DATA(ld_maxobjects) = 'Check type of data required'.
DATA(ld_numdays) = 'Check type of data required'.
DATA(ld_prot_guid) = 'Check type of data required'.
DATA(ld_start_date) = 'Check type of data required'.
DATA(ld_start_time) = 'Check type of data required'.
DATA(ld_process_mode) = 'Check type of data required'.
DATA(ld_test_mode) = 'Check type of data required'.
DATA(ld_icount) = 'Check type of data required'. . CALL FUNCTION 'CRM_OLD_PRESELECT' EXPORTING preselect_func_old = ld_preselect_func_old bor_objtype = ld_bor_objtype maxobjects = ld_maxobjects numdays = ld_numdays prot_guid = ld_prot_guid start_date = ld_start_date start_time = ld_start_time process_mode = ld_process_mode test_mode = ld_test_mode icount = ld_icount IMPORTING arc_terminate = ld_arc_terminate CHANGING objects = ld_objects check_func = ld_check_func input_values = ld_input_values input_text = ld_input_text . " CRM_OLD_PRESELECT
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_objects  TYPE ARCDEL_OBJECT_TAB ,
ld_arc_terminate  TYPE STRING ,
ld_preselect_func_old  TYPE HEADER_FB-NAME ,
ld_check_func  TYPE ARCDEL_FUNC_TAB ,
ld_bor_objtype  TYPE TOJTB-NAME ,
ld_input_values  TYPE RSPARAMS_TT ,
ld_maxobjects  TYPE I ,
ld_input_text  TYPE ARCDEL_SELTEXT_TAB ,
ld_numdays  TYPE I ,
ld_prot_guid  TYPE GUID_32 ,
ld_start_date  TYPE D ,
ld_start_time  TYPE T ,
ld_process_mode  TYPE CHAR1 ,
ld_test_mode  TYPE CHAR1 ,
ld_icount  TYPE I .

ld_objects = 'Check type of data required'.

ld_preselect_func_old = some text here
ld_check_func = 'Check type of data required'.

SELECT single NAME
FROM TOJTB
INTO ld_bor_objtype.

ld_input_values = 'Check type of data required'.
ld_maxobjects = 'Check type of data required'.
ld_input_text = 'Check type of data required'.
ld_numdays = 'Check type of data required'.
ld_prot_guid = 'Check type of data required'.
ld_start_date = 'Check type of data required'.
ld_start_time = 'Check type of data required'.
ld_process_mode = 'Check type of data required'.
ld_test_mode = 'Check type of data required'.
ld_icount = '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_OLD_PRESELECT or its description.