SAP Reports / Programs | Personnel Management | Recruitment(PA-RC) SAP PA

MPW12F01 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

BAPI_APPLICANT_CREATE CALL FUNCTION 'BAPI_APPLICANT_CREATE' EXPORTING ap_group = int_defaults-persg ap_subgrp = int_defaults-persk pers_area = int_defaults-werks p_subarea = int_defaults-btrtl personnel = int_defaults-sachp foa_key = p0002-anred f_name = old_per-vorna l_name = old_per-nachn birthname = old_per-name2 known_as = old_per-rufnm ssn = p0002-perid b_date = p0002-gbdat title = p0002-titel 2nd_title = p0002-titl2 ari_title = p0002-namzu affix = p0002-vorsw prefix_2 = p0002-vors2 gender = p0002-gesch birthplace = old_per-gbort mar_stat = p0002-famst initials = p0002-inits nation = p0002-natio langu = sy-langu c_o = old_adr-name2 street = old_adr-stras 2nd_add_ln = old_adr-locat city = old_adr-ort01 region = p0006-state district = old_adr-ort02 pcd_city = p0006-pstlz cntry = p0006-land1 tel_no = p0006-telnr advert = advert "XCZ unsappgp = int_defaults-spapl medium = int_defaults-media employeenumber = pernr "WBIK031606 communication_type = '0010' "WBIK031606 e_mail = p0105-usrid_long "WBIK031606 IMPORTING applicantnumber = rpapp-aplno return = bapi_rcode TABLES education = education previous_employment = employer qualification = qualification vacancy_assignment = vacancy_assignment EXCEPTIONS OTHERS = 0.

BAPI_APPLICANT_DEQUEUE CALL FUNCTION 'BAPI_APPLICANT_DEQUEUE' "4.6C

HR_ESS_DEACTIVED_SERVICE ** CALL FUNCTION 'HR_ESS_DEACTIVED_SERVICE' "4.6C

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' "4.6C

P_APP_GET_DETAIL_OF_VACANCY CALL FUNCTION 'P_APP_GET_DETAIL_OF_VACANCY' EXPORTING vacid = d_vacancies-objid TABLES text = vac_detail EXCEPTIONS no_details_found = 1 OTHERS = 2.

BAPI_APPLICANT_ENQUEUE CALL FUNCTION 'BAPI_APPLICANT_ENQUEUE' EXPORTING applicantnumber = rpapp-aplno IMPORTING return = bapi_rcode1.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING TCLAS = 'B' PERNR = rpapp-aplno INFTY = '4002' BEGDA = '18000101' ENDDA = '99991231' BYPASS_BUFFER = ' ' IMPORTING SUBRC = retcode TABLES INFTY_TAB = i4002 EXCEPTIONS OTHERS = 0.

BAPI_APPLICATION_CREATE CALL FUNCTION 'BAPI_APPLICATION_CREATE' EXPORTING validitybegin = sy-datum medium = int_defaults-media advert = advert unsappg = int_defaults-spapl applnumber = rpapp-aplno IMPORTING * v============================ XRGN0426748 =========================v number = number.

HR_READ_INFOTYPE * CALL FUNCTION 'HR_READ_INFOTYPE' * EXPORTING * tclas = 'B' * pernr = rpapp-aplno * infty = '4002' * begda = sy-datum * endda = '99991231' * BYPASS_BUFFER = 'X' "XDVN427098 * IMPORTING * subrc = retcode * TABLES * infty_tab = i4002 * EXCEPTIONS * OTHERS = 0.

RH_INTEGRATION_CHECK * CALL FUNCTION 'RH_INTEGRATION_CHECK' * IMPORTING * INTEGRATED_PLVAR = LV_PLVAR * ORG_INTEGRATION = LV_ORGA.

RH_READ_OBJECT * CALL FUNCTION 'RH_READ_OBJECT' * EXPORTING * PLVAR = lv_plvar * OTYPE = 'S' * OBJID = i4002-objid * IMPORTING * OBEG = lv_obj_begda * OEND = lv_obj_endda * EXCEPTIONS * NOT_FOUND = 1 * OTHERS = 2 * .

HR_INFOTYPE_OPERATION * CALL FUNCTION 'HR_INFOTYPE_OPERATION' * EXPORTING * infty = '4002' * number = rpapp-aplno ** validityend = '99991231' "XDVN480519 * validityend = i4002-endda "XDVN480519 * validitybegin = sy-datum * record = i4002 * operation = 'INS' * tclas = 'B' * dialog_mode = '0' * nocommit = 'X' * IMPORTING * return = return.

HR_FEATURE_BACKTABLE * CALL FUNCTION 'HR_FEATURE_BACKTABLE' * EXPORTING * feature = 'PACTV' * struc_content = wa_pme15 * kind_of_error = ' ' * tables * back = it_pactv ** CHANGING ** STATUS = ** EXCEPTIONS ** DUMMY = 1 ** ERROR_OPERATION = 2 ** NO_BACKVALUE = 3 ** FEATURE_NOT_GENERATED = 4 ** INVALID_SIGN_IN_FUNID = 5 ** TAB_IN_REPORT_FIELD_IN_PE03 = 6 ** OTHERS = 7 * .

HR_INFOTYPE_OPERATION * CALL FUNCTION 'HR_INFOTYPE_OPERATION' * EXPORTING * INFTY = '4003' * NUMBER = rpapp-aplno * VALIDITYBEGIN = sy-datum * OBJECTID = wa_p4003-objps * RECORDNUMBER = seq_number * RECORD = WA_P4003 * OPERATION = 'INS' * TCLAS = 'B' * DIALOG_MODE = '0' * NOCOMMIT = 'X' * IMPORTING * RETURN = RETURN.

RH_INTEGRATION_CHECK CALL FUNCTION 'RH_INTEGRATION_CHECK' IMPORTING integrated_plvar = planvar org_integration = orga qual_integration = plogi_quali EXCEPTIONS OTHERS = 0.

HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING INFTY = appl_p0022-infty NUMBER = appl_p0022-pernr SUBTYPE = appl_p0022-subty OBJECTID = appl_p0022-objps LOCKINDICATOR = appl_p0022-sprps VALIDITYEND = appl_p0022-endda VALIDITYBEGIN = appl_p0022-begda RECORDNUMBER = appl_p0022-seqnr RECORD = appl_p0022 OPERATION = 'DEL' TCLAS = 'B' NOCOMMIT = 'X' IMPORTING RETURN = return .

HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING INFTY = appl_p0023-infty NUMBER = appl_p0023-pernr SUBTYPE = appl_p0023-subty OBJECTID = appl_p0023-objps LOCKINDICATOR = appl_p0023-sprps VALIDITYEND = appl_p0023-endda VALIDITYBEGIN = appl_p0023-begda RECORDNUMBER = appl_p0023-seqnr RECORD = appl_p0023 OPERATION = 'DEL' TCLAS = 'B' NOCOMMIT = 'X' IMPORTING RETURN = return .

HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING INFTY = appl_p0024-infty NUMBER = appl_p0024-pernr SUBTYPE = appl_p0024-subty OBJECTID = appl_p0024-objps LOCKINDICATOR = appl_p0024-sprps VALIDITYEND = appl_p0024-endda VALIDITYBEGIN = appl_p0024-begda RECORDNUMBER = appl_p0024-seqnr RECORD = appl_p0024 OPERATION = 'DEL' TCLAS = 'B' NOCOMMIT = 'X' IMPORTING RETURN = return .

HR_INFOTYPE_OPERATION





CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING infty = '0105' number = rpapp-aplno subtype = '0010' validityend = '99991231' validitybegin = sy-datum record = i0105 operation = 'INS' tclas = 'B' dialog_mode = '0' nocommit = 'X' IMPORTING return = return.

HR_ADD_APPLICANT_DATA CALL FUNCTION 'HR_ADD_APPLICANT_DATA' EXPORTING applicantnumber = rpapp-aplno begda = sy-datum endda = '99991231' infty_0002 = i0002 infty_0006 = i0006 dialog_mode = '0' nocommit = 'X' IMPORTING return = return TABLES infty_0022 = i_p0022 "XJGN211259 infty_0023 = i_p0023 "XJGN211259 infty_0024 = i_p0024. "XJGN211259

BAPI_QUALIPROF_CHANGE CALL FUNCTION 'BAPI_QUALIPROF_CHANGE' EXPORTING plvar = planvar otype = 'AP' sobid = sobid IMPORTING return = return TABLES profile_add = profile_add profile_delete = profile_delete.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'B' pernr = rpapp-aplno infty = '4002' begda = sy-datum endda = '99991231' BYPASS_BUFFER = 'X' IMPORTING subrc = retcode TABLES infty_tab = i4002 EXCEPTIONS OTHERS = 0.

RH_INTEGRATION_CHECK CALL FUNCTION 'RH_INTEGRATION_CHECK' IMPORTING INTEGRATED_PLVAR = LV_PLVAR ORG_INTEGRATION = LV_ORGA.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING PLVAR = lv_plvar OTYPE = 'S' OBJID = i4002-objid IMPORTING OBEG = lv_obj_begda OEND = lv_obj_endda EXCEPTIONS NOT_FOUND = 1 OTHERS = 2 .

BAPI_APPLICANT_DEQUEUE CALL FUNCTION 'BAPI_APPLICANT_DEQUEUE' EXPORTING applicantnumber = rpapp-aplno.

HR_ESS_DEACTIVED_SERVICE ** CALL FUNCTION 'HR_ESS_DEACTIVED_SERVICE' ** EXPORTING ** SERVICE = ESS_STATUSSERVICE ** MOLGA = MOLGA ** IMPORTING ** DEACTIVATED = DEACTIVATED.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = ess_statustransaction EXCEPTIONS ok = 1 not_ok = 2 OTHERS = 3.

BAPI_APPLICANT_DEQUEUE * call function 'BAPI_APPLICANT_DEQUEUE' * EXPORTING applicantnumber = rpapp-aplno.

BAPI_APPLICANT_ENQUEUE * CALL FUNCTION 'BAPI_APPLICANT_ENQUEUE' * EXPORTING APPLICANTNUMBER = RPAPP-APLNO * IMPORTING RETURN = BAPI_RCODE1.

ARCHIV_CREATE_TABLE CALL FUNCTION 'ARCHIV_CREATE_TABLE' * Kontrolle voll an AL abgeben.

ARCHIV_CREATE_TABLE CALL FUNCTION 'ARCHIV_CREATE_TABLE' * Kontrolle voll an AL abgeben.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING FEATURE = 'EVTAP' STRUC_CONTENT = wa_pme15 KIND_OF_ERROR = ' ' IMPORTING BACK = BACK * CHANGING * STATUS = EXCEPTIONS OTHERS = 1.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING TCLAS = 'B' PERNR = rpapp-aplno INFTY = '0001' BEGDA = sy-datum * ENDDA = '99991231' * BYPASS_BUFFER = ' ' * IMPORTING * SUBRC = retcode TABLES INFTY_TAB = i0001 EXCEPTIONS OTHERS = 0.

HR_FEATURE_BACKTABLE CALL FUNCTION 'HR_FEATURE_BACKTABLE' EXPORTING feature = 'PACTV' struc_content = wa_pme15 kind_of_error = ' ' tables back = it_pactv * CHANGING * STATUS = EXCEPTIONS OTHERS = 1.

HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING INFTY = '4003' NUMBER = rpapp-aplno VALIDITYBEGIN = sy-datum OBJECTID = wa_p4003-objps RECORDNUMBER = seq_number RECORD = WA_P4003 OPERATION = 'INS' TCLAS = 'B' DIALOG_MODE = '0' NOCOMMIT = 'X' IMPORTING RETURN = P_RETURN.



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