SAP GRAPH_SET_CUA_STATUS Function Module for Set graphics GUI status
GRAPH_SET_CUA_STATUS is a standard graph set cua status SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Set graphics GUI status 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 graph set cua status FM, simply by entering the name GRAPH_SET_CUA_STATUS into the relevant SAP transaction such as SE37 or SE38.
Function Group: GRAP
Program Name: SAPLGRAP
Main Program: SAPLGRAP
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function GRAPH_SET_CUA_STATUS 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 'GRAPH_SET_CUA_STATUS'"Set graphics GUI status.
EXPORTING
* PROGRAM = SY-REPID "Program name for CUA information
* STATUS = ' ' "Status for CUA information
* TEST_IT = ' ' "
TABLES
* EXCLUDING = "Table for function code exceptions
EXCEPTIONS
INV_CUA_INFO = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLGRAP_001 Customer-specific authorization check and trace for download
EXIT_SAPLGRAP_002 Customer-specific check of the upload data (for example, for viruses)
IMPORTING Parameters details for GRAPH_SET_CUA_STATUS
PROGRAM - Program name for CUA information
Data type: SY-REPIDDefault: SY-REPID
Optional: Yes
Call by Reference: No ( called with pass by value option)
STATUS - Status for CUA information
Data type: SY-PFKEYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEST_IT -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for GRAPH_SET_CUA_STATUS
EXCLUDING - Table for function code exceptions
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INV_CUA_INFO - Error in the menu definition
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GRAPH_SET_CUA_STATUS 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_program | TYPE SY-REPID, " SY-REPID | |||
lt_excluding | TYPE STANDARD TABLE OF SY, " | |||
lv_inv_cua_info | TYPE SY, " | |||
lv_status | TYPE SY-PFKEY, " SPACE | |||
lv_test_it | TYPE C. " SPACE |
  CALL FUNCTION 'GRAPH_SET_CUA_STATUS' "Set graphics GUI status |
EXPORTING | ||
PROGRAM | = lv_program | |
STATUS | = lv_status | |
TEST_IT | = lv_test_it | |
TABLES | ||
EXCLUDING | = lt_excluding | |
EXCEPTIONS | ||
INV_CUA_INFO = 1 | ||
. " GRAPH_SET_CUA_STATUS |
ABAP code using 7.40 inline data declarations to call FM GRAPH_SET_CUA_STATUS
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 REPID FROM SY INTO @DATA(ld_program). | ||||
DATA(ld_program) | = SY-REPID. | |||
"SELECT single PFKEY FROM SY INTO @DATA(ld_status). | ||||
DATA(ld_status) | = ' '. | |||
DATA(ld_test_it) | = ' '. | |||
Search for further information about these or an SAP related objects