SAP SCPR_DB_ATTR_GET_LIST Function Module for
SCPR_DB_ATTR_GET_LIST is a standard scpr db attr get list 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 scpr db attr get list FM, simply by entering the name SCPR_DB_ATTR_GET_LIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCPRPR
Program Name: SAPLSCPRPR
Main Program: SAPLSCPRPR
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCPR_DB_ATTR_GET_LIST 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 'SCPR_DB_ATTR_GET_LIST'".
EXPORTING
* CATEGORY = ' ' "
* COMPONENT = "SW Component
* RELEASE = "
* MAX_COUNT = "Maximum Number
IMPORTING
SEL_COUNT = "
TABLES
* PROFS = "
* ORGIDS = "
PROFOUT = "
* VERSIONS = "
* PROFTYPES = "
* CLI_DEPS = "
* CLI_CASS = "
* REFTYPES = "
* REFERENCES = "
* MODDATES = "
* MODIFIERS = "
EXCEPTIONS
NOTHING_FOUND = 1
IMPORTING Parameters details for SCPR_DB_ATTR_GET_LIST
CATEGORY -
Data type: SCPRATTR-CATEGORYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMPONENT - SW Component
Data type: SCPRATTR-COMPONENTOptional: Yes
Call by Reference: No ( called with pass by value option)
RELEASE -
Data type: SCPRATTR-MAXRELEASEOptional: Yes
Call by Reference: No ( called with pass by value option)
MAX_COUNT - Maximum Number
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SCPR_DB_ATTR_GET_LIST
SEL_COUNT -
Data type: IOptional: No
Call by Reference: Yes
TABLES Parameters details for SCPR_DB_ATTR_GET_LIST
PROFS -
Data type: SCPRXPROFOptional: Yes
Call by Reference: No ( called with pass by value option)
ORGIDS -
Data type: SCPR_XORGIDSOptional: Yes
Call by Reference: No ( called with pass by value option)
PROFOUT -
Data type: SCPRATTROptional: No
Call by Reference: No ( called with pass by value option)
VERSIONS -
Data type: SCPRXVERSOptional: Yes
Call by Reference: No ( called with pass by value option)
PROFTYPES -
Data type: SCPR_XPTYPESOptional: Yes
Call by Reference: No ( called with pass by value option)
CLI_DEPS -
Data type: SCPRXCLDEPOptional: Yes
Call by Reference: Yes
CLI_CASS -
Data type: SCPRXCLCASOptional: Yes
Call by Reference: Yes
REFTYPES -
Data type: SCPRXRTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
REFERENCES -
Data type: SCPRXREFOptional: Yes
Call by Reference: No ( called with pass by value option)
MODDATES -
Data type: SCPRXDATOptional: Yes
Call by Reference: No ( called with pass by value option)
MODIFIERS -
Data type: SCPRXMODOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOTHING_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SCPR_DB_ATTR_GET_LIST 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: | ||||
| lt_profs | TYPE STANDARD TABLE OF SCPRXPROF, " | |||
| lv_category | TYPE SCPRATTR-CATEGORY, " SPACE | |||
| lv_sel_count | TYPE I, " | |||
| lv_nothing_found | TYPE I, " | |||
| lt_orgids | TYPE STANDARD TABLE OF SCPR_XORGIDS, " | |||
| lt_profout | TYPE STANDARD TABLE OF SCPRATTR, " | |||
| lt_versions | TYPE STANDARD TABLE OF SCPRXVERS, " | |||
| lv_component | TYPE SCPRATTR-COMPONENT, " | |||
| lv_release | TYPE SCPRATTR-MAXRELEASE, " | |||
| lt_proftypes | TYPE STANDARD TABLE OF SCPR_XPTYPES, " | |||
| lt_cli_deps | TYPE STANDARD TABLE OF SCPRXCLDEP, " | |||
| lv_max_count | TYPE I, " | |||
| lt_cli_cass | TYPE STANDARD TABLE OF SCPRXCLCAS, " | |||
| lt_reftypes | TYPE STANDARD TABLE OF SCPRXRTYPE, " | |||
| lt_references | TYPE STANDARD TABLE OF SCPRXREF, " | |||
| lt_moddates | TYPE STANDARD TABLE OF SCPRXDAT, " | |||
| lt_modifiers | TYPE STANDARD TABLE OF SCPRXMOD. " |
|   CALL FUNCTION 'SCPR_DB_ATTR_GET_LIST' " |
| EXPORTING | ||
| CATEGORY | = lv_category | |
| COMPONENT | = lv_component | |
| RELEASE | = lv_release | |
| MAX_COUNT | = lv_max_count | |
| IMPORTING | ||
| SEL_COUNT | = lv_sel_count | |
| TABLES | ||
| PROFS | = lt_profs | |
| ORGIDS | = lt_orgids | |
| PROFOUT | = lt_profout | |
| VERSIONS | = lt_versions | |
| PROFTYPES | = lt_proftypes | |
| CLI_DEPS | = lt_cli_deps | |
| CLI_CASS | = lt_cli_cass | |
| REFTYPES | = lt_reftypes | |
| REFERENCES | = lt_references | |
| MODDATES | = lt_moddates | |
| MODIFIERS | = lt_modifiers | |
| EXCEPTIONS | ||
| NOTHING_FOUND = 1 | ||
| . " SCPR_DB_ATTR_GET_LIST | ||
ABAP code using 7.40 inline data declarations to call FM SCPR_DB_ATTR_GET_LIST
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 CATEGORY FROM SCPRATTR INTO @DATA(ld_category). | ||||
| DATA(ld_category) | = ' '. | |||
| "SELECT single COMPONENT FROM SCPRATTR INTO @DATA(ld_component). | ||||
| "SELECT single MAXRELEASE FROM SCPRATTR INTO @DATA(ld_release). | ||||
Search for further information about these or an SAP related objects