SAP SDOK_PHIO_GET_URL_FROM_CACHE Function Module for









SDOK_PHIO_GET_URL_FROM_CACHE is a standard sdok phio get url from cache 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 sdok phio get url from cache FM, simply by entering the name SDOK_PHIO_GET_URL_FROM_CACHE into the relevant SAP transaction such as SE37 or SE38.

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



Function SDOK_PHIO_GET_URL_FROM_CACHE 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 'SDOK_PHIO_GET_URL_FROM_CACHE'"
EXPORTING
OBJECT_ID = "
* REQUESTED_COMPONENTS = "
* CLIENT = SY-MANDT "
* STANDARD_URL_ONLY = "
* DATA_PROVIDER_URL_ONLY = "
* WEB_APPLIC_SERVER_URL_ONLY = "
* URL_LIFETIME = "
* URL_USED_AT = "
* NO_CACHE = "

IMPORTING
URLS = "
DOCUMENT_URL = "

EXCEPTIONS
NOT_EXISTING = 1 NOT_AUTHORIZED = 2 NO_CONTENT = 3 BAD_STORAGE_TYPE = 4 NO_URLS_AVAILABLE = 5
.



IMPORTING Parameters details for SDOK_PHIO_GET_URL_FROM_CACHE

OBJECT_ID -

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

REQUESTED_COMPONENTS -

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

CLIENT -

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

STANDARD_URL_ONLY -

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

DATA_PROVIDER_URL_ONLY -

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

WEB_APPLIC_SERVER_URL_ONLY -

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

URL_LIFETIME -

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

URL_USED_AT -

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

NO_CACHE -

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

EXPORTING Parameters details for SDOK_PHIO_GET_URL_FROM_CACHE

URLS -

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

DOCUMENT_URL -

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

EXCEPTIONS details

NOT_EXISTING -

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

NOT_AUTHORIZED -

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

NO_CONTENT -

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

BAD_STORAGE_TYPE -

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

NO_URLS_AVAILABLE -

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

Copy and paste ABAP code example for SDOK_PHIO_GET_URL_FROM_CACHE 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_urls  TYPE SDOKCOMPURLS, "   
lv_object_id  TYPE SDOKOBJECT, "   
lv_not_existing  TYPE SDOKOBJECT, "   
lv_document_url  TYPE SAEURI, "   
lv_not_authorized  TYPE SAEURI, "   
lv_requested_components  TYPE SDOKCOMPOS, "   
lv_client  TYPE SY-MANDT, "   SY-MANDT
lv_no_content  TYPE SY, "   
lv_bad_storage_type  TYPE SY, "   
lv_standard_url_only  TYPE SY-DATAR, "   
lv_no_urls_available  TYPE SY, "   
lv_data_provider_url_only  TYPE SY-DATAR, "   
lv_web_applic_server_url_only  TYPE SY-DATAR, "   
lv_url_lifetime  TYPE C, "   
lv_url_used_at  TYPE SDOK_FBURL, "   
lv_no_cache  TYPE SY-DATAR. "   

  CALL FUNCTION 'SDOK_PHIO_GET_URL_FROM_CACHE'  "
    EXPORTING
         OBJECT_ID = lv_object_id
         REQUESTED_COMPONENTS = lv_requested_components
         CLIENT = lv_client
         STANDARD_URL_ONLY = lv_standard_url_only
         DATA_PROVIDER_URL_ONLY = lv_data_provider_url_only
         WEB_APPLIC_SERVER_URL_ONLY = lv_web_applic_server_url_only
         URL_LIFETIME = lv_url_lifetime
         URL_USED_AT = lv_url_used_at
         NO_CACHE = lv_no_cache
    IMPORTING
         URLS = lv_urls
         DOCUMENT_URL = lv_document_url
    EXCEPTIONS
        NOT_EXISTING = 1
        NOT_AUTHORIZED = 2
        NO_CONTENT = 3
        BAD_STORAGE_TYPE = 4
        NO_URLS_AVAILABLE = 5
. " SDOK_PHIO_GET_URL_FROM_CACHE




ABAP code using 7.40 inline data declarations to call FM SDOK_PHIO_GET_URL_FROM_CACHE

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_client).
DATA(ld_client) = SY-MANDT.
 
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_standard_url_only).
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_data_provider_url_only).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_web_applic_server_url_only).
 
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_no_cache).
 


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!