/SAPSRM/S_CD_MAIN SAP (Change document main structure) Structure details

Dictionary Type: Structure
Description: Change document main structure




ABAP Code to SELECT data from /SAPSRM/S_CD_MAIN
Related tables to /SAPSRM/S_CD_MAIN
Access table /SAPSRM/S_CD_MAIN




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

/SAPSRM/S_CD_MAIN 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 "Change document main structure" 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_/SAPSRM/S_CD_MAIN TYPE /SAPSRM/S_CD_MAIN.

The /SAPSRM/S_CD_MAIN table consists of various fields, each holding specific information or linking keys about Change document main structure data available in SAP. These include SET_TYPE (set type), ITEM_NR (Character Field Length = 10), CD_NAME (Character length 2), VERSION_NO (Version 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 (Deep)


SAP /SAPSRM/S_CD_MAIN 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
SET_TYPE set type0
ITEM_NRCharacter Field Length = 10 CHAR10CHAR10CHAR10
CD_NAMECharacter length 2 CHAR_02CHAR2CHAR02
VERSION_NOVersion Number BBP_VERSION_NOCHAR8CHAR08
UNAMEFormatted Name of Employee or Applicant EMNAMCHAR40TEXT40
UDATECreation date of the change document CDDATUMDATS8DATUM
UTIMETime changed CDUZEITTIMS6UZEIT
ADD_DESCRIPTIONAttribute Description BBP_ATT_DESCRIPTIONCHAR40BBP_DESCRIPTION
ITEM_DESCRIPTIONItem Description BBP_ITEM_DESCRIPTIONCHAR40CHAR40
FTEXTExplanatory short text DDTEXTCHAR60DDTEXT
F_OLDOld contents of changed field CDFLDVALOCHAR254FIELDVAL
F_NEWNew contents of changed field CDFLDVALNCHAR254FIELDVAL
PAGE_NRNatural Number INT4INT410INT4
CNTNatural Number INT4INT410INT4
NODE_EXPAND_COLLAPSEReplacement for Real Boolean Type: 'X' == True '' == False WDY_BOOLEANCHAR1WDY_BOOLEAN
PARENT_KEYText (100 characters) TEXT100CHAR100TEXT100
ROW_KEYText (100 characters) TEXT100CHAR100TEXT100
LEAF_NODEText (10 Characters) TEXT10CHAR10TEXT10
DESCRIPTIONText of length 1000 TEXT1000CHAR1000TEXT1000
GUIDGlobally Unique identifier BBP_GUIDRAW16SYSUUID
SET_INDEX index0
CHANGED_ATCharacter Field Length = 10 CHAR10CHAR10CHAR10
VERSION version0
HIDEQUERYTEXT text0
TRANSCONTReplacement for Real Boolean Type: 'X' == True '' == False WDY_BOOLEANCHAR1WDY_BOOLEAN
ELEMENT_VISIBLEReplacement for Real Boolean Type: 'X' == True '' == False WDY_BOOLEANCHAR1WDY_BOOLEAN
RB_COMMON_SELECTED_KEY 0
RB_CHANGED_FROM 0
VARTODATETimeframe To BBP_VPER_ENDDATS8DATUM
RB_COMMON 0
RB_CHANGED_SINCE 0
VARFROMTimeframe From BBP_VPER_STARTDATS8DATUM
FV_VERSION 0
FILTERTEXTRB_ENABLED_CHANGED_FReplacement for Real Boolean Type: 'X' == True '' == False WDY_BOOLEANCHAR1WDY_BOOLEAN
RB_ENABLED_CHANGED_SINCEReplacement for Real Boolean Type: 'X' == True '' == False WDY_BOOLEANCHAR1WDY_BOOLEAN
CHANGED_SINCEChanged Since /SAPSRM/CHANGED_SINCECHAR1/SAPSRM/CHANGE_TIMEFRAME
MODEL 0

Key field Non-key field



How do I retrieve data from SAP structure /SAPSRM/S_CD_MAIN using ABAP code?

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

How to access SAP table /SAPSRM/S_CD_MAIN

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