MV45AF0F_FCODE_MATSEARCH 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 MV45AF0F_FCODE_MATSEARCH into the relevant SAP transactions such as SE38 or SE80
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.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
WSD_READ_PLANT_PARAM CALL FUNCTION 'WSD_READ_PLANT_PARAM' IMPORTING e_werks = ls_search_param-werks.
TVKWZ_SINGLE_READ CALL FUNCTION 'TVKWZ_SINGLE_READ' EXPORTING tvkwz_vkorg = vbak-vkorg tvkwz_vtweg = vbak-vtweg tvkwz_werks = ls_search_param-werks EXCEPTIONS not_found = 1 OTHERS = 2.
WSD_SELECT_OWN_PLANT CALL FUNCTION 'WSD_SELECT_OWN_PLANT' EXPORTING i_vkorg = vbak-vkorg i_vtweg = vbak-vtweg IMPORTING e_werks = ls_search_param-werks.
WSD_MATERIAL_SEARCH CALL FUNCTION 'WSD_MATERIAL_SEARCH' DESTINATION 'NONE' EXPORTING is_params = ls_search_param IMPORTING et_return = lt_matlist EXCEPTIONS system_failure = 1 communication_failure = 2 OTHERS = 3.
MARC_ARRAY_READ CALL FUNCTION 'MARC_ARRAY_READ' EXPORTING kzrfb = 'X' EXCEPTIONS enqueue_mode_changed = 0 lock_on_marc = 0 lock_system_error = 0 OTHERS = 0.
SD_CALL_PERFORM CALL FUNCTION 'SD_CALL_PERFORM' EXPORTING iv_form = 'VBAP-MATNR_PRUEFEN' iv_program = 'SAPFV45P' CHANGING cv_using1 = lf_error cv_using2 = lv_subrc EXCEPTIONS error_message = 1.
SD_CALL_PERFORM CALL FUNCTION 'SD_CALL_PERFORM' EXPORTING iv_form = 'VBAP-WERKS_PRUEFEN' iv_program = 'SAPFV45P' CHANGING cv_using1 = vbap-posnr cv_using2 = vbap-werks cv_using3 = lv_space cv_using4 = lv_space cv_using5 = lf_error cv_using6 = lv_subrc cv_using7 = vbap-lgort EXCEPTIONS error_message = 1.
MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING matnr = vbap-MATNR IMPORTING WMARA = ls_mara EXCEPTIONS OTHERS = 0.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.