AFPOB SAP (Document structure for order items) Structure details

Dictionary Type: Structure
Description: Document structure for order items




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




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

AFPOB 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 "Document structure for order items" 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_AFPOB TYPE AFPOB.

The AFPOB table consists of various fields, each holding specific information or linking keys about Document structure for order items data available in SAP. These include MANDT (Client), AUFNR (Order Number), POSNR (Order Item Number), PSOBS (Special procurement type).. 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 (character-type or numeric)


SAP AFPOB 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
MANDTClient MANDTCLNT3T000MANDT
AUFNROrder Number AUFNRCHAR12AUFKALPHAAUFNRANR
POSNROrder Item Number CO_POSNRNUMC4CO_POSNR
PSOBSSpecial procurement type SOBESCHAR1SOBES
QUNUMNumber of Quota Arrangement QUNUMCHAR10ALPHAQUNUM
QUPOSQuota Arrangement Item QUPOSNUMC3NUM03
PROJNWork breakdown structure element (WBS element) PS_PSP_ELENUMC8PRPSKONPRPS_POSNR
PLNUMPlanned order number PLNUMCHAR10Assigned to domainALPHAPLNUMPAF
STRMPStart date of the planned order CO_STRMPDATS8DATUM
ETRMPOpening date of the planned order CO_ETRMPDATS8DATUM
KDAUFSales order number CO_KDAUFCHAR10VBUKALPHAVBELNAUN
KDPOSSales order item CO_KDPOSNUMC6VBUPPOSNRAUP
KDEINDelivery Schedule for Sales Order KDEINNUMC4NUM04
BESKZProcurement Type BESKZCHAR1BESKZMBS
PSAMGScrap quantity in item CO_PSAMGQUAN13(3) MENG13
PSMNGOrder item quantity CO_PSMNGQUAN13(3) MENG13
WEMNGQuantity of goods received for the order item CO_WEMNGQUAN13(3) MENG13
IAMNGExpected surplus/deficit for goods receipt CO_IAMNGQUAN13(3) MENG13V
AMEINUnit of measure for in-house production CO_AUFMEUNIT3T006CUNITMEINS
MEINSBase Unit of Measure LAGMEUNIT3T006CUNITMEINS
MATNRMaterial Number for Order CO_MATNRCHAR18MARAMATN1MATNRMAT
PAMNGFixed quantity of scrap from production AVMNGQUAN13(3) MENG13
PGMNGTotal planned order quantity GSMNGQUAN13(3) MENG13
KNTTPAccount Assignment Category KNTTPCHAR1T163KKNTTPKNT
TPAUFIndicator: Partial conversion TPAUFCHAR1CHAR1TPA
LTRMIActual delivery/finish date CO_LTRMIDATS8DATUM
LTRMPDelivery date from planned order CO_LTRMPDATS8DATUM
KALNRCost Estimate Number for Cost Est. w/o Qty Structure CK_KALNRNUMC12CKHSCK_KALNRKNR
UEBTOOverdelivery Tolerance Limit UEBTODEC3(1) PRZ21
UEBTKIndicator: Unlimited Overdelivery Allowed UEBTKCHAR1XFELD
UNTTOUnderdelivery Tolerance Limit UNTTODEC3(1) PRZ21
INSMKStock Type INSMKCHAR1INSMK
WEPOSGoods Receipt Indicator WEPOSCHAR1XFELD
BWTARValuation Type BWTAR_DCHAR10T149DBWTARBWT
BWTTYValuation Category BWTTY_DCHAR1T149CBWTTY
PWERKPlanning plant for the order CO_PWERKCHAR4T001WWERKS
LGORTStorage Location LGORT_DCHAR4T001LLGORTLAG
UMREZNumerator for Conversion to Base Units of Measure UMREZDEC5UMBSZ
UMRENDenominator for conversion to base units of measure UMRENDEC5UMBSN
WEBAZGoods receipt processing time in days PLWEZDEC3DEC3
ELIKZ'Delivery Completed' Indicator ELIKZCHAR1XFELD
SAFNRRun schedule header number SA_AUFNRCHAR12Assigned to domainALPHASA_AUFNR
VERIDProduction Version VERIDCHAR4Assigned to domainVERIDVER
SERNRBOM explosion number SERNRCHAR8SNUMSERNR
TECHSParameter Variant/Standard Variant TECHSCHAR12TECHS
DWERKPlant WERKS_DCHAR4T001WWERKSWRKH_T001W_C
DAUTYOrder category AUFTYPNUMC2AUFTYP
DAUATOrder Type AUFARTCHAR4T003OAUFARTAAT
DGLTPBasic finish date CO_GLTRPDATS8DATUM
DGLTSScheduled finish CO_GLTRSDATS8DATUM
DFREIIndicator: Order released/partially released (for MRP) CO_FREICHAR1CHAR1
DNRELIndicator: Order item not relevant for MRP CO_DNRELCHAR1CHAR1
VERTOMRP Distribution Key SA_VERTLCHAR4T437VSA_VERTL
SOBKZSpecial Stock Indicator SOBKZCHAR1T148SOBKZ
KZVBRConsumption Posting KZVBRCHAR1KZVBR
WEWRTValue of goods received in local currency WEWRTCURR13(2) WERT7
WEUNBGoods Receipt, Non-Valuated WEUNBCHAR1XFELD
ABLADUnloading Point ABLADCHAR25TEXT25
WEMPFGoods Recipient/Ship-To Party WEMPFCHAR12WEMPF
CHARGBatch Number CHARG_DCHAR10MCHACHARGCHA
GSBERBusiness Area GSBERCHAR4TGSBGSBERGSB
WEAEDIndicator: Goods receipt indicator can be changed CO_WEAECHAR1XFELD
CUOBJConfiguration (internal object number) CUOBJNUMC18CUOBJCUX
KBNKZKanban Indicator KBNKZCHAR1KBNKZ
ARSNRSettlement reservation number ARSNRNUMC10MDNUM
ARSPSItem number of the settlement reservation ARSPSNUMC4RSPOS
KRSNRNumber of Reservation/Dependent Requirement RSNUMNUMC10Assigned to domainRSNUMRES
KRSPSItem Number of Reservation/Dependent Requirement RSPOSNUMC4RSPOSRPO
KCKEYCost collector key CCKEYCHAR23Assigned to domainCCKEY
RTP01Cost collector for repetitive manufacturing RTP01CHAR1XFELD
RTP02Cost collector for KANBAN RTP02CHAR1XFELD
RTP03Cost collector for valuated sales order stock RTP03CHAR1XFELD
RTP04Cost collector for external PPC RTP04CHAR1XFELD
KSVONCost collector valid from KSVONDATS8DATUM
KSBISCost collector valid to KSBISDATS8DATUM
OBJNPObject number J_OBJNRCHAR22ONR00J_OBJNRONR
NDISRInd.: Material in order item is not relevant for MRP CO_NDISRCHAR1CHAR1
VFMNGCommitted quantity for order acc. to ATP check components CO_VFMNGQUAN13(3) MENG13
GSBTROverall commitment date CO_GSBTRDATS8DATUM
KZAVCIndicator for type of availability check KZAVCCHAR1KZAVC
KZBWSValuation of Special Stock KZBWSCHAR1KZBWS
XLOEKDeletion flag AUFLOEKZCHAR1XFELD
SERNPSerial Number Profile SERAILCHAR4T377PSERAIL
ANZSNNumber of serial numbers ANZSNINT410INT4
OBJTYPEChange indicator OCM_OBJ_TYPECHAR1OCM_OBJ_TYPE
CH_PROCProcess that has lead to the change of an object OCM_CH_PROCCHAR1OCM_CH_PROC
FXPRUFixed-Price Co-Product CK_FIXPRKUCHAR1XFELD
CUOBJ_ROOTConfiguration (internal object number) CUOBJNUMC18CUOBJCUX
BERIDMRP Area BERIDCHAR10Assigned to domainBERIDBERID
TECHS_COPYParameter Variant/Standard Variant TECHSCHAR12TECHS
.INCLU--AP 0
KUNNR2Customer Numbers KUNNRCHAR10Assigned to domainALPHAKUNNRKUNC_KUNNR
.INCLU--AP 0
MILL_OC_AUFNR_UNumber of original order MILL_OC_AUFNR_UCHAR12Assigned to domainALPHAAUFNR
MILL_OC_RUMNGConfirmed Quantity for Item MILL_OC_RUMNGQUAN13(3) MENG13
MILL_OC_SORTItem Sequence MILL_OC_SORTNUMC8CIM_COUNT
VBKZUpdate indicator VBKZCHAR1VERBUCHER
FLG_SELSelection flag SELKZCHAR1SELKZ
AUFNR_TOrder Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
FLG_CALCULIndicator: Order (network etc.) still to be calculated FLG_CALCCHAR1KREUZ
EDATUSchedule line date EDATUDATS8DATUM
INSNCQuality inspection indicator cannot be changed INSNCCHAR1XFELD
USEQUQuota arrangement usage USEQUCHAR1TMQ2USEQU
SOPNRSOP order number SAFNRCHAR10SAFNR
FHWTXIndicator: Production memo exists CO_FHWTEXTCHAR1CO_FHWTEXT
KUNNRSold-to party KUNAGCHAR10Assigned to domainALPHAKUNNRVAG
NAME1Name 1 NAME1_GPCHAR35NAME
ORT01City ORT01_GPCHAR35TEXT35
VDATURequested delivery date EDATU_VBAKDATS8DATUM
KZWSOUnits of measure usage KZWSOCHAR1KZWSO
SERCOMSingle-Character Indicator CHAR1CHAR1CHAR1
COMP_RESOCM: Result of comparison of two order objects OCM_COMP_RESCHAR1OCM_COMP_RES
NO_KALKPOSOrder item is not relevant to calculation NO_KALKPOSCHAR1XFELD
EXT_CONVERSIONIndicator: Convert planned order with RSNUM CO_PLAFKZCHAR1CHAR1
VSNMRNumber or description of a version VSNMRCHAR12VSNMRVS2

Key field Non-key field



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

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

How to access SAP table AFPOB

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