SAP EXIT_SAPLCAD_DESKTOP_004 Function Module for Customer exit function module
EXIT_SAPLCAD_DESKTOP_004 is a standard exit saplcad desktop 004 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Customer exit function module 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 exit saplcad desktop 004 FM, simply by entering the name EXIT_SAPLCAD_DESKTOP_004 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XCADDESKTOP
Program Name: SAPLXCADDESKTOP
Main Program: SAPLXCADDESKTOP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function EXIT_SAPLCAD_DESKTOP_004 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 'EXIT_SAPLCAD_DESKTOP_004'"Customer exit function module.
EXPORTING
* FUNCTION_CODE = ' ' "Function code that PAI exploded
IMPORTING
UPDATE = "Document management indicator
TABLES
* DOCUMENTS_CMP = "Document data (identifiable)
* FILES_CMP = "Documents originals (identifiable)
* STRUCTURE_CMP = "Structure data for display in browser (identifiable)
* DOCUMENTS_SEL = "Document data (identifiable)
* FILES_SEL = "Documents originals (identifiable)
* STRUCTURE_SEL = "Structure data for display in browser (identifiable)
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for EXIT_SAPLCAD_DESKTOP_004
FUNCTION_CODE - Function code that PAI exploded
Data type: SYUCOMMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EXIT_SAPLCAD_DESKTOP_004
UPDATE - Document management indicator
Data type: BAPI_DOC_AUX-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EXIT_SAPLCAD_DESKTOP_004
DOCUMENTS_CMP - Document data (identifiable)
Data type: DMU_DOCUMENTOptional: Yes
Call by Reference: Yes
FILES_CMP - Documents originals (identifiable)
Data type: DMU_FILEOptional: Yes
Call by Reference: Yes
STRUCTURE_CMP - Structure data for display in browser (identifiable)
Data type: DMU_TREEOptional: Yes
Call by Reference: Yes
DOCUMENTS_SEL - Document data (identifiable)
Data type: DMU_DOCUMENTOptional: Yes
Call by Reference: Yes
FILES_SEL - Documents originals (identifiable)
Data type: DMU_FILEOptional: Yes
Call by Reference: Yes
STRUCTURE_SEL - Structure data for display in browser (identifiable)
Data type: DMU_TREEOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR - Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLCAD_DESKTOP_004 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_error | TYPE STRING, " | |||
lv_update | TYPE BAPI_DOC_AUX-FLAG, " | |||
lt_documents_cmp | TYPE STANDARD TABLE OF DMU_DOCUMENT, " | |||
lv_function_code | TYPE SYUCOMM, " SPACE | |||
lt_files_cmp | TYPE STANDARD TABLE OF DMU_FILE, " | |||
lt_structure_cmp | TYPE STANDARD TABLE OF DMU_TREE, " | |||
lt_documents_sel | TYPE STANDARD TABLE OF DMU_DOCUMENT, " | |||
lt_files_sel | TYPE STANDARD TABLE OF DMU_FILE, " | |||
lt_structure_sel | TYPE STANDARD TABLE OF DMU_TREE. " |
  CALL FUNCTION 'EXIT_SAPLCAD_DESKTOP_004' "Customer exit function module |
EXPORTING | ||
FUNCTION_CODE | = lv_function_code | |
IMPORTING | ||
UPDATE | = lv_update | |
TABLES | ||
DOCUMENTS_CMP | = lt_documents_cmp | |
FILES_CMP | = lt_files_cmp | |
STRUCTURE_CMP | = lt_structure_cmp | |
DOCUMENTS_SEL | = lt_documents_sel | |
FILES_SEL | = lt_files_sel | |
STRUCTURE_SEL | = lt_structure_sel | |
EXCEPTIONS | ||
ERROR = 1 | ||
. " EXIT_SAPLCAD_DESKTOP_004 |
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLCAD_DESKTOP_004
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 FLAG FROM BAPI_DOC_AUX INTO @DATA(ld_update). | ||||
DATA(ld_function_code) | = ' '. | |||
Search for further information about these or an SAP related objects