/SAPHT/DRM_SALESDOC_AGR SAP (Ship and Debit Agreements for the Sales Document) Structure details
Description: Ship and Debit Agreements for the Sales Document
Related tables to /SAPHT/DRM_SALESDOC_AGR
Access table /SAPHT/DRM_SALESDOC_AGR
Structure field list including key, data, relationships and ABAP select examples
/SAPHT/DRM_SALESDOC_AGR 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 "Ship and Debit Agreements for the Sales Document" 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_/SAPHT/DRM_SALESDOC_AGR TYPE /SAPHT/DRM_SALESDOC_AGR.
The /SAPHT/DRM_SALESDOC_AGR table consists of various fields, each holding specific information or linking keys about Ship and Debit Agreements for the Sales Document data available in SAP. These include DIST_CHNL (Distribution Channel), DIVISION (Division), SLS_DOCNO (Sales and Distribution Document Number), SLS_DOCITM (Item number of the SD document).. 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 /SAPHT/DRM_SALESDOC_AGR 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 |
SALES_ORG | Sales Organization | VKORG | CHAR | 4 | Assigned to domain | VKORG | VKO | C_VKORG | |
DIST_CHNL | Distribution Channel | VTWEG | CHAR | 2 | Assigned to domain | VTWEG | VTW | C_VTWEG | |
DIVISION | Division | SPART | CHAR | 2 | Assigned to domain | SPART | SPA | C_SPART | |
SLS_DOCNO | Sales and Distribution Document Number | VBELN | CHAR | 10 | Assigned to domain | ALPHA | VBELN | AUN | |
SLS_DOCITM | Item number of the SD document | POSNR | NUMC | 6 | Assigned to domain | POSNR | |||
MATERIAL | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
SD_AGR_NO | Ship-and-debit agreement number | /SAPHT/DRM_SDAGRNO | CHAR | 10 | ALPHA | BELNR | |||
SD_AGR_ITM | Ship-and-debit agreement item number | /SAPHT/DRM_SDAGRITM | NUMC | 6 | Assigned to domain | POSNR | |||
AGR_CLAIM_QTY | Calculated bill-up claim quantity | /SAPHT/DRM_CALCCLAIMQTY | QUAN | 15(3) | MENG15 | ||||
QTY_UNIT | Base Unit of Measure | MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
KSCHL | Condition Type | KSCHL | CHAR | 4 | Assigned to domain | KSCHL | VKS | ||
SD_AGR_RATE | Rate (condition amount or percentage) | KBETR | CURR | 11(2) | WERTV6 | ||||
SD_AGR_CURR | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
PRIC_UNIT | Ship-and-debit agreement pricing unit | /SAPHT/DRM_AGR_PRC_UNIT | DEC | 5 | KPEIN | ||||
AGR_CON_NUM | Numerator for coversion to base unit | /SAPHT/DRM_AGR_COND_NUMER | DEC | 5 | UMBSZ | ||||
AGR_CON_DEN | Denominator for conversion to base unit of material | /SAPHT/DRM_AGR_COND_DENOM | DEC | 5 | UMBSN | ||||
KWERT | Condition value | KWERT | CURR | 13(2) | WERTV7 | ||||
WAERS | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
BOOK_DATE | Booking Date- From | /SAPHT/DRM_BOOK_FROM | DATS | 8 | DATS | ||||
SHIP_DATE | Shipping Date - From | /SAPHT/DRM_SHIP_FROM | DATS | 8 | DATS | ||||
BILL_DATE | Billing Date - From | /SAPHT/DRM_BILL_FROM | DATS | 8 | DATS | ||||
EXER_DATE | Exercise Date -To | /SAPHT/DRM_EXER_FROM | DATS | 8 | DATS | ||||
BOOKING_FR | Booking Date- From | /SAPHT/DRM_BOOK_FROM | DATS | 8 | DATS | ||||
BOOKING_TO | Booking Date - To | /SAPHT/DRM_BOOK_TO | DATS | 8 | DATS | ||||
SHIPPING_FR | Shipping Date - From | /SAPHT/DRM_SHIP_FROM | DATS | 8 | DATS | ||||
SHIPPING_TO | Shipping Date - To | /SAPHT/DRM_SHIP_TO | DATS | 8 | DATS | ||||
BILLING_FR | Billing Date - From | /SAPHT/DRM_BILL_FROM | DATS | 8 | DATS | ||||
BILLING_TO | Billing Date - To | /SAPHT/DRM_BILL_TO | DATS | 8 | DATS | ||||
EXERCISE_FR | Exercise Date -To | /SAPHT/DRM_EXER_FROM | DATS | 8 | DATS | ||||
EXERCISE_TO | Exercise Date - From | /SAPHT/DRM_EXER_TO | DATS | 8 | DATS | ||||
AGREE_VALID | Ship-and-debit agreement validity flag | /SAPHT/DRM_AGR_VAL_FLG | CHAR | 10 | /SAPHT/DRM_AGR_VAL_FLG |
Key field | Non-key field |
How do I retrieve data from SAP structure /SAPHT/DRM_SALESDOC_AGR using ABAP code?
As /SAPHT/DRM_SALESDOC_AGR 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 /SAPHT/DRM_SALESDOC_AGR as there is no data to select.How to access SAP table /SAPHT/DRM_SALESDOC_AGR
Within an ECC or HANA version of SAP you can also view further information about /SAPHT/DRM_SALESDOC_AGR 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