Ansicht
Dokumentation

BAPI_RECORD_CREATE - Create Record

BAPI_RECORD_CREATE - Create Record

PERFORM Short Reference   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This BAPI is used for creating a new record.

The record is created from the specified record model, in the specified Records Management System, with the specified element type.

In the parameter DocumentId, enter a unique identification for the record (record number). The description entered in the parameters does not have to be unique.

Example

CALL FUNCTION 'BAPI_RECORD_CREATE'

     EXPORTING

          rms_id        = 'RMS_TEST'

          sps_id        = 'SPS_REC_TEST'

          documentid    = '007-4711'

          description   = 'Test for FBS BAPI_RECORD_CREATE'

          model_sps_id  = 'SPS_MOD_TEST'

          model         = 'Record model for BAPI test'

     IMPORTING

          return        = return

          objectid      = objid

          documentclass = docclass.

Notes

The following prerequisites must be met before the BAPI can be implemented:

  • An element type is created in the service provider for record models.
    (The service provider supplied for record models is SRM_SP_MODEL.)
  • An element type is created in the service provider for records.
    (The service provider supplied for records is SRM_SP_RECORDS.)
  • The element types for records and record models are assigned to the Records Management System (RMS) specified in the call.
  • The record model on which the record is to be based already exists.
  • The model must have status Released or Final.

The following authorizationsare required:

  • Authorization for displaying properties of the record model (authorization object S_SRMGS_PR)
  • Authorization for creating records (authorization object S_SRMGS_DC)
  • Authorization for creating versions/variants of records (authorization object S_SRMGS_VV)
  • Authorization for changing record properties (authorization object S_SRMGS_PR)
  • Authorization for displaying record properties (authorization object S_SRMGS_PR)
  • Authorization for creating record content (authorization object S_SRMGS_CT)

Further information

For more information on creating element types, see the SAP Library under SAP Web Application Server → Basis Services → Records Management → Standard Service Providers → Generic Service Provider

or choose the following in the Implementation Guide (IMG): SAP Web Application Server → Basis Services → Records Management → Maintain Element Types.





Parameters

DESCRIPTION
DOCUMENTCLASS
DOCUMENTID
DOCUMENTID_CHECK_UNIQUE
MODEL
MODEL_SPS_ID
OBJECTID
RETURN
RMS_ID
SPS_ID

Exceptions

Function Group

SRM_BAPI_RECORD

rdisp/max_wprun_time - Maximum work process run time   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 5935 Date: 20240523 Time: 153304     sap01-206 ( 44 ms )