GET_HISTORY SAP Method TDL: Read Purchase Orders from Audit Trail









Below is documentation, parameters and attributes of ABAP Method GET_HISTORY within SAP class /SCMB/IF_TDL_PURCHASEORDER. 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 /SCMB/IF_TDL_PURCHASEORDER 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_HISTORY can also be found below:

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


Parameters of Method GET_HISTORY

.

NameTypeData TypeDescriptionDefault Value
IT_MATIDLOCIDImportingTYPE
/SCMB/MDE_MATIDLOCID_TAB
Product ID and Location ID Table
IT_ORDIDImportingTYPE
/SCMB/TDL_ORDID_TAB
TDL: Table with Order IDs
IT_SELPARAMSImportingTYPE
/SCMB/TDL_PRMVAL_SEL_TAB
Parameter Selection (Intervals)
IV_END_DATEImportingTYPE
/SCMB/TDL_TSTTO
TDL: Date, Finish
IV_LOCKFLAGImportingTYPE
BOOLE_D
Data Element for Domain BOOLE: TRUE (='X') and FALSE (=' ')
IV_SEL_MODEImportingTYPE
/SCMB/TDL_ORDER_SEL_MODE
TDL: Definition of Selected Period
IV_START_DATEImportingTYPE
/SCMB/TDL_TSTFR
TDL: Date, Start
IV_TRACKING_ONLYImportingTYPE
XFELD
Checkbox
IV_TRACK_FROMImportingTYPE
/SCMB/TDL_TSTFR
TDL: Date, Start
IV_TRACK_TOImportingTYPE
/SCMB/TDL_TSTTO
TDL: Date, Finish
IV_VRSIOIDImportingTYPE
/SCMB/TDL_VRSIOID
TDL: Version
ET_ORDERExportingTYPE
/SCMB/TDL_ORD_PO_HIST_TAB
TDL: Purchase Orders from Audit Trail
CT_RETURNChangingTYPE
BAPIRETTAB
Table with BAPI Return Information
CV_MSGTYChangingTYPE
MSGTY
Message Type



Exceptions of Method GET_HISTORY

/SCMB/CX_TDL_DAO - TDL: Error in the Data Access Classes

Example ABAP coding


DATA: lo_class TYPE REF TO /SCMB/IF_TDL_PURCHASEORDER.
DATA: lv_CT_RETURN TYPE BAPIRETTAB,
lv_CV_MSGTY TYPE MSGTY,
lv_ET_ORDER TYPE /SCMB/TDL_ORD_PO_HIST_TAB,
lv_IT_MATIDLOCID TYPE /SCMB/MDE_MATIDLOCID_TAB,
lv_IT_ORDID TYPE /SCMB/TDL_ORDID_TAB,
lv_IT_SELPARAMS TYPE /SCMB/TDL_PRMVAL_SEL_TAB,
lv_IV_END_DATE TYPE /SCMB/TDL_TSTTO,
lv_IV_LOCKFLAG TYPE BOOLE_D,
lv_IV_SEL_MODE TYPE /SCMB/TDL_ORDER_SEL_MODE,
lv_IV_START_DATE TYPE /SCMB/TDL_TSTFR,
lv_IV_TRACKING_ONLY TYPE XFELD,
lv_IV_TRACK_FROM TYPE /SCMB/TDL_TSTFR,
lv_IV_TRACK_TO TYPE /SCMB/TDL_TSTTO,
lv_IV_VRSIOID TYPE /SCMB/TDL_VRSIOID,
lv_other TYPE c.

CALL METHOD lo_class=>GET_HISTORY(
EXPORTING
IT_MATIDLOCID = lv_IT_MATIDLOCID
IT_ORDID = lv_IT_ORDID
IT_SELPARAMS = lv_IT_SELPARAMS
IV_END_DATE = lv_IV_END_DATE
IV_LOCKFLAG = lv_IV_LOCKFLAG
IV_SEL_MODE = lv_IV_SEL_MODE
IV_START_DATE = lv_IV_START_DATE
IV_TRACKING_ONLY = lv_IV_TRACKING_ONLY
IV_TRACK_FROM = lv_IV_TRACK_FROM
IV_TRACK_TO = lv_IV_TRACK_TO
IV_VRSIOID = lv_IV_VRSIOID
IMPORTING
ET_ORDER = lv_ET_ORDER
CHANGING
CT_RETURN = lv_CT_RETURN
CV_MSGTY = lv_CV_MSGTY ).

Links to Related Class(s)

/SCMB/IF...
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!