Menu

SAP Function Module SCMS_DOC_CREATE_FILES

CMS: Create Document

Recommended Now

Fire TV Stick Lite Essentials Bundle

This bundle contains Amazon Fire TV Stick Lite and Mission USB Power Cable. The USB power cable eliminates the need to find an AC outlet near your TV by powering Amazon Fire TV directly from your TV's USB port. Includes special power management circuitry that enhances the peak power capability of the USB port by storing excess energy and then releasing it as needed.

Check it out on amazon.com →

The Function Module SCMS_DOC_CREATE_FILES (CMS: Create Document) is a standard Function Module in SAP ERP and is part of the function group SCMS_API within the package SCMS.

Technical Information

Function Module SCMS_DOC_CREATE_FILES
Short Text CMS: Create Document
Function Group SCMS_API
Package SCMS
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
CREP_ID TYPE C SPACE Repository (Only Allowed if Category - SPACE)
DOC_ID TYPE C Document ID
DOC_PROT TYPE C SPACE Protection
FRONTEND TYPE C 'X' Storgae via Front End ('X' Front End, SPACE Back End)
GET_SIZE TYPE C 'X' Determine Size of Components
MANDT LIKE SY-MANDT SY-MANDT Client
OVERWRITE TYPE C ' ' Overwrite ('X' Without Log, ' ' with Log, '-' Never)
PATH TYPE C Directory Path Where Document to be Stored is Located
PHIO_ID TYPE SDOK_PHID PHIO ID if Known, May Be Shorter than DocID
STOR_CAT LIKE SDOKSTCA-STOR_CAT Category

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DOC_ID_OUT TYPE C Target Document ID (if not specified, a new GUID is used)

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

This function module does not define any TABLE parameters.

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
BAD_REQUEST Unknown Functions or Parameters
BAD_STORAGE_TYPE Storage Category Not Supported
CONFLICT Document/ Component/ Administration Data is Inaccessible
ERROR Unspecified error
ERROR_CONFIG Configuration error
ERROR_FORMAT Incorrect Data Format (Structure Repository)
ERROR_HIERARCHY Error When Accessing Structures
ERROR_HTTP Error in HTTP Access
ERROR_PARAMETER Parameter error
ERROR_SIGNATURE Error when Calculating Signature
FORBIDDEN Document or Component Already Exists
INTERNAL_SERVER_ERROR Internal Error in Content Server
UNAUTHORIZED Security Breach