SAP ADS2KIPUPL_GET_FILE_ATTRIBUTES Function Module for Get Application Server File Attributes









ADS2KIPUPL_GET_FILE_ATTRIBUTES is a standard ads2kipupl get file attributes SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Application Server File Attributes 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 ads2kipupl get file attributes FM, simply by entering the name ADS2KIPUPL_GET_FILE_ATTRIBUTES into the relevant SAP transaction such as SE37 or SE38.

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



Function ADS2KIPUPL_GET_FILE_ATTRIBUTES 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 'ADS2KIPUPL_GET_FILE_ATTRIBUTES'"Get Application Server File Attributes
EXPORTING
I_FILEPATH = "File Path

IMPORTING
E_FILE_NAME = "File Name
E_ERROR_MESSAGE = "O/S Error Message
E_DIR_NAME = "Directory Name
E_FILE_TYPE = "File Type
E_FILE_LEN = "File Length
E_OWNER = "Owner of the File
E_MODIFICATION_DATE = "Modification Date
E_MODIFICATION_TIME = "Modification Time
E_PERMISSIONS = "File Permissions
E_ERRNO = "Error No (O/S)

EXCEPTIONS
FAILED = 1
.



IMPORTING Parameters details for ADS2KIPUPL_GET_FILE_ATTRIBUTES

I_FILEPATH - File Path

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

EXPORTING Parameters details for ADS2KIPUPL_GET_FILE_ATTRIBUTES

E_FILE_NAME - File Name

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

E_ERROR_MESSAGE - O/S Error Message

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

E_DIR_NAME - Directory Name

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

E_FILE_TYPE - File Type

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

E_FILE_LEN - File Length

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

E_OWNER - Owner of the File

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

E_MODIFICATION_DATE - Modification Date

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

E_MODIFICATION_TIME - Modification Time

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

E_PERMISSIONS - File Permissions

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

E_ERRNO - Error No (O/S)

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

EXCEPTIONS details

FAILED - Failed

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ADS2KIPUPL_GET_FILE_ATTRIBUTES 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_failed  TYPE STRING, "   
lv_i_filepath  TYPE STRING, "   
lv_e_file_name  TYPE STRING, "   
lv_e_error_message  TYPE STRING, "   
lv_e_dir_name  TYPE STRING, "   
lv_e_file_type  TYPE STRING, "   
lv_e_file_len  TYPE INT4, "   
lv_e_owner  TYPE STRING, "   
lv_e_modification_date  TYPE CHAR10, "   
lv_e_modification_time  TYPE CHAR10, "   
lv_e_permissions  TYPE CHAR10, "   
lv_e_errno  TYPE CHAR3. "   

  CALL FUNCTION 'ADS2KIPUPL_GET_FILE_ATTRIBUTES'  "Get Application Server File Attributes
    EXPORTING
         I_FILEPATH = lv_i_filepath
    IMPORTING
         E_FILE_NAME = lv_e_file_name
         E_ERROR_MESSAGE = lv_e_error_message
         E_DIR_NAME = lv_e_dir_name
         E_FILE_TYPE = lv_e_file_type
         E_FILE_LEN = lv_e_file_len
         E_OWNER = lv_e_owner
         E_MODIFICATION_DATE = lv_e_modification_date
         E_MODIFICATION_TIME = lv_e_modification_time
         E_PERMISSIONS = lv_e_permissions
         E_ERRNO = lv_e_errno
    EXCEPTIONS
        FAILED = 1
. " ADS2KIPUPL_GET_FILE_ATTRIBUTES




ABAP code using 7.40 inline data declarations to call FM ADS2KIPUPL_GET_FILE_ATTRIBUTES

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!