READ_CMMTITEM SAP Method Read hierarchy data for commitment item









Below is documentation, parameters and attributes of ABAP Method READ_CMMTITEM within SAP class IF_EX_BADI_FMHIE_READ_MD. 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 IF_EX_BADI_FMHIE_READ_MD into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method READ_CMMTITEM can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method READ_CMMTITEM

.

NameTypeData TypeDescriptionDefault Value
IM_APPL_LOGImportingTYPE REF TO
CL_BUBAS_APPL_LOG_CTX
Application log with context
IM_FLG_USE_CMMTITEM_VARIANTImportingTYPE
BOOLE_D
Read hierarchy or flat list?
IM_HEADERImportingTYPE
FMHIE_S_HIE_ID_KEY
Keys for Hierarchy ID
IM_MAX_LEVELSImportingTYPE
I
Number of hierarchy levels
IM_RCMMTITEMImportingTYPE
FMBS_T_RCMMTITEM
Range table commitment item
IM_VARIANTImportingTYPE
FM_VARNT
Commitment Item Hierarchy Variant
E_T_CMMTITEM_HIEExportingTYPE
FMHIE_T_NODE_STRING
Table of nodes with character keys



Exceptions of Method READ_CMMTITEM

E_T_CMMTITEM_HIEExportingTYPE
FMHIE_T_NODE_STRINGTable of nodes with character keysWRONG_INPUT - Error in the input parameter (e.g. wrong FM area)

Example ABAP coding


DATA: lo_class TYPE REF TO IF_EX_BADI_FMHIE_READ_MD.
DATA: lv_E_T_CMMTITEM_HIE TYPE FMHIE_T_NODE_STRING,
lv_IM_APPL_LOG TYPE CL_BUBAS_APPL_LOG_CTX,
lv_IM_FLG_USE_CMMTITEM_VARIANT TYPE BOOLE_D,
lv_IM_HEADER TYPE FMHIE_S_HIE_ID_KEY,
lv_IM_MAX_LEVELS TYPE I,
lv_IM_RCMMTITEM TYPE FMBS_T_RCMMTITEM,
lv_IM_VARIANT TYPE FM_VARNT,
lv_other TYPE c.

CALL METHOD lo_class=>READ_CMMTITEM(
EXPORTING
IM_APPL_LOG = lv_IM_APPL_LOG
IM_FLG_USE_CMMTITEM_VARIANT = lv_IM_FLG_USE_CMMTITEM_VARIANT
IM_HEADER = lv_IM_HEADER
IM_MAX_LEVELS = lv_IM_MAX_LEVELS
IM_RCMMTITEM = lv_IM_RCMMTITEM
IM_VARIANT = lv_IM_VARIANT
IMPORTING
E_T_CMMTITEM_HIE = lv_E_T_CMMTITEM_HIE ).

Links to Related Class(s)

IF_EX_BA...
Full list of available SAP object classes

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!