SAP DP_GET_STREAM_FROM_URL Function Module for Places URL data in an internal table
DP_GET_STREAM_FROM_URL is a standard dp get stream from url SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Places URL data in an internal table 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 dp get stream from url FM, simply by entering the name DP_GET_STREAM_FROM_URL into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNDP
Program Name: SAPLCNDP
Main Program: SAPLCNDP
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DP_GET_STREAM_FROM_URL 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 'DP_GET_STREAM_FROM_URL'"Places URL data in an internal table.
EXPORTING
URL = "
* TYPE = "MIME Type
* SUBTYPE = "
* CALLINIT = "Obsolete
* USERINFO = "
* SECURECALL = "
* SEND_DATA_AS_STRING = "
* VSCAN_PROFILE = '/SCET/GUI_UPLOAD' "
* ISDOWNLOAD = 0 "
IMPORTING
SIZE = "
ERRORSTATE = "
RET_TYPE = "MIME Type
RET_SUBTYPE = "
DATE = "
TIME = "
CHANGING
* ISSCANPERFORMED = 0 "
TABLES
DATA = "Data
EXCEPTIONS
DP_FAIL = 1 DP_FAILED_INIT = 2 BLOCKED_BY_POLICY = 3 UNKNOWN_ERROR = 4
IMPORTING Parameters details for DP_GET_STREAM_FROM_URL
URL -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
TYPE - MIME Type
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
SUBTYPE -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
CALLINIT - Obsolete
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
USERINFO -
Data type: CNDP_USER_INFOOptional: Yes
Call by Reference: No ( called with pass by value option)
SECURECALL -
Data type: CHAR01Optional: Yes
Call by Reference: No ( called with pass by value option)
SEND_DATA_AS_STRING -
Data type: CHAR01Optional: Yes
Call by Reference: No ( called with pass by value option)
VSCAN_PROFILE -
Data type: VSCAN_PROFILEDefault: '/SCET/GUI_UPLOAD'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ISDOWNLOAD -
Data type: BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DP_GET_STREAM_FROM_URL
SIZE -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
ERRORSTATE -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
RET_TYPE - MIME Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
RET_SUBTYPE -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
DATE -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
TIME -
Data type: SY-UZEITOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for DP_GET_STREAM_FROM_URL
ISSCANPERFORMED -
Data type: BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DP_GET_STREAM_FROM_URL
DATA - Data
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DP_FAIL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DP_FAILED_INIT - Error initializing control framework
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BLOCKED_BY_POLICY -
Data type:Optional: No
Call by Reference: Yes
UNKNOWN_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for DP_GET_STREAM_FROM_URL 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_url | TYPE C, " | |||
| lt_data | TYPE STANDARD TABLE OF C, " | |||
| lv_size | TYPE I, " | |||
| lv_dp_fail | TYPE I, " | |||
| lv_isscanperformed | TYPE BOOLEAN, " 0 | |||
| lv_type | TYPE C, " | |||
| lv_errorstate | TYPE I, " | |||
| lv_dp_failed_init | TYPE I, " | |||
| lv_subtype | TYPE C, " | |||
| lv_ret_type | TYPE C, " | |||
| lv_blocked_by_policy | TYPE C, " | |||
| lv_callinit | TYPE C, " | |||
| lv_ret_subtype | TYPE C, " | |||
| lv_unknown_error | TYPE C, " | |||
| lv_date | TYPE SY-DATUM, " | |||
| lv_userinfo | TYPE CNDP_USER_INFO, " | |||
| lv_time | TYPE SY-UZEIT, " | |||
| lv_securecall | TYPE CHAR01, " | |||
| lv_send_data_as_string | TYPE CHAR01, " | |||
| lv_vscan_profile | TYPE VSCAN_PROFILE, " '/SCET/GUI_UPLOAD' | |||
| lv_isdownload | TYPE BOOLEAN. " 0 |
|   CALL FUNCTION 'DP_GET_STREAM_FROM_URL' "Places URL data in an internal table |
| EXPORTING | ||
| URL | = lv_url | |
| TYPE | = lv_type | |
| SUBTYPE | = lv_subtype | |
| CALLINIT | = lv_callinit | |
| USERINFO | = lv_userinfo | |
| SECURECALL | = lv_securecall | |
| SEND_DATA_AS_STRING | = lv_send_data_as_string | |
| VSCAN_PROFILE | = lv_vscan_profile | |
| ISDOWNLOAD | = lv_isdownload | |
| IMPORTING | ||
| SIZE | = lv_size | |
| ERRORSTATE | = lv_errorstate | |
| RET_TYPE | = lv_ret_type | |
| RET_SUBTYPE | = lv_ret_subtype | |
| DATE | = lv_date | |
| TIME | = lv_time | |
| CHANGING | ||
| ISSCANPERFORMED | = lv_isscanperformed | |
| TABLES | ||
| DATA | = lt_data | |
| EXCEPTIONS | ||
| DP_FAIL = 1 | ||
| DP_FAILED_INIT = 2 | ||
| BLOCKED_BY_POLICY = 3 | ||
| UNKNOWN_ERROR = 4 | ||
| . " DP_GET_STREAM_FROM_URL | ||
ABAP code using 7.40 inline data declarations to call FM DP_GET_STREAM_FROM_URL
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 DATUM FROM SY INTO @DATA(ld_date). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_time). | ||||
| DATA(ld_vscan_profile) | = '/SCET/GUI_UPLOAD'. | |||
Search for further information about these or an SAP related objects