SAP CHANGEDOCUMENT_DISPLAY Function Module for Display Change Documents









CHANGEDOCUMENT_DISPLAY is a standard changedocument display SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display Change Documents 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 changedocument display FM, simply by entering the name CHANGEDOCUMENT_DISPLAY into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCD6
Program Name: SAPLSCD6
Main Program: SAPLSCD6
Appliation area: S
Release date: 02-Mar-2000
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CHANGEDOCUMENT_DISPLAY 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 'CHANGEDOCUMENT_DISPLAY'"Display Change Documents
EXPORTING
I_APPLICATIONID = "
I_SCREEN_START_COLUMN = 0 "
I_SCREEN_END_LINE = 0 "
I_SCREEN_END_COLUMN = 0 "
* I_CALLBACK_PF_STATUS_SET = ' ' "
* IT_EVENTS = "
* IT_CDRED_STR = "Change Documents, Structure for Display of STRING Fields
* IS_LAYOUT = "
* IS_VARIANT = "Layout (External Use)
* FLG_AUTOCONDENSE = ' ' "
* I_CB_PROGRAM = "PROGRAM: Name of ABAP/4 program
* I_OBJECTCLAS = "
* I_TIMEZONE = "Time Zone
* IS_SEL_HIDE = "
I_SCREEN_START_LINE = 0 "

TABLES
I_CDRED = "
.



IMPORTING Parameters details for CHANGEDOCUMENT_DISPLAY

I_APPLICATIONID -

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

I_SCREEN_START_COLUMN -

Data type:
Optional: No
Call by Reference: Yes

I_SCREEN_END_LINE -

Data type:
Optional: No
Call by Reference: Yes

I_SCREEN_END_COLUMN -

Data type:
Optional: No
Call by Reference: Yes

I_CALLBACK_PF_STATUS_SET -

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

IT_EVENTS -

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

IT_CDRED_STR - Change Documents, Structure for Display of STRING Fields

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

IS_LAYOUT -

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

IS_VARIANT - Layout (External Use)

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

FLG_AUTOCONDENSE -

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

I_CB_PROGRAM - PROGRAM: Name of ABAP/4 program

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

I_OBJECTCLAS -

Data type: CDHDR-OBJECTCLAS
Optional: Yes
Call by Reference: Yes

I_TIMEZONE - Time Zone

Data type: TTZZ-TZONE
Optional: Yes
Call by Reference: Yes

IS_SEL_HIDE -

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

I_SCREEN_START_LINE -

Data type:
Optional: No
Call by Reference: Yes

TABLES Parameters details for CHANGEDOCUMENT_DISPLAY

I_CDRED -

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

Copy and paste ABAP code example for CHANGEDOCUMENT_DISPLAY 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_i_cdred  TYPE STANDARD TABLE OF CDRED, "   
lv_i_applicationid  TYPE REPID, "   
lv_i_screen_start_column  TYPE REPID, "   0
lv_i_screen_end_line  TYPE REPID, "   0
lv_i_screen_end_column  TYPE REPID, "   0
lv_i_callback_pf_status_set  TYPE SLIS_FORMNAME, "   SPACE
lv_it_events  TYPE SLIS_T_EVENT, "   
lv_it_cdred_str  TYPE CDRED_STR_TAB, "   
lv_is_layout  TYPE SLIS_LAYOUT_ALV, "   
lv_is_variant  TYPE DISVARIANT, "   
lv_flg_autocondense  TYPE C, "   SPACE
lv_i_cb_program  TYPE SY-REPID, "   
lv_i_objectclas  TYPE CDHDR-OBJECTCLAS, "   
lv_i_timezone  TYPE TTZZ-TZONE, "   
lv_is_sel_hide  TYPE SLIS_SEL_HIDE_ALV, "   
lv_i_screen_start_line  TYPE SLIS_SEL_HIDE_ALV. "   0

  CALL FUNCTION 'CHANGEDOCUMENT_DISPLAY'  "Display Change Documents
    EXPORTING
         I_APPLICATIONID = lv_i_applicationid
         I_SCREEN_START_COLUMN = lv_i_screen_start_column
         I_SCREEN_END_LINE = lv_i_screen_end_line
         I_SCREEN_END_COLUMN = lv_i_screen_end_column
         I_CALLBACK_PF_STATUS_SET = lv_i_callback_pf_status_set
         IT_EVENTS = lv_it_events
         IT_CDRED_STR = lv_it_cdred_str
         IS_LAYOUT = lv_is_layout
         IS_VARIANT = lv_is_variant
         FLG_AUTOCONDENSE = lv_flg_autocondense
         I_CB_PROGRAM = lv_i_cb_program
         I_OBJECTCLAS = lv_i_objectclas
         I_TIMEZONE = lv_i_timezone
         IS_SEL_HIDE = lv_is_sel_hide
         I_SCREEN_START_LINE = lv_i_screen_start_line
    TABLES
         I_CDRED = lt_i_cdred
. " CHANGEDOCUMENT_DISPLAY




ABAP code using 7.40 inline data declarations to call FM CHANGEDOCUMENT_DISPLAY

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.

 
 
 
 
 
DATA(ld_i_callback_pf_status_set) = ' '.
 
 
 
 
 
DATA(ld_flg_autocondense) = ' '.
 
"SELECT single REPID FROM SY INTO @DATA(ld_i_cb_program).
 
"SELECT single OBJECTCLAS FROM CDHDR INTO @DATA(ld_i_objectclas).
 
"SELECT single TZONE FROM TTZZ INTO @DATA(ld_i_timezone).
 
 
 


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!