CN_SUCHE_FREIE_NUMMER 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 CN_SUCHE_FREIE_NUMMER into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CN00
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'CN_SUCHE_FREIE_NUMMER' "
* EXPORTING
* search_imp = '1' " rc27x-flg_sel Search type
* search_end_imp = " rc27x-flg_sel Search at end
* proj_s_imp = " proj-pspid Start value - project definition
* prps_s_imp = " prps-posid Start value - WBS element
* projs_s_imp = " projs-pspid Start value - std project definition
* prpss_s_imp = " prpss-posid Start value - std WBS element
* vskopf_s_imp = " vskopf-vsnmr Start value - version
* proj_e_imp = " proj-pspid Final value - project definition
* prps_e_imp = " prps-posid Final value - WBS element
* projs_e_imp = " projs-pspid Final value - std project definition
* prpss_e_imp = " prpss-posid Final value - std WBS element
* vskopf_e_imp = " vskopf-vsnmr Final value - version
* without_mask_at_end = " rc27x-flg_sel Entry only struct. ind.: search at end of mask
* refresh = "
* no_dialog = " rc27x-flg_sel
IMPORTING
proj_exp = " proj-pspid Open number found project definition
prps_exp = " prps-posid Open number found WBS element
projs_exp = " projs-pspid Open number found std project definition
prpss_exp = " prpss-posid Open number found std WBS element
vskopf_exp = " vskopf-vsnmr Open number found version
* TABLES
* keytab_imp = " Existing key
EXCEPTIONS
WRONG_SEARCH = 1 " Incorrect search type
SEARCH_CANCELED = 2 "
. " CN_SUCHE_FREIE_NUMMER
The ABAP code below is a full code listing to execute function module CN_SUCHE_FREIE_NUMMER 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_proj_exp | TYPE PROJ-PSPID , |
| ld_prps_exp | TYPE PRPS-POSID , |
| ld_projs_exp | TYPE PROJS-PSPID , |
| ld_prpss_exp | TYPE PRPSS-POSID , |
| ld_vskopf_exp | TYPE VSKOPF-VSNMR , |
| it_keytab_imp | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_keytab_imp | LIKE LINE OF it_keytab_imp . |
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_proj_exp | TYPE PROJ-PSPID , |
| ld_search_imp | TYPE RC27X-FLG_SEL , |
| it_keytab_imp | TYPE STANDARD TABLE OF STRING , |
| wa_keytab_imp | LIKE LINE OF it_keytab_imp, |
| ld_prps_exp | TYPE PRPS-POSID , |
| ld_search_end_imp | TYPE RC27X-FLG_SEL , |
| ld_projs_exp | TYPE PROJS-PSPID , |
| ld_proj_s_imp | TYPE PROJ-PSPID , |
| ld_prpss_exp | TYPE PRPSS-POSID , |
| ld_prps_s_imp | TYPE PRPS-POSID , |
| ld_vskopf_exp | TYPE VSKOPF-VSNMR , |
| ld_projs_s_imp | TYPE PROJS-PSPID , |
| ld_prpss_s_imp | TYPE PRPSS-POSID , |
| ld_vskopf_s_imp | TYPE VSKOPF-VSNMR , |
| ld_proj_e_imp | TYPE PROJ-PSPID , |
| ld_prps_e_imp | TYPE PRPS-POSID , |
| ld_projs_e_imp | TYPE PROJS-PSPID , |
| ld_prpss_e_imp | TYPE PRPSS-POSID , |
| ld_vskopf_e_imp | TYPE VSKOPF-VSNMR , |
| ld_without_mask_at_end | TYPE RC27X-FLG_SEL , |
| ld_refresh | TYPE STRING , |
| ld_no_dialog | TYPE RC27X-FLG_SEL . |
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 CN_SUCHE_FREIE_NUMMER or its description.