SAP DOCUMENT_HANDLING_REMOTE Function Module for NOTRANSL: Neue Version des FB DOCUMENT_HANDLING_REMOTE ohne transaction us
DOCUMENT_HANDLING_REMOTE is a standard document handling remote 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: Neue Version des FB DOCUMENT_HANDLING_REMOTE ohne transaction us 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 document handling remote FM, simply by entering the name DOCUMENT_HANDLING_REMOTE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CV00
Program Name: SAPLCV00
Main Program: SAPLCV00
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function DOCUMENT_HANDLING_REMOTE 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 'DOCUMENT_HANDLING_REMOTE'"NOTRANSL: Neue Version des FB DOCUMENT_HANDLING_REMOTE ohne transaction us.
EXPORTING
DATA = "DRAW data
* IF_COPY_COPY_CLASS_DATA = ' ' "
* IF_COPY_COPY_LINKS = 'X' "
* UPDATE_IMMEDIATELY = 'X' "
* TEXTS_DELETE = ' ' "
* ALE_FLAG = '' "
* LANGU = SY-LANGU "
LOGFIELD = "
* MODE = 'N' "
* SHORTTEXT = ' ' "
* STATUS = ' ' "
TRANSACTION = "
* UPDATE = 'A' "
* UAME_NOT_PROPOSE_IN = ' ' "If X, UNAME not proposed in CV01
* OLINKS_DELETE = ' ' "
IMPORTING
SUBRC = "
E_DOKAR = "
E_DOKNR = "
E_DOKTL = "
E_DOKVR = "
RETURN = "Return parameter
TABLES
* CONNECTIONS = "
* TEXTS = "
* Z_FILES_ADD = "
* Z_FILES_DEL = "
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCV00_001 Exit for check_in before files transport
EXIT_SAPLCV00_002 Exit for check in after file transport
IMPORTING Parameters details for DOCUMENT_HANDLING_REMOTE
DATA - DRAW data
Data type: DRAWOptional: No
Call by Reference: No ( called with pass by value option)
IF_COPY_COPY_CLASS_DATA -
Data type: MCDOK-MARAFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_COPY_COPY_LINKS -
Data type: MCDOK-ACTIONDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
UPDATE_IMMEDIATELY -
Data type: MCDOK-MARAFDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXTS_DELETE -
Data type: MCDOK-MARAFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ALE_FLAG -
Data type: MCDOK-MARAFDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGU -
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
LOGFIELD -
Data type: DRAP-PROTFOptional: No
Call by Reference: No ( called with pass by value option)
MODE -
Data type: MCDOK-ACTIONDefault: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHORTTEXT -
Data type: DRAT-DKTXTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
STATUS -
Data type: TDWST-STABKDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TRANSACTION -
Data type: SY-TCODEOptional: No
Call by Reference: No ( called with pass by value option)
UPDATE -
Data type: MCDOK-ACTIONDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
UAME_NOT_PROPOSE_IN - If X, UNAME not proposed in CV01
Data type: MCDOK-MARAFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
OLINKS_DELETE -
Data type: MCDOK-MARAFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DOCUMENT_HANDLING_REMOTE
SUBRC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
E_DOKAR -
Data type: DRAW-DOKAROptional: No
Call by Reference: No ( called with pass by value option)
E_DOKNR -
Data type: DRAW-DOKNROptional: No
Call by Reference: No ( called with pass by value option)
E_DOKTL -
Data type: DRAW-DOKTLOptional: No
Call by Reference: No ( called with pass by value option)
E_DOKVR -
Data type: DRAW-DOKVROptional: No
Call by Reference: No ( called with pass by value option)
RETURN - Return parameter
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DOCUMENT_HANDLING_REMOTE
CONNECTIONS -
Data type: DRADOptional: Yes
Call by Reference: No ( called with pass by value option)
TEXTS -
Data type: DRATOptional: Yes
Call by Reference: No ( called with pass by value option)
Z_FILES_ADD -
Data type: DRAZOptional: Yes
Call by Reference: No ( called with pass by value option)
Z_FILES_DEL -
Data type: DRAZOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DOCUMENT_HANDLING_REMOTE 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_data | TYPE DRAW, " | |||
| lv_subrc | TYPE SY-SUBRC, " | |||
| lt_connections | TYPE STANDARD TABLE OF DRAD, " | |||
| lv_if_copy_copy_class_data | TYPE MCDOK-MARAF, " ' ' | |||
| lv_if_copy_copy_links | TYPE MCDOK-ACTION, " 'X' | |||
| lv_update_immediately | TYPE MCDOK-MARAF, " 'X' | |||
| lv_texts_delete | TYPE MCDOK-MARAF, " ' ' | |||
| lv_ale_flag | TYPE MCDOK-MARAF, " '' | |||
| lv_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lt_texts | TYPE STANDARD TABLE OF DRAT, " | |||
| lv_e_dokar | TYPE DRAW-DOKAR, " | |||
| lv_logfield | TYPE DRAP-PROTF, " | |||
| lv_mode | TYPE MCDOK-ACTION, " 'N' | |||
| lv_e_doknr | TYPE DRAW-DOKNR, " | |||
| lt_z_files_add | TYPE STANDARD TABLE OF DRAZ, " | |||
| lv_e_doktl | TYPE DRAW-DOKTL, " | |||
| lv_shorttext | TYPE DRAT-DKTXT, " ' ' | |||
| lt_z_files_del | TYPE STANDARD TABLE OF DRAZ, " | |||
| lv_status | TYPE TDWST-STABK, " ' ' | |||
| lv_e_dokvr | TYPE DRAW-DOKVR, " | |||
| lv_return | TYPE BAPIRET2, " | |||
| lv_transaction | TYPE SY-TCODE, " | |||
| lv_update | TYPE MCDOK-ACTION, " 'A' | |||
| lv_uame_not_propose_in | TYPE MCDOK-MARAF, " ' ' | |||
| lv_olinks_delete | TYPE MCDOK-MARAF. " ' ' |
|   CALL FUNCTION 'DOCUMENT_HANDLING_REMOTE' "NOTRANSL: Neue Version des FB DOCUMENT_HANDLING_REMOTE ohne transaction us |
| EXPORTING | ||
| DATA | = lv_data | |
| IF_COPY_COPY_CLASS_DATA | = lv_if_copy_copy_class_data | |
| IF_COPY_COPY_LINKS | = lv_if_copy_copy_links | |
| UPDATE_IMMEDIATELY | = lv_update_immediately | |
| TEXTS_DELETE | = lv_texts_delete | |
| ALE_FLAG | = lv_ale_flag | |
| LANGU | = lv_langu | |
| LOGFIELD | = lv_logfield | |
| MODE | = lv_mode | |
| SHORTTEXT | = lv_shorttext | |
| STATUS | = lv_status | |
| TRANSACTION | = lv_transaction | |
| UPDATE | = lv_update | |
| UAME_NOT_PROPOSE_IN | = lv_uame_not_propose_in | |
| OLINKS_DELETE | = lv_olinks_delete | |
| IMPORTING | ||
| SUBRC | = lv_subrc | |
| E_DOKAR | = lv_e_dokar | |
| E_DOKNR | = lv_e_doknr | |
| E_DOKTL | = lv_e_doktl | |
| E_DOKVR | = lv_e_dokvr | |
| RETURN | = lv_return | |
| TABLES | ||
| CONNECTIONS | = lt_connections | |
| TEXTS | = lt_texts | |
| Z_FILES_ADD | = lt_z_files_add | |
| Z_FILES_DEL | = lt_z_files_del | |
| . " DOCUMENT_HANDLING_REMOTE | ||
ABAP code using 7.40 inline data declarations to call FM DOCUMENT_HANDLING_REMOTE
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 SUBRC FROM SY INTO @DATA(ld_subrc). | ||||
| "SELECT single MARAF FROM MCDOK INTO @DATA(ld_if_copy_copy_class_data). | ||||
| DATA(ld_if_copy_copy_class_data) | = ' '. | |||
| "SELECT single ACTION FROM MCDOK INTO @DATA(ld_if_copy_copy_links). | ||||
| DATA(ld_if_copy_copy_links) | = 'X'. | |||
| "SELECT single MARAF FROM MCDOK INTO @DATA(ld_update_immediately). | ||||
| DATA(ld_update_immediately) | = 'X'. | |||
| "SELECT single MARAF FROM MCDOK INTO @DATA(ld_texts_delete). | ||||
| DATA(ld_texts_delete) | = ' '. | |||
| "SELECT single MARAF FROM MCDOK INTO @DATA(ld_ale_flag). | ||||
| DATA(ld_ale_flag) | = ''. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_langu). | ||||
| DATA(ld_langu) | = SY-LANGU. | |||
| "SELECT single DOKAR FROM DRAW INTO @DATA(ld_e_dokar). | ||||
| "SELECT single PROTF FROM DRAP INTO @DATA(ld_logfield). | ||||
| "SELECT single ACTION FROM MCDOK INTO @DATA(ld_mode). | ||||
| DATA(ld_mode) | = 'N'. | |||
| "SELECT single DOKNR FROM DRAW INTO @DATA(ld_e_doknr). | ||||
| "SELECT single DOKTL FROM DRAW INTO @DATA(ld_e_doktl). | ||||
| "SELECT single DKTXT FROM DRAT INTO @DATA(ld_shorttext). | ||||
| DATA(ld_shorttext) | = ' '. | |||
| "SELECT single STABK FROM TDWST INTO @DATA(ld_status). | ||||
| DATA(ld_status) | = ' '. | |||
| "SELECT single DOKVR FROM DRAW INTO @DATA(ld_e_dokvr). | ||||
| "SELECT single TCODE FROM SY INTO @DATA(ld_transaction). | ||||
| "SELECT single ACTION FROM MCDOK INTO @DATA(ld_update). | ||||
| DATA(ld_update) | = 'A'. | |||
| "SELECT single MARAF FROM MCDOK INTO @DATA(ld_uame_not_propose_in). | ||||
| DATA(ld_uame_not_propose_in) | = ' '. | |||
| "SELECT single MARAF FROM MCDOK INTO @DATA(ld_olinks_delete). | ||||
| DATA(ld_olinks_delete) | = ' '. | |||
Search for further information about these or an SAP related objects