S171 SAP (Payment item data) Table details
Dictionary Type: Table
Description: Payment item data
Description: Payment item data
Table field list including key, data, relationships and ABAP select examples
S171 is a standard SAP Table which is used to store Payment item data data and is available within R/3 SAP systems depending on the version and release level.
The S171 table consists of various fields, each holding specific information or linking keys about Payment item data 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 S171 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 | |
SPART | Division | SPART | CHAR | 2 | TSPA | SPART | SPA | C_SPART | |
BUKRS | Company Code | BUKRS | CHAR | 4 | T001 | BUKRS | BUK | C_T001 | |
LNRZB | Agency business: Payee | W_LIFZE | CHAR | 10 | LFA1 | ALPHA | LIFNR | ||
KUNRG | Payer | KUNRG | CHAR | 10 | KNA1 | ALPHA | KUNNR | ||
LFTYP | Agency business: Billing category | WFTYP | CHAR | 2 | WFTYP | ||||
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 | ||||
WSTWAE | Agency Business: Statistics Currency | WSTWAE | CUKY | 5 | TCURC | WAERS | |||
BRTWR_P_RG | Key figure: Gross value of payment (item) to vendor | MC_BRTWPRG | CURR | 17(2) | WERTV9 | ||||
NETWR_P_RG | Key figure: Net value of payment (item) to vendor | MC_NETWPRG | CURR | 17(2) | WERTV9 | ||||
KZWI2_P_RG | Key Figure: Payment based on Remuneration List Conditions | MC_DELKRRG | CURR | 17(2) | WERTV9 | ||||
KZWI1_P_RG | Key figure: condition subtotal 1, payment: vendor | MC_KZWI1RG | CURR | 17(2) | WERTV9 | ||||
KZWI3_P_RG | Key figure: condition subtotal 3, payment | MC_KZWI3RG | CURR | 17(2) | WERTV9 | ||||
KZWI4_P_RG | Key figure: condition subtotal 4, payment | MC_KZWI4RG | CURR | 17(2) | WERTV9 | ||||
KZWI5_P_RG | Key figure: condition subtotal 5, payment | MC_KZWI5RG | CURR | 17(2) | WERTV9 | ||||
KZWI6_P_RG | Key figure: Condition subtotal 6, payment | MC_KZWI6RG | CURR | 17(2) | WERTV9 | ||||
BONBA_P_RG | Key fig: Rebate basis (condition subtotal 7), payt: vendor | MC_BONBARG | CURR | 17(2) | WERTV9 | ||||
KZWIS_P_RG | Key figure: Effective value of payment (vendor) | MC_EFFEKRG | CURR | 17(2) | WERTV9 | ||||
AWBRP_RG | Key figure: Number of payment request items | MC_AWBRPRG | DEC | 9 | MCZAEHLER |
Key field | Non-key field |
How do I retrieve data from SAP table S171 using ABAP code
The following ABAP code Example will allow you to do a basic selection on S171 to SELECT all data from the tableDATA: WA_S171 TYPE S171.
SELECT SINGLE *
FROM S171
INTO CORRESPONDING FIELDS OF WA_S171
WHERE...
How to access SAP table S171
Within an ECC or HANA version of SAP you can also view further information about S171 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