ADD_PEG_TXPT SAP Method Create/maintain PEG_TXPT record while GI to STO
Below is documentation, parameters and attributes of ABAP Method ADD_PEG_TXPT within SAP class IF_EX_BADI_GPD_16. 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_16 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 ADD_PEG_TXPT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ADD_PEG_TXPT
.| Name | Type | Data Type | Description | Default Value |
| IS_MKPF | Importing | TYPE MKPF | Header: Material Document | |
| IS_MSEG | Importing | TYPE MSEG | Document Segment: Material | |
| IV_DATE | Importing | TYPE PEG_TSTK-EINDT | Item delivery date | |
| IV_PLANT | Importing | TYPE MSEG-WERKS | Plant | |
| IV_QTY | Importing | TYPE MSEG-MENGE | Quantity | |
| IV_REPOBJ_R | Importing | TYPE PEG_TASS-REPOBJ | Object Number Replenishment Element | |
| IV_REPOBJ_S | Importing | TYPE PEG_TASS-REPOBJ | Object Number Replenishment Element | |
| CT_PEG_TXPT | Changing | TYPE PEG_T_TXPT | Table of cross plant transfers w.r.t STO's |
Exceptions of Method ADD_PEG_TXPT
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_EX_BADI_GPD_16.
DATA: lv_CT_PEG_TXPT TYPE PEG_T_TXPT,
lv_IS_MKPF TYPE MKPF,
lv_IS_MSEG TYPE MSEG,
lv_IV_DATE TYPE PEG_TSTK-EINDT,
lv_IV_PLANT TYPE MSEG-WERKS,
lv_IV_QTY TYPE MSEG-MENGE,
lv_IV_REPOBJ_R TYPE PEG_TASS-REPOBJ,
lv_IV_REPOBJ_S TYPE PEG_TASS-REPOBJ,
lv_other TYPE c.
CALL METHOD lo_class=>ADD_PEG_TXPT(
EXPORTING
IS_MKPF = lv_IS_MKPF
IS_MSEG = lv_IS_MSEG
IV_DATE = lv_IV_DATE
IV_PLANT = lv_IV_PLANT
IV_QTY = lv_IV_QTY
IV_REPOBJ_R = lv_IV_REPOBJ_R
IV_REPOBJ_S = lv_IV_REPOBJ_S
CHANGING
CT_PEG_TXPT = lv_CT_PEG_TXPT ).
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