SRMGS_REGTEST_BAPI_TEST2 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter SRMGS_REGTEST_BAPI_TEST2 into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
BAPI_RECORD_CREATE CALL FUNCTION 'BAPI_RECORD_CREATE' EXPORTING rms_id = c_rms_id sps_id = c_eltype_record documentid = new_rec_docid description = new_rec_description model_sps_id = c_eltype_model model = c_model_id IMPORTING return = bapi_return objectid = new_rec_id documentclass = new_rec_dclass.
BAPI_RECORD_CREATE CALL FUNCTION 'BAPI_RECORD_CREATE' EXPORTING rms_id = c_rms_id sps_id = c_eltype_record documentid = new_rec_docid description = new_rec_description model_sps_id = c_eltype_model model = c_model_id IMPORTING return = bapi_return objectid = dummy_rec_id documentclass = dummy_rec_dclass.
BAPI_RECORD_CREATE CALL FUNCTION 'BAPI_RECORD_CREATE' EXPORTING rms_id = c_rms_id_wrong sps_id = c_eltype_record documentid = new_rec_docid_test description = new_rec_description model_sps_id = c_eltype_model model = c_model_id IMPORTING return = bapi_return objectid = dummy_rec_id documentclass = dummy_rec_dclass.
BAPI_RECORD_CREATE CALL FUNCTION 'BAPI_RECORD_CREATE' EXPORTING rms_id = c_rms_id sps_id = c_eltype_record_wrong documentid = new_rec_docid_test description = new_rec_description model_sps_id = c_eltype_model model = c_model_id IMPORTING return = bapi_return objectid = dummy_rec_id documentclass = dummy_rec_dclass.
BAPI_RECORD_CREATE CALL FUNCTION 'BAPI_RECORD_CREATE' EXPORTING rms_id = c_rms_id sps_id = c_eltype_record documentid = new_rec_docid_test description = new_rec_description model_sps_id = c_eltype_model model = c_model_id_wrong IMPORTING return = bapi_return objectid = dummy_rec_id documentclass = dummy_rec_dclass.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.