GRIRPOS SAP (GR/IR Items to be Cleared) Structure details

Dictionary Type: Structure
Description: GR/IR Items to be Cleared




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




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

GRIRPOS 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 "GR/IR Items to be Cleared" 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_GRIRPOS TYPE GRIRPOS.

The GRIRPOS table consists of various fields, each holding specific information or linking keys about GR/IR Items to be Cleared data available in SAP. These include EBELP (Item Number of Purchasing Document), LIFNR (Account Number of Vendor or Creditor), EKORG (Purchasing Organization), PSTYP (Item Category in Purchasing Document).. 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: Can Be Enhanced (Deep)


SAP GRIRPOS 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
EBELNPurchasing Document Number EBELNCHAR10Assigned to domainALPHAEBELNBESMEKK_C
EBELPItem Number of Purchasing Document EBELPNUMC5Assigned to domainEBELPBSP
LIFNRAccount Number of Vendor or Creditor LIFNRCHAR10Assigned to domainALPHALIFNRLIFKRED_C
EKORGPurchasing Organization EKORGCHAR4Assigned to domainEKORGEKO
PSTYPItem Category in Purchasing Document PSTYPCHAR1Assigned to domainPSTYP
BEDATPurchase Order Date BEDATDATS8DATUM
BEWAEPurchase order currency BSTWACUKY5Assigned to domainWAERS
BUZEINumber of Line Item Within Accounting Document BUZEINUMC3BUZEIBUZ
GJAHRFiscal Year GJAHRNUMC4GJAHRGJAHRGJR
RETPOReturns Item RETPOCHAR1XFELD
WRBTRAmount in document currency WRBTRCURR13(2) WERT7
ANLN1Main Asset Number ANLN1CHAR12Assigned to domainALPHAANLN1AN1
ANLN2Asset Subnumber ANLN2CHAR4Assigned to domainALPHAANLN2AN2
APLZLRouting number of operations in the order CO_AUFPLNUMC10AUFPL
AUFNROrder Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
DABRZReference Date for Settlement DABRBEZDATS8DDAT
FIPOSCommitment Item FIPOSCHAR14Assigned to domainFIPOSFIP
FISTLFunds Center FISTLCHAR16Assigned to domainFISTLFIS
FKBERFunctional Area FKBERCHAR16Assigned to domainFKBERFBE
GEBERFund BP_GEBERCHAR10Assigned to domainBP_GEBERFIC
GRANT_NBRGrant GM_GRANT_NBRCHAR20ALPHAGM_GRANT_NBRGM_GRANT_NBRGRANTS_GENERIC
GSBERBusiness Area GSBERCHAR4TGSBGSBERGSB
IMKEYInternal Key for Real Estate Object IMKEYCHAR8IMKEY
KOKRSControlling Area KOKRSCHAR4Assigned to domainCACCDCAC
KOSTLCost Center KOSTLCHAR10CSKSALPHAKOSTLKOS
KSTRGCost Object KSTRGCHAR12Assigned to domainKSTRGKTR
PAOBJNRProfitability Segment Number (CO-PA) RKEOBJNRNUMC10RKEOBJNR
PRCTRProfit Center PRCTRCHAR10Assigned to domainALPHAPRCTRPRCPRCTR_EMPTY
PS_PSP_PNRWork Breakdown Structure Element (WBS Element) PS_PSP_PNRNUMC8Assigned to domainKONPRPS_POSNR
RECIDRules for Issuing an Invoice RECIDCHAR4TEXT4
SAKNRG/L Account Number SAKNRCHAR10Assigned to domainALPHASAKNRSAKC_SAKNR
SGTXTItem Text SGTXTCHAR50TEXT50
TXJCDTax Jurisdiction TXJCDCHAR15Assigned to domainTXJCDTXJ
VBELNSales and Distribution Document Number VBELNCHAR10Assigned to domainALPHAVBELNAUN
VBELPSales document item VBELPNUMC6Assigned to domainPOSNR
VPTNRPartner account number JV_PARTCHAR10Assigned to domainALPHAKUNNR
MENGEQuantity MENGE_DQUAN13(3) MENG13
MWSKZTax on sales/purchases code MWSKZCHAR2Assigned to domainMWSKZ
ZEKKNSequential Number of Account Assignment DZEKKNNUMC2NUM02
BPMNGQuantity in Purchase Order Price Unit BPMNGQUAN13(3) MENG13
XUNPLUnplanned Account Assignment from Invoice Verification XUNPLCHAR1XFELD
LSTARActivity Type LSTARCHAR6Assigned to domainLSTARLARLART_EMPTY
PRZNRBusiness Process CO_PRZNRCHAR12Assigned to domainALPHACO_PRZNRKWP
AUFPLRouting number of operations in the order CO_AUFPLNUMC10AUFPL
BUKRSCompany Code BUKRSCHAR4Assigned to domainBUKRSBUKC_T001
SHKZGDebit/Credit Indicator SHKZGCHAR1SHKZG
BZDATAsset value date BZDATDATS8DATUM
BNKAN_FWDelivery costs' share of item value BNK_ANTEILCURR13(2) WERT7
XNEGPIndicator: Negative posting XNEGPCHAR1XFELD
ERLKZUsed earmarked funds set to 'Complete' REFSETERLKCHAR1CHAR1_X
FIKRSFinancial Management Area FIKRSCHAR4Assigned to domainFIKRSFIK
KBLNRDocument Number for Earmarked Funds KBLNR_FICHAR10Assigned to domainALPHAKBLNRKBL
KBLPOSEarmarked Funds: Document Item KBLPOSNUMC3Assigned to domainKBLPOSKBP
PARGBTrading partner's business area PARGBCHAR4Assigned to domainGSBERGSB
PERNRPersonnel Number PERNR_DNUMC8PERNRPER
XSKRLIndicator: Line item not liable to cash discount? XSKRLCHAR1XFELD
NPLNRNetwork Number for Account Assignment NPLNRCHAR12Assigned to domainALPHAAUFNRNET
VORNROperation/Activity Number VORNRCHAR4NUMCVVORNRVGN
ZUONRAssignment Number DZUONRCHAR18ZUONR
MEINSBase Unit of Measure MEINSUNIT3Assigned to domainCUNITMEINS
MWARTTax Type MWARTCHAR1MWART
FWBASTax Base Amount in Document Currency FWBASCURR13(2) WERT7
HWBASTax Base Amount in Local Currency HWBASCURR13(2) WERT7
ABPERSettlement period ABPER_RFACCP6BUPER
LEDATDelivery Creation Date LEDATDATS8DATUM
MENGE_FQuantity (Floating Point Number - Internal Field) MENGE_FFLTP16(16)
BPMNG_FQuantity in PO Price Unit (as Floating Point No. - Int. Fld) BPMNG_FFLTP16(16)
WERKSPlant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
BUDGET_PDFM: Budget Period FM_BUDGET_PERIODCHAR10Assigned to domainFM_BUDGET_PERIODBUDPER
MEASUREFunded Program FM_MEASURECHAR24Assigned to domainFM_MEASUREFM_MEASURE
BWKEYValuation Area BWKEYCHAR4Assigned to domainBWKEYBWK
BPUMNDenominator for Conv. of Order Price Unit into Order Unit BPUMNDEC5UMBSN
BPUMZNumerator for Conversion of Order Price Unit into Order Unit BPUMZDEC5UMBSZ
HWAERLocal Currency HWAERCUKY5Assigned to domainWAERS
MATNRMaterial Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1
BWTARValuation Type BWTAR_DCHAR10Assigned to domainBWTARBWT
POSNRItem number of the SD document POSNRNUMC6Assigned to domainPOSNR
SOBKZSpecial Stock Indicator SOBKZCHAR1Assigned to domainSOBKZ
KZBWSValuation of Special Stock KZBWSCHAR1KZBWS
PEINHPrice Unit PEINHDEC5PACK3
SELKZSelection flag SELKZCHAR1SELKZ
KNTTPAccount Assignment Category KNTTPCHAR1Assigned to domainKNTTPKNT
HRKFTOrigin Group as Subdivision of Cost Element HRKFTCHAR4Assigned to domainHRKFT
MATBFMaterial in Respect of Which Stock is Managed MATBFCHAR18Assigned to domainMATN1MATNR
WAARTIndicates that material is a value-only material WAARTCHAR1XFELD
ANBWAAsset Transaction Type ANBWACHAR3Assigned to domainBWASL
LNRANSequence number of asset line items in fiscal year LNRANNUMC5Assigned to domainLNRAN
KDAUFSales Order Number KDAUFCHAR10Assigned to domainALPHAVBELNAUN
KDPOSItem Number in Sales Order KDPOSNUMC6NUM06KPO
KO_GSBERBusiness area reported to the partner GSBER_GPCHAR4Assigned to domainGSBER
KO_PARGBassumed business area of the business partner PARGB_GPCHAR4Assigned to domainGSBER
KO_PRCTRProfit Center PRCTRCHAR10Assigned to domainALPHAPRCTRPRCPRCTR_EMPTY
KO_PPRCTRPartner Profit Center PPRCTRCHAR10Assigned to domainALPHAPRCTRPPC
XBLNRReference Document Number XBLNR1CHAR16XBLNR1
UMRENDenominator for conversion to base units of measure UMRENDEC5UMBSN
UMREZNumerator for Conversion to Base Units of Measure UMREZDEC5UMBSZ
WEBREIndicator: GR-Based Invoice Verification WEBRECHAR1XFELD
LEBREIndicator for Service-Based Invoice Verification LEBRECHAR1XFELD
PACKNOPackage Number of Service PACKNO_EKBENUMC10Assigned to domainPACKNO
INTROWLine Number of Service INTROW_EKBENUMC10INTROW
SRVPOSService number SRVPOSCHAR18Assigned to domainALPHAASNUM
LFBNRDocument No. of a Reference Document LFBNRCHAR10ALPHABELNR
LFGJAFiscal Year of Current Period LFGJANUMC4GJAHRGJAHR
LFPOSItem of a Reference Document LFPOSNUMC4MBLPO
XMACCMultiple Account Assignment XMACCCHAR1CHAR1
STUNRStep number STUNRNUMC3Assigned to domainSTUNR
ZAEHKCondition counter DZAEHKNUMC2ZAEHK
KSCHLCondition Type KSCHLCHAR4Assigned to domainKSCHLVKS
VRTKZDistribution indicator for multiple account assignment VRTKZCHAR1VRTKZ
XHISTMAUpdate Multiple Account Assignment EKBE_MA, EKBZ_MA XHISTMACHAR1CHAR1
AREWBClearing Value on GR/IR Account in PO Currency AREWBCURR13(2) WERT7
T_BZN 0
T_LIF 0

Key field Non-key field



How do I retrieve data from SAP structure GRIRPOS using ABAP code?

As GRIRPOS 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 GRIRPOS as there is no data to select.

How to access SAP table GRIRPOS

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