SAP SKWF_PHIO_STORE_AS_UPDATE Function Module for Save Internal Tables as New Version of a Physical Document









SKWF_PHIO_STORE_AS_UPDATE is a standard skwf phio store as update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Save Internal Tables as New Version of a Physical Document 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 skwf phio store as update FM, simply by entering the name SKWF_PHIO_STORE_AS_UPDATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SKWF_CONTENT
Program Name: SAPLSKWF_CONTENT
Main Program: SAPLSKWF_CONTENT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function SKWF_PHIO_STORE_AS_UPDATE 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 'SKWF_PHIO_STORE_AS_UPDATE'"Save Internal Tables as New Version of a Physical Document
EXPORTING
PHIO = "SDOK: BOR key for information object
* UNIQUE_ID = "Unique Default ID
* X_FORCE_UPDATE = "
* X_TEXT_AS_STREAM = "
* X_ALLOW_STORE_BY_URL = "
* NEW_STOR_CAT = "
* VSCAN_PROFILE = '/SCMS/KPRO_CREATE' "

IMPORTING
NEW_PHIO = "SDOK: BOR key for information object
ERROR = "KW Framework: Error Object

TABLES
* FILE_ACCESS_INFO = "SDOK: Entries for document contents in internal tables
* FILE_ACCESS_URL = "SDOK: Component Properties mit Access URL
* FILE_CONTENT_ASCII = "SDOK: Line of text document content for WWW server
* FILE_CONTENT_BINARY = "SDOK: Line of binary document content for WWW server
.



IMPORTING Parameters details for SKWF_PHIO_STORE_AS_UPDATE

PHIO - SDOK: BOR key for information object

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

UNIQUE_ID - Unique Default ID

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

X_FORCE_UPDATE -

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

X_TEXT_AS_STREAM -

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

X_ALLOW_STORE_BY_URL -

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

NEW_STOR_CAT -

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

VSCAN_PROFILE -

Data type: VSCAN_PROFILE
Default: '/SCMS/KPRO_CREATE'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SKWF_PHIO_STORE_AS_UPDATE

NEW_PHIO - SDOK: BOR key for information object

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

ERROR - KW Framework: Error Object

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

TABLES Parameters details for SKWF_PHIO_STORE_AS_UPDATE

FILE_ACCESS_INFO - SDOK: Entries for document contents in internal tables

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

FILE_ACCESS_URL - SDOK: Component Properties mit Access URL

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

FILE_CONTENT_ASCII - SDOK: Line of text document content for WWW server

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

FILE_CONTENT_BINARY - SDOK: Line of binary document content for WWW server

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

Copy and paste ABAP code example for SKWF_PHIO_STORE_AS_UPDATE 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_phio  TYPE SKWF_IO, "   
lv_new_phio  TYPE SKWF_IO, "   
lt_file_access_info  TYPE STANDARD TABLE OF SDOKFILACI, "   
lv_error  TYPE SKWF_ERROR, "   
lv_unique_id  TYPE SKWF_OBJID, "   
lt_file_access_url  TYPE STANDARD TABLE OF SDOKCOMPRU, "   
lv_x_force_update  TYPE SKWF_FLAG, "   
lt_file_content_ascii  TYPE STANDARD TABLE OF SDOKCNTASC, "   
lv_x_text_as_stream  TYPE SKWF_FLAG, "   
lt_file_content_binary  TYPE STANDARD TABLE OF SDOKCNTBIN, "   
lv_x_allow_store_by_url  TYPE SKWF_FLAG, "   
lv_new_stor_cat  TYPE SDOKPHIO-STOR_CAT, "   
lv_vscan_profile  TYPE VSCAN_PROFILE. "   '/SCMS/KPRO_CREATE'

  CALL FUNCTION 'SKWF_PHIO_STORE_AS_UPDATE'  "Save Internal Tables as New Version of a Physical Document
    EXPORTING
         PHIO = lv_phio
         UNIQUE_ID = lv_unique_id
         X_FORCE_UPDATE = lv_x_force_update
         X_TEXT_AS_STREAM = lv_x_text_as_stream
         X_ALLOW_STORE_BY_URL = lv_x_allow_store_by_url
         NEW_STOR_CAT = lv_new_stor_cat
         VSCAN_PROFILE = lv_vscan_profile
    IMPORTING
         NEW_PHIO = lv_new_phio
         ERROR = lv_error
    TABLES
         FILE_ACCESS_INFO = lt_file_access_info
         FILE_ACCESS_URL = lt_file_access_url
         FILE_CONTENT_ASCII = lt_file_content_ascii
         FILE_CONTENT_BINARY = lt_file_content_binary
. " SKWF_PHIO_STORE_AS_UPDATE




ABAP code using 7.40 inline data declarations to call FM SKWF_PHIO_STORE_AS_UPDATE

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 STOR_CAT FROM SDOKPHIO INTO @DATA(ld_new_stor_cat).
 
DATA(ld_vscan_profile) = '/SCMS/KPRO_CREATE'.
 


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!