SAP Reports / Programs

RPCAOPD0 SAP ABAP Report - Data Access Tax Audit: Export of a Year







RPCAOPD0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The export program for the interface format (transaction code PU12) is called for all the periods of a year to generate the files for the "data transfer for tax audit"...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RPCAOPD0 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

PC00_M01_RPCAOPD0 - Data Access Tax Audit: Export


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


Text pool values


Selection Text: XABRKR_ = D .
Selection Text: S_UPDA = D .
Selection Text: INT_FORM = D .
Selection Text: VARIANT = Variant of Export Program
Selection Text: S_PROT = Export Logs
Selection Text: S_NAME = Name of Company
Selection Text: S_LOC = Headquarters
Selection Text: S_COMM = Comment
Selection Text: S_CDNM = Name of Data Carrier
Selection Text: JAHR = Payroll Year for Download
Selection Text: FLOBJNR = Main Export File
Selection Text: AS_PATH = Application Server Directory
Title: Data Access Tax Audit: Export of a Year
Text Symbol: T35 = Retroactive Accntng ID
Text Symbol: T34 = Numeric
Text Symbol: T33 = Personnel No.
Text Symbol: T32 = In Period End
Text Symbol: T31 = Start Date of Month In Which Payroll Result Was Generated
Text Symbol: T30 = In Period Start
Text Symbol: T29 = End of Payroll Period
Text Symbol: T28 = For Period End
Text Symbol: T27 = FixedRange
Text Symbol: T26 = Length
Text Symbol: T25 = From
Text Symbol: T24 = Date
Text Symbol: T23 = LGART
Text Symbol: T22 = YYYYMMDD
Text Symbol: T21 = Format
Text Symbol: T20 = FixedPrimaryKey
Text Symbol: T19 = For Period Start
Text Symbol: T36 = A_Latest Result,P_RetroactiveAccounting Exists
Text Symbol: T37 = FixedColumn
Text Symbol: T38 = Wage Type Doc.
Text Symbol: T40 = Wg Type
Text Symbol: T41 = WageType Text
Text Symbol: T42 = AlphaNumeric
Text Symbol: T43 = ImpliedAccuracy
Text Symbol: T44 = ForeignKey





Text Symbol: T45 = DataSupplier
Text Symbol: T46 = Start Date of Payroll Period
Text Symbol: T47 = EndDate of Period in Which Payroll Result Was Generated
Text Symbol: T48 =
Text Symbol: T49 = Alias
Text Symbol: T50 = _LGTXT
Text Symbol: T51 = WageType Text
Text Symbol: T52 = Text
Text Symbol: T53 = .XML
Text Symbol: T54 = Tax Classification
Text Symbol: S01 = A
Text Symbol: P03 = DAO0_
Text Symbol: M09 = Files Created
Text Symbol: M08 = &1 ended
Text Symbol: M07 = TemSe Files Created
Text Symbol: M06 = TemSe File &1 Read
Text Symbol: M05 = Generating Secondary File...
Text Symbol: M04 = Create Name for TemSe Files
Text Symbol: M03 = Read TemSe File &1
Text Symbol: M02 = Period
Text Symbol: M01 = Create TemSe Files:
Text Symbol: L05 = Generated and Evaluated Export Files
Text Symbol: L03 = Files in File System for Data Transfer
Text Symbol: F07 = Interface Name
Text Symbol: F06 = Comments for index.xml
Text Symbol: F05 = Export Options
Text Symbol: F03 = Data Transfer Files
Text Symbol: F02 = Period of Data Transfer
Text Symbol: E18 = No New Line in DATATAB from TemSe
Text Symbol: E16 = FieldLgth Too Short After Shf
Text Symbol: E15 = 01 17 05 03
Text Symbol: E13 = Processed String
Text Symbol: E12 = Initial Data
Text Symbol: E11 = Read Error:
Text Symbol: T18 = FixedLength
Text Symbol: T17 = Table
Text Symbol: T16 = Key for All Transferred Payrolls
Text Symbol: T15 = Description
Text Symbol: T14 = .TXT





Text Symbol: T13 = URL
Text Symbol: T12 = Payrolls
Text Symbol: T11 = References
Text Symbol: T10 = Media
Text Symbol: T09 = Comment
Text Symbol: T08 = Location
Text Symbol: T07 = Name
Text Symbol: T06 = Version
Text Symbol: T05 = 1.0
Text Symbol: T04 =
Text Symbol: T03 =
Text Symbol: T02 =
Text Symbol: T01 =
Text Symbol: S07 = u
Text Symbol: S06 = o
Text Symbol: S05 = a
Text Symbol: S04 = S
Text Symbol: S03 = U
Text Symbol: S02 = O


INCLUDES used within this REPORT RPCAOPD0

INCLUDE RPCAOPD0_LCL.


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:

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = 'HR_DE_TX_DATENUEBERLASSUNG_DATEINAME' IMPORTING file_name = as_path EXCEPTIONS file_not_found = 1 OTHERS = 2.

HELP_PU12 CALL FUNCTION 'HELP_PU12' EXPORTING switch = 'IF' IMPORTING helpvar_name_if = int_form.

RS_VARIANT_EXISTS CALL FUNCTION 'RS_VARIANT_EXISTS' EXPORTING report = sy_cprog variant = variant IMPORTING r_c = sy_subrc EXCEPTIONS not_authorized = 1 no_report = 2 report_not_existent = 3 report_not_supplied = 4 OTHERS = 5.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_logical_filename CHANGING physical_filename = g_file_with_path EXCEPTIONS logical_filename_not_found = 1 validation_failed = 2 OTHERS = 3.

HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = c_root i_node_txt = text-l05 i_categ_id = c_msgs IMPORTING e_node_key = l_node_exp_files EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_NODE_MSG_ADD CALL FUNCTION 'HR_PAL_NODE_MSG_ADD' EXPORTING i_node_key = l_node_exp_files i_msgid = c_msgid i_msgty = c_msgty_succ i_msgno = '039' i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 EXCEPTIONS program_error = 1 OTHERS = 2.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' "YMLN1895590 EXPORTING logical_filename = gc_logical_filename CHANGING physical_filename = g_file_with_path EXCEPTIONS logical_filename_not_found = 1 validation_failed = 2 OTHERS = 3. "YMLN1895590

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = c_msgid i_msgty = c_msgty_err i_msgno = '042' i_msgv1 = sy-msgv1 EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_GENRL_MSG_ADD



CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = c_msgid i_msgty = c_msgty_err i_msgno = '030' i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = c_root i_node_txt = text-l03 * I_NODE_LABEL = * I_LABEL_IS_QINFO = * I_ICON = * I_QUICKINFO = i_categ_id = c_msgs * I_SORT_CONTEXT = * I_HEADER_NODES = * I_EXPAND = IMPORTING e_node_key = g_node_files EXCEPTIONS program_error = 1 OTHERS = 2 .

HR_PAL_NODE_MSG_ADD CALL FUNCTION 'HR_PAL_NODE_MSG_ADD' EXPORTING i_node_key = g_node_files i_msgid = c_msgid_rp i_msgty = c_msgty_succ i_msgno = c_msgno_016 i_msgv1 = sy-msgv1 EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_NODE_MSG_ADD CALL FUNCTION 'HR_PAL_NODE_MSG_ADD' EXPORTING i_node_key = g_node_files i_msgid = c_msgid i_msgty = c_msgty_succ i_msgno = sy-msgno i_msgv1 = sy-msgv1 EXCEPTIONS program_error = 1 OTHERS = 2.

RS_VARIANT_CATALOG CALL FUNCTION 'RS_VARIANT_CATALOG' EXPORTING report = p_progname IMPORTING sel_variant = p_variant EXCEPTIONS no_report = 1 report_not_existent = 2 report_not_supplied = 3 no_variants = 4 no_variant_selected = 5 variant_not_existent = 6 OTHERS = 7.

RSTS_CHECK_NAME CALL FUNCTION 'RSTS_CHECK_NAME' EXPORTING name = p_rststype_name EXCEPTIONS fb_name_invalid = 1 OTHERS = 2.

RSTS_GET_ATTRIBUTES CALL FUNCTION 'RSTS_GET_ATTRIBUTES' EXPORTING name = p_rststype_name EXCEPTIONS fb_error = 1 fb_rsts_other = 2 no_object = 3 no_permission = 4 OTHERS = 5.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = message_text.

RSTS_OPEN_RLC CALL FUNCTION 'RSTS_OPEN_RLC' EXPORTING name = p_name * TemSE-Fehler: too many external modes ...

RSTS_READ CALL FUNCTION 'RSTS_READ' EXPORTING showlg = c_x TABLES datatab = p_tab EXCEPTIONS fb_call_handle = 1 fb_error = 2 fb_rsts_noconv = 3 fb_rsts_other = 4 OTHERS = 5.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = message_text.

RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' EXCEPTIONS fb_call_handle = 1 fb_error = 2 fb_rsts_other = 3 OTHERS = 4.

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = c_msgid i_msgty = c_msgty_err i_msgno = '037' i_msgv1 = sy-msgv1 IMPORTING e_node_key = l_node_read_err EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_CREATE_NODE_CATEG CALL FUNCTION 'HR_PAL_CREATE_NODE_CATEG' EXPORTING i_categ_id = c_read_err i_structure_name = c_read_err_stru EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = l_node_read_err i_node_txt = text-e11 i_categ_id = c_read_err IMPORTING e_node_key = l_node_read_err EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = l_node_read_err i_row_data = l_p01_ao_alv EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = l_node_read_err i_row_data = l_p01_ao_alv EXCEPTIONS program_error = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = message_text.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = message_text.

CA_CU_READ_RGDIR_NEW CALL FUNCTION 'CA_CU_READ_RGDIR_NEW' EXPORTING persnr = p_persnr TABLES cu_ca_rgdir = rgdir EXCEPTIONS import_mismatch_error_cu = 1 import_mismatch_error_ca = 2 no_read_authority_ca = 3 no_read_authority_cu = 4 error_reading_cu = 5 error_reading_ca = 6 no_record_found = 7 OTHERS = 8.

HR_DE_TEMSE_ERROR_TO_LOG CALL FUNCTION 'HR_DE_TEMSE_ERROR_TO_LOG' EXPORTING i_msgid = c_msgid i_msgno = p_msgno i_filename = p_filename.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = l_tabna langu = sy-langu all_types = space TABLES dfies_tab = l_dfies_tab EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = sy-msgid i_msgty = sy-msgty i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4 EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = sy-msgid i_msgty = sy-msgty i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4 EXCEPTIONS program_error = 1 OTHERS = 2.

AUTHORITY_CHECK_DATASET * CALL FUNCTION 'AUTHORITY_CHECK_DATASET' * EXPORTING * activity = 'WRITE' * filename = p_as_path * EXCEPTIONS * no_authority = 1 * activity_unknown = 2 * OTHERS = 3.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' "YMLN1895590 EXPORTING logical_filename = gc_logical_filename CHANGING physical_filename = l_file_with_path EXCEPTIONS logical_filename_not_found = 1 validation_failed = 2 OTHERS = 3. "YMLN1895590

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' "YMLN1895590 EXPORTING logical_filename = gc_logical_filename CHANGING physical_filename = l_file_with_path EXCEPTIONS logical_filename_not_found = 1 validation_failed = 2 OTHERS = 3. "YMLN1895590

DD_TABD_GET CALL FUNCTION 'DD_TABD_GET' EXPORTING langu = c_sprsl tabl_name = i_tabname withtext = c_x add_typeinfo = space IMPORTING dd02v_wa_a = l_dd02v_wa_a EXCEPTIONS access_failure = 1 OTHERS = 2.

HR_GET_REPORTING_COMPANY CALL FUNCTION 'HR_GET_REPORTING_COMPANY' EXPORTING p_molga = c_01 p_appl = 'LSTA' p_werks = -werks p_btrtl = -btrtl p_struc = l_pme01 p_date = l_date IMPORTING werks_sum = -werks_sum btrtl_sum = -btrtl_sum EXCEPTIONS rep_comp_not_found = 1 OTHERS = 2.

HR_GET_REPORTING_COMPANY CALL FUNCTION 'HR_GET_REPORTING_COMPANY' EXPORTING p_molga = c_01 p_appl = 'LSTA' p_werks = -werks p_btrtl = -btrtl p_struc = l_pme01 p_date = l_date IMPORTING werks_sum = l_werks_sum btrtl_sum = l_btrtl_sum EXCEPTIONS rep_comp_not_found = 1 OTHERS = 2.

P01T_GET_STEUERNUMMER CALL FUNCTION 'P01T_GET_STEUERNUMMER' EXPORTING werks = l_werks_sum btrtl = l_btrtl_sum IMPORTING stnag = l_agsnr EXCEPTIONS wrong_char_in_taxnumber = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-m04.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = l_text.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING no_dialog = c_x IMPORTING out_parameters = s_print_params valid = s_print_params_valid EXCEPTIONS archive_info_not_found = 1 invalid_print_params = 2 invalid_archive_params = 3 OTHERS = 4.

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = sy-msgid i_msgty = sy-msgty i_msgno = sy-msgno EXCEPTIONS program_error = 1 OTHERS = 2.

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = p_jobinfo-name IMPORTING jobcount = p_jobinfo-count EXCEPTIONS cant_create_job = 1 invalid_job_data = 2 jobname_missing = 3 OTHERS = 4.

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = p_jobinfo-count jobname = p_jobinfo-name strtimmed = c_x " Freigabe sofort IMPORTING job_was_released = p_jobinfo-released EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 invalid_target = 8 OTHERS = 9.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-m07.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = l_syrepid TABLES selection_table = st_rsparams EXCEPTIONS not_found = 1 no_report = 2 OTHERS = 3.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-m05.

HR_PAL_LOG_DISPLAY CALL FUNCTION 'HR_PAL_LOG_DISPLAY' EXPORTING i_s_display_profile = l_display_profile * I_S_FLAT_PROFILE = EXCEPTIONS program_error = 1 no_logs = 2 OTHERS = 3 .

LIST_FROM_MEMORY CALL FUNCTION 'LIST_FROM_MEMORY' TABLES listobject = l_listobject EXCEPTIONS OTHERS = 2.

WRITE_LIST CALL FUNCTION 'WRITE_LIST' TABLES listobject = l_listobject EXCEPTIONS OTHERS = 0. "#EC *

RSTS_REMOVE_OBJECT CALL FUNCTION 'RSTS_REMOVE_OBJECT' EXPORTING * AUTHORITY = ' ' * CLIENT = SY-MANDT * COMMIT = ' ' * FORCE = ' ' name = gw_temse_name EXCEPTIONS fb_error = 1 fb_rsts_other = 2 no_object = 3 no_permission = 4 OTHERS = 5 .

OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING dialog = ' ' form = pv_formname language = sy-langu OPTIONS = ls_opt raw_data_interface = '*' IMPORTING RESULT = ls_result EXCEPTIONS canceled = 1 device = 2 form = 3 OPTIONS = 4 unclosed = 5 mail_options = 6 archive_error = 7 invalid_fax_number = 8 more_params_needed_in_batch = 9 OTHERS = 10.

START_FORM CALL FUNCTION 'START_FORM' EXPORTING * archive_index = ls_forms-archive_index form = pv_formname language = sy-langu startpage = c_main * PROGRAM = sy-cprog EXCEPTIONS form = 1 format = 2 unended = 3 unopened = 4 unused = 5 OTHERS = 6.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = c_text window = c_main EXCEPTIONS element = 1 function = 2 type = 3 unopened = 4 unstarted = 5 window = 6 bad_pageformat_for_print = 7 OTHERS = 8.

END_FORM CALL FUNCTION 'END_FORM' EXCEPTIONS unopened = 1 bad_pageformat_for_print = 2 OTHERS = 3.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' IMPORTING RESULT = ls_result TABLES otfdata = pt_otf EXCEPTIONS unopened = 1 bad_pageformat_for_print = 2 OTHERS = 3.

CONVERT_OTF CALL FUNCTION 'CONVERT_OTF' EXPORTING format = pv_format * MAX_LINEWIDTH = 132 * ARCHIVE_INDEX = ' ' * COPYNUMBER = 0 IMPORTING bin_filesize = pv_size bin_file = pv_file TABLES otf = pt_otf lines = lt_lines EXCEPTIONS err_max_linewidth = 1 err_format = 2 err_conv_not_possible = 3 err_bad_otf = 4 OTHERS = 5.

DOCU_GET CALL FUNCTION 'DOCU_GET' EXPORTING id = 'TX' langu = sy-langu object = 'HR_DE_ST_DTD' TABLES line = lt_lines EXCEPTIONS no_docu_on_screen = 1 no_docu_self_def = 2 no_docu_temp = 3 ret_code = 4 OTHERS = 5.

CONVERT_ITF_TO_ASCII CALL FUNCTION 'CONVERT_ITF_TO_ASCII' EXPORTING codepage = p_codepage formatwidth = 132 tabletype = 'ASC' IMPORTING c_datatab = lt_dtd TABLES itf_lines = lt_lines EXCEPTIONS invalid_tabletype = 1 OTHERS = 2.



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