SAP Reports / Programs | Production Planning and Control | Production Network | Production Allocation(PP-PN-ALN) SAP PP

GHO_MASS_ALLOCATION_RULES_F01 SAP ABAP INCLUDE - Include GHO_MASS_ALLOCATION_RULES_F01







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


INCLUDES used within this REPORT GHO_MASS_ALLOCATION_RULES_F01

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:

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'ALLOCATION_MAT' value_org = 'S' TABLES value_tab = gt_data[] return_tab = gt_ret[] EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'UOM' value_org = 'S' TABLES value_tab = lt_meas_uom[] return_tab = gt_ret[] EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = 'E' cl = 'GHO_ALLOC_MEASPOINT' number = 003 IMPORTING return = gv_message.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = 'E' cl = 'GHO_ALLOC_MEASPOINT' number = 003 IMPORTING return = gv_message.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = 'E' cl = 'GHO_ALLOC_MEASPOINT' number = 003 IMPORTING return = gv_message.

CONVERSION_EXIT_TPLNR_INPUT CALL FUNCTION 'CONVERSION_EXIT_TPLNR_INPUT' EXPORTING input = gv_netid IMPORTING output = lv_gho_netid EXCEPTIONS OTHERS = 1.

EA_GHO_ANL_GET_NETOBJ_DETAILS CALL FUNCTION 'EA_GHO_ANL_GET_NETOBJ_DETAILS' EXPORTING iv_netid = lv_gho_netid IMPORTING et_objects = lt_gho_obj.

CONVERSION_EXIT_TPLNR_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_TPLNR_OUTPUT' EXPORTING input = ls_gho_obj-obj_id IMPORTING output = lv_gho_netobj_id EXCEPTIONS OTHERS = 2.

RS_SET_SELSCREEN_STATUS CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING p_status = sy-pfkey TABLES p_exclude = gt_ucomm.

CONVERSION_EXIT_TPLNR_INPUT CALL FUNCTION 'CONVERSION_EXIT_TPLNR_INPUT' EXPORTING input = gv_netid IMPORTING output = lv_netid EXCEPTIONS OTHERS = 2.

CIF_GEN3_CONVERT_DATETIME CALL FUNCTION 'CIF_GEN3_CONVERT_DATETIME' EXPORTING iv_date = sy-datum iv_timezone = iv_timezone IMPORTING ev_timestamp = lv_time_st_to.

CIF_GEN3_CONVERT_DATETIME CALL FUNCTION 'CIF_GEN3_CONVERT_DATETIME' EXPORTING iv_date = gv_date iv_timezone = iv_timezone IMPORTING ev_timestamp = lv_time_stamp EXCEPTIONS time_conversion_failed = 1 OTHERS = 2.

CONVERSION_EXIT_TPLNR_INPUT CALL FUNCTION 'CONVERSION_EXIT_TPLNR_INPUT' EXPORTING input = ls_neto-gho_netobjid IMPORTING output = lv_gho_netobj_id EXCEPTIONS OTHERS = 2.

ENQUEUE_EGHO_ALL_ND_RULE CALL FUNCTION 'ENQUEUE_EGHO_ALL_ND_RULE' EXPORTING mode_gho_noderule_h = 'E' client = sy-mandt node_rule_id = ls_node_h_ret_check-gho_node_rule_id x_node_rule_id = ' ' _scope = '2' _wait = ' ' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_EGHO_ALL_ND_RULE CALL FUNCTION 'DEQUEUE_EGHO_ALL_ND_RULE' EXPORTING mode_gho_noderule_h = 'E' client = sy-mandt node_rule_id = ls_node_h_ret-gho_node_rule_id x_node_rule_id = ' ' _scope = '3' _synchron = ' ' _collect = ' '.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = ls_message-msgty cl = ls_message-msgid number = ls_message-msgno IMPORTING return = ls_message_ret.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING is_layout = ls_layout it_fieldcat = lt_fcat i_callback_program = lf_repid i_callback_user_command = 'ALV_USER_COMMAND_NET' i_callback_pf_status_set = 'ALV_PF_STATUS_NETWORK' it_excluding = lt_extab i_default = 'X' i_save = 'X' is_variant = ls_variant i_grid_title = 'Report For Production Network Rules'(068) TABLES t_outtab = gt_log_pn EXCEPTIONS OTHERS = 0.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING is_layout = ls_layout it_fieldcat = lt_fcat i_callback_program = lf_repid i_callback_user_command = 'ALV_USER_COMMAND_UOM' i_callback_pf_status_set = 'ALV_PF_STATUS' it_excluding = lt_extab i_default = 'X' i_save = 'X' is_variant = ls_variant i_grid_title = 'Report For UOM Rules'(027) TABLES t_outtab = gt_uom_log EXCEPTIONS OTHERS = 0.

REUSE_ALV_GRID_DISPLAY





CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING is_layout = ls_layout it_fieldcat = lt_fcat1 i_callback_program = lf_repid i_callback_user_command = 'ALV_USER_COMMAND' i_callback_pf_status_set = 'ALV_PF_STATUS' it_excluding = lt_extab i_default = 'X' i_save = 'X' is_variant = ls_variant i_grid_title = 'Report For Network Object Rules'(032) TABLES t_outtab = gt_neto_log EXCEPTIONS OTHERS = 0.

RS_SET_SELSCREEN_STATUS CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING p_status = sy-pfkey TABLES p_exclude = gt_ucomm.

CONVERSION_EXIT_TPLNR_INPUT CALL FUNCTION 'CONVERSION_EXIT_TPLNR_INPUT' EXPORTING input = ls_neto-gho_netobjid IMPORTING output = lv_gho_netobj_id EXCEPTIONS OTHERS = 2.

CONVERSION_EXIT_TPLNR_INPUT CALL FUNCTION 'CONVERSION_EXIT_TPLNR_INPUT' EXPORTING input = gv_netid IMPORTING output = lv_netid EXCEPTIONS OTHERS = 2.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'GHO_MEDIUM' value_org = 'S' TABLES value_tab = gt_medium[] return_tab = gt_ret[] EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = lv_progname dynumb = lv_dynnr translate_to_upper = 'X' TABLES dynpfields = lt_node EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 stepl_not_found = 10 OTHERS = 11.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'GHO_ALLOCATION_MAT' value_org = 'S' TABLES value_tab = gt_data[] return_tab = gt_ret[] EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

CONVERSION_EXIT_TPLNR_INPUT CALL FUNCTION 'CONVERSION_EXIT_TPLNR_INPUT' EXPORTING input = gv_netid IMPORTING output = lv_netid EXCEPTIONS OTHERS = 2.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'GHO_PN_FREQ' value_org = 'S' TABLES value_tab = gt_freq[] return_tab = gt_ret[] EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

CONVERSION_EXIT_TPLNR_INPUT CALL FUNCTION 'CONVERSION_EXIT_TPLNR_INPUT' EXPORTING input = gv_netid IMPORTING output = lv_netid EXCEPTIONS OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = lv_progname dynumb = lv_dynnr translate_to_upper = 'X' TABLES dynpfields = lt_quan.

CONVERSION_EXIT_IDATE_INPUT CALL FUNCTION 'CONVERSION_EXIT_IDATE_INPUT' EXPORTING input = lt_quan-fieldvalue IMPORTING output = gho_s_bo_alloc_nd_rule_h_det-gho_valid_from_date.

CIF_GEN3_CONVERT_DATETIME CALL FUNCTION 'CIF_GEN3_CONVERT_DATETIME' EXPORTING iv_date = sy-datum iv_timezone = iv_timezone IMPORTING ev_timestamp = lv_time_st_to.

CIF_GEN3_CONVERT_DATETIME CALL FUNCTION 'CIF_GEN3_CONVERT_DATETIME' EXPORTING iv_date = gho_s_bo_alloc_nd_rule_h_det-gho_valid_from_date iv_timezone = iv_timezone IMPORTING ev_timestamp = lv_time_stamp EXCEPTIONS time_conversion_failed = 1 OTHERS = 2.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'QTY_TYPE' value_org = 'S' TABLES value_tab = gt_quant[] return_tab = gt_ret[] EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = 'E' cl = 'GHO_ALLOC' number = 049 IMPORTING return = gv_message.

DEQUEUE_EGHO_ALL_ND_RULE CALL FUNCTION 'DEQUEUE_EGHO_ALL_ND_RULE' EXPORTING mode_gho_noderule_h = 'E' client = sy-mandt node_rule_id = ls_node_h_ret-gho_node_rule_id x_node_rule_id = ' ' _scope = '3' _synchron = ' ' _collect = ' '.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = 'E' cl = 'GHO_ALLOC' number = 050 IMPORTING return = gv_message.

DEQUEUE_EGHO_NW_UOM_RULE CALL FUNCTION 'DEQUEUE_EGHO_NW_UOM_RULE' EXPORTING mode_gho_uom_rule_h = 'E' client = sy-mandt uom_rule_id = ls_uom_h-uom_rule_id x_uom_rule_id = ' ' _scope = '3' _synchron = ' ' _collect = ' '.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = 'E' cl = 'GHO_ALLOC' number = 049 IMPORTING return = gv_message.




BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = 'E' cl = 'GHO_ALLOC' number = 050 IMPORTING return = gv_message.

DEQUEUE_EGHO_NW_UOM_RULE CALL FUNCTION 'DEQUEUE_EGHO_NW_UOM_RULE' EXPORTING mode_gho_uom_rule_h = 'E' client = sy-mandt uom_rule_id = ls_uom_h-uom_rule_id x_uom_rule_id = ' ' _scope = '3' _synchron = ' ' _collect = ' '.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = 'E' cl = 'GHO_ALLOC' number = 049 IMPORTING return = gv_message.

DEQUEUE_EGHO_ALL_NW_RULE CALL FUNCTION 'DEQUEUE_EGHO_ALL_NW_RULE' EXPORTING mode_gho_nwrule_h = 'E' client = sy-mandt nw_rule_id = ls_network_header_detail-gho_network_rule_id x_nw_rule_id = ' ' _scope = '3' _synchron = ' ' _collect = ' '.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = 'E' cl = 'GHO_ALLOC' number = 050 IMPORTING return = gv_message.

DEQUEUE_EGHO_ALL_NW_RULE CALL FUNCTION 'DEQUEUE_EGHO_ALL_NW_RULE' EXPORTING mode_gho_nwrule_h = 'E' client = sy-mandt nw_rule_id = ls_network_header_detail-gho_network_rule_id x_nw_rule_id = ' ' _scope = '3' _synchron = ' ' _collect = ' '.

RS_SET_SELSCREEN_STATUS CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING p_status = sy-pfkey TABLES p_exclude = gt_ucomm.

RS_SET_SELSCREEN_STATUS CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING p_status = sy-pfkey TABLES p_exclude = gt_ucomm.



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