SAP DP_CREATE_URL Function Module for Generates a temporary URL that displays in a temporary table









DP_CREATE_URL is a standard dp create 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 Generates a temporary URL that displays in a temporary 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 create url FM, simply by entering the name DP_CREATE_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_CREATE_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_CREATE_URL'"Generates a temporary URL that displays in a temporary table
EXPORTING
TYPE = "MIME Type
* FIELDS_FROM_APP = "
SUBTYPE = "MIME Subtype
* SIZE = "
* DATE = "
* TIME = "
* DESCRIPTION = "General Description
* LIFETIME = "
* CACHEABLE = "
* SEND_DATA_AS_STRING = "

CHANGING
URL = "

TABLES
DATA = "
* FIELDS = "
* PROPERTIES = "Additional Properties
* COLUMNS_TO_STRETCH = "

EXCEPTIONS
DP_INVALID_PARAMETER = 1 DP_ERROR_PUT_TABLE = 2 DP_ERROR_GENERAL = 3
.



IMPORTING Parameters details for DP_CREATE_URL

TYPE - MIME Type

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

FIELDS_FROM_APP -

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

SUBTYPE - MIME Subtype

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

SIZE -

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

DATE -

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

TIME -

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

DESCRIPTION - General Description

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

LIFETIME -

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

CACHEABLE -

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

SEND_DATA_AS_STRING -

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

CHANGING Parameters details for DP_CREATE_URL

URL -

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

TABLES Parameters details for DP_CREATE_URL

DATA -

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

FIELDS -

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

PROPERTIES - Additional Properties

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

COLUMNS_TO_STRETCH -

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

EXCEPTIONS details

DP_INVALID_PARAMETER - Invalid parameter

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

DP_ERROR_PUT_TABLE -

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

DP_ERROR_GENERAL - General Error

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

Copy and paste ABAP code example for DP_CREATE_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_type  TYPE C, "   
lv_dp_invalid_parameter  TYPE C, "   
lv_fields_from_app  TYPE CHAR01, "   
lt_fields  TYPE STANDARD TABLE OF RFC_FIELDS, "   
lv_subtype  TYPE C, "   
lv_dp_error_put_table  TYPE C, "   
lv_size  TYPE I, "   
lt_properties  TYPE STANDARD TABLE OF DPPROPS, "   
lv_dp_error_general  TYPE DPPROPS, "   
lv_date  TYPE SY-DATUM, "   
lt_columns_to_stretch  TYPE STANDARD TABLE OF TABLE_OF_STRINGS, "   
lv_time  TYPE SY-UZEIT, "   
lv_description  TYPE C, "   
lv_lifetime  TYPE C, "   
lv_cacheable  TYPE C, "   
lv_send_data_as_string  TYPE CHAR01. "   

  CALL FUNCTION 'DP_CREATE_URL'  "Generates a temporary URL that displays in a temporary table
    EXPORTING
         TYPE = lv_type
         FIELDS_FROM_APP = lv_fields_from_app
         SUBTYPE = lv_subtype
         SIZE = lv_size
         DATE = lv_date
         TIME = lv_time
         DESCRIPTION = lv_description
         LIFETIME = lv_lifetime
         CACHEABLE = lv_cacheable
         SEND_DATA_AS_STRING = lv_send_data_as_string
    CHANGING
         URL = lv_url
    TABLES
         DATA = lt_data
         FIELDS = lt_fields
         PROPERTIES = lt_properties
         COLUMNS_TO_STRETCH = lt_columns_to_stretch
    EXCEPTIONS
        DP_INVALID_PARAMETER = 1
        DP_ERROR_PUT_TABLE = 2
        DP_ERROR_GENERAL = 3
. " DP_CREATE_URL




ABAP code using 7.40 inline data declarations to call FM DP_CREATE_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).
 
 
 
 
 


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!