MSEGK SAP (Account Assignment Fields for Material Segment) Structure details

Dictionary Type: Structure
Description: Account Assignment Fields for Material Segment




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




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
BWARTMovement Type (Inventory Management) BWARTCHAR3T156BWARTBWA
SOBKZSpecial Stock Indicator SOBKZCHAR1T148SOBKZ
KONTOG/L Account Number SAKNRCHAR10SKA1ALPHASAKNRSAKC_SAKNR
RSNUMNumber of Reservation/Dependent Requirement RSNUMNUMC10Assigned to domainRSNUMRES
LIFNRVendor Account Number ELIFNCHAR10LFA1ALPHALIFNRLIFKRED_C
KUNNRAccount Number of Customer EKUNNCHAR10KNA1ALPHAKUNNRKUN
KDAUFSales Order Number KDAUFCHAR10VBUKALPHAVBELNAUN
KDPOSItem Number in Sales Order KDPOSNUMC6NUM06KPO
KDEINDelivery Schedule for Sales Order KDEINNUMC4NUM04
PLPLADistribution of Differences PLPLACHAR10PLPLA
EBELNPurchase Order Number BSTNRCHAR10EKKOALPHAEBELNBES
KOSTLCost Center KOSTLCHAR10CSKSALPHAKOSTLKOS
AUFNROrder Number AUFNRCHAR12AUFKALPHAAUFNRANR
ANLN1Main Asset Number ANLN1CHAR12ANLHALPHAANLN1AN1
ANLN2New asset subnumber, 4 characters ANLN2_4CHAR4ALPHAANLN2_4AN2
UMMATReceiving/Issuing Material UMMATCHAR18MARAMATN1MATNR
UMWRKReceiving/Issuing Plant UMWRKCHAR4T001WWERKS
UMLGOReceiving/Issuing Storage Location UMLGOCHAR4T001LLGORT
ANBWAAsset Transaction Type ANBWACHAR3TABWBWASL
IMKEYInternal Key for Real Estate Object IMKEYCHAR8IMKEY
KSTRGCost Object KSTRGCHAR12Assigned to domainKSTRGKTR
PAOBJNRProfitability Segment Number (CO-PA) RKEOBJNRNUMC10RKEOBJNR
PPRCTRPartner Profit Center PPRCTRCHAR10Assigned to domainALPHAPRCTRPPC
PS_PSP_PNRWork Breakdown Structure Element (WBS Element) PS_PSP_PNRNUMC8PRPSKONPRPS_POSNR
NPLNRNetwork Number for Account Assignment NPLNRCHAR12AUFKALPHAAUFNRNET
AUFPLRouting number of operations in the order CO_AUFPLNUMC10AUFPL
APLZLInternal counter CIM_COUNTNUMC8CIM_COUNT
AUFPSOrder Item Number CO_POSNRNUMC4CO_POSNR
VPTNRPartner account number JV_PARTCHAR10KNA1ALPHAKUNNR
PARGBTrading partner's business area PARGBCHAR4TGSBGSBERGSB
PARBUClearing company code PARBUCHAR4T001BUKRS
SHKZGDebit/Credit Indicator SHKZGCHAR1SHKZG
RECIDInternal Recovery Indicator JV_RECINDICHAR2T8JWALPHAJV_RECINDI
WEMPFGoods Recipient/Ship-To Party WEMPFCHAR12WEMPF
FIPOSCommitment Item FIPOSCHAR14Assigned to domainFIPOSFIP
GEBERFund BP_GEBERCHAR10Assigned to domainBP_GEBERFIC
FISTLFunds Center FISTLCHAR16Assigned to domainFISTLFIS
FKBERFunctional Area FKBERCHAR16Assigned to domainFKBERFBE
DABRZReference Date for Settlement DABRBEZDATS8DDAT
VBTYPSD document category VBTYPCHAR1VBTYP
KZBWSValuation of Special Stock KZBWSCHAR1KZBWS
MAT_KDAUFSales Order Number of Valuated Sales Order Stock MAT_KDAUFCHAR10Assigned to domainALPHAVBELNAUN
MAT_KDPOSSales Order Item of Valuated Sales Order Stock MAT_KDPOSNUMC6NUM06KPO
MAT_PSPNRValuated Sales Order Stock WBS Element MAT_PSPNRNUMC8Assigned to domainKONPRPS_POSNR
BEMOTAccounting Indicator BEMOTCHAR2Assigned to domainBEMOT
PRZNRBusiness Process CO_PRZNRCHAR12Assigned to domainALPHACO_PRZNRKWP
LSTARActivity Type LSTARCHAR6Assigned to domainLSTARLARLART_EMPTY
RMVCTTransaction Type RMVCTCHAR3Assigned to domainRMVCT
GRANT_NBRGrant GM_GRANT_NBRCHAR20ALPHAGM_GRANT_NBRGM_GRANT_NBRGRANTS_GENERIC
BUDGET_PDFM: Budget Period FM_BUDGET_PERIODCHAR10Assigned to domainFM_BUDGET_PERIODBUDPER
KBLNRDocument Number for Earmarked Funds KBLNR_FICHAR10Assigned to domainALPHAKBLNRKBL
KBLPOSEarmarked Funds: Document Item KBLPOSNUMC3Assigned to domainKBLPOSKBP
.INCLU--AP 0
CRPCALFlag CRP Calculation: Yes or NO JV_CRPCALCHAR1XFELD
CONDIJoint Venture Indicator (Condition Key) JV_CONDCODCHAR2Assigned to domainALPHAJV_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 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!