SAP Reports / Programs | Tariffs, Duties and Permits | Industry Solution Oil | Tariffs, Duties and Permits(IS-OIL-DS-TDP) SAP IS

FOIH2F01 SAP ABAP INCLUDE - Include E routines







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

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:

OIB_MM_GET_QNT_FROM_GT_MSEGO2 CALL FUNCTION 'OIB_MM_GET_QNT_FROM_GT_MSEGO2' EXPORTING i_linenm = oih_mseg-zeile i_uom = oih_stct01-qtyut IMPORTING e_qnt = quant EXCEPTIONS linenm_not_passed = 5 quantity_not_found = 7 uom_not_passed = 9.

OIB_MM_GET_QNT_FROM_GT_MSEGO2 CALL FUNCTION 'OIB_MM_GET_QNT_FROM_GT_MSEGO2' " SO7K100626 M EXPORTING i_line_id = oih_mseg-line_id i_uom = oih_stct01-qtyut i_g_l_read = 'X' IMPORTING e_qnt = quant EXCEPTIONS linenm_not_passed = 5 quantity_not_found = 7 uom_not_passed = 9. " SO7K100626 M

OIB_PI_GET_ISEG_QTITY_IN_UOM CALL FUNCTION 'OIB_PI_GET_ISEG_QTITY_IN_UOM' EXPORTING i_linnm = xiseg-zeili i_uom = oih_stct01-qtyut IMPORTING e_ctqnt = quant EXCEPTIONS isego2_line_not_found = 5 linenm_not_passed = 7 uom_not_passed = 9.

CUSTOMIZED_MESSAGE CALL FUNCTION 'CUSTOMIZED_MESSAGE' EXPORTING I_ARBGB = 'OB' I_DTYPE = 'E' I_MSGNR = '006' I_VAR01 = co_OIH01 I_VAR02 = L_hlptxt.

MARC_SINGLE_READ CALL FUNCTION 'MARC_SINGLE_READ' EXPORTING matnr = p_oih_mseg-matnr werks = p_oih_mseg-werks IMPORTING wmarc = marc EXCEPTIONS OTHERS = 4.

OIB_MM_GET_QNT_FROM_GT_MSEGO2 CALL FUNCTION 'OIB_MM_GET_QNT_FROM_GT_MSEGO2' EXPORTING i_linenm = p_oih_mseg-zeile i_uom = lt_t006_uomgr-msehi IMPORTING e_qnt = p_quant EXCEPTIONS linenm_not_passed = 5 quantity_not_found = 7 uom_not_passed = 9.

UNIT_CONVERSION_SIMPLE

UNIT_CONVERSION_SIMPLE_CONTEXT *KH CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' "1,5x faster CALL FUNCTION 'UNIT_CONVERSION_SIMPLE_CONTEXT' "use buffer R3E KH EXPORTING input = p_quant unit_in = lt_t006_uomgr-msehi unit_out = p_oih_stct01_qtyut IMPORTING output = p_quant EXCEPTIONS conversion_not_found = 1 division_by_zero = 2 input_invalid = 3 output_invalid = 4 overflow = 5 type_invalid = 6 units_missing = 7 unit_in_not_found = 8 unit_out_not_found = 9 OTHERS = 10.

MARC_SINGLE_READ CALL FUNCTION 'MARC_SINGLE_READ' EXPORTING matnr = xiseg-matnr werks = xiseg-werks IMPORTING wmarc = marc EXCEPTIONS OTHERS = 4.

OIB_PI_GET_ISEG_QTITY_IN_UOM CALL FUNCTION 'OIB_PI_GET_ISEG_QTITY_IN_UOM' EXPORTING i_linnm = xiseg-zeili i_uom = lt_t006_uomgr-msehi IMPORTING e_ctqnt = p_quant EXCEPTIONS isego2_line_not_found = 5 linenm_not_passed = 7 uom_not_passed = 9.

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = p_quant unit_in = lt_t006_uomgr-msehi unit_out = p_oih_stct01_qtyut IMPORTING output = p_quant EXCEPTIONS conversion_not_found = 1 division_by_zero = 2 input_invalid = 3 output_invalid = 4 overflow = 5 type_invalid = 6 units_missing = 7 unit_in_not_found = 8 unit_out_not_found = 9 OTHERS = 10.



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