SAP SCPR_PRSET_DB_GET_ORIG_TABLES Function Module for
SCPR_PRSET_DB_GET_ORIG_TABLES is a standard scpr prset db get orig tables 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 prset db get orig tables FM, simply by entering the name SCPR_PRSET_DB_GET_ORIG_TABLES into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCPRPS
Program Name: SAPLSCPRPS
Main Program: SAPLSCPRPS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function SCPR_PRSET_DB_GET_ORIG_TABLES 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_PRSET_DB_GET_ORIG_TABLES'".
EXPORTING
ID = "Business Configuration Set
* VERSION = 'N' "BC Set: Version
* CATEGORY = ' ' "
TABLES
* SCPRATTR = "BC Set: Attributes
* SCPRVALS = "BC Set: Values
* SCPRVALL = "BC Set: Values (language-dependent)
* SCPRRECA = "BC Set: BC Set record attributes
* SCPRSKEYS = "
* SCPRFLDV = "BC Set: Replace Field Text in Variable Fields
* SCPRTEXT = "BC Set: Short texts
* SCPRPPRL = "BC Sets: Hierarchical BC Sets
IMPORTING Parameters details for SCPR_PRSET_DB_GET_ORIG_TABLES
ID - Business Configuration Set
Data type: SCPR_IDOptional: No
Call by Reference: Yes
VERSION - BC Set: Version
Data type: SCPR_VERSDefault: 'N'
Optional: Yes
Call by Reference: Yes
CATEGORY -
Data type: SCPR_CTGRYDefault: SPACE
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for SCPR_PRSET_DB_GET_ORIG_TABLES
SCPRATTR - BC Set: Attributes
Data type: SCPRATTROptional: Yes
Call by Reference: Yes
SCPRVALS - BC Set: Values
Data type: SCPRVALSOptional: Yes
Call by Reference: Yes
SCPRVALL - BC Set: Values (language-dependent)
Data type: SCPRVALLOptional: Yes
Call by Reference: Yes
SCPRRECA - BC Set: BC Set record attributes
Data type: SCPRRECAOptional: Yes
Call by Reference: Yes
SCPRSKEYS -
Data type: SCPRSKEYSOptional: Yes
Call by Reference: Yes
SCPRFLDV - BC Set: Replace Field Text in Variable Fields
Data type: SCPRFLDVOptional: Yes
Call by Reference: Yes
SCPRTEXT - BC Set: Short texts
Data type: SCPRTEXTOptional: Yes
Call by Reference: Yes
SCPRPPRL - BC Sets: Hierarchical BC Sets
Data type: SCPRPPRLOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for SCPR_PRSET_DB_GET_ORIG_TABLES 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_id | TYPE SCPR_ID, " | |||
lt_scprattr | TYPE STANDARD TABLE OF SCPRATTR, " | |||
lv_version | TYPE SCPR_VERS, " 'N' | |||
lt_scprvals | TYPE STANDARD TABLE OF SCPRVALS, " | |||
lv_category | TYPE SCPR_CTGRY, " SPACE | |||
lt_scprvall | TYPE STANDARD TABLE OF SCPRVALL, " | |||
lt_scprreca | TYPE STANDARD TABLE OF SCPRRECA, " | |||
lt_scprskeys | TYPE STANDARD TABLE OF SCPRSKEYS, " | |||
lt_scprfldv | TYPE STANDARD TABLE OF SCPRFLDV, " | |||
lt_scprtext | TYPE STANDARD TABLE OF SCPRTEXT, " | |||
lt_scprpprl | TYPE STANDARD TABLE OF SCPRPPRL. " |
  CALL FUNCTION 'SCPR_PRSET_DB_GET_ORIG_TABLES' " |
EXPORTING | ||
ID | = lv_id | |
VERSION | = lv_version | |
CATEGORY | = lv_category | |
TABLES | ||
SCPRATTR | = lt_scprattr | |
SCPRVALS | = lt_scprvals | |
SCPRVALL | = lt_scprvall | |
SCPRRECA | = lt_scprreca | |
SCPRSKEYS | = lt_scprskeys | |
SCPRFLDV | = lt_scprfldv | |
SCPRTEXT | = lt_scprtext | |
SCPRPPRL | = lt_scprpprl | |
. " SCPR_PRSET_DB_GET_ORIG_TABLES |
ABAP code using 7.40 inline data declarations to call FM SCPR_PRSET_DB_GET_ORIG_TABLES
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.DATA(ld_version) | = 'N'. | |||
DATA(ld_category) | = ' '. | |||
Search for further information about these or an SAP related objects