SAP BARC_GET_PROFILE_CONTENTS Function Module for Determine customizing profile contents
BARC_GET_PROFILE_CONTENTS is a standard barc get profile contents SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine customizing profile contents 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 barc get profile contents FM, simply by entering the name BARC_GET_PROFILE_CONTENTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: BARC
Program Name: SAPLBARC
Main Program: SAPLBARC
Appliation area: S
Release date: 16-Apr-1997
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BARC_GET_PROFILE_CONTENTS 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 'BARC_GET_PROFILE_CONTENTS'"Determine customizing profile contents.
EXPORTING
* GET_TBCA_DEFS = 'x' "Indicator: Determine chart types
* GET_TBCC_DEFS = 'x' "Indicator: Determine color types
* GET_TBCF_DEFS = 'x' "Indicator: Determine form types
* GET_TBCL_DEFS = 'x' "Indicator: Determine layer types
* GET_TBCO_DEFS = 'x' "Indicator: Determine options
* GET_TFAT_DEFS = 'x' "Indicator: Determine field attributes
* GET_TFMT_DEFS = 'x' "Indicator: Determine formats
* GET_THLT_DEFS = 'x' "Indicator: Determine colors
PROFILE = "Graphics profile
IMPORTING
TBCG_DEFS = "Single profiles of the graphics profile
TBCO_DEFS = "Options
TABLES
* TBCA_DEFS = "Chart types
* TBCC_DEFS = "Color types
* TBCF_DEFS = "Form types
* TBCL_DEFS = "Layer types
* TFAT_DEFS = "Field attributes
* TFMT_DEFS = "Formats
* THLT_DEFS = "Colors
EXCEPTIONS
INV_TBCA_DEFS = 1 INV_TBCC_DEFS = 2 INV_TBCF_DEFS = 3 INV_TBCG_DEFS = 4 INV_TBCL_DEFS = 5 INV_TBCO_DEFS = 6
IMPORTING Parameters details for BARC_GET_PROFILE_CONTENTS
GET_TBCA_DEFS - Indicator: Determine chart types
Data type:Default: 'x'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_TBCC_DEFS - Indicator: Determine color types
Data type:Default: 'x'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_TBCF_DEFS - Indicator: Determine form types
Data type:Default: 'x'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_TBCL_DEFS - Indicator: Determine layer types
Data type:Default: 'x'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_TBCO_DEFS - Indicator: Determine options
Data type:Default: 'x'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_TFAT_DEFS - Indicator: Determine field attributes
Data type:Default: 'x'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_TFMT_DEFS - Indicator: Determine formats
Data type:Default: 'x'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_THLT_DEFS - Indicator: Determine colors
Data type:Default: 'x'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROFILE - Graphics profile
Data type: BCPROFILEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BARC_GET_PROFILE_CONTENTS
TBCG_DEFS - Single profiles of the graphics profile
Data type: TBCGOptional: No
Call by Reference: No ( called with pass by value option)
TBCO_DEFS - Options
Data type: TBCOOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BARC_GET_PROFILE_CONTENTS
TBCA_DEFS - Chart types
Data type: TBCAOptional: Yes
Call by Reference: No ( called with pass by value option)
TBCC_DEFS - Color types
Data type: TBCCOptional: Yes
Call by Reference: No ( called with pass by value option)
TBCF_DEFS - Form types
Data type: TBCFOptional: Yes
Call by Reference: No ( called with pass by value option)
TBCL_DEFS - Layer types
Data type: TBCLOptional: Yes
Call by Reference: No ( called with pass by value option)
TFAT_DEFS - Field attributes
Data type: TFATOptional: Yes
Call by Reference: No ( called with pass by value option)
TFMT_DEFS - Formats
Data type: TFMTOptional: Yes
Call by Reference: No ( called with pass by value option)
THLT_DEFS - Colors
Data type: THLTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INV_TBCA_DEFS - Incorrect chart profile
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INV_TBCC_DEFS - Incorrect color type profile
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INV_TBCF_DEFS - Incorrect form type profile
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INV_TBCG_DEFS - Incorrect graphics profile
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INV_TBCL_DEFS - Incorrect layer type profile
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INV_TBCO_DEFS - Incorrect options profile
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BARC_GET_PROFILE_CONTENTS 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_tbca_defs | TYPE STANDARD TABLE OF TBCA, " | |||
| lv_tbcg_defs | TYPE TBCG, " | |||
| lv_get_tbca_defs | TYPE TBCG, " 'x' | |||
| lv_inv_tbca_defs | TYPE TBCG, " | |||
| lt_tbcc_defs | TYPE STANDARD TABLE OF TBCC, " | |||
| lv_tbco_defs | TYPE TBCO, " | |||
| lv_get_tbcc_defs | TYPE TBCO, " 'x' | |||
| lv_inv_tbcc_defs | TYPE TBCO, " | |||
| lt_tbcf_defs | TYPE STANDARD TABLE OF TBCF, " | |||
| lv_get_tbcf_defs | TYPE TBCF, " 'x' | |||
| lv_inv_tbcf_defs | TYPE TBCF, " | |||
| lt_tbcl_defs | TYPE STANDARD TABLE OF TBCL, " | |||
| lv_get_tbcl_defs | TYPE TBCL, " 'x' | |||
| lv_inv_tbcg_defs | TYPE TBCL, " | |||
| lt_tfat_defs | TYPE STANDARD TABLE OF TFAT, " | |||
| lv_get_tbco_defs | TYPE TFAT, " 'x' | |||
| lv_inv_tbcl_defs | TYPE TFAT, " | |||
| lt_tfmt_defs | TYPE STANDARD TABLE OF TFMT, " | |||
| lv_get_tfat_defs | TYPE TFMT, " 'x' | |||
| lv_inv_tbco_defs | TYPE TFMT, " | |||
| lt_thlt_defs | TYPE STANDARD TABLE OF THLT, " | |||
| lv_get_tfmt_defs | TYPE THLT, " 'x' | |||
| lv_get_thlt_defs | TYPE THLT, " 'x' | |||
| lv_profile | TYPE BCPROFILE. " |
|   CALL FUNCTION 'BARC_GET_PROFILE_CONTENTS' "Determine customizing profile contents |
| EXPORTING | ||
| GET_TBCA_DEFS | = lv_get_tbca_defs | |
| GET_TBCC_DEFS | = lv_get_tbcc_defs | |
| GET_TBCF_DEFS | = lv_get_tbcf_defs | |
| GET_TBCL_DEFS | = lv_get_tbcl_defs | |
| GET_TBCO_DEFS | = lv_get_tbco_defs | |
| GET_TFAT_DEFS | = lv_get_tfat_defs | |
| GET_TFMT_DEFS | = lv_get_tfmt_defs | |
| GET_THLT_DEFS | = lv_get_thlt_defs | |
| PROFILE | = lv_profile | |
| IMPORTING | ||
| TBCG_DEFS | = lv_tbcg_defs | |
| TBCO_DEFS | = lv_tbco_defs | |
| TABLES | ||
| TBCA_DEFS | = lt_tbca_defs | |
| TBCC_DEFS | = lt_tbcc_defs | |
| TBCF_DEFS | = lt_tbcf_defs | |
| TBCL_DEFS | = lt_tbcl_defs | |
| TFAT_DEFS | = lt_tfat_defs | |
| TFMT_DEFS | = lt_tfmt_defs | |
| THLT_DEFS | = lt_thlt_defs | |
| EXCEPTIONS | ||
| INV_TBCA_DEFS = 1 | ||
| INV_TBCC_DEFS = 2 | ||
| INV_TBCF_DEFS = 3 | ||
| INV_TBCG_DEFS = 4 | ||
| INV_TBCL_DEFS = 5 | ||
| INV_TBCO_DEFS = 6 | ||
| . " BARC_GET_PROFILE_CONTENTS | ||
ABAP code using 7.40 inline data declarations to call FM BARC_GET_PROFILE_CONTENTS
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_get_tbca_defs) | = 'x'. | |||
| DATA(ld_get_tbcc_defs) | = 'x'. | |||
| DATA(ld_get_tbcf_defs) | = 'x'. | |||
| DATA(ld_get_tbcl_defs) | = 'x'. | |||
| DATA(ld_get_tbco_defs) | = 'x'. | |||
| DATA(ld_get_tfat_defs) | = 'x'. | |||
| DATA(ld_get_tfmt_defs) | = 'x'. | |||
| DATA(ld_get_thlt_defs) | = 'x'. | |||
Search for further information about these or an SAP related objects