SAP DOC_DISPLAY_INITIALIZE Function Module for









DOC_DISPLAY_INITIALIZE is a standard doc display initialize SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 doc display initialize FM, simply by entering the name DOC_DISPLAY_INITIALIZE into the relevant SAP transaction such as SE37 or SE38.

Function Group: DOC_DISPLAY
Program Name: SAPLDOC_DISPLAY
Main Program: SAPLDOC_DISPLAY
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DOC_DISPLAY_INITIALIZE 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 'DOC_DISPLAY_INITIALIZE'"
EXPORTING
REPID = "Program Name
* CLOSE_BUTTON = 'X' "
* ANNOTATION_ON = ' ' "
* INIT_ONLY = ' ' "
* FROG = 'X' "
* NO_BUTTON = ' ' "
DYNNR = "Screen number
* CONTAINER_NAME = "
* DISPLAY_STATE = 'U' "
* SIDE = 'L' "
* EXTENSION = 300 "
* AS_DIALOGBOX = ' ' "
* CAPTION = "
* INTERNET_ACCESS = ' ' "

TABLES
* DOC_ID_TAB = "

EXCEPTIONS
INTERNAL_ERROR = 1
.



IMPORTING Parameters details for DOC_DISPLAY_INITIALIZE

REPID - Program Name

Data type: SY-REPID
Optional: No
Call by Reference: Yes

CLOSE_BUTTON -

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

ANNOTATION_ON -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

INIT_ONLY -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

FROG -

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

NO_BUTTON -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

DYNNR - Screen number

Data type: SY-DYNNR
Optional: No
Call by Reference: Yes

CONTAINER_NAME -

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

DISPLAY_STATE -

Data type: CHAR1
Default: 'U'
Optional: Yes
Call by Reference: Yes

SIDE -

Data type: CHAR1
Default: 'L'
Optional: Yes
Call by Reference: Yes

EXTENSION -

Data type: I
Default: 300
Optional: Yes
Call by Reference: Yes

AS_DIALOGBOX -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

CAPTION -

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

INTERNET_ACCESS -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for DOC_DISPLAY_INITIALIZE

DOC_ID_TAB -

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

EXCEPTIONS details

INTERNAL_ERROR -

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

Copy and paste ABAP code example for DOC_DISPLAY_INITIALIZE 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_repid  TYPE SY-REPID, "   
lt_doc_id_tab  TYPE STANDARD TABLE OF DOC_ID_STRUCT, "   
lv_internal_error  TYPE DOC_ID_STRUCT, "   
lv_close_button  TYPE CHAR1, "   'X'
lv_annotation_on  TYPE CHAR1, "   SPACE
lv_init_only  TYPE CHAR1, "   SPACE
lv_frog  TYPE CHAR1, "   'X'
lv_no_button  TYPE CHAR1, "   SPACE
lv_dynnr  TYPE SY-DYNNR, "   
lv_container_name  TYPE C, "   
lv_display_state  TYPE CHAR1, "   'U'
lv_side  TYPE CHAR1, "   'L'
lv_extension  TYPE I, "   300
lv_as_dialogbox  TYPE CHAR1, "   SPACE
lv_caption  TYPE C, "   
lv_internet_access  TYPE CHAR1. "   SPACE

  CALL FUNCTION 'DOC_DISPLAY_INITIALIZE'  "
    EXPORTING
         REPID = lv_repid
         CLOSE_BUTTON = lv_close_button
         ANNOTATION_ON = lv_annotation_on
         INIT_ONLY = lv_init_only
         FROG = lv_frog
         NO_BUTTON = lv_no_button
         DYNNR = lv_dynnr
         CONTAINER_NAME = lv_container_name
         DISPLAY_STATE = lv_display_state
         SIDE = lv_side
         EXTENSION = lv_extension
         AS_DIALOGBOX = lv_as_dialogbox
         CAPTION = lv_caption
         INTERNET_ACCESS = lv_internet_access
    TABLES
         DOC_ID_TAB = lt_doc_id_tab
    EXCEPTIONS
        INTERNAL_ERROR = 1
. " DOC_DISPLAY_INITIALIZE




ABAP code using 7.40 inline data declarations to call FM DOC_DISPLAY_INITIALIZE

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_repid).
 
 
 
DATA(ld_close_button) = 'X'.
 
DATA(ld_annotation_on) = ' '.
 
DATA(ld_init_only) = ' '.
 
DATA(ld_frog) = 'X'.
 
DATA(ld_no_button) = ' '.
 
"SELECT single DYNNR FROM SY INTO @DATA(ld_dynnr).
 
 
DATA(ld_display_state) = 'U'.
 
DATA(ld_side) = 'L'.
 
DATA(ld_extension) = 300.
 
DATA(ld_as_dialogbox) = ' '.
 
 
DATA(ld_internet_access) = ' '.
 


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!