LFMH SAP (Vendor hierarchy) Table details

Dictionary Type: Table
Description: Vendor hierarchy




ABAP Code to SELECT data from LFMH
Related tables to LFMH
Access table LFMH




Table field list including key, data, relationships and ABAP select examples

LFMH is a standard SAP Table which is used to store Vendor hierarchy data and is available within R/3 SAP systems depending on the version and release level.

The LFMH table consists of various fields, each holding specific information or linking keys about Vendor hierarchy data available in SAP. These include HITYP (Hierarchy category: vendor hierarchy), LIFNR (Account Number of Vendor or Creditor), EKORG (Purchasing Organization), DATAB (Start of validity period for assignment).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

Delivery Class: A - Application table (master and transaction data)
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP LFMH table fields - Full list of fields found in SAP data dictionary

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
MANDTClient MANDTCLNT3T000MANDT
HITYPHierarchy category: vendor hierarchy HITYP_LHCHAR1TLHITHITYP_LHHITYP_LH
LIFNRAccount Number of Vendor or Creditor LIFNRCHAR10LFA1ALPHALIFNRLIFKRED_C
EKORGPurchasing Organization EKORGCHAR4T024EEKORGEKO
DATABStart of validity period for assignment DATAB_KHDATS8DATUM
DATBIEnd of validity period for the assignment DATBI_KHDATS8DATUM
HLIFNRVendor number of higher-level vendor hierarchy HLIFNR_LHCHAR10LFA1ALPHALIFNR
HEKORGHigher-level purchasing organization HEKORGCHAR4T024EEKORG
GRPNONumber of the routine used for copying GRPNONUMC3Assigned to domainGRPNO
BOLREIndicator: vendor subject to subseq. settlement accounting BOLRECHAR1XFELD
PRFREIndicator: 'relev. to price determination (vend. hierarchy) PRFRE_LHCHAR1XFELD
HZUORAssignment to Hierarchy HZUORNUMC2HZUOR

Key field Non-key field



How do I retrieve data from SAP table LFMH using ABAP code

The following ABAP code Example will allow you to do a basic selection on LFMH to SELECT all data from the table
DATA: WA_LFMH TYPE LFMH.

SELECT SINGLE *
FROM LFMH
INTO CORRESPONDING FIELDS OF WA_LFMH
WHERE...

How to access SAP table LFMH

Within an ECC or HANA version of SAP you can also view further information about LFMH and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


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!