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

MP56PS_TRGF2000 SAP ABAP INCLUDE - MP56PSTRGF2000







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

INCLUDE RPR_DATA_COMMITMENT_EXT.
INCLUDE MP56TDAT_SIM_KI4.


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:

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

TG_CHECK_STATUS_RELEVANT_TG CALL FUNCTION 'TG_CHECK_STATUS_RELEVANT_TG' IMPORTING p_rueckbuchung = rueckbuchung CHANGING P_PERIO = abordnung_wa_perio EXCEPTIONS no_posting_back = 1.

DELETE_TRIP_WITH_PERIODS CALL FUNCTION 'DELETE_TRIP_WITH_PERIODS' EXPORTING head_pernr = wa_head-pernr head_reinr = wa_head-reinr upd_type = 'DEL' EXCEPTIONS error_delete_head = 1 error_delete_perio = 2 error_delete = 3.

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_change-pernr tripnumber = t_perio_change-reinr periodnumber = t_perio_change-perio new_headerversion = p_wa_head-hdvrs account_new = '3' IMPORTING return = return.

FITV_RD_CANCEL_TRIP_PTC CALL FUNCTION 'FITV_RD_CANCEL_TRIP_PTC' EXPORTING pernr = t_perio_change-pernr reinr = t_perio_change-reinr wa_head = temp_head wa_perio = t_perio_change EXCEPTIONS OTHERS = 1.

TRIP_PERIOD_DELETE CALL FUNCTION 'TRIP_PERIOD_DELETE' EXPORTING employeenumber = t_perio_change-pernr tripnumber = t_perio_change-reinr periodnumber = t_perio_change-perio auth_check = ' ' enqueue_set = ' ' IMPORTING return = return EXCEPTIONS OTHERS = 1.

FITV_RD_START_DELETE_PTC CALL FUNCTION 'FITV_RD_START_DELETE_PTC' EXPORTING pernr = t_perio_change-pernr reinr = t_perio_change-reinr wa_head = temp_head wa_perio = t_perio_change EXCEPTIONS others = 1.

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.

TG_GET_TGKENNZEICHEN CALL FUNCTION 'TG_GET_TGKENNZEICHEN' EXPORTING morei = p_ptp02_morei kzrea = t706s-kzrea IMPORTING trg_tr = trg_tr trg_av = trg_av d_antritt = d_antritt d_rueck = d_rueck TABLES tg_kz = tg_kz EXCEPTIONS "hier nicht relevant no_tg_kz = 1 OTHERS = 2.

TG_GET_MASSNAHME CALL FUNCTION 'TG_GET_MASSNAHME' EXPORTING fcode = 'ABA' pernr = p_ptp02_pernr morei = p_ptp02_morei IMPORTING trip_number = h_tg_number EXCEPTIONS no_tg_existing = 1 no_tg_kzrea = 2 cancel_tg_auswahl = 3 create_new_tg = 4 change_pernr = 5.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = sy-dynnr * translate_to_upper = 'X' request = 'A' TABLES dynpfields = dynpro_fields EXCEPTIONS invalid_abapworkarea = 01 invalid_dynprofield = 02 invalid_dynproname = 03 invalid_dynpronummer = 04 invalid_request = 05 no_fielddescription = 06 undefind_error = 07.

TRIP_GET_BEREIKZ CALL FUNCTION 'TRIP_GET_BEREIKZ' EXPORTING morei = wa_head-morei berei = act_berei IMPORTING tarif = tarif trip_type = trip_type wo_accomodation = wo_accomodation EXCEPTIONS no_berei_kz = 1 OTHERS = 2.

DYNP_UPDATE_FIELDS CALL FUNCTION 'DYNP_UPDATE_FIELDS' EXPORTING dyname = sy-cprog dynumb = dynpro_nr request = 'A' TABLES dynpfields = dynpro_fields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 OTHERS = 8.

FITV_RD_EXPORT_TRIPDATA CALL FUNCTION 'FITV_RD_EXPORT_TRIPDATA' EXPORTING wa_ptp02 = rd_ptp02 WA_PERIO = WA_PERIO BEARB_STAT = 'S'.

FITV_RD_EXPORT_TRIPDATA CALL FUNCTION 'FITV_RD_EXPORT_TRIPDATA' EXPORTING WA_PTP02 = RD_PTP02 WA_PERIO = WA_PERIO "QIZK012372 * XCI1606919 begin * BEARB_STAT = BEARB_STAT(1).

FITV_RD_EXPORT_TRIPDATA CALL FUNCTION 'FITV_RD_EXPORT_TRIPDATA' EXPORTING wa_ptp02 = p_head wa_perio = wa_perio bearb_stat = 'C'.

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 = p_head is_perio = wa_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 = p_head wa_perio = wa_perio i_simulation = false NEW_HEAD = wa_head "XCI1446524 OLD_PERIO = ls_old_perio "XCI1446524 IMPORTING wa_head_changed = p_head TABLES ziel = ziel dest_nr_pd_nr_ov = lt_dest_nr_pd_nr_ov.

PTRM_WRITE_TIMESTAMP CALL FUNCTION 'PTRM_WRITE_TIMESTAMP' " CTHK009265 EXPORTING LP_AEND = aend LP_TE_KEY = te-key LP_CHANGE_TYPE = ' '.

TRIP_BAUE_ZIELE CALL FUNCTION 'TRIP_BAUE_ZIELE' EXPORTING t001_land1 = t001_land1 wa_head = wa_head wa_perio = wa_perio TABLES p_ziel = ziel p_ziele = h_ziele.

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 = wa_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.

FITV_RD_START_DELETE_PTC CALL FUNCTION 'FITV_RD_START_DELETE_PTC' EXPORTING pernr = wa_perio-pernr reinr = wa_perio-reinr wa_head = p_head wa_perio = wa_perio EXCEPTIONS others = 1.

FITV_RD_CHECK_INPUT CALL FUNCTION 'FITV_RD_CHECK_INPUT' EXPORTING ort01 = wa_head-zort1 act_head = wa_head TABLES ziel = ziel EXCEPTIONS no_adress_first_dest = 1 adress_incomplete_firt_dest = 3 address_gkz_invalid = 7 OTHERS = 8.

TRG_READ_OVERLAP_TRIP_FOR_INFO CALL FUNCTION 'TRG_READ_OVERLAP_TRIP_FOR_INFO' EXPORTING p_head = ls_head p_perio = ls_perio extern = 'X' TABLES destinations = ziel overlap_absence = lt_ueberlap_abwesenheiten overlap_parallel_trips = lt_ueberlap_parallel_reisen.

TRG_OVERLAP_INFO CALL FUNCTION 'TRG_OVERLAP_INFO' EXPORTING save = ' ' approve = ' ' simulate = l_simulate morei = ls_head-morei TABLES * begin SVTK1679208 * overlap_absence = ueberlap_abwesenheiten * overlap_parallel_trips = ueberlap_parallel_reisen.

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

PTRV_TRIP_CHAIN_UPDATE CALL FUNCTION 'PTRV_TRIP_CHAIN_UPDATE' EXPORTING wa_head = ls_head wa_perio = ls_perio i_simulation = true IMPORTING wa_head_changed = ls_head TABLES * ZIEL = ZIEL "XCI1455681 ZIEL = LT_ZIEL "XCI1455681 dest_nr_pd_nr_ov = lt_dest_nr_pd_nr_ov_temp.

BAPI_TRIP_GET_FORM CALL FUNCTION 'BAPI_TRIP_GET_FORM' EXPORTING employeenumber = ls_head-pernr tripnumber = ls_perio-reinr display_form = 'X' GET_TRIP_FROM_MEMORY = ' ' periodnumber = ls_perio-perio IMPORTING return = return.

BAPI_TRIP_GET_FORM CALL FUNCTION 'BAPI_TRIP_GET_FORM' EXPORTING employeenumber = ls_head-pernr tripnumber = ls_perio-reinr display_form = 'X' GET_TRIP_FROM_MEMORY = 'X' periodnumber = ls_perio-perio IMPORTING return = return.

TG_CALC_ENDRG CALL FUNCTION 'TG_CALC_ENDRG' EXPORTING P_WA_HEAD = ptp02 P_MAX_TRAVEL_DAYS = max_travel_days CHANGING P_ENDRG = ptp02-endrg.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = text-s02 TEXT_QUESTION = text_question DEFAULT_BUTTON = '1' DISPLAY_CANCEL_BUTTON = ' ' IMPORTING ANSWER = ANSWER.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = text-s02 TEXT_QUESTION = text_question DEFAULT_BUTTON = '1' DISPLAY_CANCEL_BUTTON = ' ' IMPORTING ANSWER = ANSWER.

TG_GET_TGKENNZEICHEN CALL FUNCTION 'TG_GET_TGKENNZEICHEN' EXPORTING morei = wa_head-morei kzrea = wa_head-kzrea IMPORTING trg_tr = trg_tr trg_av = trg_av EXCEPTIONS "hier nicht relevant no_tg_kz = 1 OTHERS = 2.

TG_GET_TGKENNZEICHEN CALL FUNCTION 'TG_GET_TGKENNZEICHEN' EXPORTING morei = abordnung_wa_head-morei kzrea = abordnung_wa_head-kzrea IMPORTING trg_tr = abordnung_trg_tr trg_av = abordnung_trg_av.

TRIP_BAUE_ZIELE CALL FUNCTION 'TRIP_BAUE_ZIELE' EXPORTING t001_land1 = t001_land1 wa_head = h_head wa_perio = wa_perio TABLES p_ziel = ziel p_ziele = h_ziele.

TRG_FILL_ABS_USING_HOME CALL FUNCTION 'TRG_FILL_ABS_USING_HOME' EXPORTING is_abs_new = new_abs TABLES et_absence_all = t_new_abs.

TG_FILL_ABSENCE_OF_RELEVANT_TG CALL FUNCTION 'TG_FILL_ABSENCE_OF_RELEVANT_TG' EXPORTING p_head = abordnung_wa_head absence = t_absence p_rueckbuchung = rueckbuchung CHANGING p_perio = abordnung_wa_perio p_t_perio_rueckbuchung = t_perio_rueckbuchung.




TG_DELETE_ABS_OF_RELEVANT_TG CALL FUNCTION 'TG_DELETE_ABS_OF_RELEVANT_TG' EXPORTING p_head = abordnung_wa_head absence = t_absence CHANGING p_perio = abordnung_wa_perio.

TRIP_BAUE_ZIELE CALL FUNCTION 'TRIP_BAUE_ZIELE' EXPORTING t001_land1 = t001_land1 wa_head = h_head wa_perio = wa_perio TABLES p_ziel = ziel p_ziele = h_ziele.

TRG_FILL_ABS_USING_HOME CALL FUNCTION 'TRG_FILL_ABS_USING_HOME' EXPORTING is_abs_new = new_abs TABLES et_absence_all = t_new_abs.

TG_DELETE_ABS_OF_RELEVANT_TG CALL FUNCTION 'TG_DELETE_ABS_OF_RELEVANT_TG' EXPORTING p_head = abordnung_wa_head absence = t_absence CHANGING p_perio = abordnung_wa_perio.

TRG_FILL_ABS_USING_HOME CALL FUNCTION 'TRG_FILL_ABS_USING_HOME' EXPORTING is_abs_new = new_abs TABLES et_absence_all = t_new_abs.

TG_FILL_ABSENCE_OF_RELEVANT_TG CALL FUNCTION 'TG_FILL_ABSENCE_OF_RELEVANT_TG' EXPORTING p_head = abordnung_wa_head absence = t_absence p_rueckbuchung = rueckbuchung CHANGING p_perio = abordnung_wa_perio p_t_perio_rueckbuchung = t_perio_rueckbuchung.

TRG_FILL_ABS_USING_HOME CALL FUNCTION 'TRG_FILL_ABS_USING_HOME' EXPORTING is_abs_new = new_abs TABLES et_absence_all = t_new_abs.

TG_DELETE_ABS_OF_RELEVANT_TG CALL FUNCTION 'TG_DELETE_ABS_OF_RELEVANT_TG' EXPORTING p_head = abordnung_wa_head absence = t_absence CHANGING p_perio = abordnung_wa_perio.

TRIP_BAUE_ZIELE CALL FUNCTION 'TRIP_BAUE_ZIELE' EXPORTING t001_land1 = t001_land1 wa_head = h_head wa_perio = wa_perio TABLES p_ziel = ziel p_ziele = h_ziele.

TRG_FILL_ABS_USING_HOME CALL FUNCTION 'TRG_FILL_ABS_USING_HOME' EXPORTING is_abs_new = new_abs TABLES et_absence_all = t_new_abs.

TG_FILL_ABSENCE_OF_RELEVANT_TG CALL FUNCTION 'TG_FILL_ABSENCE_OF_RELEVANT_TG' EXPORTING p_head = abordnung_wa_head absence = t_absence p_rueckbuchung = rueckbuchung CHANGING p_perio = abordnung_wa_perio p_t_perio_rueckbuchung = t_perio_rueckbuchung.

TRIP_BAUE_ZIELE CALL FUNCTION 'TRIP_BAUE_ZIELE' EXPORTING t001_land1 = t001_land1 wa_head = h_head wa_perio = wa_perio TABLES p_ziel = ziel p_ziele = h_ziele.

TRG_FILL_ABS_USING_HOME CALL FUNCTION 'TRG_FILL_ABS_USING_HOME' EXPORTING is_abs_new = new_abs TABLES et_absence_all = t_new_abs.

TG_DELETE_ABS_OF_RELEVANT_TG CALL FUNCTION 'TG_DELETE_ABS_OF_RELEVANT_TG' EXPORTING p_head = abordnung_wa_head absence = t_absence CHANGING p_perio = abordnung_wa_perio.

TRIP_BAUE_ZIELE CALL FUNCTION 'TRIP_BAUE_ZIELE' EXPORTING t001_land1 = t001_land1 wa_head = h_head wa_perio = wa_perio TABLES p_ziel = ziel p_ziele = h_ziele.

TRG_FILL_ABS_USING_HOME CALL FUNCTION 'TRG_FILL_ABS_USING_HOME' EXPORTING is_abs_new = new_abs TABLES et_absence_all = t_new_abs.

TG_CHECK_OVERLAP_ABS_UEB_ABORD CALL FUNCTION 'TG_CHECK_OVERLAP_ABS_UEB_ABORD' EXPORTING tg_nummer = abordnung_wa_head-reinr p_datv1 = wa_absence-rvdat p_datb1 = wa_absence-rbdat p_uhrv1 = wa_absence-rvuhr p_uhrb1 = wa_absence-rbuhr.

TRIP_BAUE_ZIELE CALL FUNCTION 'TRIP_BAUE_ZIELE' EXPORTING t001_land1 = t001_land1 wa_head = h_head wa_perio = wa_perio TABLES p_ziel = ziel p_ziele = h_ziele.

TRG_FILL_ABS_USING_HOME CALL FUNCTION 'TRG_FILL_ABS_USING_HOME' EXPORTING is_abs_new = new_abs TABLES et_absence_all = t_new_abs.

TG_CHECK_OVERLAP_ABS_UEB_ABORD CALL FUNCTION 'TG_CHECK_OVERLAP_ABS_UEB_ABORD' EXPORTING tg_nummer = abordnung_wa_head-reinr p_datv1 = wa_absence-rvdat p_datb1 = wa_absence-rbdat p_uhrv1 = wa_absence-rvuhr p_uhrb1 = wa_absence-rbuhr.

TRIP_BAUE_ZIELE CALL FUNCTION 'TRIP_BAUE_ZIELE' EXPORTING t001_land1 = t001_land1 wa_head = h_head wa_perio = wa_perio TABLES p_ziel = ziel p_ziele = h_ziele.

TRG_FILL_ABS_USING_HOME CALL FUNCTION 'TRG_FILL_ABS_USING_HOME' EXPORTING is_abs_new = new_abs TABLES et_absence_all = t_new_abs.

TG_CHECK_OVERLAP_ABS_UEB_ABORD CALL FUNCTION 'TG_CHECK_OVERLAP_ABS_UEB_ABORD' EXPORTING tg_nummer = abordnung_wa_head-reinr p_datv1 = wa_absence-rvdat p_datb1 = wa_absence-rbdat p_uhrv1 = wa_absence-rvuhr p_uhrb1 = wa_absence-rbuhr.

TRG_FILL_ABS_USING_HOME CALL FUNCTION 'TRG_FILL_ABS_USING_HOME' EXPORTING is_abs_new = new_abs TABLES et_absence_all = t_new_abs.

TG_CHECK_OVERLAP_ABS_UEB_ABORD CALL FUNCTION 'TG_CHECK_OVERLAP_ABS_UEB_ABORD' EXPORTING tg_nummer = abordnung_wa_head-reinr p_datv1 = wa_absence-rvdat p_datb1 = wa_absence-rbdat p_uhrv1 = wa_absence-rvuhr p_uhrb1 = wa_absence-rbuhr.

TRIP_BAUE_ZIELE CALL FUNCTION 'TRIP_BAUE_ZIELE' EXPORTING t001_land1 = t001_land1 wa_head = h_head wa_perio = wa_perio TABLES p_ziel = ziel p_ziele = h_ziele.

TRG_FILL_ABS_USING_HOME CALL FUNCTION 'TRG_FILL_ABS_USING_HOME' EXPORTING is_abs_new = new_abs TABLES et_absence_all = t_new_abs.

TG_CHECK_OVERLAP_ABS_UEB_ABORD CALL FUNCTION 'TG_CHECK_OVERLAP_ABS_UEB_ABORD' EXPORTING tg_nummer = abordnung_wa_head-reinr p_datv1 = wa_absence-rvdat p_datb1 = wa_absence-rbdat p_uhrv1 = wa_absence-rvuhr p_uhrb1 = wa_absence-rbuhr.

TG_UPDATE_STATUS_RELEVANT_TG CALL FUNCTION 'TG_UPDATE_STATUS_RELEVANT_TG' EXPORTING P_HEAD = abordnung_wa_head IMPORTING P_RETURN = h_return P_PDVRS = h_pdvrs CHANGING P_PERIO = abordnung_wa_perio.

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



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