HTTP_GET_FILE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name HTTP_GET_FILE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SFTP
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'HTTP_GET_FILE' "HTTP Get File
EXPORTING
absolute_uri = " c
* rfc_destination = 'SAPHTTP' " rfcdes-rfcdest RFC Destination
* proxy = " thttp-proxy
* proxy_user = " thttp-puser
* proxy_password = " thttp-ppassword
* user = " c
* password = " c
document_path = " c
* timeout = " i
IMPORTING
status_code = " c
status_text = " c Text for status code
* TABLES
* request_headers = "
* response_headers = "
EXCEPTIONS
CONNECT_FAILED = 1 "
TIMEOUT = 2 "
INTERNAL_ERROR = 3 "
DOCUMENT_ERROR = 4 "
TCPIP_ERROR = 5 "
SYSTEM_FAILURE = 6 "
COMMUNICATION_FAILURE = 7 "
. " HTTP_GET_FILE
The ABAP code below is a full code listing to execute function module HTTP_GET_FILE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_status_code | TYPE C , |
| ld_status_text | TYPE C , |
| it_request_headers | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_request_headers | LIKE LINE OF it_request_headers , |
| it_response_headers | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_response_headers | LIKE LINE OF it_response_headers . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_status_code | TYPE C , |
| ld_absolute_uri | TYPE C , |
| it_request_headers | TYPE STANDARD TABLE OF STRING , |
| wa_request_headers | LIKE LINE OF it_request_headers, |
| ld_status_text | TYPE C , |
| ld_rfc_destination | TYPE RFCDES-RFCDEST , |
| it_response_headers | TYPE STANDARD TABLE OF STRING , |
| wa_response_headers | LIKE LINE OF it_response_headers, |
| ld_proxy | TYPE THTTP-PROXY , |
| ld_proxy_user | TYPE THTTP-PUSER , |
| ld_proxy_password | TYPE THTTP-PPASSWORD , |
| ld_user | TYPE C , |
| ld_password | TYPE C , |
| ld_document_path | TYPE C , |
| ld_timeout | TYPE I . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HTTP_GET_FILE or its description.