SAP SCCR_GET_RELEASE_NR Function Module for
SCCR_GET_RELEASE_NR is a standard sccr get release nr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for sccr get release nr FM, simply by entering the name SCCR_GET_RELEASE_NR into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCCA
Program Name: SAPLSCCA
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function SCCR_GET_RELEASE_NR pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SCCR_GET_RELEASE_NR'".
IMPORTING
SAP_RELEASE = "R/3 System, system release
NFORM = "
CODE_PAGE = "SAP character set identification
CHECK_NUMBER = "
SYSID = "Name of SAP R/3 System
MANDT = "R/3 System, Client Number from Logon
COPYLOCK = "Protection reg. client copy program and comparison tools
USER = "SAP System, User Logon Name
BASIS_PATCH = "Support Package Name
CHARLEN = "
EXPORTING Parameters details for SCCR_GET_RELEASE_NR
SAP_RELEASE - R/3 System, system release
Data type: SY-SAPRLOptional: No
Call by Reference: No ( called with pass by value option)
NFORM -
Data type: TCP00-CPCODEPAGEOptional: No
Call by Reference: No ( called with pass by value option)
CODE_PAGE - SAP character set identification
Data type: TCP00-CPCODEPAGEOptional: No
Call by Reference: No ( called with pass by value option)
CHECK_NUMBER -
Data type: STRMPAR-TBSCHKNOOptional: No
Call by Reference: No ( called with pass by value option)
SYSID - Name of SAP R/3 System
Data type: SY-SYSIDOptional: No
Call by Reference: No ( called with pass by value option)
MANDT - R/3 System, Client Number from Logon
Data type: SY-MANDTOptional: No
Call by Reference: No ( called with pass by value option)
COPYLOCK - Protection reg. client copy program and comparison tools
Data type: T000-CCCOPYLOCKOptional: No
Call by Reference: No ( called with pass by value option)
USER - SAP System, User Logon Name
Data type: SY-UNAMEOptional: No
Call by Reference: No ( called with pass by value option)
BASIS_PATCH - Support Package Name
Data type: PAT03-PATCHOptional: No
Call by Reference: No ( called with pass by value option)
CHARLEN -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SCCR_GET_RELEASE_NR Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_sap_release | TYPE SY-SAPRL, " | |||
lv_nform | TYPE TCP00-CPCODEPAGE, " | |||
lv_code_page | TYPE TCP00-CPCODEPAGE, " | |||
lv_check_number | TYPE STRMPAR-TBSCHKNO, " | |||
lv_sysid | TYPE SY-SYSID, " | |||
lv_mandt | TYPE SY-MANDT, " | |||
lv_copylock | TYPE T000-CCCOPYLOCK, " | |||
lv_user | TYPE SY-UNAME, " | |||
lv_basis_patch | TYPE PAT03-PATCH, " | |||
lv_charlen | TYPE I. " |
  CALL FUNCTION 'SCCR_GET_RELEASE_NR' " |
IMPORTING | ||
SAP_RELEASE | = lv_sap_release | |
NFORM | = lv_nform | |
CODE_PAGE | = lv_code_page | |
CHECK_NUMBER | = lv_check_number | |
SYSID | = lv_sysid | |
MANDT | = lv_mandt | |
COPYLOCK | = lv_copylock | |
USER | = lv_user | |
BASIS_PATCH | = lv_basis_patch | |
CHARLEN | = lv_charlen | |
. " SCCR_GET_RELEASE_NR |
ABAP code using 7.40 inline data declarations to call FM SCCR_GET_RELEASE_NR
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single SAPRL FROM SY INTO @DATA(ld_sap_release). | ||||
"SELECT single CPCODEPAGE FROM TCP00 INTO @DATA(ld_nform). | ||||
"SELECT single CPCODEPAGE FROM TCP00 INTO @DATA(ld_code_page). | ||||
"SELECT single TBSCHKNO FROM STRMPAR INTO @DATA(ld_check_number). | ||||
"SELECT single SYSID FROM SY INTO @DATA(ld_sysid). | ||||
"SELECT single MANDT FROM SY INTO @DATA(ld_mandt). | ||||
"SELECT single CCCOPYLOCK FROM T000 INTO @DATA(ld_copylock). | ||||
"SELECT single UNAME FROM SY INTO @DATA(ld_user). | ||||
"SELECT single PATCH FROM PAT03 INTO @DATA(ld_basis_patch). | ||||
Search for further information about these or an SAP related objects