/SAPSRM/S_HISTORY_GEN SAP (Structure for the History Header and Items) Structure details
Description: Structure for the History Header and Items
Related tables to /SAPSRM/S_HISTORY_GEN
Access table /SAPSRM/S_HISTORY_GEN
Structure field list including key, data, relationships and ABAP select examples
/SAPSRM/S_HISTORY_GEN 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 "Structure for the History Header and Items" 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_/SAPSRM/S_HISTORY_GEN TYPE /SAPSRM/S_HISTORY_GEN.
The /SAPSRM/S_HISTORY_GEN table consists of various fields, each holding specific information or linking keys about Structure for the History Header and Items data available in SAP. These include TYPE_DESCR (Character field of length 40), DESCRIPTION (Transaction Description), CREATED_AT_DATE (System Date), QUANTITY (Quantity in Order Unit).. 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 (Deep)
SAP /SAPSRM/S_HISTORY_GEN 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 |
TYPE_DESCR | Character field of length 40 | CHAR40 | CHAR | 40 | CHAR40 | ||||
DESCRIPTION | Transaction Description | CRMT_PROCESS_DESCRIPTION | CHAR | 40 | CRM_PROCESS_DESCRIPTION | ||||
CREATED_AT_DATE | System Date | SYDATUM | DATS | 8 | SYDATS | ||||
QUANTITY | Quantity in Order Unit | BBP_MNG | QUAN | 13(3) | MENG13 | ||||
UNIT | Unit of Measurement | BBP_UNIT | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
VALUE | Net Value | BBP_VALUE | CURR | 15(2) | WERT8 | ||||
CURRENCY | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
STATUS_DESCR | Character field of length 40 | CHAR40 | CHAR | 40 | CHAR40 | ||||
OBJNO_ITMNO | Follow-On Document and Item Number | /SAPSRM/CLL_ITMNO | CHAR | 31 | /SAPSRM/CLL_ITMNO | ||||
OBJNO_ITM_BCKEND | Follow-On Document and Item Number | /SAPSRM/CLL_ITMNO | CHAR | 31 | /SAPSRM/CLL_ITMNO | ||||
OBJTYPE | Object Type | SWO_OBJTYP | CHAR | 10 | Assigned to domain | OJ_NAME | OBJ | ||
SUBTYPE | Specification of a Purchasing Doc.(e.g. Credit Memo/Invoice) | BBP_H_SUBTYPE | CHAR | 2 | BBP_H_SUBTYPE | ||||
OBJECT_ID | Follow-On Document Object ID in Back-End System | BE_OBJECT_ID | CHAR | 20 | BBP_BE_OBJECT_ID | ||||
NUMBER_INT | Item Number | BBP_ITEM_NO | NUMC | 10 | CRM_ITEM_NO | ||||
HEADER_GUID | Globally Unique identifier | BBP_GUID | RAW | 16 | SYSUUID | ||||
ITEM_GUID | Globally Unique identifier | BBP_GUID | RAW | 16 | SYSUUID | ||||
GUID | Globally Unique identifier | BBP_GUID | RAW | 16 | SYSUUID | ||||
P_GUID | Parent GUID | BBP_PGUID | RAW | 16 | SYSUUID | ||||
DCIND | Debit/Credit Indicator | BBP_DCIND | CHAR | 1 | BBP_DCIND | ||||
STATUS_DESCR_LONG | Text (length 132) | TEXT132 | CHAR | 132 | TEXT132 | ||||
DSPL_LN_OBJ_ID | Follow-On Document Object ID in Back-End System | BBP_BE_OBJECT_ID | CHAR | 20 | BBP_BE_OBJECT_ID | ||||
DSPL_LN_OBJ_ITEM | Item Number | BBP_ITEM_NO | NUMC | 10 | CRM_ITEM_NO | ||||
DSPL_BE_OBJ_ID | Follow-On Document Object ID in Back-End System | BE_OBJECT_ID | CHAR | 20 | BBP_BE_OBJECT_ID | ||||
DSPL_BE_OBJ_ITEM | Follow-On Object Item in Back-End System | BE_OBJ_ITEM | CHAR | 10 | BBP_REF_ITEM | ||||
REF_DOC_YR | Fiscal year of a reference document | BBP_LFBJA | NUMC | 4 | GJAHR | GJAHR | |||
REF_DOC | Document Number of a Reference Document | BBP_LFBNR | CHAR | 10 | ALPHA | BELNR | |||
REF_DOC_IT | Item of a Reference Document | BBP_LFPOS | NUMC | 4 | BBP_MBLPO | ||||
BE_LOGSYS | Logical system | LOGSYS | CHAR | 10 | Assigned to domain | ALPHA | LOGSYS | ||
DUMMY_EEW_PDHISC | Dummy function in length 1 | DUMMY | CHAR | 1 | DUMMY | ||||
DISPLAY_LEVEL | Dummy for B20 int1 (Local Everywhere) | INT1 | INT1 | 3 | INT1 | ||||
CURRENCY_TEXT | Long Text | LTEXT | CHAR | 40 | TEXT40 | ||||
DUMMY_EEW_PDHISS | Dummy function in length 1 | DUMMY | CHAR | 1 | DUMMY | ||||
STATUS | Object status | J_STATUS | CHAR | 5 | J_STATUS |
Key field | Non-key field |
How do I retrieve data from SAP structure /SAPSRM/S_HISTORY_GEN using ABAP code?
As /SAPSRM/S_HISTORY_GEN 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 /SAPSRM/S_HISTORY_GEN as there is no data to select.How to access SAP table /SAPSRM/S_HISTORY_GEN
Within an ECC or HANA version of SAP you can also view further information about /SAPSRM/S_HISTORY_GEN 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