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-CATEGORY
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPONENT - SW Component

Data type: SCPRATTR-COMPONENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

RELEASE -

Data type: SCPRATTR-MAXRELEASE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAX_COUNT - Maximum Number

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SCPR_DB_ATTR_GET_LIST

SEL_COUNT -

Data type: I
Optional: No
Call by Reference: Yes

TABLES Parameters details for SCPR_DB_ATTR_GET_LIST

PROFS -

Data type: SCPRXPROF
Optional: Yes
Call by Reference: No ( called with pass by value option)

ORGIDS -

Data type: SCPR_XORGIDS
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROFOUT -

Data type: SCPRATTR
Optional: No
Call by Reference: No ( called with pass by value option)

VERSIONS -

Data type: SCPRXVERS
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROFTYPES -

Data type: SCPR_XPTYPES
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLI_DEPS -

Data type: SCPRXCLDEP
Optional: Yes
Call by Reference: Yes

CLI_CASS -

Data type: SCPRXCLCAS
Optional: Yes
Call by Reference: Yes

REFTYPES -

Data type: SCPRXRTYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

REFERENCES -

Data type: SCPRXREF
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODDATES -

Data type: SCPRXDAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODIFIERS -

Data type: SCPRXMOD
Optional: 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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!