SAP Reports / Programs | Personnel Management | Personnel Management | Pension fund: General Parts(PA-PF-XX) SAP PA

MPACOC01_IMP_ACC SAP ABAP INCLUDE - MPACOC01IMPACC







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

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:

HR_CH_PK_READ_FROM_ACCOUNT CALL FUNCTION 'HR_CH_PK_READ_FROM_ACCOUNT' EXPORTING konnr = im_konnr begda = '18000101' endda = '99991231' * VALTY = * VPROP = * IMPORTING * WAERS = TABLES i5cpb = li_5cpb EXCEPTIONS invalid_account = 1 permission_denied = 2 OTHERS = 3.

HR_PF_WRITE_TO_ACCOUNT CALL FUNCTION 'HR_PF_WRITE_TO_ACCOUNT' EXPORTING * PERNR = * KONNR = * BUDAT = * VALTY = * VALUE = * WAERS = ' ' * VADAT = * PABRP = * PABRJ = * EXPFL = * ORGIN = evflag = ' ' testmode = ' ' crtpost = 'X' * IMPORTING * T5CPB_WA = TABLES i5cpb = li_5cpb * CHANGING * P_BUNUM = ' ' EXCEPTIONS invalid_account = 1 permission_denied = 2 invalid_valty = 3 invalid_budat = 4 write_failed = 5 too_many_entries = 6 account_locked = 7 wrong_currency = 8 no_number_found = 9 posting_error = 10 parameter_missing = 11 OTHERS = 12.

HR_NL_PK_WRITE_EVENT CALL FUNCTION 'HR_NL_PK_WRITE_EVENT' EXPORTING pernr = lf_t5cpb_wa-pernr kasse = l_kasse event = 'MPOS' datum = sy-datum cname = sy-uname testmode = ' ' bunum = lf_t5cpb_wa-bunum budat = lf_t5cpb_wa-budat EXCEPTIONS error_new = 1 error_original = 2 too_many_entries = 3 OTHERS = 4.

HR_PF_WRITE_TO_ACCOUNT CALL FUNCTION 'HR_PF_WRITE_TO_ACCOUNT' EXPORTING * PERNR = * KONNR = * BUDAT = * VALTY = * VALUE = * WAERS = ' ' * VADAT = * PABRP = * PABRJ = * EXPFL = * ORGIN = evflag = ' ' testmode = ' ' crtpost = 'X' IMPORTING t5cpb_wa = lf_t5cpb_wa TABLES i5cpb = li_5cpb * CHANGING * P_BUNUM = '0' EXCEPTIONS invalid_account = 1 permission_denied = 2 invalid_valty = 3 invalid_budat = 4 write_failed = 5 too_many_entries = 6 account_locked = 7 wrong_currency = 8 no_number_found = 9 posting_error = 10 parameter_missing = 11 OTHERS = 12.

HR_NL_PK_WRITE_EVENT CALL FUNCTION 'HR_NL_PK_WRITE_EVENT' EXPORTING pernr = lf_t5cpb_wa-pernr kasse = l_kasse event = 'MPOS' datum = sy-datum cname = sy-uname testmode = ' ' bunum = lf_t5cpb_wa-bunum budat = lf_t5cpb_wa-budat EXCEPTIONS error_new = 1 error_original = 2 too_many_entries = 3 OTHERS = 4.

HR_PF_MARK_REVERSED_ENTRY CALL FUNCTION 'HR_PF_MARK_REVERSED_ENTRY' EXPORTING konnr = z_konnr budat = lf_5cpb-budat seqnr = lf_5cpb-seqnr bunum = lf_5cpb-bunum.

HR_CH_PROC_CTRL_INIT CALL FUNCTION 'HR_CH_PROC_CTRL_INIT' EXPORTING molga = g_molga "MBBL9CK000060 appli = gc_appli "MBBL9CK000060 reinit = ' '.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = z_pernr infty = '0001' begda = sy-datum endda = '99991231' IMPORTING subrc = l_subrc TABLES infty_tab = li_p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_CH_PK_WRITE_ENTRY_POPUP_KNR CALL FUNCTION 'HR_CH_PK_WRITE_ENTRY_POPUP_KNR' EXPORTING pernr = z_pernr konnr = l_konnr rdate = sy-datum vadat = z_vadat budat = z_budat * VALTY = * VALUE = abkrs = z_abkrs evflag = ' ' xpflag = 'X' upflag = ' ' olrep_flag = 'X' TABLES new_entries = li_new_entries EXCEPTIONS aborted = 1 error_at_creation = 2 no_plan_found = 3 invalid_account = 4 no_payroll_period_found = 5 missing_authority = 6 OTHERS = 7.

HR_CH_VAL_CONV_V2S CALL FUNCTION 'HR_CH_VAL_CONV_V2S' EXPORTING valty = lf_new_entry-i5cpb_wa-valty value = lf_new_entry-i5cpb_wa-value IMPORTING string = l_valstr EXCEPTIONS unknown_valty = 1 conversion_error = 2 OTHERS = 3.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = lc_check_posting IMPORTING is_implemented = lv_impl CHANGING instance = lo_badi.

HR_CH_PK_REVERSE_ENTRY CALL FUNCTION 'HR_CH_PK_REVERSE_ENTRY' EXPORTING pernr = z_pernr konnr = l_konnr budat = lf_5cpb-budat seqnr = lf_5cpb-seqnr pabrp = l_pabrp pabrj = l_pabrj evflag = l_evtfl expflag = l_expfl upflag = ' ' * TESTMODE = ' ' IMPORTING t5cpb_wa = lf_5cpb EXCEPTIONS invalid_account = 1 entry_not_found = 2 account_locked = 3 no_inverse = 4 write_failed = 5 period_not_found = 6 missing_org_data = 7 OTHERS = 8.

HR_PF_REVERSE_POSTING CALL FUNCTION 'HR_PF_REVERSE_POSTING' "MBBL9CK043015 EXPORTING pernr = z_pernr konnr = l_konnr bunum = lf_5cpb-bunum pabrp = l_pabrp pabrj = l_pabrj evflag = l_evtfl expflag = l_expfl upflag = ' ' * TESTMODE = ' ' TABLES i5cpb = li_5cpb i5cpb_nrev = li_5cpb_nrev "XFE CHANGING "CHBL6BK048929 is_ok = is_ok "CHBL6BK048929 message_tab = message_tab "CHBL6BK048929 EXCEPTIONS invalid_account = 1 entry_not_found = 2 account_locked = 3 no_inverse = 4 write_failed = 5 period_not_found = 6 missing_org_data = 7 OTHERS = 8.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = lc_check_posting IMPORTING is_implemented = lv_impl CHANGING instance = lo_badi.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_status_booked INFO = 'Gebucht'(I10) IMPORTING RESULT = ndbkic EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_calculation INFO = 'Berechnet'(I11) IMPORTING RESULT = ndcaic EXCEPTIONS OTHERS = 0.



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