RPC19WE0 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). It is used for Writing subroutine module for report RPC190E0 tables...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 RPC19WE0 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.
Title: Writing subroutines for tax return (Spain)
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
HR_DISPLAY_ERROR_LIST * call function 'HR_DISPLAY_ERROR_LIST' * exporting * no_popup = 'X' * no_print = space * linesize = 69 * exceptions * invalid_linesize = 1 * others = 2.
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = 'ROOT' i_node_txt = 'Modelos 110 y 111'(x11) * I_NODE_LABEL = * I_LABEL_IS_QINFO = * I_ICON = * I_QUICKINFO = * I_CATEG_ID = * I_SORT_CONTEXT = * I_HEADER_NODES = * I_EXPAND = IMPORTING e_node_key = mod_11x_node EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = 'ROOT' i_node_txt = 'Modelo 216' "#EC NOTEXT IMPORTING e_node_key = mod_216_node EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = mod_216_node i_node_txt = 'Datos económicos' "#EC * I_CATEG_ID = 'DAT216' IMPORTING e_node_key = mod_216_node_data EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = p_node_key i_row_data = data_row EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = p_node_key i_row_data = data_row EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = p_node_key i_row_data = data_row EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = p_node_key i_row_data = data_row EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_NODE_ADD * call function 'HR_PAL_NODE_ADD' * exporting * i_relatkey = p_node_key * i_node_txt = 'Rendimientos del Trabajo' ** I_NODE_LABEL = ** I_LABEL_IS_QINFO = ** I_ICON = ** I_QUICKINFO = * i_categ_id = 'DATA99' ** I_SORT_CONTEXT = ** I_HEADER_NODES = ** I_EXPAND = * importing * e_node_key = tra_node * exceptions * program_error = 1 * others = 2 * .
HR_PAL_NODE_ADD * call function 'HR_PAL_NODE_ADD' * exporting * i_relatkey = p_node_key * i_node_txt = 'Rend. act. económicas'(t31)
HR_PAL_NODE_ADD * call function 'HR_PAL_NODE_ADD' * exporting * i_relatkey = p_node_key * i_node_txt = 'Premios' ** I_NODE_LABEL = ** I_LABEL_IS_QINFO = ** I_ICON = ** I_QUICKINFO = ** I_CATEG_ID = ** I_SORT_CONTEXT = ** I_HEADER_NODES = ** I_EXPAND = * importing * e_node_key = pre_node * exceptions * program_error = 1 * others = 2 * .
HR_PAL_NODE_ADD * call function 'HR_PAL_NODE_ADD' * exporting * i_relatkey = p_node_key * i_node_txt = 'Derechos de imagen' ** I_NODE_LABEL = ** I_LABEL_IS_QINFO = ** I_ICON = ** I_QUICKINFO = ** I_CATEG_ID = ** I_SORT_CONTEXT = ** I_HEADER_NODES = ** I_EXPAND = * importing * e_node_key = dim_node * exceptions * program_error = 1 * others = 2 * .
HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = p_node_key i_row_data = data_row EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_TABLE_CREATE_COLUMN CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'TEXT' i_rollname = 'CHAR30' * I_SELTEXT_S = * I_SELTEXT_M = * I_SELTEXT_L = * I_COL_POS = * IMPORTING * ES_FIELDCAT = CHANGING it_fieldcat = data99_fcat EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_TABLE_CREATE_COLUMN CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'DINESP' i_rollname = 'CHAR30' * I_SELTEXT_S = * I_SELTEXT_M = * I_SELTEXT_L = * I_COL_POS = * IMPORTING * ES_FIELDCAT = CHANGING it_fieldcat = data99_fcat EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_TABLE_CREATE_COLUMN CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'EMPL' i_rollname = 'PES_NUMPE' * I_SELTEXT_S = * I_SELTEXT_M = * I_SELTEXT_L = * I_COL_POS = IMPORTING es_fieldcat = wa_fcat * changing * it_fieldcat = data99_fcat EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_TABLE_CREATE_COLUMN CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'RI' i_rollname = 'PES_PERIN' * I_SELTEXT_S = * I_SELTEXT_M = * I_SELTEXT_L = * I_COL_POS = IMPORTING es_fieldcat = wa_fcat * changing * it_fieldcat = data99_fcat EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_TABLE_CREATE_COLUMN CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'RI' i_rollname = 'PES_PERCP' * I_SELTEXT_S = * I_SELTEXT_M = * I_SELTEXT_L = * I_COL_POS = IMPORTING es_fieldcat = wa_fcat * changing * it_fieldcat = data99_fcat EXCEPTIONS program_error = 1 OTHERS = 2 .
CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'RR' i_rollname = 'PES_PERED' IMPORTING es_fieldcat = wa_fcat EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_TABLE_CREATE_COLUMN CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'RET' i_rollname = 'PES_RETEN' * I_SELTEXT_S = * I_SELTEXT_M = * I_SELTEXT_L = * I_COL_POS = IMPORTING es_fieldcat = wa_fcat * changing * it_fieldcat = data99_fcat EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_CREATE_NODE_CATEG CALL FUNCTION 'HR_PAL_CREATE_NODE_CATEG' EXPORTING i_categ_id = lv_categ99 * I_STRUCTURE_NAME = * I_WITH_MSG_FIELDS = * I_MSG_TEXT_POS = * I_ICON_LTEXT_POS = it_fieldcat = data99_fcat * I_SAVE = * IS_VARIANT = * I_DEFAULT = 'X' * IS_LAYOUT = * I_S_PRINT_OPTIONS = * I_TREE_SORT = * I_CLBK = EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = p_node_key i_node_txt = 'Datos de cabecera'(t96) * I_NODE_LABEL = * I_LABEL_IS_QINFO = * I_ICON = * I_QUICKINFO = i_categ_id = 'IDENT' * I_SORT_CONTEXT = * I_HEADER_NODES = * I_EXPAND = IMPORTING e_node_key = l_cab_node EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = l_cab_node i_row_data = cabecera EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_TABLE_CREATE_COLUMN CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'CAMPO' i_rollname = 'CHAR45' i_seltext_l = l_seltext_l * I_COL_POS = IMPORTING es_fieldcat = wa_fcat * CHANGING * IT_FIELDCAT = l_ident_fcat EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_TABLE_CREATE_COLUMN CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'VALOR' i_rollname = 'CHAR45' i_seltext_l = l_seltext_l * I_COL_POS = IMPORTING es_fieldcat = wa_fcat * CHANGING * IT_FIELDCAT = l_ident_fcat EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_CREATE_NODE_CATEG CALL FUNCTION 'HR_PAL_CREATE_NODE_CATEG' EXPORTING i_categ_id = 'IDENT' * I_STRUCTURE_NAME = * I_WITH_MSG_FIELDS = * I_MSG_TEXT_POS = * I_ICON_LTEXT_POS = it_fieldcat = l_ident_fcat * I_SAVE = * IS_VARIANT = * I_DEFAULT = 'X' is_layout = l_ident_layout * I_S_PRINT_OPTIONS = * I_TREE_SORT = * I_CLBK = EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = p_node_key i_node_txt = p_text * I_NODE_LABEL = * I_LABEL_IS_QINFO = * I_ICON = * I_QUICKINFO = * I_CATEG_ID = * I_SORT_CONTEXT = * I_HEADER_NODES = * I_EXPAND = IMPORTING e_node_key = p_new_node_key EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = p_node_key i_node_txt = 'Sin pagos exentos de retención'(t93) * I_NODE_LABEL = * I_LABEL_IS_QINFO = * I_ICON = * I_QUICKINFO = i_categ_id = 'DATA99' * I_SORT_CONTEXT = * I_HEADER_NODES = * I_EXPAND = IMPORTING e_node_key = p_sin_exent_node EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = p_node_key i_node_txt = text-t14 * I_NODE_LABEL = * I_LABEL_IS_QINFO = * I_ICON = * I_QUICKINFO = i_categ_id = 'DATA99' * I_SORT_CONTEXT = * I_HEADER_NODES = * I_EXPAND = IMPORTING e_node_key = p_con_exent_node EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_ES_SIMPLE_LIST CALL FUNCTION 'HR_ES_SIMPLE_LIST' EXPORTING p_list_cat = list_cat TABLES p_field_cat = field_cat p_data_tab = p_data_tab.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' "in background task EXPORTING element = textelement function = 'SET' type = 'BODY' window = 'MAIN' EXCEPTIONS element = 1 function = 2 type = 3 unopened = 4 unstarted = 5 window = 6 bad_pageformat_for_print = 7 OTHERS = 8.
GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING in_parameters = pri_params mode = 'CURRENT' no_dialog = l_dialog * user = sy-uname IMPORTING out_parameters = pri_params EXCEPTIONS invalid_print_params = 1 invalid_archive_params = 2 OTHERS = 3.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' "in background task EXPORTING element = 'PAGINA' function = 'SET' type = 'BODY' window = 'MAIN' * IMPORTING * PENDING_LINES = EXCEPTIONS element = 1 function = 2 type = 3 unopened = 4 unstarted = 5 window = 6 bad_pageformat_for_print = 7 OTHERS = 8.
HR_ES_SIMPLE_LIST CALL FUNCTION 'HR_ES_SIMPLE_LIST' TABLES p_field_cat = cper_field_cat p_data_tab = l_main_tab.
HR_ES_SIMPLE_LIST CALL FUNCTION 'HR_ES_SIMPLE_LIST' TABLES p_field_cat = nif_field_cat p_data_tab = l_main_tab.
HR_ES_SIMPLE_LIST CALL FUNCTION 'HR_ES_SIMPLE_LIST' TABLES p_field_cat = cper_field_cat p_data_tab = l_main_tab.
HR_PAL_TABLE_CREATE_COLUMN CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'TMSNAME' i_rollname = 'TEXT32' i_seltext_s = 'Nombre' "#EC NOTEXT
* I_SELTEXT_M = * I_SELTEXT_L = * I_COL_POS = * IMPORTING * ES_FIELDCAT = CHANGING it_fieldcat = l_temse_fcat EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_TABLE_CREATE_COLUMN CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'TSOBJ' i_rollname = 'P_TS_TSOBJ' * I_SELTEXT_S = * I_SELTEXT_M = * I_SELTEXT_L = * I_COL_POS = * IMPORTING * ES_FIELDCAT = CHANGING it_fieldcat = l_temse_fcat EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_TABLE_CREATE_COLUMN CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN' EXPORTING i_fieldname = 'PUSHTMSE' i_rollname = 'BALIMSGTY' i_seltext_s = 'Vis.'(095)
HR_PAL_CREATE_NODE_CATEG CALL FUNCTION 'HR_PAL_CREATE_NODE_CATEG' EXPORTING i_categ_id = 'TEMSE' * I_STRUCTURE_NAME = 'HRPAD_PAL_TEMSE' * I_WITH_MSG_FIELDS = * I_MSG_TEXT_POS = * I_ICON_LTEXT_POS = it_fieldcat = l_temse_fcat * I_SAVE = * IS_VARIANT = * I_DEFAULT = 'X' * IT_PRINT_FCAT = is_layout = l_layout * I_S_PRINT_OPTIONS = * I_TREE_SORT = i_clbk = l_clbk EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = 'ROOT' i_node_txt = 'Ficheros TemSe Generados'(096) * I_NODE_LABEL = * I_LABEL_IS_QINFO = * I_ICON = * I_QUICKINFO = i_categ_id = 'TEMSE' * I_SORT_CONTEXT = * I_HEADER_NODES = * I_EXPAND = IMPORTING e_node_key = l_temse_node EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = l_temse_node i_row_data = l_temse_row EXCEPTIONS program_error = 1 OTHERS = 2.
READ_FORM CALL FUNCTION 'READ_FORM' EXPORTING client = p_mandt form = p_form(16) language = p_langu * OLANGUAGE = ' ' * OSTATUS = ' ' * STATUS = ' ' * THROUGHCLIENT = ' ' * READ_ONLY_HEADER = ' ' * THROUGHLANGUAGE = ' ' IMPORTING form_header = p_header * FOUND = * HEADER = * OLANGUAGE = TABLES * FORM_LINES = pages = p_pages page_windows = p_page_windows * PARAGRAPHS = * STRINGS = * TABS = windows = p_windows.
READ_FORM_LINES CALL FUNCTION 'READ_FORM_LINES' EXPORTING element = ' ' form = p_form language = sy-langu window = p_windows_wa-tdwindow TABLES lines = line_tab "Texto asignado a la ventana EXCEPTIONS element = 1 form = 2 unopened = 3 OTHERS = 4.
TEXT_SYMBOL_COLLECT CALL FUNCTION 'TEXT_SYMBOL_COLLECT' TABLES lines = p_line_tab symbols = symbols_tab. "variable asignada a la ventana
OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING * form = p_form_name device = 'PRINTER' dialog = l_dialog OPTIONS = pr_options 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.
CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' EXCEPTIONS unopened = 1 * BAD_PAGEFORMAT_FOR_PRINT = 2 OTHERS = 3 .
START_FORM CALL FUNCTION 'START_FORM' EXPORTING * ARCHIVE_INDEX = form = form * LANGUAGE = ' ' startpage = start_page * PROGRAM = ' ' * MAIL_APPL_OBJECT = * IMPORTING * LANGUAGE = EXCEPTIONS form = 1 format = 2 unended = 3 unopened = 4 unused = 5 * spool_error = 6 OTHERS = 7 .
END_FORM CALL FUNCTION 'END_FORM' * importing * result = EXCEPTIONS unopened = 1 bad_pageformat_for_print = 2 * spool_error = 3 OTHERS = 4.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING * element = ' ' function = 'SET' * TYPE = 'BODY' window = p_window * IMPORTING * PENDING_LINES = EXCEPTIONS element = 1 function = 2 type = 3 unopened = 4 unstarted = 5 window = 6 bad_pageformat_for_print = 7 * spool_error = 8 OTHERS = 9.
WRITE_FORM * call function 'WRITE_FORM' * exporting * element = 'NEWPAGE' * function = 'SET' * type = 'BODY' * window = 'MAIN' ** IMPORTING ** PENDING_LINES = * exceptions * element = 1 * function = 2 * type = 3 * unopened = 4 * unstarted = 5 * window = 6 * bad_pageformat_for_print = 7 ** spool_error = 8 * others = 9 * .
CONTROL_FORM CALL FUNCTION 'CONTROL_FORM' EXPORTING command = command EXCEPTIONS unopened = 1 unstarted = 2 OTHERS = 3.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = textelement function = 'SET' type = 'BODY' window = 'MAIN' * IMPORTING * PENDING_LINES = EXCEPTIONS element = 1 function = 2 type = 3 unopened = 4 unstarted = 5 window = 6 bad_pageformat_for_print = 7 * spool_error = 8 OTHERS = 9 .
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = p_totals-ri foreign_currency = p_waer1 local_currency = p_waer2 IMPORTING local_amount = p_totals-ri EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = p_totals-ret foreign_currency = p_waer1 local_currency = p_waer2 IMPORTING local_amount = p_totals-ret EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = wa_tot1-ri foreign_currency = p_waer1 local_currency = p_waer2 IMPORTING local_amount = wa_tot1-ri EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = wa_tot1-ret foreign_currency = p_waer1 local_currency = p_waer2 IMPORTING local_amount = wa_tot1-ret EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.
MONTH_NAMES_GET CALL FUNCTION 'MONTH_NAMES_GET' EXPORTING language = sy-langu * IMPORTING * RETURN_CODE = TABLES month_names = month_name EXCEPTIONS month_names_not_found = 1 OTHERS = 2.
HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pv_pernr arbgb = 'RP' msgno = 016 msgv1 = lv_error_message EXCEPTIONS OTHERS = 1.
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 RPC19WE0 or its description.