GET_INTERCHANGE_PARTS SAP Method MPN Material Exchange - Filter materials for exchange









Below is documentation, parameters and attributes of ABAP Method GET_INTERCHANGE_PARTS within SAP class IF_EX_BADI_ADPIC_IC_PARTS. 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_ADPIC_IC_PARTS 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 GET_INTERCHANGE_PARTS can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method GET_INTERCHANGE_PARTS

.

NameTypeData TypeDescriptionDefault Value
IT_PICPSImportingTYPE
ADPIC_T_MATERIAL
Material Number
IV_ACTVTImportingTYPE
ACTIV_AUTH
Activity
IV_BERIDImportingTYPE
BERID
MRP area
IV_CHARGImportingTYPE
CHARG_D
Batch Number
IV_DATFRImportingTYPE
PIC_DATFR
Valid from date of an interchangeable part
IV_DETAILSImportingTYPE
XFELD
Retrieve Material Details
IV_FFFCImportingTYPE
XFELD
Retrieve Fully Interchangeable Materials
IV_KDAUFImportingTYPE
KDAUF
Sales Order Number
IV_KDPOSImportingTYPE
KDPOS
Item number in Sales Order
IV_KUNNRImportingTYPE
EKUNN
Account number of customer
IV_LGORTImportingTYPE
LGORT_D
Storage location
IV_MATNRImportingTYPE
MATNR
Material Number
IV_MRPGRImportingTYPE
XFELD
Retrieve MPN MRP Set Materials
IV_OWNERImportingTYPE
OWNER_D
Owner of stock
IV_PROCESS_CODEImportingTYPE
ADPIC_D_PROCESS_CODE
Pseudo Process code for processes supporting auto. IC/RIC
IV_PSPNRImportingTYPE
PS_PSP_PNR
Work Breakdown Structure Element (WBS Element)
IV_REQSTD_DATEImportingTYPE
PIC_DATFR
Requested Date for ATP Stock
IV_RICImportingTYPE
XFELD
Retrieve Restricted Interchangeable Materials
IV_SOBKZImportingTYPE
SOBKZ
Special Stock Indicator
IV_SUSImportingTYPE
XFELD
Retrieve Supersession Materials
IV_WERKSImportingTYPE
WERKS_D
Plant
ET_PICPS_ALLExportingTYPE
ADPIC_T_MATERIAL
ADCI MPN: Table Type for Interchangeable Parts
ET_RETURNExportingTYPE
ADPIC_T_BAPIRET2
Return Parameter



Exceptions of Method GET_INTERCHANGE_PARTS

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO IF_EX_BADI_ADPIC_IC_PARTS.
DATA: lv_ET_PICPS_ALL TYPE ADPIC_T_MATERIAL,
lv_ET_RETURN TYPE ADPIC_T_BAPIRET2,
lv_IT_PICPS TYPE ADPIC_T_MATERIAL,
lv_IV_ACTVT TYPE ACTIV_AUTH,
lv_IV_BERID TYPE BERID,
lv_IV_CHARG TYPE CHARG_D,
lv_IV_DATFR TYPE PIC_DATFR,
lv_IV_DETAILS TYPE XFELD,
lv_IV_FFFC TYPE XFELD,
lv_IV_KDAUF TYPE KDAUF,
lv_IV_KDPOS TYPE KDPOS,
lv_IV_KUNNR TYPE EKUNN,
lv_IV_LGORT TYPE LGORT_D,
lv_IV_MATNR TYPE MATNR,
lv_IV_MRPGR TYPE XFELD,
lv_IV_OWNER TYPE OWNER_D,
lv_IV_PROCESS_CODE TYPE ADPIC_D_PROCESS_CODE,
lv_IV_PSPNR TYPE PS_PSP_PNR,
lv_IV_REQSTD_DATE TYPE PIC_DATFR,
lv_IV_RIC TYPE XFELD,
lv_IV_SOBKZ TYPE SOBKZ,
lv_IV_SUS TYPE XFELD,
lv_IV_WERKS TYPE WERKS_D,
lv_other TYPE c.

CALL METHOD lo_class=>GET_INTERCHANGE_PARTS(
EXPORTING
IT_PICPS = lv_IT_PICPS
IV_ACTVT = lv_IV_ACTVT
IV_BERID = lv_IV_BERID
IV_CHARG = lv_IV_CHARG
IV_DATFR = lv_IV_DATFR
IV_DETAILS = lv_IV_DETAILS
IV_FFFC = lv_IV_FFFC
IV_KDAUF = lv_IV_KDAUF
IV_KDPOS = lv_IV_KDPOS
IV_KUNNR = lv_IV_KUNNR
IV_LGORT = lv_IV_LGORT
IV_MATNR = lv_IV_MATNR
IV_MRPGR = lv_IV_MRPGR
IV_OWNER = lv_IV_OWNER
IV_PROCESS_CODE = lv_IV_PROCESS_CODE
IV_PSPNR = lv_IV_PSPNR
IV_REQSTD_DATE = lv_IV_REQSTD_DATE
IV_RIC = lv_IV_RIC
IV_SOBKZ = lv_IV_SOBKZ
IV_SUS = lv_IV_SUS
IV_WERKS = lv_IV_WERKS
IMPORTING
ET_PICPS_ALL = lv_ET_PICPS_ALL
ET_RETURN = lv_ET_RETURN ).

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!