SAP Reports / Programs | Logistics Execution | Shipping(LE-SHP) SAP LE

FV50PF0M SAP ABAP INCLUDE - Copy header fields into delivery from general interface







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

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:

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = *mtcom IMPORTING matdaten = maapv return = mtcor TABLES seqmat01 = xdummy EXCEPTIONS material_not_found = 1 error_message = 1 " interpret err messg as not found sales_not_found = 2.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = *mtcom IMPORTING matdaten = maapv return = mtcor TABLES seqmat01 = xdummy EXCEPTIONS material_not_found = 1 error_message = 1 sales_not_found = 2.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = maepv return = mtcor TABLES seqmat01 = xdummy EXCEPTIONS material_not_found = 1 plant_not_found = 2.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING matnr = lips-matnr meinh = lips-vrkme meins = lips-meins charge = lips-charg werks = lips-werks no_output = 'X' IMPORTING umren = loc_umvkn umrez = loc_umvkz batch_conversion_error = loc_batch_conv_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.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = *mtcom IMPORTING matdaten = mbew return = mtcor TABLES seqmat01 = xdummy EXCEPTIONS material_not_found = 1 batch_not_found = 2 others = 99.

VB_BATCH_DEFINITION CALL FUNCTION 'VB_BATCH_DEFINITION' IMPORTING kzdch = gf_batch_level.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = *mtcom IMPORTING matdaten = mchar return = mtcor TABLES seqmat01 = xdummy EXCEPTIONS material_not_found = 1 batch_not_found = 2 others = 99.

RV_MATERIAL_STATUS_CHECK CALL FUNCTION 'RV_MATERIAL_STATUS_CHECK' EXPORTING fdiakz = charb fmatnr = maapv-matnr fsperrdatum = syst-datum fvbtyp = tvlk-vbtyp fvmsta = maapv-vmsta fvmstd = maapv-vmstd f_set_cursor = 'LIPS-MATNR' if_mstav = maapv-mstav if_mstdv = maapv-mstdv IMPORTING esubrc = lp_subrc etvmst = tvmst EXCEPTIONS tvmst_entry_not_found = 1 tvms_entry_not_found = 2.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = *mtcom IMPORTING matdaten = mt06a return = mtcor TABLES seqmat01 = xdummy EXCEPTIONS material_not_found = 1 sales_not_found = 2.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = *mtcom IMPORTING matdaten = mt06e return = mtcor TABLES seqmat01 = xdummy EXCEPTIONS material_not_found = 1 plant_not_found = 2.

MARD_SINGLE_READ CALL FUNCTION 'MARD_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 matnr = ms_matnr werks = ms_werks lgort = ms_lgort IMPORTING wmard = mard EXCEPTIONS wrong_call = 1 not_found = 2 others = 3.

DDUT_DOMVALUE_TEXT_GET CALL FUNCTION 'DDUT_DOMVALUE_TEXT_GET' EXPORTING name = 'PRUEFUNG' value = iv_pruefung langu = sy-langu texts_only = 'X' IMPORTING dd07v_wa = ls_dd07v EXCEPTIONS not_found = 1 illegal_input = 2 others = 3.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = menge_mtcom IMPORTING matdaten = menge TABLES seqmat01 = xdummy EXCEPTIONS others = 1.



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