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 directlyThe 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
.| Name | Type | Data Type | Description | Default Value |
| IV_EKORG | Importing | TYPE EKORG | Purchasing Organization | |
| IV_LIFNR | Importing | TYPE LIFNR | Account Number of Vendor | |
| IV_LTSNR | Importing | TYPE LTSNR | Vendor Subrange | |
| IV_WERKS | Importing | TYPE WERKS_D | Plant | |
| IV_LIFNR | Importing | TYPE LIFNR | Account Number of Vendor or Creditor | |
| ES_LFM2_NEW | Exporting | TYPE LFM2 | Vendor Master Record: Purchasing Data | |
| ES_LFM2_OLD | Exporting | TYPE LFM2 | Vendor Master Record: Purchasing Data |
Exceptions of Method READ_CURRENT_LFM2
This method does not have any exceptionsExample 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