SAP SCMS_DOC_INFO Function Module for CMS: Document Info









SCMS_DOC_INFO is a standard scms doc info SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CMS: Document Info 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 scms doc info FM, simply by entering the name SCMS_DOC_INFO into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCMS_API
Program Name: SAPLSCMS_API
Main Program: SAPLSCMS_API
Appliation area: S
Release date: 02-Nov-2001
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SCMS_DOC_INFO 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 'SCMS_DOC_INFO'"CMS: Document Info
EXPORTING
* MANDT = SY-MANDT "Client
STOR_CAT = "Category
* CREP_ID = ' ' "Repository (Only Allowed if Category = ' ')
DOC_ID = "Document ID
* PHIO_ID = "PHIO ID if Known, May Be Shorter than DocID
* SIGNATURE = 'X' "Sign URL for Access to Document ('X' Yes, ' ' No)
* SECURITY = ' ' "
* NO_HTTP_LOG = ' ' "Supress Logging in the CSMONITOR for HTTP Calls

IMPORTING
CREA_TIME = "Creation Time (UTC)
CREA_DATE = "Creation Date (UTC)
CHNG_TIME = "Time Last Changed (UTC)
CHNG_DATE = "Date Last Changed (UTC)
STATUS = "CMS: Document status

TABLES
* COMPS = "

EXCEPTIONS
BAD_STORAGE_TYPE = 1 ERROR_HIERARCHY = 10 ERROR_PARAMETER = 11 ERROR = 12 BAD_REQUEST = 2 UNAUTHORIZED = 3 NOT_FOUND = 4 CONFLICT = 5 INTERNAL_SERVER_ERROR = 6 ERROR_HTTP = 7 ERROR_SIGNATURE = 8 ERROR_CONFIG = 9
.



IMPORTING Parameters details for SCMS_DOC_INFO

MANDT - Client

Data type: SY-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

STOR_CAT - Category

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

CREP_ID - Repository (Only Allowed if Category = SPACE)

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

DOC_ID - Document ID

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

PHIO_ID - PHIO ID if Known, May Be Shorter than DocID

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

SIGNATURE - Sign URL for Access to Document ('X' Yes, SPACE No)

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SECURITY -

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

NO_HTTP_LOG - Supress Logging in the CSMONITOR for HTTP Calls

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

EXPORTING Parameters details for SCMS_DOC_INFO

CREA_TIME - Creation Time (UTC)

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

CREA_DATE - Creation Date (UTC)

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

CHNG_TIME - Time Last Changed (UTC)

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

CHNG_DATE - Date Last Changed (UTC)

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

STATUS - CMS: Document status

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

TABLES Parameters details for SCMS_DOC_INFO

COMPS -

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

EXCEPTIONS details

BAD_STORAGE_TYPE - Storage Category Not Supported

Data type:
Optional: No
Call by Reference: Yes

ERROR_HIERARCHY - Error When Accessing Structures

Data type:
Optional: No
Call by Reference: Yes

ERROR_PARAMETER - Parameter error

Data type:
Optional: No
Call by Reference: Yes

ERROR - Unspecified error

Data type:
Optional: No
Call by Reference: Yes

BAD_REQUEST - Unknown Functions or Parameters

Data type:
Optional: No
Call by Reference: Yes

UNAUTHORIZED - Security Breach

Data type:
Optional: No
Call by Reference: Yes

NOT_FOUND - Document/ Component/ Content Repository Not Found

Data type:
Optional: No
Call by Reference: Yes

CONFLICT - Document/ Component/ Administration Data is Inaccessible

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_SERVER_ERROR - Internal Error in Content Server

Data type:
Optional: No
Call by Reference: Yes

ERROR_HTTP - Error in HTTP Access

Data type:
Optional: No
Call by Reference: Yes

ERROR_SIGNATURE - Error when Calculating Signature

Data type:
Optional: No
Call by Reference: Yes

ERROR_CONFIG - Configuration error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCMS_DOC_INFO 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_comps  TYPE STANDARD TABLE OF SCMS_STINF, "   
lv_mandt  TYPE SY-MANDT, "   SY-MANDT
lv_crea_time  TYPE T, "   
lv_bad_storage_type  TYPE T, "   
lv_error_hierarchy  TYPE T, "   
lv_error_parameter  TYPE T, "   
lv_error  TYPE T, "   
lv_stor_cat  TYPE SDOKSTCA-STOR_CAT, "   
lv_crea_date  TYPE D, "   
lv_bad_request  TYPE D, "   
lv_crep_id  TYPE C, "   SPACE
lv_chng_time  TYPE T, "   
lv_unauthorized  TYPE T, "   
lv_doc_id  TYPE C, "   
lv_chng_date  TYPE D, "   
lv_not_found  TYPE D, "   
lv_status  TYPE SCMS_DOCST, "   
lv_phio_id  TYPE SDOK_PHID, "   
lv_conflict  TYPE SDOK_PHID, "   
lv_signature  TYPE C, "   'X'
lv_internal_server_error  TYPE C, "   
lv_security  TYPE C, "   SPACE
lv_error_http  TYPE C, "   
lv_no_http_log  TYPE C, "   SPACE
lv_error_signature  TYPE C, "   
lv_error_config  TYPE C. "   

  CALL FUNCTION 'SCMS_DOC_INFO'  "CMS: Document Info
    EXPORTING
         MANDT = lv_mandt
         STOR_CAT = lv_stor_cat
         CREP_ID = lv_crep_id
         DOC_ID = lv_doc_id
         PHIO_ID = lv_phio_id
         SIGNATURE = lv_signature
         SECURITY = lv_security
         NO_HTTP_LOG = lv_no_http_log
    IMPORTING
         CREA_TIME = lv_crea_time
         CREA_DATE = lv_crea_date
         CHNG_TIME = lv_chng_time
         CHNG_DATE = lv_chng_date
         STATUS = lv_status
    TABLES
         COMPS = lt_comps
    EXCEPTIONS
        BAD_STORAGE_TYPE = 1
        ERROR_HIERARCHY = 10
        ERROR_PARAMETER = 11
        ERROR = 12
        BAD_REQUEST = 2
        UNAUTHORIZED = 3
        NOT_FOUND = 4
        CONFLICT = 5
        INTERNAL_SERVER_ERROR = 6
        ERROR_HTTP = 7
        ERROR_SIGNATURE = 8
        ERROR_CONFIG = 9
. " SCMS_DOC_INFO




ABAP code using 7.40 inline data declarations to call FM SCMS_DOC_INFO

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 MANDT FROM SY INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
 
 
 
 
"SELECT single STOR_CAT FROM SDOKSTCA INTO @DATA(ld_stor_cat).
 
 
 
DATA(ld_crep_id) = ' '.
 
 
 
 
 
 
 
 
 
DATA(ld_signature) = 'X'.
 
 
DATA(ld_security) = ' '.
 
 
DATA(ld_no_http_log) = ' '.
 
 
 


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!