S123 SAP (Customer / material group) Table details
Dictionary Type: Table
Description: Customer / material group
Description: Customer / material group
Table field list including key, data, relationships and ABAP select examples
S123 is a standard SAP Table which is used to store Customer / material group data and is available within R/3 SAP systems depending on the version and release level.
The S123 table consists of various fields, each holding specific information or linking keys about Customer / material group data available in SAP. These include SSOUR (Statistic(s) origin), VRSIO (Version number in the information structure), SPMON (Period to analyze - month), SPTAG (Period to analyze - current date).. 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: Cannot Be Enhanced
SAP S123 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 |
MANDT | Client | MANDT | CLNT | 3 | T000 | MANDT | |||
SSOUR | Statistic(s) origin | SSOUR | CHAR | 4 | SSOUR | ||||
VRSIO | Version number in the information structure | VRSIO | CHAR | 3 | Assigned to domain | VRSIO | MCV | ||
SPMON | Period to analyze - month | SPMON | NUMC | 6 | PERI | MCPERIOD | |||
SPTAG | Period to analyze - current date | SPTAG | DATS | 8 | DATUM | ||||
SPWOC | Period to analyze - week | SPWOC | NUMC | 6 | PERI | MCPERIOD | |||
SPBUP | Period to analyze - posting period | SPBUP | NUMC | 6 | PERI | MCPERIOD | |||
EKORG | Purchasing Organization | EKORG | CHAR | 4 | T024E | EKORG | EKO | ||
VKORG | Sales Organization | VKORG | CHAR | 4 | TVKO | VKORG | VKO | C_VKORG | |
VTWEG | Distribution Channel | VTWEG | CHAR | 2 | TVTW | VTWEG | VTW | C_VTWEG | |
BZIRK | Sales district | BZIRK | CHAR | 6 | T171 | BZIRK | BZI | ||
WERKS | Plant | WERKS_D | CHAR | 4 | T001W | WERKS | WRK | H_T001W_C | |
KUNAG | Sold-to party | KUNAG | CHAR | 10 | KNA1 | ALPHA | KUNNR | VAG | |
WGRU2 | Material group hierarchy 2 | MCW_WGRU2 | CHAR | 18 | KLASSE | WGRU2 | |||
WGRU1 | Material group hierarchy 1 | MCW_WGRU1 | CHAR | 18 | KLASSE | WGRU1 | |||
MATKL | Material Group | MATKL | CHAR | 9 | T023 | MATKL | MKL | S_WBWG | |
PERIV | Fiscal Year Variant | PERIV | CHAR | 2 | Assigned to domain | PERIV | |||
VWDAT | Pointer to administrative data | VWDAT | NUMC | 10 | VWDAT | ||||
BASME | Base Unit of Measure | MEINS | UNIT | 3 | T006 | CUNIT | MEINS | ||
HWAER | Local Currency | HWAER | CUKY | 5 | TCURC | WAERS | |||
KAVMNG | Sales order volume quantity | MCW_KAVMNG | QUAN | 15(3) | MENGV15_3 | ||||
KAVGEO | Sales order volume at cost | MCW_KAVGEO | CURR | 19(2) | WERTV10 | ||||
KAVGVO | Sales order volume at retail | MCW_KAVGVO | CURR | 19(2) | WERTV10 | ||||
KAVGVP | Sales order volume at retail with tax | MCW_KAVGVP | CURR | 19(2) | WERTV10 | ||||
KAVANZ | Sales order volume number of transactions | MCW_KAVANZ | INT4 | 10 | MCZAEHLINT | ||||
RAVMNG | Return orders quantity | MCW_RAVMNG | QUAN | 15(3) | MENGV15_3 | ||||
RAVGEO | Return orders at cost | MCW_RAVGEO | CURR | 19(2) | WERTV10 | ||||
RAVGVO | Return orders at retail | MCW_RAVGVO | CURR | 19(2) | WERTV10 | ||||
RAVGVP | Return orders at retail with tax | MCW_RAVGVP | CURR | 19(2) | WERTV10 | ||||
RAVANZ | Return orders, no. of transactions | MCW_RAVANZ | INT4 | 10 | MCZAEHLINT | ||||
SAVMNG | Third-party orders quantity | MCW_SAVMNG | QUAN | 15(3) | MENGV15_3 | ||||
SAVGEO | Third-party orders at cost | MCW_SAVGEO | CURR | 19(2) | WERTV10 | ||||
SAVGVO | Third party orders at retail | MCW_SAVGVO | CURR | 19(2) | WERTV10 | ||||
SAVGVP | Third-party orders at retail with tax | MCW_SAVGVP | CURR | 19(2) | WERTV10 | ||||
SAVANZ | Third-party order, no. of transactions | MCW_SAVANZ | INT4 | 10 | MCZAEHLINT | ||||
LIFMNG | Deliveries to customers, quantity | MCW_LIFMNG | QUAN | 15(3) | MENGV15_3 | ||||
LIFANZ | Deliveries to customers, no. of transactions | MCW_LIFANZ | INT4 | 10 | MCZAEHLINT | ||||
RLFMNG | Return deliveries from customer, quantity | MCW_RLFMNG | QUAN | 15(3) | MENGV15_3 | ||||
RLFANZ | Return deliveries from customer, no. of transactions | MCW_RLFANZ | INT4 | 10 | MCZAEHLINT | ||||
OAVMNG | On-order quantity IS-R | MCW_OAVMNG | QUAN | 15(3) | MENGV15_3 | ||||
OAVWRT | On-order value IS-R | MCW_OAVWRT | CURR | 19(2) | WERTV10 | ||||
UMAMNG | Sales (absolute) quantity in BUn | MCW_UMAMNG | QUAN | 15(3) | MENGV15_3 | ||||
UMAGEO | Sales (absolute) at cost | MCW_UMAGEO | CURR | 19(2) | WERTV10 | ||||
UMAGVO | Sales (absolute) at retail | MCW_UMAGVO | CURR | 19(2) | WERTV10 | ||||
UMAGVP | Sales (absolute) at retail with tax | MCW_UMAGVP | CURR | 19(2) | WERTV10 | ||||
PRSNLA | Sales deviation (absolute) during sales | MCW_PRSNLA | CURR | 19(2) | WERTV10 | ||||
AUMMNG | Promotion sales quantity in BUn | MCW_AUMMNG | QUAN | 15(3) | MENGV15_3 | ||||
AUMGEO | Promotion sales at cost | MCW_AUMGEO | CURR | 19(2) | WERTV10 | ||||
AUMGVO | Promotion sales at retail | MCW_AUMGVO | CURR | 19(2) | WERTV10 | ||||
AUMGVP | Promotion sales at retail with tax | MCW_AUMGVP | CURR | 19(2) | WERTV10 | ||||
GUTMNG | Credit memo quantity in BUn | MCW_GUTMNG | QUAN | 15(3) | MENGV15_3 | ||||
GUTGEO | Credit memo at cost | MCW_GUTGEO | CURR | 19(2) | WERTV10 | ||||
GUTGVO | Credit memo at retail | MCW_GUTGVO | CURR | 19(2) | WERTV10 | ||||
GUTGVP | Credit memo at retail with tax | MCW_GUTGVP | CURR | 19(2) | WERTV10 | ||||
GUTNLS | Credit memo deviation at sale | MCW_GUTNLS | CURR | 19(2) | WERTV10 | ||||
UMSMNG | Third-party sales quantity in BUn | MCW_SUMMNG | QUAN | 15(3) | MENGV15_3 | ||||
UMSGEO | Third-party sales at cost | MCW_SUMGEO | CURR | 19(2) | WERTV10 | ||||
UMSGVO | Third-party sales at retail | MCW_SUMGVO | CURR | 19(2) | WERTV10 | ||||
UMSGVP | Third-party sales at retail with tax | MCW_SUMGVP | CURR | 19(2) | WERTV10 | ||||
PRSNLS | Third-party sales deviation | MCW_SPRSNL | CURR | 19(2) | WERTV10 | ||||
KAVMAM | Sales order volume margin with tax | MCW_KAVMAM | DEC | 6(2) | PRZ32V | ||||
KAVMAO | Sales order volume margin | MCW_KAVMAO | DEC | 6(2) | PRZ32V | ||||
SAVMAM | Third-party order margin w/tax | MCW_SAVMAM | DEC | 6(2) | PRZ32V | ||||
SAVMAO | Third-party order margin | MCW_SAVMAO | DEC | 6(2) | PRZ32V | ||||
UMSMAO | Sales margin | MCW_UMSMAO | DEC | 6(2) | PRZ32V | ||||
UMSMAM | Sales margin with tax | MCW_UMSMAM | DEC | 6(2) | PRZ32V | ||||
AUMMAO | Promotion sales margin | MCW_AUMMAO | DEC | 6(2) | PRZ32V | ||||
AUMMAM | Promotion sales margin with tax | MCW_AUMMAM | DEC | 6(2) | PRZ32V | ||||
KUNRG | Payer | KUNRG | CHAR | 10 | KNA1 | ALPHA | KUNNR | ||
KDGRP | Customer group | KDGRP | CHAR | 2 | T151 | KDGRP | VKD |
Key field | Non-key field |
How do I retrieve data from SAP table S123 using ABAP code
The following ABAP code Example will allow you to do a basic selection on S123 to SELECT all data from the tableDATA: WA_S123 TYPE S123.
SELECT SINGLE *
FROM S123
INTO CORRESPONDING FIELDS OF WA_S123
WHERE...
How to access SAP table S123
Within an ECC or HANA version of SAP you can also view further information about S123 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