SAP Reports / Programs | Logistics - General | Logistics Basic Data | Bills of Material(LO-MD-BOM) SAP LO

MAT_BOMGROUP_CREATE_SAMPLE SAP ABAP Report - Export Complete BOM Group as File







MAT_BOMGROUP_CREATE_SAMPLE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Export entire BOM group as file This report reads entire BOM groups from the database and writes them into a file as test data for the first data transfer...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter MAT_BOMGROUP_CREATE_SAMPLE 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 MAT_BOMGROUP_CREATE_SAMPLE. "Basic submit
SUBMIT MAT_BOMGROUP_CREATE_SAMPLE AND RETURN. "Return to original report after report execution complete
SUBMIT MAT_BOMGROUP_CREATE_SAMPLE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Export Complete BOM Group as File
Text Symbol: 001 = Selection Criteria
Text Symbol: 002 = Material
Text Symbol: 003 = Plnt
Text Symbol: 004 = Usage
Text Symbol: TST = Test Run Without Data Backup with Extended Log at Data Import


INCLUDES used within this REPORT MAT_BOMGROUP_CREATE_SAMPLE

INCLUDE CP_CS_CONST.
INCLUDE CP_CONST.


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:

CP_CC_S_REFRESH_DATA call function 'CP_CC_S_REFRESH_DATA' "note0425512 exceptions "note0425512 * exceptions irrelevant "note0425512 others = 0. "note0425512

CP_CC_S_LOAD_CHECK call function 'CP_CC_S_LOAD_CHECK' exporting i_classes_in_workarea = classes_to_process exceptions others = 1.

CP_CC_S_LOAD_COMPLEX_BY_BOM call function 'CP_CC_S_LOAD_COMPLEX_BY_BOM' exporting i_class = workarea_class-manufacturing i_classes_in_workarea = classes_to_process * (DEL) i_cpsc_mbm_sel = mbm_sel "note0425512 i_cpsc_bom_sel = bom_sel i_date_from = date-min_grg i_date_to = date-max_grg i_message_handler = const-flg_yes exceptions workarea_not_found = 1 class_wrong_type = 2 workarea_wrong_type = 3 class_in_workarea_inconsistent = 4 workarea_not_specified = 5 bom_not_found = 6 no_selection_criteria = 7 invalid_selection_period = 8 key_date_required_for_ecm = 9.

ALE_MATERIAL_BOM_GROUP_CREATE call function 'ALE_MATERIAL_BOM_GROUP_CREATE' exporting testrun = bapitestrun tables bomgroup = i_bomgroup variants = i_variants items = i_items subitems = i_subitems materialrelations = i_materialrelations itemassignments = i_itemassignments subitemassignments = i_subitemassignments texts = i_texts receivers = receivers communication_documents = communication_documents application_objects = application_objects exceptions error_creating_idocs = 1.

CS_CL_S_BGR_PROVIDE call function 'CS_CL_S_BGR_PROVIDE' exporting i_stlty = bapi1080_bom_type i_stlnr = int_bomgroup importing e_bgr_class_data = wa_bgr_data exceptions wrong_key = 1 others = 2.

MAP2E_BGR_DATA_TO_BAPI1080 call function 'MAP2E_BGR_DATA_TO_BAPI1080' exporting bgr_class_data = wa_bgr_data changing bapi1080_bgr_c = wa_bomgroup.

CS_CL_S_MBM_PROVIDE call function 'CS_CL_S_MBM_PROVIDE' exporting i_stlnr = int_bomgroup tables e_mbm_class_data = mbm_data_interface exceptions wrong_key = 1 others = 2.

MAP2E_MBM_DATA_TO_BAPI1080 call function 'MAP2E_MBM_DATA_TO_BAPI1080' exporting mbm_class_data = wa_mbm_data changing bapi1080_mbm_c = wa_materialrelations.

CS_CL_S_BOM_PROVIDE call function 'CS_CL_S_BOM_PROVIDE' exporting i_stlty = bapi1080_bom_type i_stlnr = int_bomgroup tables e_bom_class_data = bom_data_interface exceptions wrong_key = 1 others = 2.

MAP2E_BOM_DATA_TO_BAPI1080 call function 'MAP2E_BOM_DATA_TO_BAPI1080' exporting bom_class_data = wa_bom_data changing bapi1080_bom_c = wa_variants.

CS_CL_S_ITM_PROVIDE call function 'CS_CL_S_ITM_PROVIDE' exporting i_stlty = bapi1080_bom_type i_stlnr = int_bomgroup tables e_itm_class_data = itm_data_interface e_sui_class_data = sui_data_interface exceptions wrong_key = 1 others = 2.

MAP2E_ITM_DATA_TO_BAPI1080 call function 'MAP2E_ITM_DATA_TO_BAPI1080' exporting itm_class_data = wa_itm_data changing bapi1080_itm_c = wa_items.

MAP2E_SUI_DATA_TO_BAPI1080 call function 'MAP2E_SUI_DATA_TO_BAPI1080' exporting sui_class_data = wa_sui_data changing bapi1080_sui_c = wa_subitems.

CS_CL_S_BGR_TXT_KEY_PROVIDE call function 'CS_CL_S_BGR_TXT_KEY_PROVIDE' exporting i_stlty = wa_bgr_data-stlty i_stlnr = wa_bgr_data-stlnr importing e_ltext_key = ltext_key.

READ_TEXT call function 'READ_TEXT' exporting id = text_id language = wa_bgr_data-ltxsp name = ltext_key object = bom_text_object importing header = header tables lines = tlines exceptions id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7.

CS_CL_S_BOM_TXT_KEY_PROVIDE call function 'CS_CL_S_BOM_TXT_KEY_PROVIDE' exporting i_stlty = wa_bom_data-stlty i_stlnr = wa_bom_data-stlnr i_stlal = wa_bom_data-stlal i_stkoz = wa_bom_data-stkoz importing e_ltext_key = ltext_key.

READ_TEXT call function 'READ_TEXT' exporting id = text_id language = wa_bom_data-ltxsp name = ltext_key object = bom_text_object importing header = header tables lines = tlines exceptions id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7.

CS_CL_S_ITM_TXT_KEY_PROVIDE call function 'CS_CL_S_ITM_TXT_KEY_PROVIDE' exporting i_stlty = wa_itm_data-stlty i_stlnr = wa_itm_data-stlnr i_stlkn = wa_itm_data-stlkn i_stpoz = wa_itm_data-stpoz importing e_ltext_key = ltext_key.

READ_TEXT





call function 'READ_TEXT' exporting id = text_id language = wa_itm_data-ltxsp name = ltext_key object = bom_text_object importing header = header tables lines = tlines exceptions id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7.



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