PTP81 SAP (Trip Statistics - Cost Assignment) Structure details
Description: Trip Statistics - Cost Assignment
Structure field list including key, data, relationships and ABAP select examples
PTP81 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 "Trip Statistics - Cost Assignment" 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_PTP81 TYPE PTP81.
The PTP81 table consists of various fields, each holding specific information or linking keys about Trip Statistics - Cost Assignment data available in SAP. These include BUS_AREA (Business Area), CO_AREA (Controlling Area), COSTCENTER (Cost Center), INTERNAL_ORDER (Order Number).. 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 PTP81 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 |
COMP_CODE | Company Code | BUKRS | CHAR | 4 | Assigned to domain | BUKRS | BUK | C_T001 | |
BUS_AREA | Business Area | GSBER | CHAR | 4 | Assigned to domain | GSBER | GSB | ||
CO_AREA | Controlling Area | KOKRS | CHAR | 4 | Assigned to domain | CACCD | CAC | ||
COSTCENTER | Cost Center | KOSTL | CHAR | 10 | Assigned to domain | ALPHA | KOSTL | KOS | |
INTERNAL_ORDER | Order Number | AUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ANR | |
COST_OBJ | Cost Object | KSTRG | CHAR | 12 | Assigned to domain | KSTRG | KTR | ||
WBS_ELEMT | Work Breakdown Structure Element (WBS Element) | PS_POSID | CHAR | 24 | PROJN | PS_POSID | PRO | ||
NETWORK | Network Number for Account Assignment | NPLNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | NET | |
ACTIVITY | Operation/Activity Number | VORNR | CHAR | 4 | NUMCV | VORNR | VGN | ||
SALES_ORD | Sales Order Number | KDAUF | CHAR | 10 | Assigned to domain | ALPHA | VBELN | AUN | |
S_ORD_ITEM | Item Number in Sales Order | KDPOS | NUMC | 6 | NUM06 | KPO | |||
CO_BUSPROC | Business Process | CO_PRZNR | CHAR | 12 | Assigned to domain | ALPHA | CO_PRZNR | KWP | |
FUNDS_CTR | Funds Center | FISTL | CHAR | 16 | Assigned to domain | FISTL | FIS | ||
CMMT_ITEM | Commitment Item | FIPOS | CHAR | 14 | Assigned to domain | FIPOS | FIP | ||
FUND | Fund | BP_GEBER | CHAR | 10 | Assigned to domain | BP_GEBER | FIC | ||
ALLOC_AMOUNT | Amount per Account Assignment | PTRV_ALLOC_AMOUNT | CURR | 15(2) | PTRV_ALLOC_AMOUNT | ||||
CURRENCY | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
.INCLU--AP | 0 | ||||||||
FUNC_AREA | Functional Area | FKBER | CHAR | 16 | Assigned to domain | FKBER | FBE | ||
GRANT_NBR | Grant | GM_GRANT_NBR | CHAR | 20 | ALPHA | GM_GRANT_NBR | GM_GRANT_NBR | GRANTS_GENERIC | |
CMMT_ITEM_LONG | Commitment Item | FM_FIPEX | CHAR | 24 | Assigned to domain | FM_FIPEX | FPS | ||
PROJECT_GUID | Project GUID (cProjects) | PTRV_PROJECT_GUID | RAW | 16 | CGPLP | CGPL_PROJECT_GUID | |||
PROJECT_EXT_ID | Project Number (cProjects) | PTRV_PROJECT_EXT_ID | CHAR | 24 | CGPL_EXTID | ||||
TASK_ROLE_GUID | Task GUID (cProjects) | PTRV_TASK_GUID | RAW | 16 | CGPLP | CGPL_PROJECT_GUID | |||
TASK_ROLE_EXT_ID | Task Number (cProjects) | PTRV_TASK_EXT_ID | CHAR | 24 | CGPL_EXTID | ||||
OBJECT_TYPE | Object Type (cProjects) | PTRV_OBJ_TYPE | CHAR | 3 | CHAR3 | ||||
BUDGET_PERIOD | FM: Budget Period | FM_BUDGET_PERIOD | CHAR | 10 | Assigned to domain | FM_BUDGET_PERIOD | BUDPER | ||
CATEGORY | Cost Category | GLO_PTRV_COST_CAT | CHAR | 5 | Assigned to domain | GLO_PTRV_COST_CAT |
Key field | Non-key field |
How do I retrieve data from SAP structure PTP81 using ABAP code?
As PTP81 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 PTP81 as there is no data to select.How to access SAP table PTP81
Within an ECC or HANA version of SAP you can also view further information about PTP81 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