SAP Reports / Programs | Trader's and Scheduler's Workbench | Industry Solution Oil | Trader's and Scheduler's Workbench(IS-OIL-DS-TSW) SAP IS

MOIJTNF12_APPEND_ITEMS SAP ABAP INCLUDE - Include MOIJTNF12 CONSTRUCT_TICKET_TABLES







MOIJTNF12_APPEND_ITEMS 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_APPEND_ITEMS 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 MOIJTNF12_APPEND_ITEMS. "Basic submit
SUBMIT MOIJTNF12_APPEND_ITEMS AND RETURN. "Return to original report after report execution complete
SUBMIT MOIJTNF12_APPEND_ITEMS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include MOIJTNF12 CONSTRUCT_TICKET_TABLES


INCLUDES used within this REPORT MOIJTNF12_APPEND_ITEMS

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:

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 = lt_oijnomh[] it_oijnomi = gt_app_l_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_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 = lt_oijnomh[] et_oijnomi = gt_app_l_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

OIJ_RU_TKT_INIT CALL FUNCTION 'OIJ_RU_TKT_INIT' EXPORTING i_type = t180-trtyp i_oijnomh = gs_oijnomh i_append = 'X' CHANGING c_ticket_header = gs_ticket_header.

OIJB_CHECK_STATFIELDS *** CALL FUNCTION 'OIJB_CHECK_STATFIELDS' *** EXPORTING *** ACTIVITY = GC_ACT_CREATE *** CHANGING *** CS_STATS = LS_TICKET_HEADER.

OIJB_CHECK_STATFIELDS * CALL FUNCTION 'OIJB_CHECK_STATFIELDS' * EXPORTING * ACTIVITY = GC_ACT_CREATE * CHANGING * CS_STATS = LS_TICKET_ITEM.

SD_VBAP_SINGLE_READ * CALL FUNCTION 'SD_VBAP_SINGLE_READ' * EXPORTING * I_VBELN = LV_VBELN * I_POSNR = LV_POSNR * IMPORTING * E_VBAP = LS_VBAP * EXCEPTIONS * RECORD_NOT_FOUND = 1 * OTHERS = 2.

ME_EKPV_SINGLE_READ * CALL FUNCTION 'ME_EKPV_SINGLE_READ' * EXPORTING * PI_EBELN = LV_EBELN * PI_EBELP = LV_EBELP * IMPORTING * PO_EKPV = LS_EKPV * EXCEPTIONS * NO_RECORDS_FOUND = 1 * OTHERS = 2.

WY_LFA1_SINGLE_READ * CALL FUNCTION 'WY_LFA1_SINGLE_READ' * EXPORTING * PI_LIFNR = LS_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 = LS_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.

OIJB_TKT_QCI_INTERFACE * CALL FUNCTION 'OIJB_TKT_QCI_INTERFACE' * EXPORTING * IS_WORKING = T180-TRTYP * IS_TICKET_HEADER = LS_TICKET_HEADER_VB * IS_TICKET_ITEM = LS_TICKET_ITEM_VB * IS_NOMINATION_HEADER = GS_OIJNOMH * IS_NOMINATION_ITEM = GS_OIJNOMI * CHANGING * CS_OIJ_EL_TKT_I_O1 = LS_TICKET_CONV_PARAM_VB * CT_OIJ_EL_TKT_I_O2 = LT_TICKET_ADD_UNITS_VB * CS_TKT_QCI = LT_TKT_ITEM_QCI * RETURN = LT_RETURN * EXCEPTIONS * TICKET_ITEM_UNIT_ERROR = 1 * OTHERS = 2.



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