SAP CHANGEDOCUMENT_PREPARE_DISPLAY Function Module for









CHANGEDOCUMENT_PREPARE_DISPLAY is a standard changedocument prepare display 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 changedocument prepare display FM, simply by entering the name CHANGEDOCUMENT_PREPARE_DISPLAY into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCD1
Program Name: SAPLSCD1
Main Program: SAPLSCD1
Appliation area: *
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CHANGEDOCUMENT_PREPARE_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_PREPARE_DISPLAY'"
EXPORTING
* IT_CDPOS_STR = "

IMPORTING
ET_CDRED_STR = "

TABLES
* I_CDHDR = "Change document header
* I_CDPOS = "Change document items
* I_CDPOS_UID = "Additional Table for Inclusion of TABKEY>70 Characters
I_CDRED = "edited change document items
* EDITPOS = "
.



IMPORTING Parameters details for CHANGEDOCUMENT_PREPARE_DISPLAY

IT_CDPOS_STR -

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

EXPORTING Parameters details for CHANGEDOCUMENT_PREPARE_DISPLAY

ET_CDRED_STR -

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

TABLES Parameters details for CHANGEDOCUMENT_PREPARE_DISPLAY

I_CDHDR - Change document header

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

I_CDPOS - Change document items

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

I_CDPOS_UID - Additional Table for Inclusion of TABKEY>70 Characters

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

I_CDRED - edited change document items

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

EDITPOS -

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

Copy and paste ABAP code example for CHANGEDOCUMENT_PREPARE_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_cdhdr  TYPE STANDARD TABLE OF CDHDR, "   
lv_et_cdred_str  TYPE CDRED_STR_TAB, "   
lv_it_cdpos_str  TYPE CDPOS_STR_TAB, "   
lt_i_cdpos  TYPE STANDARD TABLE OF CDPOS, "   
lt_i_cdpos_uid  TYPE STANDARD TABLE OF CDPOS_UID, "   
lt_i_cdred  TYPE STANDARD TABLE OF CDRED, "   
lt_editpos  TYPE STANDARD TABLE OF CDSHW. "   

  CALL FUNCTION 'CHANGEDOCUMENT_PREPARE_DISPLAY'  "
    EXPORTING
         IT_CDPOS_STR = lv_it_cdpos_str
    IMPORTING
         ET_CDRED_STR = lv_et_cdred_str
    TABLES
         I_CDHDR = lt_i_cdhdr
         I_CDPOS = lt_i_cdpos
         I_CDPOS_UID = lt_i_cdpos_uid
         I_CDRED = lt_i_cdred
         EDITPOS = lt_editpos
. " CHANGEDOCUMENT_PREPARE_DISPLAY




ABAP code using 7.40 inline data declarations to call FM CHANGEDOCUMENT_PREPARE_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.

 
 
 
 
 
 
 


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!