SAP ABAP Function Module SRM_RECORD_ADDELEMENT (Insert Element in Container)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-RM (Application Component) SAP Records Management
     SRM_BAPI_RECORD (Package) Business Object Interface for RM Records
Basic Data
Function Module SRM_RECORD_ADDELEMENT Insert Element in Container  
Function Group SRM_BAPI_RECORD   SRM: BOR Interface of SP Record  
Program Name SAPLSRM_BAPI_RECORD    
INCLUDE Name LSRM_BAPI_RECORDU12    
Parameters
Type Parameter Name Typing Associated Type Default value Optional Pass Value Short text
Exporting RETURN TYPE BAPIRET2 Return Code
Importing OBJECTID TYPE BAPISRMREC-GUID Internal ID of the Container
Importing DOCUMENTCLASS TYPE BAPISRMREC-DOCCLASS Storage Location for the Container (Content Model)
Importing SPS_ID TYPE BAPISRMREC-SPSID Element Type of Element to Insert
Importing ANCHOR TYPE BAPISRMREC-ANCHOR Insert-Position in the Container (Name of an Anchor or *)
Importing DESCRIPTION TYPE BAPISRMREC-EL_DESCR Description for the Browser Display
Importing STORE_AS_NEW_VERSION TYPE BAPISRMREC-BOOLEAN ' ' Flag: Do you want a new logical version of the container to be created?
Importing STACKED TYPE BAPISRMREC-BOOLEAN 'X' Insert Front or Back (Within model_id)
Importing DOC_CONTEXT TYPE BAPIDOCCONTEXT SRM Context for Document Access
Importing ELEMENT_TYPE TYPE BAPISRMREC_ELEMENT-TYPE 'I' Type of Record Element
Importing INSERTION_BY_ANCHOR TYPE BAPISRMREC_ANCHORINS Parent Node When Inserting with Anchor
Importing INSERTION_BY_MODELID TYPE BAPISRMREC_MODELIDINS Insert Using Model Node
Importing INSERTION_BY_REFERENCE_NODE TYPE BAPISRMREC_REFINS Insert Using Reference Node
Tables ELEMENT_SP_POID TYPE BAPIPROPTB SP POID: Service Provider-Specific ID of Element to be Inserted
Tables ELEMENT_PROPERTIES TYPE BAPIPROPTB Attributes for Element to be Inserted
Tables ELEMENT_VISIBILITY TYPE BAPIPROPTB Roles for Which Element to be Inserted Should Be Visible
Exception ANCHOR_NOT_FOUND TYPE Anchor Not Found
Exception NOT_AUTHORIZED TYPE User Not Authorized
Exception PARAMETER_ERROR TYPE Parameter Error
Exception CONTAINER_NOT_FOUND TYPE Container Not Found
Exception CONTAINER_IS_LOCKED TYPE Container is Locked
Exception MAX_NUMBER_OF_ELEMENTS TYPE Maximum Number of Elements Reached
Exception POID_IS_WRONG TYPE POID Contains Errors
Exception INTERNAL_ERROR TYPE Internal Error
Exception RECORD_IS_FROZEN TYPE Record closed
               
Processing Type
Normal Function Module  
Remote-Enabled Module BaseXML supported
Update Module Start immediately
Immediate Start, No Restart
Start Delayed
Coll.run
JAVA Module Callable from ABAP  
Remote-Enabled JAVA Module  
Module Callable from JAVA  
History
Last changed by/on SAP  20021206 
SAP Release Created in 50A