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

MOIJTNF40 SAP ABAP INCLUDE - Include MOIJTNF40 GENERATE_DOCUMENTS_FOR_TICKET







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


INCLUDES used within this REPORT MOIJTNF40

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:

OII_CALC_DIFF_BT_TIMESTAMPS * CALL FUNCTION 'OII_CALC_DIFF_BT_TIMESTAMPS' * EXPORTING * I_LO_TIMESTAMP = LV_START_TMSTMP * I_HI_TIMESTAMP = LV_END_TMSTMP ** IMPORTING ** E_DAYS_DIFFERENCE = ** E_TIME_DIFF_IN_ONE_DAY = * EXCEPTIONS * LO_TIMESTAMP_GT_HI_TIMESTAMP = 1 ** DIFF_GT_THAN_TEN_MILLION_SECS = 2 * OTHERS = 3 * .

OII_CALC_DIFF_BT_TIMESTAMPS * CALL FUNCTION 'OII_CALC_DIFF_BT_TIMESTAMPS' * EXPORTING * I_LO_TIMESTAMP = LV_END_TMSTMP * I_HI_TIMESTAMP = LV_PRES1_DATE_TIME ** IMPORTING ** E_DAYS_DIFFERENCE = ** E_TIME_DIFF_IN_ONE_DAY = * EXCEPTIONS * LO_TIMESTAMP_GT_HI_TIMESTAMP = 1 * DIFF_GT_THAN_TEN_MILLION_SECS = 2 ** OTHERS = 3 *.

OIJ_GET_CONTROL_RECORD CALL FUNCTION 'OIJ_GET_CONTROL_RECORD' IMPORTING e_oijx = ls_oijx EXCEPTIONS control_record_not_found = 1 OTHERS = 0.

OIJB_REVERSAL_PREPARE_N CALL FUNCTION 'OIJB_REVERSAL_PREPARE_N' EXPORTING i_ticket_header = is_ticket_header TABLES t_reversal_docs = gt_reversal_docs t_original_docs = gt_original_docs.

OII_CALC_DIFF_BT_TIMESTAMPS CALL FUNCTION 'OII_CALC_DIFF_BT_TIMESTAMPS' EXPORTING I_LO_TIMESTAMP = LV_START_TMSTMP I_HI_TIMESTAMP = LV_END_TMSTMP * IMPORTING * E_DAYS_DIFFERENCE = * E_TIME_DIFF_IN_ONE_DAY = EXCEPTIONS LO_TIMESTAMP_GT_HI_TIMESTAMP = 1 * DIFF_GT_THAN_TEN_MILLION_SECS = 2 OTHERS = 3 .

OII_CALC_DIFF_BT_TIMESTAMPS CALL FUNCTION 'OII_CALC_DIFF_BT_TIMESTAMPS' EXPORTING I_LO_TIMESTAMP = LV_END_TMSTMP I_HI_TIMESTAMP = LV_PRES1_DATE_TIME * IMPORTING * E_DAYS_DIFFERENCE = * E_TIME_DIFF_IN_ONE_DAY = EXCEPTIONS LO_TIMESTAMP_GT_HI_TIMESTAMP = 1 DIFF_GT_THAN_TEN_MILLION_SECS = 2 * OTHERS = 3 .

OIJB_GENERATE_DOCUMENTS_N CALL FUNCTION 'OIJB_GENERATE_DOCUMENTS_N' EXPORTING i_ticket_header = is_ticket_header i_ticket_header_pv = is_ticket_header_pv i_close_shipment = lv_close_shipment TABLES t_ticket_item = lt_ticket_item "SO7K116073 t_ticket_item_o1 = lt_ticket_item_conv_param "SO7K116073 t_ticket_item_o2 = lt_ticket_item_add_units "SO7K116073 * T_TICKET_ITEM = IT_TICKET_ITEM "SO7K116073 * T_TICKET_ITEM_O1 = IT_TICKET_ITEM_CONV_PARAM "SO7K116073 * T_TICKET_ITEM_O2 = IT_TICKET_ITEM_ADD_UNITS "SO7K116073 t_ticket_item_pv = it_ticket_item_pv t_ticket_item_o1_pv = it_ticket_item_conv_param_pv t_ticket_item_o2_pv = it_ticket_item_add_units_pv t_oijnomh = it_oijnomh t_oijnomi = it_oijnomi t_oijnomsubitems = it_oijnomsubitems t_doc_flow = lt_ticket_doc_flow t_err_log = lt_ticket_error_log t_reversal_docs = gt_reversal_docs t_original_docs = gt_original_docs t_ticket_subitem = lt_ticket_subitem CHANGING ct_ticket_header_evt = ct_ticket_header_evt ct_ticket_header_evt_txt = ct_ticket_header_evt_txt ct_ticket_item_evt = ct_ticket_item_evt ct_ticket_item_evt_txt = ct_ticket_item_evt_txt ct_ticket_h_evt_pv = ct_ticket_h_evt_pv ct_ticket_h_evt_txt_pv = ct_ticket_h_evt_txt_pv ct_ticket_i_evt_pv = ct_ticket_i_evt_pv ct_ticket_i_evt_txt_pv = ct_ticket_i_evt_txt_pv g_updkz_flag = g_updkz_flag EXCEPTIONS error_during_cip_process = 1 error_during_checks = 2 nomination_lock_error = 3 "SOGK033555 DN nomination_read_error = 4 "SOGK033555 DN cip_process_read_error = 5 "SOGK033555 DN OTHERS = 6. "SOGK033555 DN

OIJB_GENERATE_DOCUMENTS_N CALL FUNCTION 'OIJB_GENERATE_DOCUMENTS_N' EXPORTING i_ticket_header = is_ticket_header i_ticket_header_pv = is_ticket_header_pv i_close_shipment = lv_close_shipment TABLES t_ticket_item = lt_ticket_item "SO7K116073 t_ticket_item_o1 = lt_ticket_item_conv_param"SO7K116073 t_ticket_item_o2 = lt_ticket_item_add_units "SO7K116073 t_ticket_item_pv = it_ticket_item_pv t_ticket_item_o1_pv = it_ticket_item_conv_param_pv t_ticket_item_o2_pv = it_ticket_item_add_units_pv t_oijnomh = it_oijnomh t_oijnomi = it_oijnomi t_doc_flow = lt_ticket_doc_flow t_err_log = lt_ticket_error_log t_reversal_docs = gt_reversal_docs t_original_docs = gt_original_docs t_ticket_subitem = lt_ticket_subitem EXCEPTIONS error_during_cip_process = 1 error_during_checks = 2 "P7IK010830 YK nomination_lock_error = 3 "P7IK010830 YK nomination_read_error = 4 "P7IK010830 YK cip_process_read_error = 5 "P7IK010830 YK OTHERS = 6. "P7IK010830 YK



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