SAP Reports / Programs | Personnel Management | Benefits(PA-BN) SAP PA

COB02F03 SAP ABAP INCLUDE - Subprogram RPUCOB02: Letter (SAPscript)







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


Text pool values


Title: Subprogram RPUCOB02: Letter (SAPscript)


INCLUDES used within this REPORT COB02F03

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:

BP_RETRIEVE_PRIPARS CALL FUNCTION 'BP_RETRIEVE_PRIPARS' IMPORTING pripars = pripars EXCEPTIONS no_runtime_info = 1 job_notex = 2 no_pripars = 3 OTHERS = 4."#EC EXISTS

OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING device = 'PRINTER' dialog = true language = p_tdspras OPTIONS = itcpo IMPORTING RESULT = itcpp EXCEPTIONS canceled = 102 OTHERS = 104.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING msg_class = msg_class5 msg_number = '001' severity = p_subrc reaction = p_react TABLES error_table = p_error.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' IMPORTING RESULT = itcpp EXCEPTIONS OTHERS = 504.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = p_event-pernr msg_class = msg_class5 msg_number = '003' msg_par1 = p_event-evtxt msg_par2 = l_datst severity = p_subrc reaction = p_react TABLES error_table = p_error.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = p_event-pernr msg_class = msg_class5 msg_number = '002' msg_par1 = p_event-evtyp msg_par2 = l_datst severity = p_subrc reaction = p_react TABLES error_table = p_error.

HR_BEN_COB_FORM_PRINT_SUB CALL FUNCTION 'HR_BEN_COB_FORM_PRINT_SUB' EXPORTING pernr = p_persn-pernr dsubt = p_persn-dsubt dobjp = p_persn-dobjp datum = form_date command = form_print form_type = l_form_type language = p_tdspras close_form = false cob_offer_type = _letter_generation qb_benefit_data = rpcobqbdat cobra_event = p_evlet letter_variables = p_letter reaction = no_msg sub_elg = elig_for_subs termination_type = term_type IMPORTING subrc = p_subrc TABLES regular_pltypes = p_types cobra_dependents = p_depnd error_table = p_error CHANGING form_is_open = l_form_is_open.

HR_BEN_COB_FORM_PRINT_SUB CALL FUNCTION 'HR_BEN_COB_FORM_PRINT_SUB' EXPORTING pernr = p_persn-pernr dsubt = p_persn-dsubt dobjp = p_persn-dobjp datum = form_date command = form_print FORM_TYPE = L_FORM_TYPE language = p_tdspras close_form = false cob_offer_type = _letter_generation qb_benefit_data = rpcobqbdat cobra_event = p_evlet letter_variables = p_letter reaction = no_msg sub_elg = elig_for_subs termination_type = term_type IMPORTING subrc = p_subrc TABLES regular_pltypes = p_types cobra_dependents = p_depnd error_table = p_error CHANGING form_is_open = l_form_is_open.

HR_BEN_COB_FORM_PRINT_SUB CALL FUNCTION 'HR_BEN_COB_FORM_PRINT_SUB' EXPORTING pernr = p_persn-pernr dsubt = p_persn-dsubt dobjp = p_persn-dobjp datum = form_date command = form_print form_type = cobra_con_addtl_form language = p_tdspras close_form = false cob_offer_type = _letter_generation qb_benefit_data = rpcobqbdat cobra_event = p_evlet letter_variables = p_letter reaction = no_msg sub_elg = elig_for_subs termination_type = term_type IMPORTING subrc = p_subrc TABLES regular_pltypes = p_types cobra_dependents = p_depnd error_table = p_error CHANGING form_is_open = l_form_is_open.

HR_BEN_COB_FORM_PRINT CALL FUNCTION 'HR_BEN_COB_FORM_PRINT' EXPORTING pernr = p_persn-pernr dsubt = p_persn-dsubt dobjp = p_persn-dobjp datum = form_date command = form_print language = p_tdspras close_form = false cob_offer_type = _letter_generation qb_benefit_data = rpcobqbdat cobra_event = p_evlet letter_variables = p_letter reaction = no_msg IMPORTING subrc = p_subrc TABLES regular_pltypes = p_types cobra_dependents = p_depnd error_table = p_error CHANGING form_is_open = l_form_is_open.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = p_event-pernr msg_class = msg_class5 msg_number = '002' msg_par1 = p_event-evtyp msg_par2 = l_datst severity = p_subrc reaction = p_react TABLES error_table = p_error.

HR_BEN_COB_FORM_PRINT CALL FUNCTION 'HR_BEN_COB_FORM_PRINT' EXPORTING pernr = rpcobqbdat-pernr dsubt = rpcobqbdat-dsubt dobjp = rpcobqbdat-dobjp datum = sy-datum form_type = p_form_type command = form_print language = p_language cob_offer_type = _letter_generation qb_benefit_data = rpcobqbdat cobra_event = p_evlet letter_variables = p_letter reaction = p_react IMPORTING subrc = p_subrc TABLES error_table = p_error.

START_FORM CALL FUNCTION 'START_FORM' EXPORTING form = p_form language = p_language startpage = p_startpage program = my_callback_program EXCEPTIONS form = 1 format = 2 unended = 3 unopened = 4 unused = 5 OTHERS = 6.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = p_element window = p_window EXCEPTIONS element = 1 window = 2 bad_pageformat_for_print = 3 OTHERS = 4.

END_FORM CALL FUNCTION 'END_FORM'.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = p_pernr msg_class = msg_class3 msg_number = '203' msg_par1 = h591s-stext severity = p_subrc reaction = p_react TABLES error_table = p_error.

HR_BEN_HANDLE_ERROR CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING pernr = p_pernr msg_class = msg_class12 msg_number = '027' msg_par1 = h591s-stext msg_par2 = p_dobjp severity = p_subrc reaction = p_react TABLES error_table = p_error.

FP_FUNCTION_MODULE_NAME CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING i_name = lc_letter IMPORTING e_funcname = lv_fm_name e_interface_type = lv_e_interface_type.

HR_BEN_HANDLE_ERROR





CALL FUNCTION 'HR_BEN_HANDLE_ERROR' EXPORTING msg_class = msg_class12 msg_number = '041' msg_par1 = lv_mesg severity = sy-subrc reaction = error_msg TABLES error_table = p_error.



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