SAP Reports / Programs | Financial Accounting | Travel Management | Travel Expenses(FI-TV-COS) SAP FI

MP56PS_TRGPERIO SAP ABAP INCLUDE - MP56PSTRGPERIO







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

INCLUDE RPR_DATA_COMMITMENT_EXT.


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:

TG_PERIOD_CHANGE_STATUS * CALL FUNCTION 'TG_PERIOD_CHANGE_STATUS' * EXPORTING * employeenumber = t_perio-pernr * tripnumber = t_perio-reinr * periodnumber = t_perio-perio * new_headerversion = wa_head-hdvrs * printed_new = '1' * approved_new = new_app * account_new = new_acc * IMPORTING * return = h_return * current_period_version = h_pdvrs.

DZ_UPDATE_TRIP CALL FUNCTION 'DZ_UPDATE_TRIP' "SVTK1592250 EXPORTING p_head = p_wa_head. "SVTK1592250

DZ_UPDATE_TRIP CALL FUNCTION 'DZ_UPDATE_TRIP' "SVTK1592250 EXPORTING p_head = p_wa_head. "SVTK1592250

TG_PERIOD_CHANGE_STATUS CALL FUNCTION 'TG_PERIOD_CHANGE_STATUS' EXPORTING employeenumber = p_t_perio-pernr tripnumber = p_t_perio-reinr periodnumber = p_t_perio-perio new_headerversion = p_wa_head-hdvrs printed_new = '1' approved_new = new_app account_new = new_acc show_dialog = ' ' * ALWAYS_SET_STATUS = ' ' IMPORTING return = h_return current_period_version = h_pdvrs.

TRG_READ_OVERLAP_TRIP_FOR_INFO CALL FUNCTION 'TRG_READ_OVERLAP_TRIP_FOR_INFO' EXPORTING p_head = wa_head p_perio = p_t_perio extern = 'X' TABLES destinations = ziel overlap_absence = h_overlap_absence overlap_parallel_trips = h_overlap_parallel_trips.

TRG_CHANGE_KZREA CALL FUNCTION 'TRG_CHANGE_KZREA' EXPORTING p_head = wa_head p_perio = p_t_perio land = space TABLES destinations = ziel deductions = abzug.

TRG_READ_OVERLAP_TRIP_FOR_INFO CALL FUNCTION 'TRG_READ_OVERLAP_TRIP_FOR_INFO' EXPORTING p_head = wa_head p_perio = p_t_perio extern = 'X' TABLES destinations = ziel overlap_absence = h_overlap_absence overlap_parallel_trips = h_overlap_parallel_trips.

TRG_CHANGE_KZREA CALL FUNCTION 'TRG_CHANGE_KZREA' EXPORTING p_head = wa_head p_perio = p_t_perio land = space TABLES destinations = ziel deductions = abzug.

HR_EVAL_STATUS_GET * CALL FUNCTION 'HR_EVAL_STATUS_GET' * EXPORTING * type = 'TR' * runid = h_perio-runid * IMPORTING * status = actual_status * EXCEPTIONS * run_not_found = 1 * run_locked = 2.

TRG_READ_OVERLAP_TRIP_FOR_INFO CALL FUNCTION 'TRG_READ_OVERLAP_TRIP_FOR_INFO' EXPORTING p_head = wa_head p_perio = t_perio extern = 'X' TABLES * destinations = ziel "XCI1383402 destinations = h_ziel "XCI1383402 overlap_absence = ueberlap_abwesenheiten overlap_parallel_trips = ueberlap_parallel_reisen.

TRG_CHANGE_KZREA CALL FUNCTION 'TRG_CHANGE_KZREA' EXPORTING p_head = wa_head p_perio = t_perio land = space TABLES destinations = h_ziel deductions = abzug.

TRG_OVERLAP_INFO CALL FUNCTION 'TRG_OVERLAP_INFO' EXPORTING save = save approve = approve morei = wa_head-morei IMPORTING correct_absence = correct_absence TABLES overlap_absence = ueberlap_abwesenheiten overlap_parallel_trips = ueberlap_parallel_reisen.

FITV_CALC_NO_OV_AND_NO_PD CALL FUNCTION 'FITV_CALC_NO_OV_AND_NO_PD' EXPORTING IT_DESTINATIONS = LT_ZIEL_TEMP IT_DEDUCTIONS = LT_ABZUG_TEMP IS_HEAD = WA_HEAD IS_PERIO = T_PERIO IV_COUNTRY = T001_LAND1 IMPORTING ET_DEST_NO_PD_NO_OV = LT_DEST_NR_PD_NR_OV_TEMP EXCEPTIONS ERROR_OCCURRED = 1 OTHERS = 2.

PTRV_TRIP_CHAIN_UPDATE CALL FUNCTION 'PTRV_TRIP_CHAIN_UPDATE' EXPORTING WA_HEAD = WA_HEAD WA_PERIO = T_PERIO I_SIMULATION = FALSE TABLES ZIEL = ZIEL DEST_NR_PD_NR_OV = LT_DEST_NR_PD_NR_OV.

TG_PERIOD_CHANGE_STATUS CALL FUNCTION 'TG_PERIOD_CHANGE_STATUS' EXPORTING employeenumber = te-key-pernr tripnumber = te-key-reinr periodnumber = te-key-perio new_headerversion = wa_head-hdvrs * PRINTED_NEW = * approved_new = '4' approved_new = app_new "GLWE34K018709 account_new = '1' * SHOW_DIALOG = ' ' * ALWAYS_SET_STATUS = ' ' IMPORTING return = return.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = titelbar text_question = question default_button = '2' display_cancel_button = space IMPORTING answer = answer.

CHECK_AUTH_TRG_ACTION CALL FUNCTION 'CHECK_AUTH_TRG_ACTION' EXPORTING action = '4' authp = authp check_kostl = check_kostl pernr = ptp02-pernr EXCEPTIONS no_change_authority = 1 no_create_authority = 2 no_show_authority = 3 no_delete_authority = 4 no_cancel_authority = 5 OTHERS = 6.

POPUP_TO_CONFIRM * CALL FUNCTION 'POPUP_TO_CONFIRM' * EXPORTING * titlebar = titelbar * text_question = question * default_button = '2' * display_cancel_button = space * IMPORTING * answer = answer.

HRCA_ACC_TRAVEL_CHECK





CALL FUNCTION 'HRCA_ACC_TRAVEL_CHECK' TABLES travel = travel_open_item travelamount = travelamount_open_item return = cobl_messages.

TG_PERIOD_CHANGE_STATUS * CALL FUNCTION 'TG_PERIOD_CHANGE_STATUS' * EXPORTING * employeenumber = t_perio-pernr * tripnumber = t_perio-reinr * periodnumber = t_perio-perio * new_headerversion = wa_head-hdvrs * account_new = '3' * IMPORTING * return = return.

TG_PERIOD_CHANGE_STATUS CALL FUNCTION 'TG_PERIOD_CHANGE_STATUS' EXPORTING employeenumber = p_t_perio-pernr tripnumber = p_t_perio-reinr periodnumber = p_t_perio-perio new_headerversion = wa_head-hdvrs account_new = '3' IMPORTING return = return.

TG_PERIOD_CHANGE_STATUS CALL FUNCTION 'TG_PERIOD_CHANGE_STATUS' EXPORTING employeenumber = wa_head-pernr tripnumber = wa_head-dantn periodnumber = '000' new_headerversion = wa_head-hdvrs account_new = '3' IMPORTING return = return.

TG_PERIOD_CHANGE_STATUS CALL FUNCTION 'TG_PERIOD_CHANGE_STATUS' EXPORTING employeenumber = wa_head-pernr tripnumber = wa_head-fintn periodnumber = '000' new_headerversion = wa_head-hdvrs account_new = '3' IMPORTING return = 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 MP56PS_TRGPERIO or its description.