VL31_HIST SAP (Structure VL31_HIST for Purchase Order History) Structure details
Description: Structure VL31_HIST for Purchase Order History
Structure field list including key, data, relationships and ABAP select examples
VL31_HIST is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Structure VL31_HIST for Purchase Order History" Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_VL31_HIST TYPE VL31_HIST.
The VL31_HIST table consists of various fields, each holding specific information or linking keys about Structure VL31_HIST for Purchase Order History data available in SAP. These include EBELN (Purchasing Document Number), EBELP (Item Number of Purchasing Document), ZEKKN (Sequential Number of Account Assignment), VGABE (Transaction/event type, purchase order history).. 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:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified
SAP VL31_HIST structure 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 |
MANDT | Client | MANDT | CLNT | 3 | T000 | MANDT | |||
EBELN | Purchasing Document Number | EBELN | CHAR | 10 | EKKO | ALPHA | EBELN | BES | MEKK_C |
EBELP | Item Number of Purchasing Document | EBELP | NUMC | 5 | EKPO | EBELP | BSP | ||
ZEKKN | Sequential Number of Account Assignment | DZEKKN | NUMC | 2 | NUM02 | ||||
VGABE | Transaction/event type, purchase order history | VGABE | CHAR | 1 | VGABE | ||||
GJAHR | Material Document Year | MJAHR | NUMC | 4 | GJAHR | GJAHR | MJA | ||
BELNR | Number of Material Document | MBLNR | CHAR | 10 | ALPHA | BELNR | MBN | ||
BUZEI | Item in Material Document | MBLPO | NUMC | 4 | MBLPO | POS | |||
BEWTP | PO history category | BEWTP | CHAR | 1 | T163B | BEWTP | |||
BWART | Movement Type (Inventory Management) | BWART | CHAR | 3 | T156 | BWART | BWA | ||
BUDAT | Posting Date in the Document | BUDAT | DATS | 8 | DATUM | ||||
MENGE | Quantity | MENGE_D | QUAN | 13(3) | MENG13 | ||||
MEINS | Purchase Order Unit of Measure | BSTME | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
BPMNG | Quantity in purchase order price unit | MENGE_BPR | QUAN | 13(3) | MENG13 | ||||
BPRME | Order Price Unit (Purchasing) | BBPRM | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
DMBTR | Amount in Local Currency | DMBTR | CURR | 13(2) | WERT7 | ||||
HSWAE | Local currency key | HSWAE | CUKY | 5 | TCURC | WAERS | |||
WRBTR | Amount in document currency | WRBTR | CURR | 13(2) | WERT7 | ||||
WAERS | Currency Key | WAERS | CUKY | 5 | TCURC | WAERS | FWS | ||
AREWR | GR/IR account clearing value in local currency | AREWR | CURR | 13(2) | WERT7 | ||||
WESBS | Goods Receipt Blocked Stock in Order Unit | WESBS | QUAN | 13(3) | MENG13 | ||||
BPWES | Quantity in GR blocked stock in order price unit | BPWES | QUAN | 13(3) | MENG13 | ||||
SHKZG | Debit/Credit Indicator | SHKZG | CHAR | 1 | SHKZG | ||||
BWTAR | Valuation Type | BWTAR_D | CHAR | 10 | T149D | BWTAR | BWT | ||
ELIKZ | 'Delivery Completed' Indicator | ELIKZ | CHAR | 1 | XFELD | ||||
XBLNR | Reference Document Number | XBLNR1 | CHAR | 16 | XBLNR1 | ||||
LFGJA | Fiscal Year of a Reference Document | LFBJA | NUMC | 4 | GJAHR | GJAHR | |||
LFBNR | Document No. of a Reference Document | LFBNR | CHAR | 10 | ALPHA | BELNR | |||
LFPOS | Item of a Reference Document | LFPOS | NUMC | 4 | MBLPO | ||||
GRUND | Reason for Movement | MB_GRBEW | NUMC | 4 | T157D | MB_GRBEW | |||
CPUDT | Day On Which Accounting Document Was Entered | CPUDT | DATS | 8 | DATUM | ||||
CPUTM | Time of Entry | CPUTM | TIMS | 6 | UZEIT | ||||
REEWR | Invoice Value Entered (in Local Currency) | REEWR | CURR | 13(2) | WRTV7 | ||||
EVERE | Compliance with Shipping Instructions | EVERE | CHAR | 2 | T027C | EVERE | |||
REFWR | Invoice value in foreign currency | REFWR | CURR | 13(2) | WRTV7 | ||||
MATNR | Material Number | MATNR | CHAR | 18 | MARA | MATN1 | MATNR | MAT | S_MAT1 |
WERKS | Plant | WERKS_D | CHAR | 4 | T001W | WERKS | WRK | H_T001W_C | |
XWSBR | Reversal of GR allowed for GR-based IV despite invoice | XWSBR | CHAR | 1 | XFELD | ||||
ETENS | Sequential Number of Vendor Confirmation | ETENS | NUMC | 4 | NUM04 | ||||
KNUMV | Number of the document condition | KNUMV | CHAR | 10 | KNUMV | ||||
MWSKZ | Tax on sales/purchases code | MWSKZ | CHAR | 2 | Assigned to domain | MWSKZ | |||
LSMNG | Quantity in Unit of Measure from Delivery Note | LSMNG | QUAN | 13(3) | MENG13 | ||||
LSMEH | Unit of Measure From Delivery Note | LSMEH | UNIT | 3 | T006 | CUNIT | MEINS | ||
EMATN | Material Number | EMATNR | CHAR | 18 | MARA | MATN1 | MATNR | MAT | |
AREWW | Clearing value on GR/IR clearing account (transac. currency) | AREWW | CURR | 13(2) | WERT7 | ||||
BAMNG | Quantity | MENGE_D | QUAN | 13(3) | MENG13 | ||||
CHARG | Batch Number | CHARG_D | CHAR | 10 | Assigned to domain | CHARG | CHA | ||
BLDAT | Document Date in Document | BLDAT | DATS | 8 | DATUM | ||||
XWOFF | Calculation of val. open | XWOFF | CHAR | 1 | XFELD | ||||
XUNPL | Unplanned Account Assignment from Invoice Verification | XUNPL | CHAR | 1 | XFELD | ||||
ERNAM | Name of Person who Created the Object | ERNAM | CHAR | 12 | USNAM | ||||
SRVPOS | Service number | SRVPOS | CHAR | 18 | Assigned to domain | ALPHA | ASNUM | ||
PACKNO | Package Number of Service | PACKNO_EKBE | NUMC | 10 | Assigned to domain | PACKNO | |||
INTROW | Line Number of Service | INTROW_EKBE | NUMC | 10 | INTROW | ||||
BEKKN | Number of PO Account Assignment | BEKKN | NUMC | 2 | NUM02 | ||||
BSTYP | Purchasing Document Category | EBSTYP | CHAR | 1 | EBSTYP |
Key field | Non-key field |
How do I retrieve data from SAP structure VL31_HIST using ABAP code?
As VL31_HIST is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on VL31_HIST as there is no data to select.How to access SAP table VL31_HIST
Within an ECC or HANA version of SAP you can also view further information about VL31_HIST and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects