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

Function SDOK_PHIO_GET_URL_FOR_NEW_VERS 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_FOR_NEW_VERS'".
EXPORTING
OBJECT_ID = "Identify Physical Object
* REQUESTED_COMPONENTS = "
* NEW_OBJECT_UNIQUE_ID = "ID of New Document
* CLIENT = SY-MANDT "Client
* STANDARD_URL_ONLY = "
* WEB_APPLIC_SERVER_URL_ONLY = "
* URL_USED_AT = "Usage of URL: At Frontend or Backend
* VSCAN_PROFILE = '/SCMS/KPRO_CREATE' "
IMPORTING
NEW_OBJECT_ID = "
URLS = "
DOCUMENT_URL = "
EXCEPTIONS
NOT_EXISTING = 1 NOT_AUTHORIZED = 2 NOT_ALLOWED = 3 BAD_STORAGE_TYPE = 4 NO_URLS_AVAILABLE = 5
IMPORTING Parameters details for SDOK_PHIO_GET_URL_FOR_NEW_VERS
OBJECT_ID - Identify Physical Object
Data type: SDOKOBJECTOptional: No
Call by Reference: No ( called with pass by value option)
REQUESTED_COMPONENTS -
Data type: SDOKCOMPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
NEW_OBJECT_UNIQUE_ID - ID of New Document
Data type: SDOKPHIO-PHIO_IDOptional: 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)
STANDARD_URL_ONLY -
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
WEB_APPLIC_SERVER_URL_ONLY -
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
URL_USED_AT - Usage of URL: At Frontend or Backend
Data type: SDOK_FBURLOptional: Yes
Call by Reference: No ( called with pass by value option)
VSCAN_PROFILE -
Data type: VSCAN_PROFILEDefault: '/SCMS/KPRO_CREATE'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SDOK_PHIO_GET_URL_FOR_NEW_VERS
NEW_OBJECT_ID -
Data type: SDOKOBJECTOptional: No
Call by Reference: No ( called with pass by value option)
URLS -
Data type: SDOKCOMPURLSOptional: 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)
EXCEPTIONS details
NOT_EXISTING -
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)
NOT_ALLOWED -
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)
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_FOR_NEW_VERS 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_object_id | TYPE SDOKOBJECT, " | |||
| lv_not_existing | TYPE SDOKOBJECT, " | |||
| lv_new_object_id | TYPE SDOKOBJECT, " | |||
| lv_urls | TYPE SDOKCOMPURLS, " | |||
| lv_not_authorized | TYPE SDOKCOMPURLS, " | |||
| lv_requested_components | TYPE SDOKCOMPOS, " | |||
| lv_not_allowed | TYPE SDOKCOMPOS, " | |||
| lv_document_url | TYPE SAEURI, " | |||
| lv_new_object_unique_id | TYPE SDOKPHIO-PHIO_ID, " | |||
| lv_client | TYPE SY-MANDT, " SY-MANDT | |||
| lv_bad_storage_type | TYPE SY, " | |||
| lv_no_urls_available | TYPE SY, " | |||
| lv_standard_url_only | TYPE SY-DATAR, " | |||
| lv_web_applic_server_url_only | TYPE SY-DATAR, " | |||
| lv_url_used_at | TYPE SDOK_FBURL, " | |||
| lv_vscan_profile | TYPE VSCAN_PROFILE. " '/SCMS/KPRO_CREATE' |
|   CALL FUNCTION 'SDOK_PHIO_GET_URL_FOR_NEW_VERS' " |
| EXPORTING | ||
| OBJECT_ID | = lv_object_id | |
| REQUESTED_COMPONENTS | = lv_requested_components | |
| NEW_OBJECT_UNIQUE_ID | = lv_new_object_unique_id | |
| CLIENT | = lv_client | |
| STANDARD_URL_ONLY | = lv_standard_url_only | |
| WEB_APPLIC_SERVER_URL_ONLY | = lv_web_applic_server_url_only | |
| URL_USED_AT | = lv_url_used_at | |
| VSCAN_PROFILE | = lv_vscan_profile | |
| IMPORTING | ||
| NEW_OBJECT_ID | = lv_new_object_id | |
| URLS | = lv_urls | |
| DOCUMENT_URL | = lv_document_url | |
| EXCEPTIONS | ||
| NOT_EXISTING = 1 | ||
| NOT_AUTHORIZED = 2 | ||
| NOT_ALLOWED = 3 | ||
| BAD_STORAGE_TYPE = 4 | ||
| NO_URLS_AVAILABLE = 5 | ||
| . " SDOK_PHIO_GET_URL_FOR_NEW_VERS | ||
ABAP code using 7.40 inline data declarations to call FM SDOK_PHIO_GET_URL_FOR_NEW_VERS
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 PHIO_ID FROM SDOKPHIO INTO @DATA(ld_new_object_unique_id). | ||||
| "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_web_applic_server_url_only). | ||||
| DATA(ld_vscan_profile) | = '/SCMS/KPRO_CREATE'. | |||
Search for further information about these or an SAP related objects