MSEGK SAP (Account Assignment Fields for Material Segment) Structure details
Description: Account Assignment Fields for Material Segment
Structure field list including key, data, relationships and ABAP select examples
MSEGK 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 "Account Assignment Fields for Material Segment" 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_MSEGK TYPE MSEGK.
The MSEGK table consists of various fields, each holding specific information or linking keys about Account Assignment Fields for Material Segment data available in SAP. These include SOBKZ (Special Stock Indicator), KONTO (G/L Account Number), RSNUM (Number of Reservation/Dependent Requirement), LIFNR (Vendor Account Number).. 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 MSEGK 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 |
BWART | Movement Type (Inventory Management) | BWART | CHAR | 3 | T156 | BWART | BWA | ||
SOBKZ | Special Stock Indicator | SOBKZ | CHAR | 1 | T148 | SOBKZ | |||
KONTO | G/L Account Number | SAKNR | CHAR | 10 | SKA1 | ALPHA | SAKNR | SAK | C_SAKNR |
RSNUM | Number of Reservation/Dependent Requirement | RSNUM | NUMC | 10 | Assigned to domain | RSNUM | RES | ||
LIFNR | Vendor Account Number | ELIFN | CHAR | 10 | LFA1 | ALPHA | LIFNR | LIF | KRED_C |
KUNNR | Account Number of Customer | EKUNN | CHAR | 10 | KNA1 | ALPHA | KUNNR | KUN | |
KDAUF | Sales Order Number | KDAUF | CHAR | 10 | VBUK | ALPHA | VBELN | AUN | |
KDPOS | Item Number in Sales Order | KDPOS | NUMC | 6 | NUM06 | KPO | |||
KDEIN | Delivery Schedule for Sales Order | KDEIN | NUMC | 4 | NUM04 | ||||
PLPLA | Distribution of Differences | PLPLA | CHAR | 10 | PLPLA | ||||
EBELN | Purchase Order Number | BSTNR | CHAR | 10 | EKKO | ALPHA | EBELN | BES | |
KOSTL | Cost Center | KOSTL | CHAR | 10 | CSKS | ALPHA | KOSTL | KOS | |
AUFNR | Order Number | AUFNR | CHAR | 12 | AUFK | ALPHA | AUFNR | ANR | |
ANLN1 | Main Asset Number | ANLN1 | CHAR | 12 | ANLH | ALPHA | ANLN1 | AN1 | |
ANLN2 | New asset subnumber, 4 characters | ANLN2_4 | CHAR | 4 | ALPHA | ANLN2_4 | AN2 | ||
UMMAT | Receiving/Issuing Material | UMMAT | CHAR | 18 | MARA | MATN1 | MATNR | ||
UMWRK | Receiving/Issuing Plant | UMWRK | CHAR | 4 | T001W | WERKS | |||
UMLGO | Receiving/Issuing Storage Location | UMLGO | CHAR | 4 | T001L | LGORT | |||
ANBWA | Asset Transaction Type | ANBWA | CHAR | 3 | TABW | BWASL | |||
IMKEY | Internal Key for Real Estate Object | IMKEY | CHAR | 8 | IMKEY | ||||
KSTRG | Cost Object | KSTRG | CHAR | 12 | Assigned to domain | KSTRG | KTR | ||
PAOBJNR | Profitability Segment Number (CO-PA) | RKEOBJNR | NUMC | 10 | RKEOBJNR | ||||
PPRCTR | Partner Profit Center | PPRCTR | CHAR | 10 | Assigned to domain | ALPHA | PRCTR | PPC | |
PS_PSP_PNR | Work Breakdown Structure Element (WBS Element) | PS_PSP_PNR | NUMC | 8 | PRPS | KONPR | PS_POSNR | ||
NPLNR | Network Number for Account Assignment | NPLNR | CHAR | 12 | AUFK | ALPHA | AUFNR | NET | |
AUFPL | Routing number of operations in the order | CO_AUFPL | NUMC | 10 | AUFPL | ||||
APLZL | Internal counter | CIM_COUNT | NUMC | 8 | CIM_COUNT | ||||
AUFPS | Order Item Number | CO_POSNR | NUMC | 4 | CO_POSNR | ||||
VPTNR | Partner account number | JV_PART | CHAR | 10 | KNA1 | ALPHA | KUNNR | ||
PARGB | Trading partner's business area | PARGB | CHAR | 4 | TGSB | GSBER | GSB | ||
PARBU | Clearing company code | PARBU | CHAR | 4 | T001 | BUKRS | |||
SHKZG | Debit/Credit Indicator | SHKZG | CHAR | 1 | SHKZG | ||||
RECID | Internal Recovery Indicator | JV_RECINDI | CHAR | 2 | T8JW | ALPHA | JV_RECINDI | ||
WEMPF | Goods Recipient/Ship-To Party | WEMPF | CHAR | 12 | WEMPF | ||||
FIPOS | Commitment Item | FIPOS | CHAR | 14 | Assigned to domain | FIPOS | FIP | ||
GEBER | Fund | BP_GEBER | CHAR | 10 | Assigned to domain | BP_GEBER | FIC | ||
FISTL | Funds Center | FISTL | CHAR | 16 | Assigned to domain | FISTL | FIS | ||
FKBER | Functional Area | FKBER | CHAR | 16 | Assigned to domain | FKBER | FBE | ||
DABRZ | Reference Date for Settlement | DABRBEZ | DATS | 8 | DDAT | ||||
VBTYP | SD document category | VBTYP | CHAR | 1 | VBTYP | ||||
KZBWS | Valuation of Special Stock | KZBWS | CHAR | 1 | KZBWS | ||||
MAT_KDAUF | Sales Order Number of Valuated Sales Order Stock | MAT_KDAUF | CHAR | 10 | Assigned to domain | ALPHA | VBELN | AUN | |
MAT_KDPOS | Sales Order Item of Valuated Sales Order Stock | MAT_KDPOS | NUMC | 6 | NUM06 | KPO | |||
MAT_PSPNR | Valuated Sales Order Stock WBS Element | MAT_PSPNR | NUMC | 8 | Assigned to domain | KONPR | PS_POSNR | ||
BEMOT | Accounting Indicator | BEMOT | CHAR | 2 | Assigned to domain | BEMOT | |||
PRZNR | Business Process | CO_PRZNR | CHAR | 12 | Assigned to domain | ALPHA | CO_PRZNR | KWP | |
LSTAR | Activity Type | LSTAR | CHAR | 6 | Assigned to domain | LSTAR | LAR | LART_EMPTY | |
RMVCT | Transaction Type | RMVCT | CHAR | 3 | Assigned to domain | RMVCT | |||
GRANT_NBR | Grant | GM_GRANT_NBR | CHAR | 20 | ALPHA | GM_GRANT_NBR | GM_GRANT_NBR | GRANTS_GENERIC | |
BUDGET_PD | FM: Budget Period | FM_BUDGET_PERIOD | CHAR | 10 | Assigned to domain | FM_BUDGET_PERIOD | BUDPER | ||
KBLNR | Document Number for Earmarked Funds | KBLNR_FI | CHAR | 10 | Assigned to domain | ALPHA | KBLNR | KBL | |
KBLPOS | Earmarked Funds: Document Item | KBLPOS | NUMC | 3 | Assigned to domain | KBLPOS | KBP | ||
.INCLU--AP | 0 | ||||||||
CRPCAL | Flag CRP Calculation: Yes or NO | JV_CRPCAL | CHAR | 1 | XFELD | ||||
CONDI | Joint Venture Indicator (Condition Key) | JV_CONDCOD | CHAR | 2 | Assigned to domain | ALPHA | JV_CONDCOD |
Key field | Non-key field |
How do I retrieve data from SAP structure MSEGK using ABAP code?
As MSEGK 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 MSEGK as there is no data to select.How to access SAP table MSEGK
Within an ECC or HANA version of SAP you can also view further information about MSEGK 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