BFSTOCK SAP (Stock Determination Results Table) Structure details
Description: Stock Determination Results Table
Structure field list including key, data, relationships and ABAP select examples
BFSTOCK 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 "Stock Determination Results Table" 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_BFSTOCK TYPE BFSTOCK.
The BFSTOCK table consists of various fields, each holding specific information or linking keys about Stock Determination Results Table data available in SAP. These include WERKS (Plant), LGORT (Storage Location), CHARG (Batch Number), BWTAR (Valuation Type).. 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 BFSTOCK 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 |
MATNR | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
WERKS | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
LGORT | Storage Location | LGORT_D | CHAR | 4 | Assigned to domain | LGORT | LAG | ||
CHARG | Batch Number | CHARG_D | CHAR | 10 | Assigned to domain | CHARG | CHA | ||
BWTAR | Valuation Type | BWTAR_D | CHAR | 10 | Assigned to domain | BWTAR | BWT | ||
SOBKZ | Special Stock Indicator | SOBKZ | CHAR | 1 | Assigned to domain | SOBKZ | |||
LIFNR | Vendor Account Number | ELIFN | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
MENGE | Quantity | MENGE_D | QUAN | 13(3) | MENG13 | ||||
MEINS | Base Unit of Measure | MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
ERFMG | Quantity in Unit of Entry | ERFMG | QUAN | 13(3) | MENG13 | ||||
ERFME | Unit of Entry | ERFME | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
UMREZ | Numerator for Conversion to Base Units of Measure | UMREZ | DEC | 5 | UMBSZ | ||||
UMREN | Denominator for conversion to base units of measure | UMREN | DEC | 5 | UMBSN | ||||
VRFMG | Available quantity | VRFMG | QUAN | 13(3) | MENGV13 | ||||
KZUPD | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
SUBRC | Subroutines for return code | SUBRC | NUMC | 2 | EK08R_RC | ||||
POSNR | Numeric field: Length 6 | NUM06 | NUMC | 6 | NUM06 | ||||
LOBM_BPRIO | Stock determination: Priority indicator | BF_BPRIO | NUMC | 3 | NUM3 | ||||
TABIX_INT | Field defined as in SY-TABIX | TABIX_D | INT4 | 10 | TABIX |
Key field | Non-key field |
How do I retrieve data from SAP structure BFSTOCK using ABAP code?
As BFSTOCK 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 BFSTOCK as there is no data to select.How to access SAP table BFSTOCK
Within an ECC or HANA version of SAP you can also view further information about BFSTOCK 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