READ_CURRENT_LFM2 SAP Method Get LFM2 from Current Memory









Below is documentation, parameters and attributes of ABAP Method READ_CURRENT_LFM2 within SAP class VMD_EI_API_MEMORY. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name VMD_EI_API_MEMORY into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method READ_CURRENT_LFM2 can also be found below:

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


Parameters of Method READ_CURRENT_LFM2

.

NameTypeData TypeDescriptionDefault Value
IV_EKORGImportingTYPE
EKORG
Purchasing Organization
IV_LIFNRImportingTYPE
LIFNR
Account Number of Vendor
IV_LTSNRImportingTYPE
LTSNR
Vendor Subrange
IV_WERKSImportingTYPE
WERKS_D
Plant
IV_LIFNRImportingTYPE
LIFNR
Account Number of Vendor or Creditor
ES_LFM2_NEWExportingTYPE
LFM2
Vendor Master Record: Purchasing Data
ES_LFM2_OLDExportingTYPE
LFM2
Vendor Master Record: Purchasing Data



Exceptions of Method READ_CURRENT_LFM2

This method does not have any exceptions

Example ABAP coding

This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.

DATA: lv_ES_LFM2_NEW TYPE LFM2,
lv_ES_LFM2_OLD TYPE LFM2,
lv_IV_EKORG TYPE EKORG,
lv_IV_LIFNR TYPE LIFNR,
lv_IV_LTSNR TYPE LTSNR,
lv_IV_WERKS TYPE WERKS_D,
lv_IV_LIFNR TYPE LIFNR,
lv_other TYPE c.

CALL METHOD VMD_EI_API_MEMORY=>READ_CURRENT_LFM2(
EXPORTING
IV_EKORG = lv_IV_EKORG
IV_LIFNR = lv_IV_LIFNR
IV_LTSNR = lv_IV_LTSNR
IV_WERKS = lv_IV_WERKS
IV_LIFNR = lv_IV_LIFNR
IMPORTING
ES_LFM2_NEW = lv_ES_LFM2_NEW
ES_LFM2_OLD = lv_ES_LFM2_OLD ).

Links to Related Class(s)

VMD_EI_A...
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!