SAP DX_GET_FILE_PORT Function Module for
DX_GET_FILE_PORT is a standard dx get file port 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 dx get file port FM, simply by entering the name DX_GET_FILE_PORT into the relevant SAP transaction such as SE37 or SE38.
Function Group: DX_OBJECT_HLP
Program Name: SAPLDX_OBJECT_HLP
Main Program: SAPLDX_OBJECT_HLP
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DX_GET_FILE_PORT 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 'DX_GET_FILE_PORT'".
EXPORTING
OBJECTTYPE = "
PROGTYPE = "Program Type
LOADPRG = "
LOGSYS = "
INB_FILENAME = "File Name
INB_FILETYPE = "File type (L=logical, P=physical)
IMPORTING
MESTYPE = "
PORT = "
FILENAME = "
EXCEPTIONS
NO_ALE_IDOC_INTERFACE = 1 CANCELED_BY_USER = 2 ERROR_IN_PARTNERAGREEMENT = 3 ERROR_IN_PORTDEFINITION = 4 OUTMOD_IS_DIRECT = 5 ERROR_IN_FILENAME = 6 OWN_LOGSYS = 7 NO_AUTHORITY = 8
IMPORTING Parameters details for DX_GET_FILE_PORT
OBJECTTYPE -
Data type: TDXLOADP-OBJECTTYPEOptional: No
Call by Reference: Yes
PROGTYPE - Program Type
Data type: TDXLOADP-PROGTYPEOptional: No
Call by Reference: Yes
LOADPRG -
Data type: TDXLOADP-PROGNAMEOptional: No
Call by Reference: Yes
LOGSYS -
Data type: TBDLS-LOGSYSOptional: No
Call by Reference: Yes
INB_FILENAME - File Name
Data type: DXFILE-FILENAMEOptional: No
Call by Reference: Yes
INB_FILETYPE - File type (L=logical, P=physical)
Data type: DXFILE-FILETYPEOptional: No
Call by Reference: Yes
EXPORTING Parameters details for DX_GET_FILE_PORT
MESTYPE -
Data type: EDIDC-MESTYPOptional: No
Call by Reference: No ( called with pass by value option)
PORT -
Data type: EDIPORT-PORTOptional: No
Call by Reference: No ( called with pass by value option)
FILENAME -
Data type: DXFILEN-FILENAMEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ALE_IDOC_INTERFACE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CANCELED_BY_USER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_IN_PARTNERAGREEMENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_IN_PORTDEFINITION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OUTMOD_IS_DIRECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_IN_FILENAME -
Data type:Optional: No
Call by Reference: Yes
OWN_LOGSYS -
Data type:Optional: No
Call by Reference: Yes
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for DX_GET_FILE_PORT 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_mestype | TYPE EDIDC-MESTYP, " | |||
| lv_objecttype | TYPE TDXLOADP-OBJECTTYPE, " | |||
| lv_no_ale_idoc_interface | TYPE TDXLOADP, " | |||
| lv_port | TYPE EDIPORT-PORT, " | |||
| lv_progtype | TYPE TDXLOADP-PROGTYPE, " | |||
| lv_canceled_by_user | TYPE TDXLOADP, " | |||
| lv_loadprg | TYPE TDXLOADP-PROGNAME, " | |||
| lv_filename | TYPE DXFILEN-FILENAME, " | |||
| lv_error_in_partneragreement | TYPE DXFILEN, " | |||
| lv_logsys | TYPE TBDLS-LOGSYS, " | |||
| lv_error_in_portdefinition | TYPE TBDLS, " | |||
| lv_inb_filename | TYPE DXFILE-FILENAME, " | |||
| lv_outmod_is_direct | TYPE DXFILE, " | |||
| lv_inb_filetype | TYPE DXFILE-FILETYPE, " | |||
| lv_error_in_filename | TYPE DXFILE, " | |||
| lv_own_logsys | TYPE DXFILE, " | |||
| lv_no_authority | TYPE DXFILE. " |
|   CALL FUNCTION 'DX_GET_FILE_PORT' " |
| EXPORTING | ||
| OBJECTTYPE | = lv_objecttype | |
| PROGTYPE | = lv_progtype | |
| LOADPRG | = lv_loadprg | |
| LOGSYS | = lv_logsys | |
| INB_FILENAME | = lv_inb_filename | |
| INB_FILETYPE | = lv_inb_filetype | |
| IMPORTING | ||
| MESTYPE | = lv_mestype | |
| PORT | = lv_port | |
| FILENAME | = lv_filename | |
| EXCEPTIONS | ||
| NO_ALE_IDOC_INTERFACE = 1 | ||
| CANCELED_BY_USER = 2 | ||
| ERROR_IN_PARTNERAGREEMENT = 3 | ||
| ERROR_IN_PORTDEFINITION = 4 | ||
| OUTMOD_IS_DIRECT = 5 | ||
| ERROR_IN_FILENAME = 6 | ||
| OWN_LOGSYS = 7 | ||
| NO_AUTHORITY = 8 | ||
| . " DX_GET_FILE_PORT | ||
ABAP code using 7.40 inline data declarations to call FM DX_GET_FILE_PORT
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 MESTYP FROM EDIDC INTO @DATA(ld_mestype). | ||||
| "SELECT single OBJECTTYPE FROM TDXLOADP INTO @DATA(ld_objecttype). | ||||
| "SELECT single PORT FROM EDIPORT INTO @DATA(ld_port). | ||||
| "SELECT single PROGTYPE FROM TDXLOADP INTO @DATA(ld_progtype). | ||||
| "SELECT single PROGNAME FROM TDXLOADP INTO @DATA(ld_loadprg). | ||||
| "SELECT single FILENAME FROM DXFILEN INTO @DATA(ld_filename). | ||||
| "SELECT single LOGSYS FROM TBDLS INTO @DATA(ld_logsys). | ||||
| "SELECT single FILENAME FROM DXFILE INTO @DATA(ld_inb_filename). | ||||
| "SELECT single FILETYPE FROM DXFILE INTO @DATA(ld_inb_filetype). | ||||
Search for further information about these or an SAP related objects