CRMST_QRESHIST_ERPIL SAP (ERP: Query Result Object - Order History) Structure details
Description: ERP: Query Result Object - Order History
Related tables to CRMST_QRESHIST_ERPIL
Access table CRMST_QRESHIST_ERPIL
Structure field list including key, data, relationships and ABAP select examples
CRMST_QRESHIST_ERPIL 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 "ERP: Query Result Object - Order History" 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_CRMST_QRESHIST_ERPIL TYPE CRMST_QRESHIST_ERPIL.
The CRMST_QRESHIST_ERPIL table consists of various fields, each holding specific information or linking keys about ERP: Query Result Object - Order History data available in SAP. These include GUID (GUID of a CRM Order Object), SD_DOC (Sales and Distribution Document Number), ITM_NUMBER (Item number of the SD document), MATERIAL (Material 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: Cannot Be Enhanced
SAP CRMST_QRESHIST_ERPIL 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 |
GUID | GUID of a CRM Order Object | CRMT_OBJECT_GUID | RAW | 16 | SYSUUID | ||||
SD_DOC | Sales and Distribution Document Number | VBELN | CHAR | 10 | ALPHA | VBELN | AUN | ||
ITM_NUMBER | Item number of the SD document | POSNR | NUMC | 6 | POSNR | ||||
MATERIAL | Material Number | MATNR | CHAR | 18 | MATN1 | MATNR | MAT | S_MAT1 | |
SHORT_TEXT | Short text for sales order item | ARKTX | CHAR | 40 | TEXT40 | ||||
DOC_TYPE | Sales Document Type | AUART | CHAR | 4 | Assigned to domain | AUART | AUART | AAT | |
DOC_DATE | Document Date (Date Received/Sent) | AUDAT | DATS | 8 | DATUM | ||||
REQ_QTY | Cumulative Order Quantity in Sales Units | KWMENG | QUAN | 15(3) | MENG15 | ||||
REQ_DATE | Requested delivery date | WLDAT | DATS | 8 | DATUM | ||||
PURCH_NO | Customer purchase order number | BSTNK | CHAR | 20 | BSTNK | ||||
BATCH | Batch Number | CHARG_D | CHAR | 10 | CHARG | CHA | |||
VALID_FROM | Quotation or contract valid from | DATAB_VI | DATS | 8 | DATUM | ||||
VALID_TO | Quotation or contract valid to | DATBI_VI | DATS | 8 | DATUM | ||||
BILL_BLOCK | Billing block in SD document | FAKSK | CHAR | 2 | Assigned to domain | FAKSP | |||
DLV_BLOCK | Delivery block (document header) | LIFSK | CHAR | 2 | Assigned to domain | LIFSP | |||
SOLD_TO | Sold-to party | KUNAG | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | VAG | |
NAME | Name 1 | NAME1_GP | CHAR | 35 | NAME | ||||
EXCHG_RATE | Directly quoted exchange rate for pricing and statistics | KURSK_P | DEC | 9(5) | PKURS | ||||
DLV_QTY | Actual quantity delivered (in sales units) | LFIMG | QUAN | 13(3) | MENG13 | ||||
BASE_UOM | Base Unit of Measure | MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
NET_PRICE | Net price | NETPR | CURR | 11(2) | WERTV6 | ||||
COND_P_UNT | Condition pricing unit | KPEIN | DEC | 5 | KPEIN | ||||
COND_UNIT | Condition unit | KMEIN | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
NET_VAL_HD | Net Value of the Sales Order in Document Currency | NETWR_AK | CURR | 15(2) | WERTV8 | ||||
NET_VALUE | Net Value of the Sales Order in Document Currency | NETWR_AK | CURR | 15(2) | WERTV8 | ||||
DIVISION | Division | SPART | CHAR | 2 | SPART | SPA | C_SPART | ||
DOC_STATUS | Document status | STATS | CHAR | 20 | TEXT20 | ||||
SALES_GRP | Sales Group | VKGRP | CHAR | 3 | Assigned to domain | VKGRP | VKG | ||
SALES_OFF | Sales Office | VKBUR | CHAR | 4 | Assigned to domain | VKBUR | VKB | ||
SALES_ORG | Sales Organization | VKORG | CHAR | 4 | Assigned to domain | VKORG | VKO | C_VKORG | |
SALES_UNIT | Sales unit | VRKME | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
SHIP_POINT | Shipping Point/Receiving Point | VSTEL | CHAR | 4 | VSTEL | VST | |||
DISTR_CHAN | Distribution Channel | VTWEG | CHAR | 2 | Assigned to domain | VTWEG | VTW | C_VTWEG | |
GI_DATE | Goods Issue Date | WADAT | DATS | 8 | DATUM | ||||
CURRENCY | SD Document Currency | WAERK | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
PLANT | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
STORE_LOC | Storage Location | LGORT_D | CHAR | 4 | LGORT | LAG | |||
ORD_REASON | Order reason (reason for the business transaction) | AUGRU | CHAR | 3 | Assigned to domain | AUGRU | |||
REASON_REJ | Reason for rejection of quotations and sales orders | ABGRU | CHAR | 2 | ABGRU | ||||
B_UOM_ISO | Base unit of measure in ISO code | MEINS_ISO | CHAR | 3 | Assigned to domain | ISOCD_UNIT | |||
CD_UNT_ISO | Condition unit of measure in UoM | KVMEI_ISO | CHAR | 3 | Assigned to domain | ISOCD_UNIT | |||
S_UNIT_ISO | Sales unit in ISO code | VRKME_ISO | CHAR | 3 | Assigned to domain | ISOCD_UNIT | |||
CURR_ISO | ISO code currency | WAERS_ISO | CHAR | 3 | ISOCD | ||||
PURCH_NO_C | Customer purchase order number | BSTKD | CHAR | 35 | BSTKD | ||||
EXCHG_RATE_V | Indirectly quoted exchange rate for pricing and statistics | KURSK_V | DEC | 9(5) | PKURS | ||||
MAT_EXT | Long Material Number for MATERIAL Field | MGV_MATERIAL_EXTERNAL | CHAR | 40 | MATNR_EXT | ||||
MAT_GUID | External GUID for MATERIAL Field | MGV_MATERIAL_GUID | CHAR | 32 | MATNR_EGUID | ||||
MAT_VERS | Version Number for MATERIAL Field | MGV_MATERIAL_VERSION | CHAR | 10 | MATNW | MATNR_VERS | |||
CREATION_DATE | Date on Which Record Was Created | ERDAT | DATS | 8 | DATUM | ||||
CREATION_TIME | Entry time | ERZET | TIMS | 6 | UZEIT |
Key field | Non-key field |
How do I retrieve data from SAP structure CRMST_QRESHIST_ERPIL using ABAP code?
As CRMST_QRESHIST_ERPIL 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 CRMST_QRESHIST_ERPIL as there is no data to select.How to access SAP table CRMST_QRESHIST_ERPIL
Within an ECC or HANA version of SAP you can also view further information about CRMST_QRESHIST_ERPIL 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