SAP SCMS_HTTP_GET_FILE Function Module for









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

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



Function SCMS_HTTP_GET_FILE 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 'SCMS_HTTP_GET_FILE'"
EXPORTING
* MANDT = SY-MANDT "R/3 System, Client Number from Logon
* NO_CACHE = ' ' "Screens, display user entry
* TIMEOUT = "
* P_TRANSFER_PHIO = "
CREP_ID = "Content Repository
DOC_ID = "
COMP_ID = "
PATH = "
* SIGNATURE = 'X' "
* FRONTEND = ' ' "
* ACCESSMODE = 'r' "
* SECURITY = ' ' "

IMPORTING
SIZE = "
MIMETYPE = "
CHARSET = "
VERSION = "

EXCEPTIONS
BAD_REQUEST = 1 UNAUTHORIZED = 2 NOT_FOUND = 3 CONFLICT = 4 INTERNAL_SERVER_ERROR = 5 ERROR_HTTP = 6 ERROR_URL = 7 ERROR_SIGNATURE = 8 ERROR_DOWNLOAD = 9
.



IMPORTING Parameters details for SCMS_HTTP_GET_FILE

MANDT - R/3 System, Client Number from Logon

Data type: SY-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_CACHE - Screens, display user entry

Data type: SY-DATAR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TIMEOUT -

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

P_TRANSFER_PHIO -

Data type: SDOK_CHTST
Optional: Yes
Call by Reference: Yes

CREP_ID - Content Repository

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

DOC_ID -

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

COMP_ID -

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

PATH -

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

SIGNATURE -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FRONTEND -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACCESSMODE -

Data type: C
Default: 'r'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SECURITY -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SCMS_HTTP_GET_FILE

SIZE -

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

MIMETYPE -

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

CHARSET -

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

VERSION -

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

EXCEPTIONS details

BAD_REQUEST -

Data type:
Optional: No
Call by Reference: Yes

UNAUTHORIZED -

Data type:
Optional: No
Call by Reference: Yes

NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

CONFLICT -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_SERVER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

ERROR_HTTP -

Data type:
Optional: No
Call by Reference: Yes

ERROR_URL -

Data type:
Optional: No
Call by Reference: Yes

ERROR_SIGNATURE -

Data type:
Optional: No
Call by Reference: Yes

ERROR_DOWNLOAD -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCMS_HTTP_GET_FILE 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_size  TYPE I, "   
lv_mandt  TYPE SY-MANDT, "   SY-MANDT
lv_bad_request  TYPE SY, "   
lv_no_cache  TYPE SY-DATAR, "   SPACE
lv_timeout  TYPE I, "   
lv_p_transfer_phio  TYPE SDOK_CHTST, "   
lv_crep_id  TYPE C, "   
lv_mimetype  TYPE C, "   
lv_unauthorized  TYPE C, "   
lv_doc_id  TYPE C, "   
lv_charset  TYPE C, "   
lv_not_found  TYPE C, "   
lv_comp_id  TYPE C, "   
lv_version  TYPE C, "   
lv_conflict  TYPE C, "   
lv_path  TYPE C, "   
lv_internal_server_error  TYPE C, "   
lv_signature  TYPE C, "   'X'
lv_error_http  TYPE C, "   
lv_frontend  TYPE C, "   SPACE
lv_error_url  TYPE C, "   
lv_accessmode  TYPE C, "   'r'
lv_error_signature  TYPE C, "   
lv_security  TYPE C, "   SPACE
lv_error_download  TYPE C. "   

  CALL FUNCTION 'SCMS_HTTP_GET_FILE'  "
    EXPORTING
         MANDT = lv_mandt
         NO_CACHE = lv_no_cache
         TIMEOUT = lv_timeout
         P_TRANSFER_PHIO = lv_p_transfer_phio
         CREP_ID = lv_crep_id
         DOC_ID = lv_doc_id
         COMP_ID = lv_comp_id
         PATH = lv_path
         SIGNATURE = lv_signature
         FRONTEND = lv_frontend
         ACCESSMODE = lv_accessmode
         SECURITY = lv_security
    IMPORTING
         SIZE = lv_size
         MIMETYPE = lv_mimetype
         CHARSET = lv_charset
         VERSION = lv_version
    EXCEPTIONS
        BAD_REQUEST = 1
        UNAUTHORIZED = 2
        NOT_FOUND = 3
        CONFLICT = 4
        INTERNAL_SERVER_ERROR = 5
        ERROR_HTTP = 6
        ERROR_URL = 7
        ERROR_SIGNATURE = 8
        ERROR_DOWNLOAD = 9
. " SCMS_HTTP_GET_FILE




ABAP code using 7.40 inline data declarations to call FM SCMS_HTTP_GET_FILE

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 MANDT FROM SY INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_no_cache).
DATA(ld_no_cache) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_signature) = 'X'.
 
 
DATA(ld_frontend) = ' '.
 
 
DATA(ld_accessmode) = 'r'.
 
 
DATA(ld_security) = ' '.
 
 


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!