BSEGA SAP (Document Segment Enhancement Part) Structure details

Dictionary Type: Structure
Description: Document Segment Enhancement Part




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




Structure field list including key, data, relationships and ABAP select examples

BSEGA 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 "Document Segment Enhancement Part" 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_BSEGA TYPE BSEGA.

The BSEGA table consists of various fields, each holding specific information or linking keys about Document Segment Enhancement Part data available in SAP. These include DMHAB (Credit Amount in Local Currency), DMSHB (Amount in Local Currency with +/- Signs), WRSOL (Debit Amount in Document Currency), WRHAB (Credit Amount in Document Currency).. 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 BSEGA 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
DMSOLDebit Amount in Local Currency DMSOLCURR13(2) WERT7
DMHABCredit Amount in Local Currency DMHABCURR13(2) WERT7
DMSHBAmount in Local Currency with +/- Signs DMSHBCURR13(2) WRTV7
WRSOLDebit Amount in Document Currency WRSOLCURR13(2) WERT7
WRHABCredit Amount in Document Currency WRHABCURR13(2) WERT7
WRSHBForeign Currency Amount with Signs (+/-) WRSHBCURR13(2) WRTV7
MDSHBTax on Sales/Purchases amount in Local Curr. with +/- Sign MDSHBCURR13(2) WRTV7
MWSHBTax on Sales/Purchases Amount in Foreign Curr. with +/- Sign MWSHBCURR13(2) WRTV7
FDSHBPlanned Amount in Local Currency with +/- Sign FDSHBCURR13(2) WRTV7
BLSHBBase Amount for Preference ( with +/- Signs ) BLSHBCURR13(2) WRTV7
NETDTDue Date for Net Payment NETDTDATS8DATUM
SK1DTDue Date for Cash Discount 1 SK1DTDATS8DATUM
SK2DTDue Date for Cash Discount 2 SK2DTDATS8DATUM
MENSHQuantity with +/- Sign MENSHQUAN13(3) MENSH
GKARTOffsetting Account Type GKARTCHAR1GKART
GKONTOffsetting Account Number GKONTCHAR10ALPHAGKONTGKONT

Key field Non-key field



How do I retrieve data from SAP structure BSEGA using ABAP code?

As BSEGA 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 BSEGA as there is no data to select.

How to access SAP table BSEGA

Within an ECC or HANA version of SAP you can also view further information about BSEGA 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!