SAP Reports / Programs | Logistics - General | Batches(LO-BM) SAP LO

MVBWBF01 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_EMMARAE CALL FUNCTION 'ENQUEUE_EMMARAE' EXPORTING matnr = mara-matnr EXCEPTIONS foreign_lock = 2 system_failure = 3.

ENQUEUE_EMMBEWE CALL FUNCTION 'ENQUEUE_EMMBEWE' EXPORTING matnr = mara-matnr bwkey = t001w-bwkey EXCEPTIONS foreign_lock = 2 system_failure = 3.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

VBWS_WBEW_VALUATION_GET CALL FUNCTION 'VBWS_WBEW_VALUATION_GET' EXPORTING i_matnr = mbew-matnr i_bwkey = mbew-bwkey TABLES i_wbew = xwbew EXCEPTIONS OTHERS = 1.

VBWS_WBEW_BUFFER_ADJUST CALL FUNCTION 'VBWS_WBEW_BUFFER_ADJUST' EXPORTING wbew_new = wbew TABLES xwbew_new = xwbew EXCEPTIONS OTHERS = 1.

MATERIAL_WRITE_DOCUMENT CALL FUNCTION 'MATERIAL_WRITE_DOCUMENT' EXPORTING objectid = l_objectid tcode = sy-tcode utime = sy-uzeit udate = sy-datum username = sy-uname n_mara = mara o_mara = mara n_marc = marc o_marc = marc n_mare = mare o_mare = mare n_mard = mard o_mard = mard n_mbew = mbew o_mbew = *mbew upd_mbew = u n_mfhm = mfhm o_mfhm = mfhm n_mlgn = mlgn o_mlgn = mlgn n_mlgt = mlgt o_mlgt = mlgt n_mpgd = mpgd o_mpgd = mpgd n_mpop = mpop o_mpop = mpop n_mvke = mvke o_mvke = mvke TABLES icdtxt_material = icdtxt_material xdgesv = xdgesv ydgesv = ydgesv xdmaex = xdmaex ydmaex = ydmaex xdmakt = xdmakt ydmakt = ydmakt xdmape = xdmape ydmape = ydmape xdmarm = xdmarm ydmarm = ydmarm xdmean = xdmean ydmean = ydmean xdmkal = xdmkal ydmkal = ydmkal xdmlan = xdmlan ydmlan = ydmlan xdprow = xdprow ydprow = ydprow xdqmat = xdqmat ydqmat = ydqmat xdungv = xdungv ydungv = ydungv EXCEPTIONS OTHERS = 1.

OPEN_FI_PERFORM_00001250_E CALL FUNCTION 'OPEN_FI_PERFORM_00001250_E' EXPORTING i_mbew_new = mbew i_mbew_old = *mbew upd_mbew = u.

VBWS_BATCHES_VALUATION_FUTURE CALL FUNCTION 'VBWS_BATCHES_VALUATION_FUTURE' EXPORTING i_matnr = mara-matnr i_bwkey = t001k-bwkey i_werks = marc-werks * I_ZKDAT = EXCEPTIONS no_material = 1 no_plant = 2 no_valuation_area = 3 no_variable_valuation = 4 OTHERS = 5.

VBWS_CHARACTERISTICS_FOR_UOM CALL FUNCTION 'VBWS_CHARACTERISTICS_FOR_UOM' EXPORTING i_matnr = mara-matnr i_kzwsm = mara-kzwsm i_read_only = 'X' i_update_flag = ' ' i_init_flag = 'X' i_with_values = 'X' i_with_allowed_values = ' ' i_marm_records = 'X' TABLES e_value = cl_char_value EXCEPTIONS classtype_not_found = 1 classtype_not_active = 2 class_not_found = 3 no_allocations = 4 classification_inconsistent = 5 class_is_locked = 6 object_table_not_defined = 7 class_update_not_possible = 8 characters_not_found = 9 no_qu_view = 10 no_match_to_format = 11 classification_to_be_deleted = 12 OTHERS = 13.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_MESSAGE_WARNING_SMALL' info = text-i01 IMPORTING RESULT = info-icon EXCEPTIONS icon_not_found = 5 outputfield_too_short = 10.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = menge matnr = mara-matnr meinh = info-wsmei IMPORTING output = factor umren = umren umrez = umrez batch_conversion_error = bc_error EXCEPTIONS conversion_not_found = 1 input_invalid = 2 material_not_found = 3 meinh_not_found = 4 meins_missing = 5 no_meinh = 6 output_invalid = 7 overflow = 8 OTHERS = 9.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_SUM' * TEXT = 'Summenzeile' info = text-q01 IMPORTING RESULT = info-atbez EXCEPTIONS icon_not_found = 5 outputfield_too_short = 10.

VBWS_UNITS_OF_MATERIAL CALL FUNCTION 'VBWS_UNITS_OF_MATERIAL' EXPORTING i_matnr = mara-matnr valuation_relevance = 'X' TABLES ws_marm_tab = xmarm EXCEPTIONS wrong_call = 1 no_units = 2 units_not_active = 3.



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