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

.

NameTypeData TypeDescriptionDefault Value
DIAD_AFVGDImportingTYPE
AFVGD
Order: Dialog table for Table AFVG (order operation)
DIAD_CAUFVDImportingTYPE
CAUFVD
Dialog structure for order headers and items
DIAD_MSFCVImportingTYPE
MSFCV
Material Master View on Production Orders
DIAD_MTCOMImportingTYPE
MTCOM
Material Master Communication
DIAD_RESBDImportingTYPE
RESBD
Reservierung/Sekundärbedarf
DIAD_RESBDImportingTYPE
RESBD
Reservierung/Sekundärbedarf
DIAD_BATCHChangingTYPE
MCHB-CHARG
Transfer Table to SAPLMBIN for Batch/Stock Selection
DIAD_LGORTChangingTYPE
RESB-LGORT
Storage location
DIAD_VAL_TYPEChangingTYPE
RESB-BWART
Bewegungsart (Bestandsführung)
DIAD_VENDORChangingTYPE
LFA1-LIFNR
Kontonummer des Lieferanten bzw. Kreditors
DIAD_WERKSChangingTYPE
RESB-WERKS
Plant
DIAD_VAL_TYPEChangingTYPE
BWTAR_D
Bewegungsart (Bestandsführung)



Exceptions of Method DIAD_NEW_SETTINGS

This method does not have any exceptions

Example 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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!