H_AGENT_MED SAP (Generated Table for View) Table View details

Dictionary Type: Table View
Description: Generated Table for View




ABAP Code to SELECT data from H_AGENT_MED
Related tables to H_AGENT_MED
Access table H_AGENT_MED




Table View field list including key, data, relationships and ABAP select examples

H_AGENT_MED is a standard SAP Table View which is used to store Generated Table for View data and is available within R/3 SAP systems depending on the version and release level.

The H_AGENT_MED table consists of various fields, each holding specific information or linking keys about Generated Table for View data available in SAP. These include DRUGID (Medication: Mnemonic), AGENTID (Medication: Agent ID), AGTYPE (Medication: Agent Type), SPRAS (Language Key).. 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: Not classified


SAP H_AGENT_MED table view 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
MANDTClient MANDTCLNT3T000MANDT
DRUGIDMedication: Mnemonic N1ME_DRUGIDCHAR32N1FORMULARYSYSUUID_C
AGENTIDMedication: Agent ID N1ME_AGENTIDCHAR32NAGENTSYSUUID_C
AGTYPEMedication: Agent Type N1ME_AGTYPECHAR3N1ME_AGTYPE
SPRASLanguage Key SPRASLANG1T002ISOLASPRASSPRH_T002
AGENTMedication: Agent Name N1ME_AGENTCHAR160
DESCRMedication: Agent Description N1ME_AGENTDESCCHAR160N1ME_AGENTDESC
MATNRMaterial Number MATNRCHAR18MARAMATN1MATNRMATS_MAT1
NARCOTICMedication: Narcotic Indicator N1ME_NARCOTICCHAR1XFELD
PSYCHOMedication: Psychotropic Indicator N1ME_PSYCHOCHAR1XFELD
CONTRMedication: Controlled Drug Indicator N1ME_CONTRCHAR1XFELD
MONOMedication: Single Agent Drug Indicator N1ME_MONOCHAR1XFELD

Key field Non-key field



How do I retrieve data from SAP table H_AGENT_MED using ABAP code

The following ABAP code Example will allow you to do a basic selection on H_AGENT_MED to SELECT all data from the table
DATA: WA_H_AGENT_MED TYPE H_AGENT_MED.

SELECT SINGLE *
FROM H_AGENT_MED
INTO CORRESPONDING FIELDS OF WA_H_AGENT_MED
WHERE...

How to access SAP table H_AGENT_MED

Within an ECC or HANA version of SAP you can also view further information about H_AGENT_MED and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!