CHANGE_TYPE SAP Method Apply own criteria for account categorization in greek CoA
Below is documentation, parameters and attributes of ABAP Method CHANGE_TYPE within SAP class J_1GIF_EX_COA. 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 J_1GIF_EX_COA 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 CHANGE_TYPE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CHANGE_TYPE
.Name | Type | Data Type | Description | Default Value |
ACCOUNT | Importing | TYPE SAKNR | Account Number | |
FLT_VAL | Importing | TYPE KTOPL | Chart of Accounts | |
RLEN_AL | Importing | TYPE SAKLN | Redundant length of an A/L account (J_1GGS) | |
RLEN_GL | Importing | TYPE SAKLN | Redundant length of an G/L account (J_1GGS) | |
ACC_GRP | Changing | TYPE CHAR1 | 1st significant digit of the account (1-8,9,0) | |
ACC_TYP | Changing | TYPE CHAR1 | 'G': G/L account, 'A': A/L account |
Exceptions of Method CHANGE_TYPE
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO J_1GIF_EX_COA.
DATA: lv_ACCOUNT TYPE SAKNR,
lv_ACC_GRP TYPE CHAR1,
lv_ACC_TYP TYPE CHAR1,
lv_FLT_VAL TYPE KTOPL,
lv_RLEN_AL TYPE SAKLN,
lv_RLEN_GL TYPE SAKLN,
lv_other TYPE c.
CALL METHOD lo_class=>CHANGE_TYPE(
EXPORTING
ACCOUNT = lv_ACCOUNT
FLT_VAL = lv_FLT_VAL
RLEN_AL = lv_RLEN_AL
RLEN_GL = lv_RLEN_GL
CHANGING
ACC_GRP = lv_ACC_GRP
ACC_TYP = lv_ACC_TYP ).
Links to Related Class(s)
J_1GIF_E...Full list of available SAP object classes
Search for further information about these or an SAP related objects