T005G SAP (City) Table details

Dictionary Type: Table
Description: City




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




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

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

The T005G table consists of various fields, each holding specific information or linking keys about City data available in SAP. These include LAND1 (Country Key), REGIO (STATE (State, Province, County)), CITYC (City Code).. 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: C - Customising table, maintenance only by cust
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type)

Text table = T005H


SAP T005G 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
LAND1Country Key LAND1CHAR3T005LAND1LND
REGIOSTATE (State, Province, County) REGIOCHAR3T005SREGIO
CITYCCity Code CITYCCHAR4CITYC

Key field Non-key field



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

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

SELECT SINGLE *
FROM T005G
INTO CORRESPONDING FIELDS OF WA_T005G
WHERE...

How to access SAP table T005G

Within an ECC or HANA version of SAP you can also view further information about T005G 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!