EKPOAPO SAP (Interface Structure for Purchasing Documents -> APO) Structure details
Description: Interface Structure for Purchasing Documents -> APO
Structure field list including key, data, relationships and ABAP select examples
EKPOAPO 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 "Interface Structure for Purchasing Documents -> APO" 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_EKPOAPO TYPE EKPOAPO.
The EKPOAPO table consists of various fields, each holding specific information or linking keys about Interface Structure for Purchasing Documents -> APO data available in SAP. These include EBELN (Purchasing Document Number), EBELP (Item Number of Purchasing Document), ETENR (Delivery Schedule Line Counter), BSTYP (Purchasing Document Category).. 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: Cannot Be Enhanced
SAP EKPOAPO 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 |
MANDT | Client | MANDT | CLNT | 3 | Assigned to domain | MANDT | |||
EBELN | Purchasing Document Number | EBELN | CHAR | 10 | Assigned to domain | ALPHA | EBELN | BES | MEKK_C |
EBELP | Item Number of Purchasing Document | EBELP | NUMC | 5 | Assigned to domain | EBELP | BSP | ||
ETENR | Delivery Schedule Line Counter | EETEN | NUMC | 4 | Assigned to domain | EETEN | |||
BSTYP | Purchasing Document Category | BSTYP | CHAR | 1 | BSTYP | ||||
FIXKZ | Schedule Line is 'Fixed' | ETFIX | CHAR | 1 | XFELD | ||||
MATNR | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
WERKS | Plant | EWERK | CHAR | 4 | Assigned to domain | WERKS | WRK | ||
LGORT | Storage Location | LGORT_D | CHAR | 4 | Assigned to domain | LGORT | LAG | ||
MENGE | Scheduled Quantity | ETMEN | QUAN | 13(3) | MENGE | ||||
MENGE_ORD | Scheduled Quantity | ETMEN | QUAN | 13(3) | MENGE | ||||
MENGE_RED | Scheduled Quantity | ETMEN | QUAN | 13(3) | MENGE | ||||
MEINS | Base Unit of Measure | LAGME | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
LFDAT | Item Delivery Date | EINDT | DATS | 8 | DATUM | ||||
UZEIT | Delivery Date Time-Spot | LZEIT | TIMS | 6 | UZEIT | ||||
WEBAZ | Goods Receipt Processing Time in Days | WEBAZ | DEC | 3 | DEC3 | ||||
LIFNR | Account Number of Vendor or Creditor | LIFNR | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
RESWK | Supplying (Issuing) Plant in Stock Transport Order | RESWK | CHAR | 4 | Assigned to domain | WERKS | |||
SOBKZ | Special Stock Indicator | SOBKZ | CHAR | 1 | Assigned to domain | SOBKZ | |||
SOBLF | Vendor Account Number | ELIFN | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
CHARG | Batch Number | CHARG_D | CHAR | 10 | Assigned to domain | CHARG | CHA | ||
VBELN | Sales and Distribution Document Number | VBELN | CHAR | 10 | Assigned to domain | ALPHA | VBELN | AUN | |
VBELP | Sales Document Item | POSNR_VA | NUMC | 6 | Assigned to domain | POSNR | APO | ||
PS_PSP_PNR | Work Breakdown Structure Element (WBS Element) | PS_PSP_PNR | NUMC | 8 | Assigned to domain | KONPR | PS_POSNR | ||
PLUMI | Receipt/issue indicator | PLUMI | CHAR | 1 | CHAR1 | ||||
LOEKZ | Deletion Indicator in Purchasing Document | ELOEK | CHAR | 1 | ELOEK | ||||
RSNUM | Number of Reservation/Dependent Requirement | RSNUM | NUMC | 10 | Assigned to domain | RSNUM | RES | ||
RSPOS | Item Number of Reservation/Dependent Requirement | RSPOS | NUMC | 4 | RSPOS | RPO | |||
PSTYP | Item Category in Purchasing Document | PSTYP | CHAR | 1 | Assigned to domain | PSTYP | |||
KONNR | Number of Principal Purchase Agreement | KONNR | CHAR | 10 | Assigned to domain | ALPHA | EBELN | KTR | |
KTPNR | Item Number of Principal Purchase Agreement | KTPNR | NUMC | 5 | Assigned to domain | EBELP | |||
INFNR | Number of Purchasing Info Record | INFNR | CHAR | 10 | Assigned to domain | ALPHA | INFNR | INF | MEIN_C |
EKORG | Purchasing Organization | EKORG | CHAR | 4 | Assigned to domain | EKORG | EKO | ||
ELIKZ | 'Delivery Completed' Indicator | ELIKZ | CHAR | 1 | XFELD | ||||
LOGSY | Logical System | LOGSYSTEM | CHAR | 10 | Assigned to domain | ALPHA | LOGSYS | ||
BANFN | Purchase Requisition Number | BANFN | CHAR | 10 | ALPHA | BANFN | BAN | MBAN_C | |
BNFPO | Item Number of Purchase Requisition | BNFPO | NUMC | 5 | Assigned to domain | BNFPO | BAP | ||
MNG02 | Committed Quantity | MNG06 | QUAN | 13(3) | MENGV13 | ||||
PAR_POSNR | Item Number of Reservation/Dependent Requirement | RSPOS | NUMC | 4 | RSPOS | RPO | |||
PHANTOMFLG | Checkbox | XFELD | CHAR | 1 | XFELD | ||||
RETPO | Returns Item | RETPO | CHAR | 1 | XFELD | ||||
INFO_ONLY | Element Not Relevant for Requirements | CIFINFO | CHAR | 1 | XFELD | ||||
STLTY | BOM category | STLTY | CHAR | 1 | STLTY | ||||
STLNR | Bill of material | STNUM | CHAR | 8 | NUMCV | STNUM | STLNR | ||
STLKN | BOM item node number | STLKN | NUMC | 8 | KNTNR | ||||
STPOZ | Internal counter | CIM_COUNT | NUMC | 8 | CIM_COUNT | ||||
STVKN | Inherited node number of BOM item | STVKN | NUMC | 8 | KNTNR | ||||
LOGCOMP | Logical Component | CIFLOGCOMP | CHAR | 40 | CIFLOGCOMP | ||||
CUOBJ | Configuration (internal object number) | CUOBJ | NUMC | 18 | CUOBJ | CUX | |||
MATWRK_CH | Checkbox | XFELD | CHAR | 1 | XFELD | ||||
EMLIF | Vendor to be supplied/who is to receive delivery | EMLIF | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | ||
LBLKZ | Subcontracting vendor | LBLKZ | CHAR | 1 | XFELD | ||||
POSGUID | Generic Data Element for GUID Fields (C22) | CIFGUID22 | CHAR | 22 | CIFGUID22 | ||||
EKGRP | Purchasing Group | EKGRP | CHAR | 3 | Assigned to domain | EKGRP | EKG | ||
MATKL | Material Group | MATKL | CHAR | 9 | Assigned to domain | MATKL | MKL | S_WBWG | |
KUNNR | Customer Numbers | KUNNR | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | KUN | C_KUNNR |
LPRIO | Delivery Priority | LPRIO | NUMC | 2 | Assigned to domain | LPRIO | |||
VKORG | Sales Organization | VKORG | CHAR | 4 | Assigned to domain | VKORG | VKO | C_VKORG | |
VTWEG | Distribution Channel | VTWEG | CHAR | 2 | Assigned to domain | VTWEG | VTW | C_VTWEG | |
SPART | Division | SPART | CHAR | 2 | Assigned to domain | SPART | SPA | C_SPART | |
ALLOC_QUAN | Scheduled Quantity | ETMEN | QUAN | 13(3) | MENGE | ||||
BOPSTATUS | Processing Status BOP/APO Product Allocation Update | CIFBOPSTAT | CHAR | 1 | CIFBOPSTAT | ||||
VERID | Production Version | VERID | CHAR | 4 | Assigned to domain | VERID | VER | ||
WAMNG | Scheduled Quantity | ETMEN | QUAN | 13(3) | MENGE | ||||
UPVOR | Subitems Exist | UPVOR | CHAR | 1 | CHAR1 | ||||
UPTYP | Subitem Category, Purchasing Document | UPTYP | CHAR | 1 | Assigned to domain | UPTYP | |||
ADVCODE | Version Number Component | CHAR2 | CHAR | 2 | CHAR2 | ||||
PRIO_REQ | Requirement Priority | PRIO_REQ | NUMC | 3 | Assigned to domain | PRIO_REQ | |||
WADAT | Goods Issue Date | WADAT | DATS | 8 | DATUM | ||||
WAUHR | Time of Goods Issue (Local, Relating to a Plant) | WAUHR | TIMS | 6 | TIME_PLANT | ||||
MBDAT | Material Staging/Availability Date | MBDAT | DATS | 8 | DATUM | ||||
MBUHR | Material Staging Time (Local, Relating to a Plant) | MBUHR | TIMS | 6 | TIME_PLANT | ||||
ELDAT | Goods Receipt End Date | ELDAT | DATS | 8 | ELDAT | ||||
ELUHR | Goods Receipt End Time (Local, Relating to a Plant) | ELUHR | TIMS | 6 | ELUHR | ||||
BSART | Purchase Requisition Document Type | BBSRT | CHAR | 4 | Assigned to domain | BSART | BBA | ||
NO_SUBST | Checkbox | XFELD | CHAR | 1 | XFELD | ||||
PROCESS_TYPE | 2 byte integer (signed) | INT2 | INT2 | 5 | INT2 | ||||
SCHED_BWLPROCESS | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
PARENT_POSGUID | Generic Data Element for GUID Fields (C22) | CIFGUID22 | CHAR | 22 | CIFGUID22 | ||||
UEBPO | 5 Character Numeric NUMC | NUMC5 | NUMC | 5 | NUM5 | ||||
REQPRF | ATP: Profile at Requirements Level for APO | CIFREQPRF | CHAR | 6 | CHAR6 | ||||
RESMOD | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
ORDID | Generic Data Element for GUID Fields (C22) | CIFGUID22 | CHAR | 22 | CIFGUID22 | ||||
SCHEDID | Generic Data Element for GUID Fields (C22) | CIFGUID22 | CHAR | 22 | CIFGUID22 | ||||
PRREG | Checking Rule for Availability Check | PRREG | CHAR | 2 | Assigned to domain | PRREG | PRR | ||
VSTEL | Shipping Point/Receiving Point | VSTEL | CHAR | 4 | Assigned to domain | VSTEL | VST | ||
VSBED | Shipping Conditions | VSBED | CHAR | 2 | Assigned to domain | VSBED | |||
SHLF_MIN | Minimum remaining shelf life in seconds | SHLF_MIN | INT4 | 10 | CIFTIMEDIF | ||||
NO_REQ | Flag - No requirements in SCM | CIF_NO_REQ | CHAR | 1 | BAPIUPDATE | ||||
GEO_ROUTE | Description of a Geographical Route | /SPE/DE_ROUTE_ID | CHAR | 10 | CHAR10 | ||||
ROUTE_GTS | Route Code for SAP Global Trade Services | /SPE/DE_ROUTE_GTS_CODE | CHAR | 10 | CHAR10 | ||||
GTS_IND | Goods Traffic Type | /SPE/DE_LEG_GTS_CODE | CHAR | 2 | CHAR2 | ||||
TSP | Forwarding agent | SPDNR | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | ||
CD_LOCNO | Location number in APO | APOLOCNO | CHAR | 20 | APOLOCNO | ||||
CD_LOCTYPE | APO location type | APOLOCTYPE | CHAR | 4 | APOLOCTYPE | ||||
CIF_PROC | CIF Process indicator | CIF_PROCESS | CHAR | 1 | CIF_PROCESS | ||||
INSMK | Stock Type | INSMK | CHAR | 1 | INSMK | ||||
FIXMG | Delivery Date and Quantity Fixed | ME_FIXMG | CHAR | 1 | ME_FIXMG | ||||
KZDIS | Indicator: Confirmation is Relevant to Materials Planning | KZDIS | CHAR | 1 | XFELD |
Key field | Non-key field |
How do I retrieve data from SAP structure EKPOAPO using ABAP code?
As EKPOAPO 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 EKPOAPO as there is no data to select.How to access SAP table EKPOAPO
Within an ECC or HANA version of SAP you can also view further information about EKPOAPO and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects