SAP Reports / Programs | Basis Components | Basis Services / Communication Interfaces | SAP Records Management(BC-SRV-RM) SAP BC

SRM_RECORDS_CREATE SAP ABAP Report - Create Personnel Records







SRM_RECORDS_CREATE is a standard Executable ABAP Report 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 SRM_RECORDS_CREATE into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

SRMRECORDSCREATE - Create Personnel Records


ABAP code to call this SAP report using the submit statement

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.






SUBMIT SRM_RECORDS_CREATE. "Basic submit
SUBMIT SRM_RECORDS_CREATE AND RETURN. "Return to original report after report execution complete
SUBMIT SRM_RECORDS_CREATE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Log
Selection Text: SO_PERNO = Personnel Number
Selection Text: SO_INFTY = Infotype
Selection Text: P_VALDAT = Validity Date
Selection Text: P_SELDAT = Infotypes for a Key Date
Selection Text: P_RMS = Records Management System
Selection Text: P_RECSPS = Element Type for Records
Selection Text: P_MODSPS = Element Type for Record Model
Selection Text: P_MODEL = Record Model ID
Selection Text: P_INFSPS = Element Type for Infotypes
Selection Text: P_DEST = RFC Destination for HCM System
Selection Text: P_DESC = Record Number (Prefix)
Selection Text: P_DEFANC = Anchor for Infotypes
Selection Text: P_CURIT = Select Current Infotypes
Selection Text: P_AR_ID = D .
Selection Text: P_ALLINF = All Infotypes
Title: Create Personnel Records
Text Symbol: 020 = Select Element Type
Text Symbol: 019 = HCM Data
Text Symbol: 018 = Records Management Data
Text Symbol: 011 = Creating personnel records
Text Symbol: 005 = Infotype Validity
Text Symbol: 004 = Personnel Records
Text Symbol: 003 = Record Model
Text Symbol: 002 = Infotypes
Text Symbol: 001 = Employee


INCLUDES used within this REPORT SRM_RECORDS_CREATE

INCLUDE SRM_RECORDS_CREATE_TOP.
INCLUDE SRM_RECORDS_CREATE_F01.
INCLUDE SRM_RECORDS_CREATE_F02.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = g_s_log.

BAPI_EMPLOYEE_GETDATA CALL FUNCTION 'BAPI_EMPLOYEE_GETDATA' DESTINATION p_dest EXPORTING employee_id = perno * lastname_m = lastname * fstname_m = firstname date = p_valdat IMPORTING return = ret TABLES personal_data = pers_data EXCEPTIONS system_failure = 1 MESSAGE msg_txt communication_failure = 2 MESSAGE msg_txt.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = g_msg.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = g_msg.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = g_msg.

BAPI_RECORD_CREATE CALL FUNCTION 'BAPI_RECORD_CREATE' EXPORTING rms_id = p_rms sps_id = p_recsps documentid = doc_id description = record_desc model_sps_id = p_modsps model = p_model IMPORTING return = return objectid = obj_id documentclass = doc_class.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = g_msg.

BAPI_RECORD_CHANGEPROPERTIES CALL FUNCTION 'BAPI_RECORD_CHANGEPROPERTIES' EXPORTING objectid = obj_id documentclass = doc_class whole_document = 'X' IMPORTING return = return TABLES properties = lt_proptab.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = g_msg.

SRM_HRPA_READ_INFOTYPE CALL FUNCTION 'SRM_HRPA_READ_INFOTYPE' EXPORTING perno = perno selectdate = p_seldat dest = dest_string it_infty = infty_input_tab IMPORTING et_infty = infty_tab returncode = syreturn.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = g_msg.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = g_msg.

BAPI_RECORD_ADDELEMENT CALL FUNCTION 'BAPI_RECORD_ADDELEMENT' EXPORTING anchor = anchor objectid = obj_id documentclass = doc_class sps_id = p_infsps description = element_desc IMPORTING return = return TABLES element_sp_poid = sp_poid.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = g_msg.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = g_msg.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = g_msg.

BAL_DSP_PROFILE_DETLEVEL_GET CALL FUNCTION 'BAL_DSP_PROFILE_DETLEVEL_GET' IMPORTING e_s_display_profile = g_logdisplay_profile.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = g_logdisplay_profile.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name SRM_RECORDS_CREATE or its description.