MOIJTNF12 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 MOIJTNF12 into the relevant SAP transactions such as SE38 or SE80
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.
Title: Include MOIJTNF12 CONSTRUCT_TICKET_TABLES
INCLUDE MOIJTNF12_OLD.
No SAP DATABASE tables are accessed within this REPORT code!
OIJB_TICKET_DEFAULTING CALL FUNCTION 'OIJB_TICKET_DEFAULTING' EXPORTING iv_activity = gc_act_create * IS_TICKET_HEADER_OLD = is_ticket_header = ls_h * IS_TICKET_ITEM_OLD = * IS_TICKET_ITEM = * IS_TICKET_ITEM_O1 = * IT_TICKET_ITEM_OLD = it_ticket_item = lt_i[] * IT_TICKET_ITEM_O1_OLD = it_ticket_item_o1 = lt_i_o1[] * IT_TICKET_ITEM_O2_OLD = it_ticket_item_o2 = lt_i_o2[] * IT_EVENTS_OLD = * IT_EVENTS = * IT_EVENT_TEXTS = it_oijnomh = gt_oijnomh[] it_oijnomi = gt_oijnomi[] it_oijnomsubitems = ct_oijnomsubitems[] * IV_TKT_CALL = IMPORTING es_ticket_header = ls_h * ES_TICKET_ITEM = * ES_TICKET_ITEM_O1 = et_ticket_item = lt_i et_ticket_item_o1 = lt_i_o1[] et_ticket_item_o2 = lt_i_o2[] es_tkt_qci = lt_tkt_item_qci et_events = lt_events[] * ET_EVENT_TEXTS = es_ticket_header_pv = ls_h_pv et_i_pv = lt_i_pv[] et_i_o1_pv = lt_i_o1_pv[] et_i_o2_pv = lt_i_o2_pv[] et_oijnomh = gt_oijnomh[] et_oijnomi = gt_oijnomi[] et_oijnomsubitems = ct_oijnomsubitems[] EXCEPTIONS defaulting_error = 1 no_records_passed = 2 nomination_item_not_found = 3 OTHERS = 4.
OIJB_TICKET_DEFAULTING CALL FUNCTION 'OIJB_TICKET_DEFAULTING' EXPORTING iv_activity = gc_act_create is_ticket_header = ls_h it_ticket_item = lt_i[] it_ticket_item_o1 = lt_i_o1[] it_ticket_item_o2 = lt_i_o2[] it_oijnomh = gt_oijnomh[] it_oijnomi = gt_oijnomi[] IMPORTING es_ticket_header = ls_h et_ticket_item = lt_i et_ticket_item_o1 = lt_i_o1[] et_ticket_item_o2 = lt_i_o2[] es_tkt_qci = lt_tkt_item_qci et_events = lt_events[] es_ticket_header_pv = ls_h_pv et_i_pv = lt_i_pv[] et_i_o1_pv = lt_i_o1_pv[] et_i_o2_pv = lt_i_o2_pv[] et_oijnomh = gt_oijnomh[] et_oijnomi = gt_oijnomi[] EXCEPTIONS defaulting_error = 1 no_records_passed = 2 nomination_item_not_found = 3 OTHERS = 4.
WY_LFA1_SINGLE_READ CALL FUNCTION 'WY_LFA1_SINGLE_READ' EXPORTING pi_lifnr = cs_ticket_header-shipper IMPORTING po_lfa1 = ls_lfa1 * PO_ADDRESS_VALUE = EXCEPTIONS no_records_found = 1 internal_error = 2 OTHERS = 3.
WY_LFA1_SINGLE_READ CALL FUNCTION 'WY_LFA1_SINGLE_READ' EXPORTING pi_lifnr = cs_ticket_header-carrier IMPORTING po_lfa1 = ls_lfa1 * PO_ADDRESS_VALUE = EXCEPTIONS no_records_found = 1 internal_error = 2 OTHERS = 3.
OIJLOC_SINGLE_READ CALL FUNCTION 'OIJLOC_SINGLE_READ' EXPORTING iv_locid = ls_i-locid IMPORTING es_oijloc = ls_oijloc EXCEPTIONS record_not_found = 1 OTHERS = 2.
OIJ_GET_SLOC_FOR_TNKNR CALL FUNCTION 'OIJ_GET_SLOC_FOR_TNKNR' "SO7K116073 EXPORTING "SO7K116073 iv_locid = ls_i-locid "SO7K116073 iv_tnknr = ls_i-tanknr "SO7K116073 IMPORTING "SO7K116073 ev_plant = lv_werks "SO7K116073 ev_sloc = lv_lgort. "SO7K116073
OIJTS_SINGLE_READ CALL FUNCTION 'OIJTS_SINGLE_READ' EXPORTING iv_tsyst = ls_item_tab_con-tsyst IMPORTING es_oijts = ls_oijts EXCEPTIONS record_not_found = 1 OTHERS = 2.
WY_LFA1_SINGLE_READ CALL FUNCTION 'WY_LFA1_SINGLE_READ' EXPORTING pi_lifnr = cs_ticket_header-shipper IMPORTING po_lfa1 = ls_lfa1 * PO_ADDRESS_VALUE = EXCEPTIONS no_records_found = 1 internal_error = 2 OTHERS = 3.
WY_LFA1_SINGLE_READ CALL FUNCTION 'WY_LFA1_SINGLE_READ' EXPORTING pi_lifnr = cs_ticket_header-carrier IMPORTING po_lfa1 = ls_lfa1 * PO_ADDRESS_VALUE = EXCEPTIONS no_records_found = 1 internal_error = 2 OTHERS = 3.
OIJLOC_SINGLE_READ CALL FUNCTION 'OIJLOC_SINGLE_READ' EXPORTING iv_locid = ls_ticket_item-locid IMPORTING es_oijloc = ls_oijloc EXCEPTIONS record_not_found = 1 OTHERS = 2.
OIJ_GET_SLOC_FOR_TNKNR CALL FUNCTION 'OIJ_GET_SLOC_FOR_TNKNR' "SO7K116073 EXPORTING "SO7K116073 iv_locid = ls_ticket_item-locid "SO7K116073 iv_tnknr = ls_ticket_item-tanknr "SO7K116073 IMPORTING "SO7K116073 ev_plant = lv_werks "SO7K116073 ev_sloc = lv_lgort. "SO7K116073
OIJ_RU_TKT_INIT CALL FUNCTION 'OIJ_RU_TKT_INIT' EXPORTING i_type = t180-trtyp i_oijnomh = gs_oijnomh i_append = space CHANGING c_ticket_header = gs_ticket_header.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.