SAP SCPR_EXT_BCSET_ID_ASK Function Module for BC Set: Get Name and Short Text to Create a BC Set
SCPR_EXT_BCSET_ID_ASK is a standard scpr ext bcset id ask SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BC Set: Get Name and Short Text to Create a BC Set processing and below is the pattern details for this FM, 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 ext bcset id ask FM, simply by entering the name SCPR_EXT_BCSET_ID_ASK into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCPR
Program Name: SAPLSCPR
Main Program: SAPLSCPR
Appliation area:
Release date: 29-Oct-1999
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCPR_EXT_BCSET_ID_ASK 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_EXT_BCSET_ID_ASK'"BC Set: Get Name and Short Text to Create a BC Set.
IMPORTING
BCSET_ID = "Business Configuration Set
BCSET_TEXT = "BC Set: Description
COMPONENT = "SW Component
MINRELEASE = "BC Set Validity: Minimum Release
MAXRELEASE = "BC Set Validity: Highest Release
CATEGORY = "BC Set: Category
EXCEPTIONS
USER_ABORT = 1
EXPORTING Parameters details for SCPR_EXT_BCSET_ID_ASK
BCSET_ID - Business Configuration Set
Data type: SCPRATTR-IDOptional: No
Call by Reference: Yes
BCSET_TEXT - BC Set: Description
Data type: SCPRTEXT-TEXTOptional: No
Call by Reference: Yes
COMPONENT - SW Component
Data type: SCPRATTR-COMPONENTOptional: No
Call by Reference: Yes
MINRELEASE - BC Set Validity: Minimum Release
Data type: SCPRATTR-MINRELEASEOptional: No
Call by Reference: Yes
MAXRELEASE - BC Set Validity: Highest Release
Data type: SCPRATTR-MAXRELEASEOptional: No
Call by Reference: Yes
CATEGORY - BC Set: Category
Data type: SCPR_CTGRYOptional: No
Call by Reference: Yes
EXCEPTIONS details
USER_ABORT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SCPR_EXT_BCSET_ID_ASK 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_bcset_id | TYPE SCPRATTR-ID, " | |||
| lv_user_abort | TYPE SCPRATTR, " | |||
| lv_bcset_text | TYPE SCPRTEXT-TEXT, " | |||
| lv_component | TYPE SCPRATTR-COMPONENT, " | |||
| lv_minrelease | TYPE SCPRATTR-MINRELEASE, " | |||
| lv_maxrelease | TYPE SCPRATTR-MAXRELEASE, " | |||
| lv_category | TYPE SCPR_CTGRY. " |
|   CALL FUNCTION 'SCPR_EXT_BCSET_ID_ASK' "BC Set: Get Name and Short Text to Create a BC Set |
| IMPORTING | ||
| BCSET_ID | = lv_bcset_id | |
| BCSET_TEXT | = lv_bcset_text | |
| COMPONENT | = lv_component | |
| MINRELEASE | = lv_minrelease | |
| MAXRELEASE | = lv_maxrelease | |
| CATEGORY | = lv_category | |
| EXCEPTIONS | ||
| USER_ABORT = 1 | ||
| . " SCPR_EXT_BCSET_ID_ASK | ||
ABAP code using 7.40 inline data declarations to call FM SCPR_EXT_BCSET_ID_ASK
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 ID FROM SCPRATTR INTO @DATA(ld_bcset_id). | ||||
| "SELECT single TEXT FROM SCPRTEXT INTO @DATA(ld_bcset_text). | ||||
| "SELECT single COMPONENT FROM SCPRATTR INTO @DATA(ld_component). | ||||
| "SELECT single MINRELEASE FROM SCPRATTR INTO @DATA(ld_minrelease). | ||||
| "SELECT single MAXRELEASE FROM SCPRATTR INTO @DATA(ld_maxrelease). | ||||
Search for further information about these or an SAP related objects