SAP HTTP_POST_FILE_EX Function Module for









HTTP_POST_FILE_EX is a standard http post file ex 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 http post file ex FM, simply by entering the name HTTP_POST_FILE_EX into the relevant SAP transaction such as SE37 or SE38.

Function Group: SFTP
Program Name: SAPLSFTP
Main Program: SAPLSFTP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HTTP_POST_FILE_EX 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 'HTTP_POST_FILE_EX'"
EXPORTING
RFC_DESTINATION = "

IMPORTING
SUCCESSCOUNT = "
FAILURECOUNT = "

TABLES
POSTFILES = "

EXCEPTIONS
CONNECT_FAILED = 1 TIMEOUT = 2 INTERNAL_ERROR = 3 COMPONENT_ERROR = 4 TCPIP_ERROR = 5 SYSTEM_FAILURE = 6 COMMUNICATION_FAILURE = 7 URL_FAILURE = 8
.



IMPORTING Parameters details for HTTP_POST_FILE_EX

RFC_DESTINATION -

Data type: RFCDES-RFCDEST
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for HTTP_POST_FILE_EX

SUCCESSCOUNT -

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

FAILURECOUNT -

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

TABLES Parameters details for HTTP_POST_FILE_EX

POSTFILES -

Data type: HTTP_REQUEST_POST
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CONNECT_FAILED -

Data type:
Optional: No
Call by Reference: Yes

TIMEOUT -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

COMPONENT_ERROR -

Data type:
Optional: No
Call by Reference: Yes

TCPIP_ERROR -

Data type:
Optional: No
Call by Reference: Yes

SYSTEM_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

COMMUNICATION_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

URL_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HTTP_POST_FILE_EX 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:
lt_postfiles  TYPE STANDARD TABLE OF HTTP_REQUEST_POST, "   
lv_successcount  TYPE I, "   
lv_connect_failed  TYPE I, "   
lv_rfc_destination  TYPE RFCDES-RFCDEST, "   
lv_timeout  TYPE RFCDES, "   
lv_failurecount  TYPE I, "   
lv_internal_error  TYPE I, "   
lv_component_error  TYPE I, "   
lv_tcpip_error  TYPE I, "   
lv_system_failure  TYPE I, "   
lv_communication_failure  TYPE I, "   
lv_url_failure  TYPE I. "   

  CALL FUNCTION 'HTTP_POST_FILE_EX'  "
    EXPORTING
         RFC_DESTINATION = lv_rfc_destination
    IMPORTING
         SUCCESSCOUNT = lv_successcount
         FAILURECOUNT = lv_failurecount
    TABLES
         POSTFILES = lt_postfiles
    EXCEPTIONS
        CONNECT_FAILED = 1
        TIMEOUT = 2
        INTERNAL_ERROR = 3
        COMPONENT_ERROR = 4
        TCPIP_ERROR = 5
        SYSTEM_FAILURE = 6
        COMMUNICATION_FAILURE = 7
        URL_FAILURE = 8
. " HTTP_POST_FILE_EX




ABAP code using 7.40 inline data declarations to call FM HTTP_POST_FILE_EX

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 RFCDEST FROM RFCDES INTO @DATA(ld_rfc_destination).
 
 
 
 
 
 
 
 
 


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!