SHKONTEXT SAP (Dialog context data for SAPhelp) Structure details
Description: Dialog context data for SAPhelp
Structure field list including key, data, relationships and ABAP select examples
SHKONTEXT 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 "Dialog context data for SAPhelp" 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_SHKONTEXT TYPE SHKONTEXT.
The SHKONTEXT table consists of various fields, each holding specific information or linking keys about Dialog context data for SAPhelp data available in SAP. These include OBJEKT_KZ (Indicator for screen objects (for SAPhelp)), PROGRAMM (Program Name), DYNPRO (Screen number), TABNAME (Table Name).. 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 SHKONTEXT 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 |
AUFRUF | Call indicator for SAPhelp | SHAUFRUF | CHAR | 1 | CHAR1 | ||||
OBJEKT_KZ | Indicator for screen objects (for SAPhelp) | SHOBJ_KZ | CHAR | 1 | CHAR1 | ||||
PROGRAMM | Program Name | SCRAPROG | CHAR | 40 | PROGNAME | DYR | |||
DYNPRO | Screen number | SCRADNUM | NUMC | 4 | DYNPRONR | DYN | |||
TABNAME | Table Name | TABNAME | CHAR | 30 | Assigned to domain | AS4TAB | DTB | ||
FLDNAME | Field Name | FIELDNAME | CHAR | 30 | Assigned to domain | FDNAME | DFD | ||
FLDTYP | Data Type in ABAP Dictionary | DATATYPE_D | CHAR | 4 | DTYPE | DATATYPE | |||
KEYWORD | Long Field Label | SCRTEXT_L | CHAR | 40 | SCRTEXT_L | ||||
FLDLNG | Defined length of screen field | SCRFLENG | DEC | 3 | SCRPDEC3 | ||||
FLDINH | Input line | DLINE | CHAR | 132 | F4CHAR132 | ||||
MCOBJ | Name of a matchcode object | MCONAME | CHAR | 10 | Assigned to domain | MCONAME | DMO | ||
LANGU | Language Key | SYLANGU | LANG | 1 | ISOLA | SYLANGU | |||
MENU_FKT | GUI: Function code | CUA_FUNC | CHAR | 4 | CUA_MENU | ||||
MELD_ID | Application Area | ARBGB | CHAR | 20 | Assigned to domain | ARBGB | MAG | ||
MELD_NR | Message | MESSNUM | NUMC | 3 | MESSNUM | ||||
MELDUNG | Message text in the help system | SHMSGTXT | CHAR | 300 | MESSTEXT | ||||
TITEL | Title line | HTITEL_030 | CHAR | 79 | CHAR79 | ||||
DYNPRO_FLD | Name of a Screen Element | SCRFNAME | CHAR | 132 | DYNFNAM | ||||
KZ_SYDYN | Indicator for report screens | SHSYDYN_KZ | CHAR | 1 | CHAR1 | ||||
CHCK_TABLE | Table Name | TABNAME | CHAR | 30 | Assigned to domain | AS4TAB | DTB | ||
CHCK_FIELD | Field Name | FIELDNAME | CHAR | 30 | Assigned to domain | FDNAME | DFD | ||
VALEXIST | Values exist, table DVAL is filled | VALEX | CHAR | 1 | CHAR1 | ||||
TCODE | Transaction Code | SYTCODE | CHAR | 20 | Assigned to domain | TCODE | |||
PFKEY | GUI Status | SYPFKEY | CHAR | 20 | GUI_STATUS | ||||
DOKUKEY | Documentation key transfer field | PHELPDOKU | CHAR | 79 | CHAR79 | ||||
REPORT | ABAP Program: Current Main Program | SYREPID | CHAR | 40 | Assigned to domain | PROGRAMM | |||
DOKU_ID | Document class | DOKU_ID | CHAR | 2 | Assigned to domain | DOKU_ID | |||
DOKU_OBJ | Documentation Object | DOKU_OBJ | CHAR | 60 | DOKU_OBJ | ||||
HEADERTEXT | Text Line | TDLINE | CHAR | 132 | TDSTXLLINE | ||||
DE_NAME | Data element (semantic domain) | ROLLNAME | CHAR | 30 | Assigned to domain | ROLLNAME | ROL | DD_DTEL | |
DE_ZUSATZ | Data element supplement | DIDENT | NUMC | 4 | NUMC4 | ||||
RETVAL | Indicator for determining return value in SAPhelp | SHRETVAL | CHAR | 1 | CHAR1 | ||||
DYNPCHOICE | Function selection on screen | DYNPCHOICE | CHAR | 1 | DYNPCHOICE | ||||
WORKITEMID | Object key | SWO_TYPEID | CHAR | 70 | SWO_TYPEID |
Key field | Non-key field |
How do I retrieve data from SAP structure SHKONTEXT using ABAP code?
As SHKONTEXT 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 SHKONTEXT as there is no data to select.How to access SAP table SHKONTEXT
Within an ECC or HANA version of SAP you can also view further information about SHKONTEXT 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