Warning: Undefined array key 1 in /customers/3/8/f/se80.co.uk/httpd.www/page/php/functions-noconn.php on line 190 Warning: Undefined array key 2 in /customers/3/8/f/se80.co.uk/httpd.www/page/php/functions-noconn.php on line 191 SAP BARCHART_SET_FUNCTION_CODE Function Module for Deliver Function Code to Control

SAP BARCHART_SET_FUNCTION_CODE Function Module for Deliver Function Code to Control









BARCHART_SET_FUNCTION_CODE is a standard barchart set function code SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Deliver Function Code to Control 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 barchart set function code FM, simply by entering the name BARCHART_SET_FUNCTION_CODE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNBC
Program Name: SAPLCNBC
Main Program:
Appliation area: S
Release date: 22-Jan-1998
Mode(Normal, Remote etc): Normal Function Module Warning: Undefined array key "UPDATE" in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 212
Update:



Function BARCHART_SET_FUNCTION_CODE 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. Warning: Undefined variable $pimport in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 304 Warning: Undefined variable $pidet in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 305 Warning: Undefined variable $ai in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 307 Warning: Undefined variable $pe in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 312 Warning: Undefined variable $pedet in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 313 Warning: Undefined variable $ae in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 314 Warning: Trying to access array offset on value of type null in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 267 Warning: Trying to access array offset on value of type null in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 296 Warning: Undefined variable $px in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 337 Warning: Undefined variable $pxdet in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 338 Warning: Undefined variable $ax in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 339 Warning: Trying to access array offset on value of type null in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 267 Warning: Trying to access array offset on value of type null in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 296 Warning: Undefined variable $pattern in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 347 Warning: Undefined variable $abapcall in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 349
CALL FUNCTION 'BARCHART_SET_FUNCTION_CODE'"Deliver Function Code to Control
EXPORTING
* HANDLE = "Control handle
FUNCTION_CODE = "Function code
* INSTANCE = "Bar chart object

IMPORTING
RETURN = "Return code

EXCEPTIONS
CNTL_SYSTEM_ERROR = 1 CNTL_ERROR = 2
.


Warning: Undefined variable $idoc in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 395 Warning: Undefined variable $exitfms in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 397 Warning: Undefined variable $custfunc in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 399 Warning: file(/customers/3/8/f/se80.co.uk/httpd.www/sap/fms/barchart_set_function_code/barchart_set_function_code.txt): Failed to open stream: No such file or directory in /customers/3/8/f/se80.co.uk/httpd.www/page/php/functions-noconn.php on line 575 Warning: foreach() argument must be of type array|object, bool given in /customers/3/8/f/se80.co.uk/httpd.www/page/php/functions-noconn.php on line 595 Warning: Undefined variable $endtag in /customers/3/8/f/se80.co.uk/httpd.www/page/php/functions-noconn.php on line 859

IMPORTING Parameters details for BARCHART_SET_FUNCTION_CODE

HANDLE - Control handle

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

FUNCTION_CODE - Function code

Data type: SY-UCOMM
Optional: No
Call by Reference: No ( called with pass by value option)

INSTANCE - Bar chart object

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

EXPORTING Parameters details for BARCHART_SET_FUNCTION_CODE

RETURN - Return code

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

EXCEPTIONS details

CNTL_SYSTEM_ERROR -

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

CNTL_ERROR -

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

Copy and paste ABAP code example for BARCHART_SET_FUNCTION_CODE 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_handle  TYPE CNTL_HANDLE, "   
lv_return  TYPE I, "   
lv_cntl_system_error  TYPE I, "   
lv_cntl_error  TYPE I, "   
lv_function_code  TYPE SY-UCOMM, "   
lv_instance  TYPE CL_GUI_BARCHART. "   

  CALL FUNCTION 'BARCHART_SET_FUNCTION_CODE'  "Deliver Function Code to Control
    EXPORTING
         HANDLE = lv_handle
         FUNCTION_CODE = lv_function_code
         INSTANCE = lv_instance
    IMPORTING
         RETURN = lv_return
    EXCEPTIONS
        CNTL_SYSTEM_ERROR = 1
        CNTL_ERROR = 2
. " BARCHART_SET_FUNCTION_CODE




ABAP code using 7.40 inline data declarations to call FM BARCHART_SET_FUNCTION_CODE

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 UCOMM FROM SY INTO @DATA(ld_function_code).
 
 


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!