SAP Reports / Programs | Payroll | Mexico(PY-MX) SAP PY

PCFONMX3 SAP ABAP INCLUDE - documentation and ABAP source code







PCFONMX3 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 PCFONMX3 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 PCFONMX3. "Basic submit
SUBMIT PCFONMX3 AND RETURN. "Return to original report after report execution complete
SUBMIT PCFONMX3 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 PCFONMX3

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:

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = lv_filename TABLES data_tab = rawdata EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 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.

TEXT_CONVERT_TEX_TO_SAP CALL FUNCTION 'TEXT_CONVERT_TEX_TO_SAP' EXPORTING i_field_seperator = ',' i_tab_raw_data = rawdata TABLES i_tab_converted_data = g_foncsv_in_tab EXCEPTIONS OTHERS = 4.

TEXT_CONVERT_TEX_TO_SAP CALL FUNCTION 'TEXT_CONVERT_TEX_TO_SAP' EXPORTING i_field_seperator = ',' i_tab_raw_data = rawdata i_line_header = 'X' TABLES i_tab_converted_data = g_foncsv_in_tab EXCEPTIONS OTHERS = 4.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = lc_act_feature struc_content = p0000 IMPORTING back = feature_value EXCEPTIONS "#EC * dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

CU_READ_RGDIR CALL FUNCTION 'CU_READ_RGDIR' EXPORTING persnr = pernr-pernr TABLES in_rgdir = lt_rgdir EXCEPTIONS no_record_found = 1 others = 2.

PYXX_READ_RGDIR_PAYRESULTS CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS' EXPORTING clusterid = 'MX' employeenumber = pernr-pernr TABLES rgdir = lt_rgdir imported_periods = lt_payresults EXCEPTIONS import_error = 1 others = 2.

HRMX_LAST_DAY_OF_MONTH CALL FUNCTION 'HRMX_LAST_DAY_OF_MONTH' EXPORTING I_DATE = lv_date IMPORTING E_DAYS_OF_MONTH = lv_days.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = ls_foncsv-pernr infty = '0370' TABLES infty_tab = lt_p0370.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = ls_foncsv-pernr infty = '2001' TABLES infty_tab = lt_p2001.

SAP_CONVERT_TO_TEX_FORMAT CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT' EXPORTING I_FIELD_SEPERATOR = ',' TABLES I_TAB_SAP_DATA = pt_foncsv CHANGING I_TAB_CONVERTED_DATA = lt_truxs EXCEPTIONS CONVERSION_FAILED = 4.



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