DIAD_NEW_SETTINGS SAP Method Consider batches and different vendor and valuation typ
Below is documentation, parameters and attributes of ABAP Method DIAD_NEW_SETTINGS within SAP class IF_EX_BADI_DI_PCS2_1. 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_DI_PCS2_1 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 DIAD_NEW_SETTINGS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method DIAD_NEW_SETTINGS
.| Name | Type | Data Type | Description | Default Value |
| DIAD_AFVGD | Importing | TYPE AFVGD | Order: Dialog table for Table AFVG (order operation) | |
| DIAD_CAUFVD | Importing | TYPE CAUFVD | Dialog structure for order headers and items | |
| DIAD_MSFCV | Importing | TYPE MSFCV | Material Master View on Production Orders | |
| DIAD_MTCOM | Importing | TYPE MTCOM | Material Master Communication | |
| DIAD_RESBD | Importing | TYPE RESBD | Reservierung/Sekundärbedarf | |
| DIAD_RESBD | Importing | TYPE RESBD | Reservierung/Sekundärbedarf | |
| DIAD_BATCH | Changing | TYPE MCHB-CHARG | Transfer Table to SAPLMBIN for Batch/Stock Selection | |
| DIAD_LGORT | Changing | TYPE RESB-LGORT | Storage location | |
| DIAD_VAL_TYPE | Changing | TYPE RESB-BWART | Bewegungsart (Bestandsführung) | |
| DIAD_VENDOR | Changing | TYPE LFA1-LIFNR | Kontonummer des Lieferanten bzw. Kreditors | |
| DIAD_WERKS | Changing | TYPE RESB-WERKS | Plant | |
| DIAD_VAL_TYPE | Changing | TYPE BWTAR_D | Bewegungsart (Bestandsführung) |
Exceptions of Method DIAD_NEW_SETTINGS
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_EX_BADI_DI_PCS2_1.
DATA: lv_DIAD_AFVGD TYPE AFVGD,
lv_DIAD_BATCH TYPE MCHB-CHARG,
lv_DIAD_CAUFVD TYPE CAUFVD,
lv_DIAD_LGORT TYPE RESB-LGORT,
lv_DIAD_MSFCV TYPE MSFCV,
lv_DIAD_MTCOM TYPE MTCOM,
lv_DIAD_RESBD TYPE RESBD,
lv_DIAD_VAL_TYPE TYPE RESB-BWART,
lv_DIAD_VENDOR TYPE LFA1-LIFNR,
lv_DIAD_WERKS TYPE RESB-WERKS,
lv_DIAD_RESBD TYPE RESBD,
lv_DIAD_VAL_TYPE TYPE BWTAR_D,
lv_other TYPE c.
CALL METHOD lo_class=>DIAD_NEW_SETTINGS(
EXPORTING
DIAD_AFVGD = lv_DIAD_AFVGD
DIAD_CAUFVD = lv_DIAD_CAUFVD
DIAD_MSFCV = lv_DIAD_MSFCV
DIAD_MTCOM = lv_DIAD_MTCOM
DIAD_RESBD = lv_DIAD_RESBD
DIAD_RESBD = lv_DIAD_RESBD
CHANGING
DIAD_BATCH = lv_DIAD_BATCH
DIAD_LGORT = lv_DIAD_LGORT
DIAD_VAL_TYPE = lv_DIAD_VAL_TYPE
DIAD_VENDOR = lv_DIAD_VENDOR
DIAD_WERKS = lv_DIAD_WERKS
DIAD_VAL_TYPE = lv_DIAD_VAL_TYPE ).
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