SAP NOTICE_OPEN Function Module for INTERNAL: OPEN Module for Note Object









NOTICE_OPEN is a standard notice open SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for INTERNAL: OPEN Module for Note Object 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 notice open FM, simply by entering the name NOTICE_OPEN into the relevant SAP transaction such as SE37 or SE38.

Function Group: EENO
Program Name: SAPLEENO
Main Program: SAPLEENO
Appliation area:
Release date: 14-Dec-1995
Mode(Normal, Remote etc): Normal Function Module
Update:



Function NOTICE_OPEN 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 'NOTICE_OPEN'"INTERNAL: OPEN Module for Note Object
EXPORTING
* X_MANDT = SY-MANDT "Client
* X_DIALOG = "Manipulation of Subscreen Appearance
* XT_VIEW = "Note View Table
* X_FLG_ACCESSIBILITY = 'X' "Guarantee Accessibility
* X_DYNNR = "Dynpro Number of Subscreen
* X_SPRAS = "Language
* X_VIEW = '*' "Note View Name
X_OBJECT = "Text Object
X_KEY = "Key of Object for Which Notes were Entered
* X_TITLE = ' ' "Heading for Note Step Loop
* X_WMODE = ' ' "Processing Type
* X_UPD_ONLINE = ' ' "Flag: Update Directly Online
* X_AUTO = "Automation Data for Controlling Object

IMPORTING
Y_OBJ = "Object Data

CHANGING
* XYT_AUTO = "Direct Input Data

EXCEPTIONS
SYSTEM_ERROR = 1 LANGUAGE_NOT_FOUND = 2 NOTICE_OBJECT_NOT_CUSTOMIZED = 3
.



IMPORTING Parameters details for NOTICE_OPEN

X_MANDT - Client

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

X_DIALOG - Manipulation of Subscreen Appearance

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

XT_VIEW - Note View Table

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

X_FLG_ACCESSIBILITY - Guarantee Accessibility

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

X_DYNNR - Dynpro Number of Subscreen

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

X_SPRAS - Language

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

X_VIEW - Note View Name

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

X_OBJECT - Text Object

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

X_KEY - Key of Object for Which Notes were Entered

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

X_TITLE - Heading for Note Step Loop

Data type: EENO_DYNP-TITLE
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_WMODE - Processing Type

Data type: EENO_GEN-WMODE
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_UPD_ONLINE - Flag: Update Directly Online

Data type: EENO_GEN-UPD_ONLINE
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_AUTO - Automation Data for Controlling Object

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

EXPORTING Parameters details for NOTICE_OPEN

Y_OBJ - Object Data

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

CHANGING Parameters details for NOTICE_OPEN

XYT_AUTO - Direct Input Data

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

EXCEPTIONS details

SYSTEM_ERROR - General System Error

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

LANGUAGE_NOT_FOUND - Transferred Language not Supported

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

NOTICE_OBJECT_NOT_CUSTOMIZED - There are no Note Types

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

Copy and paste ABAP code example for NOTICE_OPEN 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_y_obj  TYPE EENOT_NOTICE, "   
lv_x_mandt  TYPE SY-MANDT, "   SY-MANDT
lv_xyt_auto  TYPE EENOT_AUTO, "   
lv_system_error  TYPE EENOT_AUTO, "   
lv_x_dialog  TYPE EENOT_DIALOG_OPTIONS, "   
lv_xt_view  TYPE EENOT_VIEW_TABLE, "   
lv_x_flg_accessibility  TYPE XFELD, "   'X'
lv_x_dynnr  TYPE SYDYNNR, "   
lv_x_spras  TYPE THEAD-TDSPRAS, "   
lv_language_not_found  TYPE THEAD, "   
lv_x_view  TYPE EENO_VIEW, "   '*'
lv_notice_object_not_customized  TYPE EENO_VIEW, "   
lv_x_object  TYPE THEAD-TDOBJECT, "   
lv_x_key  TYPE THEAD-TDNAME, "   
lv_x_title  TYPE EENO_DYNP-TITLE, "   ' '
lv_x_wmode  TYPE EENO_GEN-WMODE, "   ' '
lv_x_upd_online  TYPE EENO_GEN-UPD_ONLINE, "   ' '
lv_x_auto  TYPE EENOT_NOTICE_AUTO. "   

  CALL FUNCTION 'NOTICE_OPEN'  "INTERNAL: OPEN Module for Note Object
    EXPORTING
         X_MANDT = lv_x_mandt
         X_DIALOG = lv_x_dialog
         XT_VIEW = lv_xt_view
         X_FLG_ACCESSIBILITY = lv_x_flg_accessibility
         X_DYNNR = lv_x_dynnr
         X_SPRAS = lv_x_spras
         X_VIEW = lv_x_view
         X_OBJECT = lv_x_object
         X_KEY = lv_x_key
         X_TITLE = lv_x_title
         X_WMODE = lv_x_wmode
         X_UPD_ONLINE = lv_x_upd_online
         X_AUTO = lv_x_auto
    IMPORTING
         Y_OBJ = lv_y_obj
    CHANGING
         XYT_AUTO = lv_xyt_auto
    EXCEPTIONS
        SYSTEM_ERROR = 1
        LANGUAGE_NOT_FOUND = 2
        NOTICE_OBJECT_NOT_CUSTOMIZED = 3
. " NOTICE_OPEN




ABAP code using 7.40 inline data declarations to call FM NOTICE_OPEN

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 MANDT FROM SY INTO @DATA(ld_x_mandt).
DATA(ld_x_mandt) = SY-MANDT.
 
 
 
 
 
DATA(ld_x_flg_accessibility) = 'X'.
 
 
"SELECT single TDSPRAS FROM THEAD INTO @DATA(ld_x_spras).
 
 
DATA(ld_x_view) = '*'.
 
 
"SELECT single TDOBJECT FROM THEAD INTO @DATA(ld_x_object).
 
"SELECT single TDNAME FROM THEAD INTO @DATA(ld_x_key).
 
"SELECT single TITLE FROM EENO_DYNP INTO @DATA(ld_x_title).
DATA(ld_x_title) = ' '.
 
"SELECT single WMODE FROM EENO_GEN INTO @DATA(ld_x_wmode).
DATA(ld_x_wmode) = ' '.
 
"SELECT single UPD_ONLINE FROM EENO_GEN INTO @DATA(ld_x_upd_online).
DATA(ld_x_upd_online) = ' '.
 
 


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!