PEG_EXCESS SAP Method Pegging: Distribution of Excess
Below is documentation, parameters and attributes of ABAP Method PEG_EXCESS within SAP class IF_EX_BADI_GPD_02. 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_GPD_02 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 PEG_EXCESS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method PEG_EXCESS
.| Name | Type | Data Type | Description | Default Value |
| IT_HIST_ASS | Importing | TYPE PEG_T_TASS | Historical Assignments | |
| I_GRPNR | Importing | TYPE GRPSPNR | Grouping WBS element | |
| I_LOG_HANDLE | Importing | TYPE BALLOGHNDL | Application Log Handle | |
| I_TCTRL | Importing | TYPE PEG_TCTRL | Pegging: Customizing on Plant Level | |
| I_WERKS | Importing | TYPE WERKS_D | Plant | |
| CT_REAL_ASS | Changing | TYPE PEG_T_TASS | Amended Assignments (Excess Has Been Distributed) | |
| CT_REPLEN | Changing | TYPE PEG_T_REPLEN | Detail Info. Replenishment Element Current Pegginglauf |
Exceptions of Method PEG_EXCESS
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_EX_BADI_GPD_02.
DATA: lv_CT_REAL_ASS TYPE PEG_T_TASS,
lv_CT_REPLEN TYPE PEG_T_REPLEN,
lv_IT_HIST_ASS TYPE PEG_T_TASS,
lv_I_GRPNR TYPE GRPSPNR,
lv_I_LOG_HANDLE TYPE BALLOGHNDL,
lv_I_TCTRL TYPE PEG_TCTRL,
lv_I_WERKS TYPE WERKS_D,
lv_other TYPE c.
CALL METHOD lo_class=>PEG_EXCESS(
EXPORTING
IT_HIST_ASS = lv_IT_HIST_ASS
I_GRPNR = lv_I_GRPNR
I_LOG_HANDLE = lv_I_LOG_HANDLE
I_TCTRL = lv_I_TCTRL
I_WERKS = lv_I_WERKS
CHANGING
CT_REAL_ASS = lv_CT_REAL_ASS
CT_REPLEN = lv_CT_REPLEN ).
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