XBSEG SAP (Line structure for external data exchange (RFC and file)) Structure details
Description: Line structure for external data exchange (RFC and file)
Structure field list including key, data, relationships and ABAP select examples
XBSEG 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 "Line structure for external data exchange (RFC and file)" 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_XBSEG TYPE XBSEG.
The XBSEG table consists of various fields, each holding specific information or linking keys about Line structure for external data exchange (RFC and file) data available in SAP. These include IDBBSEG (Packed field), STYPE (Batch Input Interface Record Type), BELNR (Accounting Document Number), BSCHL (Posting 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: Can be enhanced (character-type or numeric)
SAP XBSEG 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 |
IDBBKPF | Packed field | DEC15 | DEC | 15 | DEC15 | ||||
IDBBSEG | Packed field | DEC15 | DEC | 15 | DEC15 | ||||
STYPE | Batch Input Interface Record Type | STYPE_BI | CHAR | 1 | CHAR1 | ||||
BELNR | Accounting Document Number | BELNR_D | CHAR | 10 | ALPHA | BELNR | BLN | ||
BSCHL | Posting Key | BSCHL | CHAR | 2 | Assigned to domain | BSCHL | |||
DMBTR | Amount in local currency (batch input field) | DMBTR_BI | CHAR | 16 | CHAR16 | ||||
WRBTR | Amount in document currency (batch input field) | WRBTR_BI | CHAR | 16 | CHAR16 | ||||
MWSTS | Tax Amount in Local Currency (Batch Input Field) | MWSTS_BI | CHAR | 16 | CHAR16 | ||||
MWSKZ | Tax on sales/purchases code | MWSKZ | CHAR | 2 | Assigned to domain | MWSKZ | |||
GSBER | Business Area | GSBER | CHAR | 4 | Assigned to domain | GSBER | GSB | ||
KOSTL | Cost Center | KOSTL | CHAR | 10 | Assigned to domain | ALPHA | KOSTL | KOS | |
WERKS | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
VALUT | Date (batch input) | DATUM_BI | CHAR | 8 | CHAR8 | ||||
ZUONR | Assignment Number | DZUONR | CHAR | 18 | ZUONR | ||||
ABPER | Settlement Period (Batch Input Field) | ABPER_RFBI | CHAR | 7 | CHAR7 | ||||
PERNR | Personnel Number (Batch Input Field) | PERNR_BI | CHAR | 8 | CHAR8 | ||||
HKONT | General Ledger Account | HKONT | CHAR | 10 | Assigned to domain | ALPHA | SAKNR | ||
FDLEV | Planning level | FDLEV | CHAR | 2 | Assigned to domain | FDLEV | FFE | ||
FDGRP | Planning Group | FDGRP | CHAR | 10 | Assigned to domain | ALPHA | FDGRP | FFG | |
FDWBT | Amount in document currency (batch input field) | WRBTR_BI | CHAR | 16 | CHAR16 | ||||
FDTAG | Date (batch input) | DATUM_BI | CHAR | 8 | CHAR8 | ||||
FKONT | Financial Budget Item | FIPLS | NUMC | 3 | FIPLS | ||||
KOKRS | Controlling Area | KOKRS | CHAR | 4 | Assigned to domain | CACCD | CAC | ||
SHKZG | Debit/Credit Indicator | SHKZG | CHAR | 1 | SHKZG |
Key field | Non-key field |
How do I retrieve data from SAP structure XBSEG using ABAP code?
As XBSEG 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 XBSEG as there is no data to select.How to access SAP table XBSEG
Within an ECC or HANA version of SAP you can also view further information about XBSEG 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