SAP Reports / Programs | Payroll | Switzerland(PY-CH) SAP PY

RPLBGAC2 SAP ABAP Report - HR-CH: BFS quarterly employment statistics







RPLBGAC2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program determines the bases for the employment statistics (BESTA), which have to be created for the Federal Statistics Office (BFS) for every quarter from 2011 onwards...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 RPLBGAC2 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_M02_LBGA2 - BFS Quarterly Employment Statistics


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 RPLBGAC2. "Basic submit
SUBMIT RPLBGAC2 AND RETURN. "Return to original report after report execution complete
SUBMIT RPLBGAC2 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: P_CLGRID = Control List for Excel
Selection Text: P_VARI_C = Layout Control List
Selection Text: S_ABREH = Payroll Unit
Title: HR-CH: BFS quarterly employment statistics
Text Symbol: 001 = Men
Text Symbol: 002 = Women
Text Symbol: 004 = Swiss (M)
Text Symbol: 005 = Foreign National (M)
Text Symbol: 006 = Swiss (F)
Text Symbol: 007 = Foreign National (F)
Text Symbol: AL1 = Control List
Text Symbol: U00 = BFS employment statistics
Text Symbol: U04 = Key Date:
Text Symbol: U10 = BUR number:
Text Symbol: U11 = BESTA no.:
Text Symbol: U12 = Date:
Text Symbol: U13 = Time:


INCLUDES used within this REPORT RPLBGAC2

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:

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' " EXPORTING " is_variant = g_variant_ctrl " i_save = 'X' " IMPORTING " es_variant = g_variant_ctrl " EXCEPTIONS " OTHERS = 0. "

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' "XAWKM02022718 EXPORTING " exit_name = 'HRPAYCHBGAC0' " IMPORTING " is_implemented = badi_is_impld " CHANGING " instance = badi_cexit. "

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' "XAWKM02851865 EXPORTING " exit_name = 'HRPAYCHBGAC0B' " IMPORTING " is_implemented = badi_2_is_impld " CHANGING " instance = badi_2_cexit. "

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' "ZKBKM04082776 EXPORTING " exit_name = 'HRPAYCHBGAC0C' " IMPORTING " is_implemented = badi_3_is_impld " CHANGING " instance = badi_3_cexit. "

HR_CH_READ_ABREINHEIT CALL FUNCTION 'HR_CH_READ_ABREINHEIT' EXPORTING p02_stichtag = pn-endda p02_anwschlch = 'BFS' TABLES p02_p0001 = p0001[] p02_t_abreinheit = payroll_units pi_merkm = features EXCEPTIONS table_access_error = 1 abreinheit_not_found = 2 OTHERS = 3.

HR_CH_APPEND_ALV_CREATE_TABINF CALL FUNCTION 'HR_CH_APPEND_ALV_CREATE_TABINF' EXPORTING * strucname = 'HRPAYCH_BGAC0_OUTPUT' "ZKBKM04082776 strucname = 'HRPAYCH_BGAC2_OUTPUT' "ZKBKM04082776 IMPORTING es_tableref_and_info = output_table.

HR_CH_APPEND_ALV CALL FUNCTION 'HR_CH_APPEND_ALV' EXPORTING tables_and_infos = output_tables clist_tableref = lr_ctrl "SAFKM01469399 clist_variant_repid = lv_repid "SAFKM01469399 "ZKBKM04082776 clist_strucname = lc_struct_ctrl "SAFKM01469399 clist_fieldcat = lt_fieldcat "SAFKM01469399 is_variant_ctrl = g_variant_ctrl "XAWKM03882264 CHANGING errorlist = messages EXCEPTIONS OTHERS = 0.

HR_CH_READ_ADRESS_ABREINH CALL FUNCTION 'HR_CH_READ_ADRESS_ABREINH' EXPORTING p02_abreinheit = abreh p02_anwschlch = 'BFS' p02_stichtag = pn-endda p02_kontakt = 'N' TABLES p02_adrabreh = adress_lines.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING fieldname = 'ABREINH' tabname = 'T5CSG' IMPORTING select_value = p_abreh TABLES fields = ihelp_fields valuetab = helptab EXCEPTIONS OTHERS = 0.

HR_99S_GET_QUARTER CALL FUNCTION 'HR_99S_GET_QUARTER' EXPORTING im_date = pn-endda IMPORTING ex_quarter = ls_quarter ex_returncode = lv_subrc.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = pc_struct_name CHANGING ct_fieldcat = pt_fieldcat EXCEPTIONS 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 RPLBGAC2 or its description.