SAP Reports / Programs | Materials Management | Consumption-Based Planning (See Also PP-MRP)(MM-CBP) SAP MM

RMAHD001F01 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

ENQUEUE_E_MAHD CALL FUNCTION 'ENQUEUE_E_MAHD' EXPORTING mode_mahd = 'E' mandt = sy-mandt berid = -berid _wait = 'X' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 99.

MAHD_GET_WERKS_OF_BERID CALL FUNCTION 'MAHD_GET_WERKS_OF_BERID' EXPORTING i_berid = -berid i_berty = -berty IMPORTING e_werks = l_werks * E_BERTY = EXCEPTIONS wrong_berty = 1 OTHERS = 99 .

T001W_SINGLE_READ CALL FUNCTION 'T001W_SINGLE_READ' EXPORTING * KZRFB = ' ' t001w_werks = l_werks IMPORTING wt001w = wa_t001w EXCEPTIONS not_found = 1 OTHERS = 99.

MAHD_SELECT_MARC_MDMA CALL FUNCTION 'MAHD_SELECT_MARC_MDMA' EXPORTING i_berid = -berid i_werks = l_werks i_berty = -berty it_mara = l_t_mara i_perkz = p_mahdt_s_load_scr_data-param_perkz i_periv = p_mahdt_s_load_scr_data-param_periv it_maabc = p_mahdt_s_load_scr_data-range_maabc[] it_dismm = p_t_s_dismm[] CHANGING ct_marc = l_t_marc cs_mdma = l_s_mdma EXCEPTIONS error = 1 OTHERS = 99.

MAHD_PACKET_LOAD CALL FUNCTION 'MAHD_PACKET_LOAD' EXPORTING i_control_packet_load = g_control_packet_load i_header_packet_load = l_header_packet_load IMPORTING e_header_packet_load = l_header_packet_load CHANGING ch_t_ahd_couples = l_t_ahd_couples ch_t_minutes = l_t_minutes "#EC ENHOK EXCEPTIONS no_ahd_data = 1 OTHERS = 99.

MAHD_GET_WERKS_OF_BERID CALL FUNCTION 'MAHD_GET_WERKS_OF_BERID' EXPORTING i_berid = -berid i_berty = -berty IMPORTING e_werks = l_werks * E_BERTY = EXCEPTIONS wrong_berty = 1 OTHERS = 99 .

T001W_SINGLE_READ CALL FUNCTION 'T001W_SINGLE_READ' EXPORTING * KZRFB = ' ' t001w_werks = l_werks IMPORTING wt001w = wa_t001w EXCEPTIONS not_found = 1 OTHERS = 99.

MAHD_SELECT_MARC_MDMA CALL FUNCTION 'MAHD_SELECT_MARC_MDMA' EXPORTING i_berid = -berid i_werks = l_werks i_berty = -berty it_mara = l_t_mara i_perkz = p_mahdt_s_load_scr_data-param_perkz i_periv = p_mahdt_s_load_scr_data-param_periv it_maabc = p_mahdt_s_load_scr_data-range_maabc[] it_dismm = p_t_s_dismm[] CHANGING ct_marc = l_t_marc cs_mdma = l_s_mdma EXCEPTIONS error = 1 OTHERS = 99.

MAHD_GET_WERKS_OF_BERID CALL FUNCTION 'MAHD_GET_WERKS_OF_BERID' EXPORTING i_berid = -berid i_berty = -berty IMPORTING e_werks = l_werks * E_BERTY = EXCEPTIONS wrong_berty = 1 OTHERS = 99 .

T001W_SINGLE_READ CALL FUNCTION 'T001W_SINGLE_READ' EXPORTING * KZRFB = ' ' t001w_werks = l_werks IMPORTING wt001w = wa_t001w EXCEPTIONS not_found = 1 OTHERS = 99.

MAHD_PACKET_LOAD CALL FUNCTION 'MAHD_PACKET_LOAD' STARTING NEW TASK l_task_number DESTINATION IN GROUP p_mahdt_s_load_scr_data-param_server_group PERFORMING end_of_task ON END OF TASK EXPORTING i_control_packet_load = g_control_packet_load i_header_packet_load = l_header_packet_load CHANGING ch_t_ahd_couples = l_t_ahd_couples_packet ch_t_minutes = l_t_minutes "#EC ENHOK EXCEPTIONS communication_failure = 1 system_failure = 2 resource_failure = 3 no_ahd_data = 4 OTHERS = 99.

SPBT_INITIALIZE CALL FUNCTION 'SPBT_INITIALIZE' EXPORTING group_name = i_svrgrp IMPORTING free_pbt_wps = c_tasks EXCEPTIONS invalid_group_name = 1 internal_error = 2 pbt_env_already_initialized = 3 currently_no_resources_avail = 4 no_pbt_resources_found = 5 cant_init_different_pbt_groups = 6 error_message = 98 OTHERS = 99.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = l_s_log IMPORTING e_log_handle = l_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 99.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = l_log_handle i_s_msg = l_s_msg EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 99.

BAL_DSP_PROFILE_SINGLE_LOG_GET CALL FUNCTION 'BAL_DSP_PROFILE_SINGLE_LOG_GET' IMPORTING e_s_display_profile = l_s_display_profile EXCEPTIONS OTHERS = 99.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = l_s_display_profile i_t_log_handle = l_t_log_handle_oh EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 99.



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