SCMS_DOC_CREATE_FILES is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name SCMS_DOC_CREATE_FILES into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SCMS_API
Released Date:
02.11.2001
Processing type: Normal fucntion module
CALL FUNCTION 'SCMS_DOC_CREATE_FILES' "CMS: Create Document
EXPORTING
* mandt = SY-MANDT " sy-mandt Client
stor_cat = " sdokstca-stor_cat Category
* crep_id = SPACE " c Repository (Only Allowed if Category = SPACE)
doc_id = " c Document ID
* phio_id = " sdok_phid PHIO ID if Known, May Be Shorter than DocID
path = " c Directory Path Where Document to be Stored is Located
* frontend = 'X' " c Storgae via Front End ("X" Front End, SPACE Back End)
* doc_prot = SPACE " c Protection
* signature = 'X' " c
* security = SPACE " c
* get_size = 'X' " c Determine Size of Components
overwrite = ' ' " c Overwrite ("X" Without Log, " " with Log, "-" Never)
* vscan_profile = '/SCMS/KPRO_CREATE' " vscan_profile Virus Scan Profile
IMPORTING
doc_id_out = " c Target Document ID (if not specified, a new GUID is used)
TABLES
comps = " scms_doinf
EXCEPTIONS
BAD_STORAGE_TYPE = 1 " Storage Category Not Supported
BAD_REQUEST = 2 " Unknown Functions or Parameters
UNAUTHORIZED = 3 " Security Breach
FORBIDDEN = 4 " Document or Component Already Exists
CONFLICT = 5 " Document/ Component/ Administration Data is Inaccessible
INTERNAL_SERVER_ERROR = 6 " Internal Error in Content Server
ERROR_HTTP = 7 " Error in HTTP Access
ERROR_SIGNATURE = 8 " Error when Calculating Signature
ERROR_CONFIG = 9 " Configuration error
ERROR_HIERARCHY = 10 " Error When Accessing Structures
ERROR_FORMAT = 11 " Incorrect Data Format (Structure Repository)
ERROR_EXPORT = 12 "
ERROR_OPEN = 13 "
ERROR_PARAMETER = 14 " Parameter error
ERROR = 15 " Unspecified error
BLOCKED_BY_POLICY = 16 "
. " SCMS_DOC_CREATE_FILES
The ABAP code below is a full code listing to execute function module SCMS_DOC_CREATE_FILES including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_doc_id_out | TYPE C , |
| it_comps | TYPE STANDARD TABLE OF SCMS_DOINF,"TABLES PARAM |
| wa_comps | LIKE LINE OF it_comps . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| it_comps | TYPE STANDARD TABLE OF SCMS_DOINF , |
| wa_comps | LIKE LINE OF it_comps, |
| ld_mandt | TYPE SY-MANDT , |
| ld_doc_id_out | TYPE C , |
| ld_stor_cat | TYPE SDOKSTCA-STOR_CAT , |
| ld_crep_id | TYPE C , |
| ld_doc_id | TYPE C , |
| ld_phio_id | TYPE SDOK_PHID , |
| ld_path | TYPE C , |
| ld_frontend | TYPE C , |
| ld_doc_prot | TYPE C , |
| ld_signature | TYPE C , |
| ld_security | TYPE C , |
| ld_get_size | TYPE C , |
| ld_overwrite | TYPE C , |
| ld_vscan_profile | TYPE VSCAN_PROFILE . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SCMS_DOC_CREATE_FILES or its description.