AFSPREL SAP (Relation Between Orders in an Order Split) Table details

Dictionary Type: Table
Description: Relation Between Orders in an Order Split




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




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

AFSPREL is a standard SAP Table which is used to store Relation Between Orders in an Order Split data and is available within R/3 SAP systems depending on the version and release level.

The AFSPREL table consists of various fields, each holding specific information or linking keys about Relation Between Orders in an Order Split data available in SAP. These include C_AUFNR (Child order of a split hierarchy), BYPRODUCT (Material Number By-Product Order Split), BYPRODUCT_BATCH (Batch Number By-Product Order Split), SPLCNT (Counter for the Parent-Child Order Relationships).. 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: Can be enhanced (character-type or numeric)


SAP AFSPREL 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 MANDTCLNT3Assigned to domainMANDT
C_AUFNRChild order of a split hierarchy SPLIT_CAUFNRCHAR12Assigned to domainALPHAAUFNR
BYPRODUCTMaterial Number By-Product Order Split COOS_BYPRODUCTCHAR18Assigned to domainMATN1MATNRMATS_MAT1
BYPRODUCT_BATCHBatch Number By-Product Order Split COOS_BYPRODUCT_BATCHCHAR10Assigned to domainCHARG
SPLCNTCounter for the Parent-Child Order Relationships SPLCNTNUMC4NUMC4
P_AUFNRParent order of a split hierarchy SPLIT_PAUFNRCHAR12Assigned to domainALPHAAUFNR
L_AUFNRLeading order of a split hierarchy SPLIT_LAUFNRCHAR12Assigned to domainALPHAAUFNR
SPLQSplit Quantity in Order Split SPLIT_QTYQUAN13(3) MENG13
QUNITUnit of Measure for Activity/Operation VORMEUNIT3Assigned to domainCUNITMEINS
SDATECreated on CATS_ERSDADATS8DATUM
STIMETime created C_TIMETIMS6UZEIT
SUSERUser Name UNAMECHAR12UNAME
BYPROD_MAT_DOCMaterial Document for Goods Receipt By-Product Order Split COOS_MATERIAL_DOC_NO_BYPRODUCTCHAR10ALPHABELNR
BYPROD_MAT_ITEMMaterial Document Item GR By-Product Order Split COOS_MATERIAL_DOC_PO_BYPRODUCTNUMC4MBLPO
BYPROD_MAT_YEARMaterial Document Year Goods Receipt By-Product Order Split COOS_MATERIAL_DOC_YY_BYPRODUCTNUMC4GJAHRGJAHR
COMPONENT_BATCHComponent Batch Used for Order Split COOS_COMPONENT_BATCHCHAR10Assigned to domainCHARG
WIP_BATCHWIP Batch Used for Order Split COOS_WIPBATCHCHAR10Assigned to domainCHARG
CANCELEDOrder Split Cancelled COOS_CANCELEDCHAR1FLAG
CANCEL_USERUser Who Carried Out Order Split Cancellation COOS_CANCELLATION_USERCHAR12UNAME
CANCEL_DATECancellation Date Order Split COOS_CANCELLATION_DATEDATS8DATUM
CANCEL_TIMETime of Cancellation COOS_CANCELLATION_TIMETIMS6UZEIT

Key field Non-key field



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

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

SELECT SINGLE *
FROM AFSPREL
INTO CORRESPONDING FIELDS OF WA_AFSPREL
WHERE...

How to access SAP table AFSPREL

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