STPO_APICN SAP (Temp. Help Structure for Converting API Structures) Structure details
Description: Temp. Help Structure for Converting API Structures
Structure field list including key, data, relationships and ABAP select examples
STPO_APICN 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 "Temp. Help Structure for Converting API Structures" 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_STPO_APICN TYPE STPO_APICN.
The STPO_APICN table consists of various fields, each holding specific information or linking keys about Temp. Help Structure for Converting API Structures data available in SAP. These include POSNR (BOM Item Number), IDNRK (Component (BTCI) with Conversion MATN2), MENGE (Component quantity (BTCI)), MEINS (Component unit of measure).. 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)
SAP STPO_APICN 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 |
POSTP | Item Category (Bill of Material) | POSTP | CHAR | 1 | Assigned to domain | POSTP | |||
POSNR | BOM Item Number | SPOSN | CHAR | 4 | NUMCV | SPOSN | |||
IDNRK | Component (BTCI) with Conversion MATN2 | IDNRK_BI | CHAR | 40 | MATN2 | MATNR_EXT_CONV | |||
MENGE | Component quantity (BTCI) | KMPMG_BI | CHAR | 18 | CHAR18 | ||||
MEINS | Component unit of measure | KMPME | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
FMENG | Fixed qty | FMNGE | CHAR | 1 | XFELD | ||||
POTX1 | BOM Item Text (Line 1) | POTX1 | CHAR | 40 | TEXT40 | ||||
POTX2 | BOM item text (line 2) | POTX2 | CHAR | 40 | TEXT40 | ||||
SORTF | Sort String | SORTP | CHAR | 10 | CHAR10 | ||||
SANKA | Indicator: item relevant to costing | SANKA | CHAR | 1 | KAREL | ||||
SANKO | Indicator: item relevant to engineering | SANKO | CHAR | 1 | XFELD | ||||
SANIN | Indicator: item relevant to plant maintenance | SANIN | CHAR | 1 | XFELD | ||||
SANFE | Indicator: item relevant to production | SANFE | CHAR | 1 | XFELD | ||||
RVREL | Indicator: item relevant to sales | RVREL | CHAR | 1 | Assigned to domain | RVREL | |||
ERSKZ | Indicator: spare part | ERSKZ | CHAR | 1 | Assigned to domain | ERSKZ | |||
BEIKZ | Material Provision Indicator | BEIKZ | CHAR | 1 | Assigned to domain | BEIKZ | |||
SCHGT | Indicator: Bulk Material | SCHGT | CHAR | 1 | XFELD | ||||
REKRS | Indicator: recursiveness allowed | REKRS | CHAR | 1 | XFELD | ||||
AUSCH | Component scrap in percent (BTCI) | KAUSF_BI | CHAR | 6 | CHAR6 | ||||
AVOAU | Operation scrap (BTCI) | AVOAU_BI | CHAR | 6 | CHAR6 | ||||
NETAU | Indicator: Net scrap | NETAU | CHAR | 1 | XFELD | ||||
VERTI | Distribution key for component consumption | SA_VERTI | CHAR | 4 | Assigned to domain | SA_VERTL | |||
DSPST | Explosion type | CS_DISPO | CHAR | 2 | Assigned to domain | CS_DISPO | |||
ITSOB | Special procurement type for BOM item | CS_SOBSL | CHAR | 2 | Assigned to domain | SOBSL | |||
PRVBE | Production Supply Area | PRVBE | CHAR | 10 | Assigned to domain | PRVBE | PVB | ||
LGORT | Issue location for production order | CSLGO | CHAR | 4 | Assigned to domain | LGORT | LAG | ||
NLFZT | Follow-up time (BTCI) | NLFZT_BI | CHAR | 4 | CHAR4 | ||||
NLFZV | Lead-time offset for operation (BTCI) | NLFZV_BI | CHAR | 4 | CHAR4 | ||||
NLFMV | Unit for lead-time offset for operation | CS_NLFMV | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
KZKUP | Indicator: co-product | KZKUP | CHAR | 1 | XFELD | ||||
NFEAG | Discontinuation group | CS_NFEAG | CHAR | 2 | CHAR2 | ||||
NFGRP | Follow-up group | CS_NFGRP | CHAR | 2 | CHAR2 | ||||
ALPGR | Alternative item: group | CS_ALPGR | CHAR | 2 | CHAR2 | ||||
ALPST | Alternative item: strategy | CS_ALPST | CHAR | 1 | CS_ALPST | ||||
ALPRF | Alternative Item: Ranking Order | ALPRF_BI | CHAR | 2 | CHAR2 | ||||
RFPNT | Reference point for BOM transfer | CN_RFPNT | CHAR | 20 | Assigned to domain | CN_RFPNT | |||
EWAHR | Usage probability in % (BTCI) | EWAHR_BI | CHAR | 3 | CHAR3 | ||||
STKKZ | PM assembly indicator | STKKZ | CHAR | 1 | XFELD | ||||
SAKTO | Cost element | SAKTO | CHAR | 10 | Assigned to domain | ALPHA | SAKNR | ||
LIFZT | Delivery time in days | LIFZT_BI | CHAR | 3 | CHAR3 | ||||
WEBAZ | Processing time for goods receipt in days (BTCI) | WEBAZ_BI | CHAR | 3 | CHAR3 | ||||
MATKL | Material Group | MATKL | CHAR | 9 | Assigned to domain | MATKL | MKL | S_WBWG | |
PREIS | Price (BTCI) | CPREI_BI | CHAR | 14 | CHAR14 | ||||
PEINH | Price unit (BTCI) | PEINH_BI | CHAR | 6 | CHAR6 | ||||
WAERS | Currency key (BTCI) | WAERS_BI | CHAR | 5 | CHAR5 | ||||
EKGRP | Purchasing Group | EKGRP | CHAR | 3 | Assigned to domain | EKGRP | EKG | ||
EKORG | Purchasing Organization | EKORG | CHAR | 4 | Assigned to domain | EKORG | EKO | ||
LIFNR | Account Number of Vendor or Creditor | LIFNR | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
ROANZ | Number of variable-size items (BTCI) | ROANZ_BI | CHAR | 17 | CHAR17 | ||||
ROMEN | Quantity of variable-size item (BTCI) | ROMEN_BI | CHAR | 17 | CHAR17 | ||||
ROMS1 | Size 1 (BTCI) | ROMS1_BI | CHAR | 17 | CHAR17 | ||||
ROMS2 | Size 2 (BTCI) | ROMS2_BI | CHAR | 17 | CHAR17 | ||||
ROMS3 | Size 3 (BTCI) | ROMS3_BI | CHAR | 17 | CHAR17 | ||||
ROMEI | Unit of measure for sizes 1 to 3 | ROMEI | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
RFORM | Formula key | RFORM | CHAR | 2 | Assigned to domain | RFORM | |||
DOKNR | Document number | DOKNR | CHAR | 25 | Assigned to domain | ALPHA | DOKNR | CV1 | |
DOKAR | Document Type | DOKAR | CHAR | 3 | Assigned to domain | DOKAR | CV2 | ||
DOKTL | Document Part | DOKTL_D | CHAR | 3 | DOKTL | CV4 | |||
DOKVR | Document Version | DOKVR | CHAR | 2 | DOKVR | CV3 | |||
CLASS | Class number | KLASSE_D | CHAR | 18 | KLASSE | KLA | |||
KLART | Class Type | KLASSENART | CHAR | 3 | Assigned to domain | KLASSENART | KAR | ||
POTPR | Resulting item category | POTPR | CHAR | 1 | Assigned to domain | POSTP | |||
KZCLB | Indicator: classification as selection condition | CS_KZCLB | CHAR | 1 | XFELD | ||||
CLOBK | Required Component | CLOBK | CHAR | 1 | XFELD | ||||
CLMUL | Multiple Selection Allowed | CLMULT | CHAR | 1 | XFELD | ||||
SANVS | Indicator: high-level configuration | SANVS | CHAR | 1 | XFELD | ||||
CADPO | CAD Indicator | CADPO | CHAR | 1 | XFELD | ||||
ITMID | External identification of an item | CS_ITMID | CHAR | 8 | CHAR8 | ||||
DATUV | Valid-From Date (BTCI) | DATUV_BI | CHAR | 10 | CHAR10 | ||||
AENNR | Change Number | AENNR | CHAR | 12 | Assigned to domain | AENNR | AENNR | AEN | |
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 | ||||
GUIDX | Guid external display (char32) | CS_GUIDC | CHAR | 32 | SYSUUID_C | ||||
REKRI | Indicator: BOM is recursive | REKRI | CHAR | 1 | XFELD | ||||
KNOBJ | Number of Object with Assigned Dependencies | KNOBJ | NUMC | 18 | KNOBJ | ||||
ALEKZ | ALE indicator | CS_ALEKZ | CHAR | 1 | XFELD | ||||
DATUB | Valid to date (BTCI) | DATUB_BI | CHAR | 10 | CHAR10 | ||||
AENRA | Change Number To | AENRA | CHAR | 12 | Assigned to domain | AENNR | AENNR | ||
ANDAT | Creation date of the record (batch input) | ANDAT_BI | CHAR | 10 | CHAR10 | ||||
ANNAM | User who created record | ANNAM | CHAR | 12 | USNAM | ||||
AEDAT | Change date (batch input) | AEDAT_BI | CHAR | 10 | CHAR10 | ||||
AENAM | Name of Person Who Changed Object | AENAM | CHAR | 12 | USNAM | ||||
.INCLU--AP | 0 | ||||||||
CUFACTOR | CU: Number of CU Instances | /CUM/CUFACTOR | NUMC | 6 | Assigned to domain | /CUM/CUFACTOR | |||
.INCLU--AP | 0 | ||||||||
/SAPMP/MET_LRCH | Length Calculation Method | /SAPMP/MET_LRCH | CHAR | 2 | /SAPMP/MET_LRCH | ||||
/SAPMP/MAX_FERTL | Maximum Production Length (Batch Input) | /SAPMP/MAX_FERTL_BI | CHAR | 17 | CHAR17 | ||||
/SAPMP/FIX_AS_J | Fixed Scrap Any Length (Batch Input) | /SAPMP/FIX_AS_J_BI | CHAR | 17 | CHAR17 | ||||
/SAPMP/FIX_AS_E | Fixed Scrap First Length (Batch Input) | /SAPMP/FIX_AS_E_BI | CHAR | 17 | CHAR17 | ||||
/SAPMP/FIX_AS_L | Fixed Scrap - Last Length (Batch Input) | /SAPMP/FIX_AS_L_BI | CHAR | 17 | CHAR17 | ||||
/SAPMP/ABL_ZAHL | Number of Run-In Lengths | /SAPMP/ABL_ZAHL | NUMC | 6 | NUMC6 | ||||
/SAPMP/RUND_FAKT | Rounding Factor (Batch Input) | /SAPMP/RUND_FAKT_BI | CHAR | 17 | CHAR17 |
Key field | Non-key field |
How do I retrieve data from SAP structure STPO_APICN using ABAP code?
As STPO_APICN 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 STPO_APICN as there is no data to select.How to access SAP table STPO_APICN
Within an ECC or HANA version of SAP you can also view further information about STPO_APICN 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