SAP SCPR_PRSET_MN_COMP_CUST_TABLE Function Module for









SCPR_PRSET_MN_COMP_CUST_TABLE is a standard scpr prset mn comp cust table 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 mn comp cust table FM, simply by entering the name SCPR_PRSET_MN_COMP_CUST_TABLE 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_MN_COMP_CUST_TABLE 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_MN_COMP_CUST_TABLE'"
EXPORTING
* BCSET_ID = "Business Configuration Set
* BCSET_UEBERSICHT = ' ' "Single-Character Flag
* PRINT_ALL = ' ' "Single-Character Flag
* COMPARE_MODUS = ' ' "
* CHECK_KEYCONFLICTS = ' ' "Single-Character Flag
* SHOW_COMPLETE_TABLE = ' ' "
* FELDUEBERSICHT = ' ' "Output Field Overview
* NEW_SELECTION = ' ' "
* NEW_BCSET = 'X' "
* CALLING_REPORT = ' ' "
* VARIABLES_POPUP = ' ' "
* CATEGORY = ' ' "
* ASK_FOR_KEY = "General text length 20
* WITH_DIALOG = 'X' "
* CALLED_FROM = "General text length 20
* VAR_WITH_LANGUAGE = ' ' "
* AUSGABEBREITE = 120 "
* DRUCKAUSGABE = ' ' "Single-Character Flag
* LANGVECTOR = "

IMPORTING
DATA_MODIFIED = "General text length 20
FLAG_DATA_EQUAL = "
FLAG_DATA_MODIFIED = "

CHANGING
* VARIABLES_NEW = "BC Sets: Table of Variables with Language Information

TABLES
* BCSET_IDS = "BC Sets: BC Set Names to Pass From/To External Interface

EXCEPTIONS
NO_BCSET = 1 BCSET_SELECTION = 2 NO_DATA = 3 WRONG_PARAMETERS = 4 NO_AUTHORITY = 5 NO_AUTHORITY_ACTIV = 6 INTERNAL_ERROR = 7
.



IMPORTING Parameters details for SCPR_PRSET_MN_COMP_CUST_TABLE

BCSET_ID - Business Configuration Set

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

BCSET_UEBERSICHT - Single-Character Flag

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

PRINT_ALL - Single-Character Flag

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

COMPARE_MODUS -

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

CHECK_KEYCONFLICTS - Single-Character Flag

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

SHOW_COMPLETE_TABLE -

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

FELDUEBERSICHT - Output Field Overview

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

NEW_SELECTION -

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

NEW_BCSET -

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALLING_REPORT -

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

VARIABLES_POPUP -

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

CATEGORY -

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

ASK_FOR_KEY - General text length 20

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

WITH_DIALOG -

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALLED_FROM - General text length 20

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

VAR_WITH_LANGUAGE -

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

AUSGABEBREITE -

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

DRUCKAUSGABE - Single-Character Flag

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

LANGVECTOR -

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

EXPORTING Parameters details for SCPR_PRSET_MN_COMP_CUST_TABLE

DATA_MODIFIED - General text length 20

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

FLAG_DATA_EQUAL -

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

FLAG_DATA_MODIFIED -

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

CHANGING Parameters details for SCPR_PRSET_MN_COMP_CUST_TABLE

VARIABLES_NEW - BC Sets: Table of Variables with Language Information

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

TABLES Parameters details for SCPR_PRSET_MN_COMP_CUST_TABLE

BCSET_IDS - BC Sets: BC Set Names to Pass From/To External Interface

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

EXCEPTIONS details

NO_BCSET -

Data type:
Optional: No
Call by Reference: Yes

BCSET_SELECTION -

Data type:
Optional: No
Call by Reference: Yes

NO_DATA -

Data type:
Optional: No
Call by Reference: Yes

WRONG_PARAMETERS -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY_ACTIV -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR - Internal Error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCPR_PRSET_MN_COMP_CUST_TABLE 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_no_bcset  TYPE SCPRATTR, "   
lt_bcset_ids  TYPE STANDARD TABLE OF SCPR_BCSETS, "   
lv_data_modified  TYPE SCPR_TXT20, "   
lv_variables_new  TYPE SCPRVART, "   
lv_bcset_uebersicht  TYPE CHAR1, "   SPACE
lv_print_all  TYPE CHAR1, "   SPACE
lv_compare_modus  TYPE CHAR1, "   SPACE
lv_check_keyconflicts  TYPE CHAR1, "   SPACE
lv_show_complete_table  TYPE CHAR1, "   SPACE
lv_felduebersicht  TYPE CHAR1, "   SPACE
lv_new_selection  TYPE CHAR1, "   SPACE
lv_new_bcset  TYPE CHAR1, "   'X'
lv_calling_report  TYPE CHAR1, "   SPACE
lv_variables_popup  TYPE CHAR1, "   SPACE
lv_category  TYPE SCPRATTR-CATEGORY, "   SPACE
lv_bcset_selection  TYPE SCPRATTR, "   
lv_flag_data_equal  TYPE CHAR1, "   
lv_no_data  TYPE CHAR1, "   
lv_ask_for_key  TYPE SCPR_TXT20, "   
lv_flag_data_modified  TYPE CHAR1, "   
lv_with_dialog  TYPE CHAR1, "   'X'
lv_wrong_parameters  TYPE CHAR1, "   
lv_called_from  TYPE SCPR_TXT20, "   
lv_no_authority  TYPE SCPR_TXT20, "   
lv_var_with_language  TYPE CHAR1, "   SPACE
lv_no_authority_activ  TYPE CHAR1, "   
lv_ausgabebreite  TYPE I, "   120
lv_internal_error  TYPE I, "   
lv_druckausgabe  TYPE CHAR1, "   SPACE
lv_langvector  TYPE SCPR_LANGUAGES. "   

  CALL FUNCTION 'SCPR_PRSET_MN_COMP_CUST_TABLE'  "
    EXPORTING
         BCSET_ID = lv_bcset_id
         BCSET_UEBERSICHT = lv_bcset_uebersicht
         PRINT_ALL = lv_print_all
         COMPARE_MODUS = lv_compare_modus
         CHECK_KEYCONFLICTS = lv_check_keyconflicts
         SHOW_COMPLETE_TABLE = lv_show_complete_table
         FELDUEBERSICHT = lv_felduebersicht
         NEW_SELECTION = lv_new_selection
         NEW_BCSET = lv_new_bcset
         CALLING_REPORT = lv_calling_report
         VARIABLES_POPUP = lv_variables_popup
         CATEGORY = lv_category
         ASK_FOR_KEY = lv_ask_for_key
         WITH_DIALOG = lv_with_dialog
         CALLED_FROM = lv_called_from
         VAR_WITH_LANGUAGE = lv_var_with_language
         AUSGABEBREITE = lv_ausgabebreite
         DRUCKAUSGABE = lv_druckausgabe
         LANGVECTOR = lv_langvector
    IMPORTING
         DATA_MODIFIED = lv_data_modified
         FLAG_DATA_EQUAL = lv_flag_data_equal
         FLAG_DATA_MODIFIED = lv_flag_data_modified
    CHANGING
         VARIABLES_NEW = lv_variables_new
    TABLES
         BCSET_IDS = lt_bcset_ids
    EXCEPTIONS
        NO_BCSET = 1
        BCSET_SELECTION = 2
        NO_DATA = 3
        WRONG_PARAMETERS = 4
        NO_AUTHORITY = 5
        NO_AUTHORITY_ACTIV = 6
        INTERNAL_ERROR = 7
. " SCPR_PRSET_MN_COMP_CUST_TABLE




ABAP code using 7.40 inline data declarations to call FM SCPR_PRSET_MN_COMP_CUST_TABLE

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).
 
 
 
 
 
DATA(ld_bcset_uebersicht) = ' '.
 
DATA(ld_print_all) = ' '.
 
DATA(ld_compare_modus) = ' '.
 
DATA(ld_check_keyconflicts) = ' '.
 
DATA(ld_show_complete_table) = ' '.
 
DATA(ld_felduebersicht) = ' '.
 
DATA(ld_new_selection) = ' '.
 
DATA(ld_new_bcset) = 'X'.
 
DATA(ld_calling_report) = ' '.
 
DATA(ld_variables_popup) = ' '.
 
"SELECT single CATEGORY FROM SCPRATTR INTO @DATA(ld_category).
DATA(ld_category) = ' '.
 
 
 
 
 
 
DATA(ld_with_dialog) = 'X'.
 
 
 
 
DATA(ld_var_with_language) = ' '.
 
 
DATA(ld_ausgabebreite) = 120.
 
 
DATA(ld_druckausgabe) = ' '.
 
 


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!