SAP SET_DD_GUI_STATUS Function Module for Set status of a CUA interface









SET_DD_GUI_STATUS is a standard set dd gui 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 status of a CUA interface 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 set dd gui status FM, simply by entering the name SET_DD_GUI_STATUS into the relevant SAP transaction such as SE37 or SE38.

Function Group: SEDS
Program Name: SAPLSEDS
Main Program: SAPLSEDS
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SET_DD_GUI_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 'SET_DD_GUI_STATUS'"Set status of a CUA interface
EXPORTING
EUTYPE = "Object type
* CLASS = "Supplement: object subclass
OBJNAME = "Object name
* FCT = 'S' "Function
DYNNR = "Screen number
* DYN_TEXT = "
* ACTIVETAB = "Active Tabs

IMPORTING
CUA_STATUS = "CUA status

TABLES
* FCTAB = "Table with function codes for EXCLUDING

EXCEPTIONS
INVALID_PARAMETER = 1
.



IMPORTING Parameters details for SET_DD_GUI_STATUS

EUTYPE - Object type

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

CLASS - Supplement: object subclass

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

OBJNAME - Object name

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

FCT - Function

Data type: RSDXX-FCT
Default: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYNNR - Screen number

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

DYN_TEXT -

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

ACTIVETAB - Active Tabs

Data type:
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SET_DD_GUI_STATUS

CUA_STATUS - CUA status

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

TABLES Parameters details for SET_DD_GUI_STATUS

FCTAB - Table with function codes for EXCLUDING

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

EXCEPTIONS details

INVALID_PARAMETER -

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

Copy and paste ABAP code example for SET_DD_GUI_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:
lt_fctab  TYPE STANDARD TABLE OF STRING, "   
lv_eutype  TYPE RSDXX-EUTYPE, "   
lv_cua_status  TYPE RSDXX, "   
lv_invalid_parameter  TYPE RSDXX, "   
lv_class  TYPE RSDXX, "   
lv_objname  TYPE RSDXX, "   
lv_fct  TYPE RSDXX-FCT, "   'S'
lv_dynnr  TYPE RSDXX, "   
lv_dyn_text  TYPE RSDXX, "   
lv_activetab  TYPE RSDXX. "   

  CALL FUNCTION 'SET_DD_GUI_STATUS'  "Set status of a CUA interface
    EXPORTING
         EUTYPE = lv_eutype
         CLASS = lv_class
         OBJNAME = lv_objname
         FCT = lv_fct
         DYNNR = lv_dynnr
         DYN_TEXT = lv_dyn_text
         ACTIVETAB = lv_activetab
    IMPORTING
         CUA_STATUS = lv_cua_status
    TABLES
         FCTAB = lt_fctab
    EXCEPTIONS
        INVALID_PARAMETER = 1
. " SET_DD_GUI_STATUS




ABAP code using 7.40 inline data declarations to call FM SET_DD_GUI_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 EUTYPE FROM RSDXX INTO @DATA(ld_eutype).
 
 
 
 
 
"SELECT single FCT FROM RSDXX INTO @DATA(ld_fct).
DATA(ld_fct) = 'S'.
 
 
 
 


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!