SWITCH_OFF_LDGRP SAP Method Deactivate Ledger-Specific Posting
Below is documentation, parameters and attributes of ABAP Method SWITCH_OFF_LDGRP within SAP class IF_EX_BADI_ALLO_LDGRP_OFF. 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_ALLO_LDGRP_OFF 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 SWITCH_OFF_LDGRP can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method SWITCH_OFF_LDGRP
.| Name | Type | Data Type | Description | Default Value |
| FLT_VAL | Importing | TYPE RLDNR | Ledger | |
| I_CYCLE | Importing | TYPE CYCLE | Assessment/Distribution Cycle | |
| I_LDGRP | Importing | TYPE FAGL_LDGRP | Ledger Group | |
| I_SDATE | Importing | TYPE SDATE | Start Date | |
| C_LDGRP_SPACE | Changing | TYPE BOOLE_D | X = Deactivate Ledger-Specific Posting When I_LDGRP = SPACE |
Exceptions of Method SWITCH_OFF_LDGRP
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_EX_BADI_ALLO_LDGRP_OFF.
DATA: lv_C_LDGRP_SPACE TYPE BOOLE_D,
lv_FLT_VAL TYPE RLDNR,
lv_I_CYCLE TYPE CYCLE,
lv_I_LDGRP TYPE FAGL_LDGRP,
lv_I_SDATE TYPE SDATE,
lv_other TYPE c.
CALL METHOD lo_class=>SWITCH_OFF_LDGRP(
EXPORTING
FLT_VAL = lv_FLT_VAL
I_CYCLE = lv_I_CYCLE
I_LDGRP = lv_I_LDGRP
I_SDATE = lv_I_SDATE
CHANGING
C_LDGRP_SPACE = lv_C_LDGRP_SPACE ).
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