SAP Reports / Programs | Payroll | Denmark(PY-DK) SAP PY

RPCIMPM9 SAP ABAP INCLUDE - documentation and ABAP source code







RPCIMPM9 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 RPCIMPM9 into the relevant SAP transactions such as SE38 or SE80


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 RPCIMPM9. "Basic submit
SUBMIT RPCIMPM9 AND RETURN. "Return to original report after report execution complete
SUBMIT RPCIMPM9 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT RPCIMPM9

No INCLUDES are used within this REPORT code!


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:

HR_DK_AUTHORITY_CHECK CALL FUNCTION 'HR_DK_AUTHORITY_CHECK' EXPORTING operation = 'READ' EXCEPTIONS user_no_authroity = 1 too_many_parameters = 2 no_authority_action = 3 user_no_profile = 4 fieldname_not_identified = 5 authoritydestroyed = 6 OTHERS = 7.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING FILENAME = filen1 * FILETYPE = 'ASC' * HAS_FIELD_SEPARATOR = ' ' * HEADER_LENGTH = 0 IMPORTING FILELENGTH = number_of_recs * HEADER = TABLES DATA_TAB = download_itab EXCEPTIONS BAD_DATA_FORMAT = 1 FILE_OPEN_ERROR = 2 FILE_READ_ERROR = 3 GUI_REFUSE_FILETRANSFER = 4 INVALID_TYPE = 5 NO_BATCH = 6 UNKNOWN_ERROR = 7 * GUI_REFUSE_FILETRANSFER = 4 * NO_AUTHORITY = 6 * BAD_DATA_FORMAT = 8 * HEADER_NOT_ALLOWED = 9 * SEPARATOR_NOT_ALLOWED = 10 * HEADER_TOO_LONG = 11 * UNKNOWN_DP_ERROR = 12 * ACCESS_DENIED = 13 * DP_OUT_OF_MEMORY = 14 * DISK_FULL = 15 * DP_TIMEOUT = 16 * OTHERS = 17 .

WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' * EXPORTING ** codepage = ' ' * filename = filen ** filetype = ' ' ** headlen = ' ' ** line_exit = ' ' ** trunclen = ' ' ** user_form = ' ' ** user_prog = ' ' * IMPORTING * filelength = number_of_recs * TABLES * data_tab = download_itab * EXCEPTIONS * conversion_error = 01 * file_open_error = 02 * file_read_error = 03 * invalid_table_width = 04 * invalid_type = 05 * no_batch = 06 * unknown_error = 07.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING def_filename = space def_path = space mask = ',*.*,*.*.'

HR_DK_GET_T5M8P_FROM_TEXT CALL FUNCTION 'HR_DK_GET_T5M8P_FROM_TEXT' EXPORTING line_of_file = itab-line IMPORTING hr_pernr = i5m9a-pernr begda = begda endda = endda lgart = i5m9a-lgart betpe = i5m9a-betpe anzhl = i5m9a-anzhl betrg = i5m9a-betrg spstr = i5m9a-spstr firm = i5m9a-firma lonnr = i5m9a-lonnr EXCEPTIONS OTHERS = 1.

HR_DK_FTP_PBS CALL FUNCTION 'HR_DK_FTP_PBS' DESTINATION 'HR_DK_PBS_FTP' EXPORTING command = 'GETB' sourcefile = rfcfile targetfile = space firma = firma TABLES itab = itab EXCEPTIONS coulndt_open_source = 1 couldnt_open_target = 2 error_writing_target = 3 error_reading_source = 4 error_closing_file = 5 error_deleting_file = 6 couldnt_read_from_file = 7 error_creating_directory = 8 change_dir_failed = 9 change_maindir_failed = 10 open_sourcefile_failed = 11 open_targetfile_failed = 12 OTHERS = 13.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = statustext EXCEPTIONS OTHERS = 1.

HR_DK_ALV_DISP_LIST_PERSON CALL FUNCTION 'HR_DK_ALV_DISP_LIST_PERSON' EXPORTING struct_name = 'HRDK_RPCIMPM6' current_report = sy-cprog * LIST_TITLE = * LIST_TITLE2 = * GUI_STATUS = ' ' variant = pa_varia * HR_DISPLAY_ERROR_LIST = ' ' * HR_DISPLAY_STAT_LIST = ' ' callback_end_of_list = 'END_OF_LIST' * CALLBACK_BUTTON1 = ' ' * TEXT_BUTTON1 = ' ' * CALLBACK_BUTTON2 = ' ' * TEXT_BUTTON2 = ' ' * CALLBACK_USER_COMMAND = ' ' TABLES tab = output_table * EXCEPTIONS * READ_INFOTYPE_FAILED = 1 * HR_ALV_LIST_DISPLAY_ERROR = 2 * OTHERS = 3 .



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 RPCIMPM9 or its description.