GET_CURRENT_PERIOD SAP Method Current Period
Below is documentation, parameters and attributes of ABAP Method GET_CURRENT_PERIOD within SAP class /FMP/CL_MP_POSTING_PERIOD. 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 /FMP/CL_MP_POSTING_PERIOD 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_CURRENT_PERIOD can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_CURRENT_PERIOD
.| Name | Type | Data Type | Description | Default Value |
| IV_BUKRS | Importing | TYPE BUKRS | Company Code | |
| IV_BWKEY | Importing | TYPE BWKEY | Valuation Area | |
| RV_JAHRPER | Returning | TYPE JAHRPER | Period/Year |
Exceptions of Method GET_CURRENT_PERIOD
/FMP/CX_MP_EXCEPTION_STATIC - Statically Checked ExceptionsExample ABAP coding
DATA: lv_IV_BUKRS TYPE BUKRS,
lv_IV_BWKEY TYPE BWKEY,
lv_RV_JAHRPER TYPE JAHRPER,
lv_other TYPE c.
CALL METHOD /FMP/CL_MP_POSTING_PERIOD=>GET_CURRENT_PERIOD(
EXPORTING
IV_BUKRS = lv_IV_BUKRS
IV_BWKEY = lv_IV_BWKEY
RECEIVING
RV_JAHRPER = lv_RV_JAHRPER )
"Alternate coding for Method Call with returning parameter
lv_RV_JAHRPER = /FMP/CL_MP_POSTING_PERIOD=>GET_CURRENT_PERIOD(
EXPORTING
IV_BUKRS = lv_IV_BUKRS
IV_BWKEY = lv_IV_BWKEY ).
Links to Related Class(s)
/FMP/CL_...Full list of available SAP object classes
Search for further information about these or an SAP related objects