PEG_SCRAP SAP Method Pegging: Distribution of Scrap
Below is documentation, parameters and attributes of ABAP Method PEG_SCRAP within SAP class IF_EX_BADI_GPD_03. 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_03 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_SCRAP can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method PEG_SCRAP
.| Name | Type | Data Type | Description | Default Value |
| IT_HIST_ASS | Importing | TYPE PEG_T_TASS | Historical Assignments | |
| I_GRPNR | Importing | TYPE GRPSPNR | Group WBS Element | |
| I_LOG_HANDLE | Importing | TYPE BALLOGHNDL | Application Log: Log Handle | |
| I_TCTRL | Importing | TYPE PEG_TCTRL | Pegging Customizing Settings | |
| I_WERKS | Importing | TYPE WERKS_D | Plant | |
| CT_REAL_ASS | Changing | TYPE PEG_T_TASS | Actual Assignments | |
| CT_REPLEN | Changing | TYPE PEG_T_REPLEN | Detailed Information Replenishment Object |
Exceptions of Method PEG_SCRAP
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_EX_BADI_GPD_03.
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_SCRAP(
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