SAP GLSPC Profit Center Accounting: Line Items Table data and field list

GLSPC is a standard SAP Pooled Table which is used to store Profit Center Accounting: Line Items data in SAP systems, such as SAP R/3, S/4HANA, depending on the version and release level.

The GLSPC table consists of various fields, each holding specific information or linking keys about Profit Center Accounting: Line Items data available in SAP. These include RLDNR (Ledger), RRCTY (Record Type), RVERS (Version), BUKRS (Company 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. .

GLSPC pooled table Technical Details:

Delivery Class: A - Application table (master and transaction data)
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP GLSPC pooled table fields - Full list of fields found in SAP data dictionary

Looking for S/4HANA specific information? Click here to explore the details, fields and extensibility available for this table in the SAP S/4HANA version of the GLSPC table. Also check whether the table still exists or has been transformed into a CDS view as part of the HANA simplifications.
Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
RCLNTClient MANDTCLNT3T000MANDT
RLDNRLedger RLDNRCHAR2T881ALPHARLDNRGLNH_T881
RRCTYRecord Type RRCTYCHAR1RRCTY
RVERSVersion RVERSCHAR3T894ALPHARVERSGVS
BUKRSCompany Code BUKRSCHAR4T001BUKRSBUKC_T001
RYEARFiscal Year GJAHRNUMC4GJAHRGJAHRGJR
RACCTAccount Number RACCTCHAR10Assigned to domainALPHASAKNRACC
PRCTRProfit Center PRCTRCHAR10Assigned to domainALPHAPRCTRPRCPRCTR_EMPTY
PPRCTRPartner Profit Center PPRCTRCHAR10Assigned to domainALPHAPRCTRPPC
OCLNTOriginal client OCLNTNUMC3NUM3
RTCURCurrency Key RTCURCUKY5TCURCWAERSFWS
RUNITBase Unit of Measure MEINSUNIT3T006CUNITMEINS
DRCRKDebit/Credit Indicator SHKZGCHAR1SHKZG
POPERPosting period POPERNUMC3POPERPOPR
DOCCTDocument Type DOCCTCHAR1DOCCTGCT
DOCNRAccounting Document Number BELNR_DCHAR10ALPHABELNRBLN
DOCLNDocument line DOCLNCHAR3DOCLN
CPUDTDay On Which Accounting Document Was Entered CPUDTDATS8DATUM
CPUTMTime of Entry CPUTMTIMS6UZEIT
USNAMUser name USNAMCHAR12Assigned to domainXUBNAMEUSR
TSLValue in Transaction Currency VTCURCURR15(2) WERTV8
HSLValue in local currency VLCURCURR15(2) WERTV8
KSLValue in group currency VGCURCURR15(2) WERTV8
MSLQuantity QUAN1QUAN15(3) MENG8
SGTXTItem Text SGTXTCHAR50TEXT50
AUTOMIndicator: Automatic posting lines AUTOMCHAR1TEXT1
DOCTYFI-SL Document Type DOCTYCHAR2T889DOCTYBAR
ACTIVBusiness Transaction GLVORCHAR4CHAR4
BVORGNumber of Cross-Company Code Posting Transaction BVORGCHAR16BVORG
OBARTOrigin object type in Profit Center Accounting PC_OBARTCHAR2CHAR2
KOKRSControlling Area KOKRSCHAR4TKA01CACCDCAC
WERKSPlant WERKS_DCHAR4T001WWERKSWRKH_T001W_C
GSBERBusiness Area GSBERCHAR4TGSBGSBERGSB
KOSTLCost Center KOSTLCHAR10CSKSALPHAKOSTLKOS
AUFNROrder Number AUFNRCHAR12AUFKALPHAAUFNRANR
ANLN1Main Asset Number ANLN1CHAR12ANLHALPHAANLN1AN1
ANLN2Asset Subnumber ANLN2CHAR4ANLAALPHAANLN2AN2
MATNRMaterial Number MATNRCHAR18MARAMATN1MATNRMATS_MAT1
BWKEYValuation Area BWKEYCHAR4T001KBWKEYBWK
BWTARValuation Type BWTAR_DCHAR10T149DBWTARBWT
ANBWAAsset Transaction Type ANBWACHAR3TABWBWASL
KUNNRCustomer Numbers KUNNRCHAR10KNA1ALPHAKUNNRKUNC_KUNNR
LIFNRAccount Number of Vendor or Creditor LIFNRCHAR10LFA1ALPHALIFNRLIFKRED_C
RMVCTTransaction Type RMVCTCHAR3T856RMVCT
EBELNPurchasing Document Number EBELNCHAR10EKKOALPHAEBELNBESMEKK_C
EBELPItem Number of Purchasing Document EBELPNUMC5EKPOEBELPBSP
KSTRGCost Object KSTRGCHAR12CKPHKSTRGKTR
PAOBJNRProfitability Segment Number (CO-PA) RKEOBJNRNUMC10RKEOBJNR
PASUBNRProfitability segment changes (CO-PA) RKESUBNRNUMC4RKESUBNR
PS_PSP_PNRWork Breakdown Structure Element (WBS Element) PS_PSP_PNRNUMC8PRPSKONPRPS_POSNR
KDAUFSales Order Number KDAUFCHAR10VBUKALPHAVBELNAUN
KDPOSItem Number in Sales Order KDPOSNUMC6NUM06KPO
KDEINDelivery Schedule for Sales Order KDEINNUMC4NUM04
RECIDRules for Issuing an Invoice RECIDCHAR4TEXT4
FKARTBilling Type FKARTCHAR4Assigned to domainFKART
VKORGSales Organization VKORGCHAR4TVKOVKORGVKOC_VKORG
VTWEGDistribution Channel VTWEGCHAR2TVTWVTWEGVTWC_VTWEG
AUBELSales Document VBELN_VACHAR10VBUKALPHAVBELNAUN
AUPOSSales Document Item POSNR_VANUMC6VBUPPOSNRAPO
SPARTDivision SPARTCHAR2Assigned to domainSPARTSPAC_SPART
VBELNSales and Distribution Document Number VBELNCHAR10VBUKALPHAVBELNAUN
POSNRItem number of the SD document POSNRNUMC6VBUPPOSNR
VKGRPSales Group VKGRPCHAR3TVKGRVKGRPVKG
VKBURSales Office VKBURCHAR4TVBURVKBURVKB
REFDOCNRAccounting Document Number BELNR_DCHAR10ALPHABELNRBLN
REFDOCCTDocument Type DOCCTCHAR1DOCCTGCT
AWTYPReference Transaction AWTYPCHAR5Assigned to domainAWTYP
AWORGReference Organizational Units AWORGCHAR10AWORG

Key field Non-key field



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

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

SELECT SINGLE *
FROM GLSPC
INTO CORRESPONDING FIELDS OF WA_GLSPC
WHERE...

How to access SAP table GLSPC

Within an ECC or HANA version of SAP you can also view further information about GLSPC and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).