GET_DOC_BY_KEY SAP Method Get Document by Document Key
Below is documentation, parameters and attributes of ABAP Method GET_DOC_BY_KEY within SAP class /SCMB/CL_DF_CORE. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMB/CL_DF_CORE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method GET_DOC_BY_KEY can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_DOC_BY_KEY
.| Name | Type | Data Type | Description | Default Value |
| IS_DOC_KEY | Importing | TYPE /SCMB/S_DF_DOC_KEY | Document Key | |
| RO_DOC_OBJ | Returning | TYPE REF TO /SCMB/CL_DF_DOCUMENT2 | Document |
Exceptions of Method GET_DOC_BY_KEY
/SCMB/CX_DFI_DOCUMENT -Example ABAP coding
DATA: lv_IS_DOC_KEY TYPE /SCMB/S_DF_DOC_KEY,
lv_RO_DOC_OBJ TYPE /SCMB/CL_DF_DOCUMENT2,
lv_other TYPE c.
CALL METHOD /SCMB/CL_DF_CORE=>GET_DOC_BY_KEY(
EXPORTING
IS_DOC_KEY = lv_IS_DOC_KEY
RECEIVING
RO_DOC_OBJ = lv_RO_DOC_OBJ )
"Alternate coding for Method Call with returning parameter
lv_RO_DOC_OBJ = /SCMB/CL_DF_CORE=>GET_DOC_BY_KEY(
EXPORTING
IS_DOC_KEY = lv_IS_DOC_KEY ).
Links to Related Class(s)
/SCMB/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects