SAP C_DESK_DISPLAY_DOCUMENT_STRUCT Function Module for NOTRANSL: SAP Sicht (tree, screen 1001)









C_DESK_DISPLAY_DOCUMENT_STRUCT is a standard c desk display document struct SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: SAP Sicht (tree, screen 1001) 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 c desk display document struct FM, simply by entering the name C_DESK_DISPLAY_DOCUMENT_STRUCT into the relevant SAP transaction such as SE37 or SE38.

Function Group: CDESK
Program Name: SAPLCDESK
Main Program: SAPLCDESK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function C_DESK_DISPLAY_DOCUMENT_STRUCT 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 'C_DESK_DISPLAY_DOCUMENT_STRUCT'"NOTRANSL: SAP Sicht (tree, screen 1001)
EXPORTING
* DOCUMENT = "BAPIS DMS: Document Key
* VALIDFROM = SYST-DATUM "Date and Time, Current (Application Server) Date
* CALLBACK = 'X' "
* HOSTNAME = "Network Address
* CADSYSTEM = 'PROE' "CAD System
* WORKDIRECTORY = ' ' "Path for original file
* SAP_VIEW_ONLY = ' ' "
* CHANGENO = ' ' "Change Number

IMPORTING
RETURN = "Return Parameter(s)

TABLES
* CAD_REL_APPLS = "
* CHECKIN_REL_APPLS = "
* CHECKOUT_REL_APPLS = "
* FILE_EXT_ORDER = "Table with File Extensions
.



IMPORTING Parameters details for C_DESK_DISPLAY_DOCUMENT_STRUCT

DOCUMENT - BAPIS DMS: Document Key

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

VALIDFROM - Date and Time, Current (Application Server) Date

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

CALLBACK -

Data type: BAPI_DOC_AUX-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

HOSTNAME - Network Address

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

CADSYSTEM - CAD System

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

WORKDIRECTORY - Path for original file

Data type: BAPI_DOC_FILES2-DOCPATH
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAP_VIEW_ONLY -

Data type: BAPI_DOC_AUX-FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGENO - Change Number

Data type: BAPI_DOC_DRAW-ECNUMBER
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for C_DESK_DISPLAY_DOCUMENT_STRUCT

RETURN - Return Parameter(s)

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

TABLES Parameters details for C_DESK_DISPLAY_DOCUMENT_STRUCT

CAD_REL_APPLS -

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

CHECKIN_REL_APPLS -

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

CHECKOUT_REL_APPLS -

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

FILE_EXT_ORDER - Table with File Extensions

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

Copy and paste ABAP code example for C_DESK_DISPLAY_DOCUMENT_STRUCT 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_return  TYPE BAPIRET2, "   
lv_document  TYPE BAPI_DOC_KEYS, "   
lt_cad_rel_appls  TYPE STANDARD TABLE OF BAPI_DOC_APPLICATIONS, "   
lv_validfrom  TYPE SY-DATUM, "   SYST-DATUM
lt_checkin_rel_appls  TYPE STANDARD TABLE OF BAPI_DOC_APPLICATIONS, "   
lv_callback  TYPE BAPI_DOC_AUX-FLAG, "   'X'
lt_checkout_rel_appls  TYPE STANDARD TABLE OF BAPI_DOC_APPLICATIONS, "   
lv_hostname  TYPE TDWD-NTADR, "   
lt_file_ext_order  TYPE STANDARD TABLE OF BAPI_DOC_FILEEXTENSIONS, "   
lv_cadsystem  TYPE CAD_SYSTEM, "   'PROE'
lv_workdirectory  TYPE BAPI_DOC_FILES2-DOCPATH, "   SPACE
lv_sap_view_only  TYPE BAPI_DOC_AUX-FLAG, "   SPACE
lv_changeno  TYPE BAPI_DOC_DRAW-ECNUMBER. "   SPACE

  CALL FUNCTION 'C_DESK_DISPLAY_DOCUMENT_STRUCT'  "NOTRANSL: SAP Sicht (tree, screen 1001)
    EXPORTING
         DOCUMENT = lv_document
         VALIDFROM = lv_validfrom
         CALLBACK = lv_callback
         HOSTNAME = lv_hostname
         CADSYSTEM = lv_cadsystem
         WORKDIRECTORY = lv_workdirectory
         SAP_VIEW_ONLY = lv_sap_view_only
         CHANGENO = lv_changeno
    IMPORTING
         RETURN = lv_return
    TABLES
         CAD_REL_APPLS = lt_cad_rel_appls
         CHECKIN_REL_APPLS = lt_checkin_rel_appls
         CHECKOUT_REL_APPLS = lt_checkout_rel_appls
         FILE_EXT_ORDER = lt_file_ext_order
. " C_DESK_DISPLAY_DOCUMENT_STRUCT




ABAP code using 7.40 inline data declarations to call FM C_DESK_DISPLAY_DOCUMENT_STRUCT

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 DATUM FROM SY INTO @DATA(ld_validfrom).
DATA(ld_validfrom) = SYST-DATUM.
 
 
"SELECT single FLAG FROM BAPI_DOC_AUX INTO @DATA(ld_callback).
DATA(ld_callback) = 'X'.
 
 
"SELECT single NTADR FROM TDWD INTO @DATA(ld_hostname).
 
 
DATA(ld_cadsystem) = 'PROE'.
 
"SELECT single DOCPATH FROM BAPI_DOC_FILES2 INTO @DATA(ld_workdirectory).
DATA(ld_workdirectory) = ' '.
 
"SELECT single FLAG FROM BAPI_DOC_AUX INTO @DATA(ld_sap_view_only).
DATA(ld_sap_view_only) = ' '.
 
"SELECT single ECNUMBER FROM BAPI_DOC_DRAW INTO @DATA(ld_changeno).
DATA(ld_changeno) = ' '.
 


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!