SAP SDOK_PHIO_GET_CONTENT_ACCESS Function Module for
SDOK_PHIO_GET_CONTENT_ACCESS is a standard sdok phio get content access 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 content access FM, simply by entering the name SDOK_PHIO_GET_CONTENT_ACCESS into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDCI
Program Name: SAPLSDCI
Main Program: SAPLSDCI
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SDOK_PHIO_GET_CONTENT_ACCESS 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_CONTENT_ACCESS'".
EXPORTING
OBJECT_ID = "Identify Physical Object
* CONTENT_OR_URL_ONLY = "
* CONTENT_ONLY = "
* RAW_MODE = "
* CLIENT = SY-MANDT "Client
* USE_URL_AT = "Usage of URL: At Frontend or Backend
* TEXT_AS_STREAM = "
* CACHE_SERVER = "
* ALLOW_MODEL = "'X' --> Take Template
IMPORTING
ACCESS_MODE = "
DOCUMENT_URL = "
DOCUMENT_HTTPS_URL = "
MODEL_RETURNED = "'X' --> Template has been Used
TABLES
* CONTEXT = "
* PROPERTIES = "
* COMPONENTS = "
* COMPONENT_ACCESS = "
* FILE_CONTENT_ASCII = "Content of Text Documents
* FILE_CONTENT_BINARY = "Content of Binary Documents
EXCEPTIONS
NOT_EXISTING = 1 NOT_AUTHORIZED = 2 NO_CONTENT = 3 BAD_STORAGE_TYPE = 4 CONTEXT_INCOMPLETE = 5 NO_CODEPAGE_INFO = 6 BAD_PARAMETER = 7
IMPORTING Parameters details for SDOK_PHIO_GET_CONTENT_ACCESS
OBJECT_ID - Identify Physical Object
Data type: SDOKOBJECTOptional: No
Call by Reference: No ( called with pass by value option)
CONTENT_OR_URL_ONLY -
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
CONTENT_ONLY -
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
RAW_MODE -
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
CLIENT - Client
Data type: SY-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
USE_URL_AT - Usage of URL: At Frontend or Backend
Data type: SDOK_FBURLOptional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_AS_STREAM -
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
CACHE_SERVER -
Data type: SDOKCACHEOptional: Yes
Call by Reference: No ( called with pass by value option)
ALLOW_MODEL - 'X' --> Take Template
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SDOK_PHIO_GET_CONTENT_ACCESS
ACCESS_MODE -
Data type: SDOKACSMOD-ACCESSMODEOptional: No
Call by Reference: No ( called with pass by value option)
DOCUMENT_URL -
Data type: SAEURIOptional: No
Call by Reference: No ( called with pass by value option)
DOCUMENT_HTTPS_URL -
Data type: SAEURIOptional: No
Call by Reference: No ( called with pass by value option)
MODEL_RETURNED - 'X' --> Template has been Used
Data type: SY-DATAROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SDOK_PHIO_GET_CONTENT_ACCESS
CONTEXT -
Data type: SDOKPROPTYOptional: Yes
Call by Reference: No ( called with pass by value option)
PROPERTIES -
Data type: SDOKPROPTYOptional: Yes
Call by Reference: Yes
COMPONENTS -
Data type: SDOKCOMACSOptional: Yes
Call by Reference: Yes
COMPONENT_ACCESS -
Data type: SDOKCOMACIOptional: Yes
Call by Reference: Yes
FILE_CONTENT_ASCII - Content of Text Documents
Data type: SDOKCNTASCOptional: Yes
Call by Reference: No ( called with pass by value option)
FILE_CONTENT_BINARY - Content of Binary Documents
Data type: SDOKCNTBINOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_EXISTING - Physical Object does not Exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_AUTHORIZED - No Authorization
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 - Incorrect Storage Type
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONTEXT_INCOMPLETE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CODEPAGE_INFO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BAD_PARAMETER -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SDOK_PHIO_GET_CONTENT_ACCESS 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_context | TYPE STANDARD TABLE OF SDOKPROPTY, " | |||
| lv_object_id | TYPE SDOKOBJECT, " | |||
| lv_access_mode | TYPE SDOKACSMOD-ACCESSMODE, " | |||
| lv_not_existing | TYPE SDOKACSMOD, " | |||
| lt_properties | TYPE STANDARD TABLE OF SDOKPROPTY, " | |||
| lv_document_url | TYPE SAEURI, " | |||
| lv_not_authorized | TYPE SAEURI, " | |||
| lv_content_or_url_only | TYPE SY-DATAR, " | |||
| lt_components | TYPE STANDARD TABLE OF SDOKCOMACS, " | |||
| lv_no_content | TYPE SDOKCOMACS, " | |||
| lv_content_only | TYPE SY-DATAR, " | |||
| lv_document_https_url | TYPE SAEURI, " | |||
| lv_raw_mode | TYPE SY-DATAR, " | |||
| lv_model_returned | TYPE SY-DATAR, " | |||
| lv_bad_storage_type | TYPE SY, " | |||
| lt_component_access | TYPE STANDARD TABLE OF SDOKCOMACI, " | |||
| lv_client | TYPE SY-MANDT, " SY-MANDT | |||
| lv_context_incomplete | TYPE SY, " | |||
| lt_file_content_ascii | TYPE STANDARD TABLE OF SDOKCNTASC, " | |||
| lv_use_url_at | TYPE SDOK_FBURL, " | |||
| lv_no_codepage_info | TYPE SDOK_FBURL, " | |||
| lt_file_content_binary | TYPE STANDARD TABLE OF SDOKCNTBIN, " | |||
| lv_bad_parameter | TYPE SDOKCNTBIN, " | |||
| lv_text_as_stream | TYPE SY-DATAR, " | |||
| lv_cache_server | TYPE SDOKCACHE, " | |||
| lv_allow_model | TYPE SY-DATAR. " |
|   CALL FUNCTION 'SDOK_PHIO_GET_CONTENT_ACCESS' " |
| EXPORTING | ||
| OBJECT_ID | = lv_object_id | |
| CONTENT_OR_URL_ONLY | = lv_content_or_url_only | |
| CONTENT_ONLY | = lv_content_only | |
| RAW_MODE | = lv_raw_mode | |
| CLIENT | = lv_client | |
| USE_URL_AT | = lv_use_url_at | |
| TEXT_AS_STREAM | = lv_text_as_stream | |
| CACHE_SERVER | = lv_cache_server | |
| ALLOW_MODEL | = lv_allow_model | |
| IMPORTING | ||
| ACCESS_MODE | = lv_access_mode | |
| DOCUMENT_URL | = lv_document_url | |
| DOCUMENT_HTTPS_URL | = lv_document_https_url | |
| MODEL_RETURNED | = lv_model_returned | |
| TABLES | ||
| CONTEXT | = lt_context | |
| PROPERTIES | = lt_properties | |
| COMPONENTS | = lt_components | |
| COMPONENT_ACCESS | = lt_component_access | |
| FILE_CONTENT_ASCII | = lt_file_content_ascii | |
| FILE_CONTENT_BINARY | = lt_file_content_binary | |
| EXCEPTIONS | ||
| NOT_EXISTING = 1 | ||
| NOT_AUTHORIZED = 2 | ||
| NO_CONTENT = 3 | ||
| BAD_STORAGE_TYPE = 4 | ||
| CONTEXT_INCOMPLETE = 5 | ||
| NO_CODEPAGE_INFO = 6 | ||
| BAD_PARAMETER = 7 | ||
| . " SDOK_PHIO_GET_CONTENT_ACCESS | ||
ABAP code using 7.40 inline data declarations to call FM SDOK_PHIO_GET_CONTENT_ACCESS
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 ACCESSMODE FROM SDOKACSMOD INTO @DATA(ld_access_mode). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_content_or_url_only). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_content_only). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_raw_mode). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_model_returned). | ||||
| "SELECT single MANDT FROM SY INTO @DATA(ld_client). | ||||
| DATA(ld_client) | = SY-MANDT. | |||
| "SELECT single DATAR FROM SY INTO @DATA(ld_text_as_stream). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_allow_model). | ||||
Search for further information about these or an SAP related objects