SAP Reports / Programs | Materials Management | Purchasing | Purchase Orders(MM-PUR-PO) SAP MM

WLB14F01 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = g_status_set i_callback_user_command = g_user_command is_layout = g_s_layout it_fieldcat = g_t_fieldcat[] i_save = g_save is_variant = g_variant i_tabname_header = g_tabname_header i_tabname_item = g_tabname_items is_keyinfo = g_s_keyinfo TABLES t_outtab_header = g_t_header t_outtab_item = g_t_items.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = g_variant i_save = g_save i_tabname_header = g_tabname_header i_tabname_item = g_tabname_items IMPORTING e_exit = l_exit es_variant = gx_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant.

MD_CALC_RESTRICTIONS CALL FUNCTION 'MD_CALC_RESTRICTIONS' EXPORTING i_bopnr = g_t_header-bopnr i_kzrefresh = 'X' TABLES t_restri = l_t_restri t_restri_plus = l_t_restri_plus EXCEPTIONS restriction_not_found = 1 OTHERS = 99.

MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING kzrfb = ' ' maxtz = 0 matnr = g_t_items-matnr sperrmodus = ' ' std_sperrmodus = ' ' IMPORTING wmara = l_mara EXCEPTIONS lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = l_mtcom IMPORTING matdaten = l_makt return = l_mtcor TABLES seqmat01 = l_t_dummy EXCEPTIONS OTHERS = 99.

MARC_SINGLE_READ CALL FUNCTION 'MARC_SINGLE_READ' EXPORTING matnr = g_t_items-matnr werks = g_t_items-werks IMPORTING wmarc = l_marc EXCEPTIONS lock_on_marc = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.

T001W_SINGLE_READ CALL FUNCTION 'T001W_SINGLE_READ' EXPORTING t001w_werks = g_t_items-werks IMPORTING wt001w = l_t001w EXCEPTIONS not_found = 1 OTHERS = 2.

ENQUEUE_E_WBO1 CALL FUNCTION 'ENQUEUE_E_WBO1' EXPORTING mode_wbo1 = 'E' mandt = sy-mandt bohandle = p_bohandle * x_bohandle = * _SCOPE = '2' * _wait = 'X' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

ENQUEUE_E_WBO2 CALL FUNCTION 'ENQUEUE_E_WBO2' EXPORTING mode_wbo2 = 'E' mandt = sy-mandt bohandle = p_bohandle * SIMDEIND = * X_BOHANDLE = ' ' * X_SIMDEIND = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_E_WBO1 CALL FUNCTION 'DEQUEUE_E_WBO1' EXPORTING mode_wbo1 = 'E' mandt = sy-mandt bohandle = p_bohandle * X_BOHANDLE = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' EXCEPTIONS OTHERS = 0.

DEQUEUE_E_WBO1 CALL FUNCTION 'DEQUEUE_E_WBO1' EXPORTING mode_wbo1 = 'E' mandt = sy-mandt bohandle = p_bohandle * x_bohandle = * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' EXCEPTIONS OTHERS = 0.

DEQUEUE_E_WBO2 CALL FUNCTION 'DEQUEUE_E_WBO2' EXPORTING mode_wbo2 = 'E' mandt = sy-mandt bohandle = p_bohandle * SIMDEIND = * X_BOHANDLE = ' ' * X_SIMDEIND = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' EXCEPTIONS OTHERS = 0.

MD_CONVERT_MATERIAL_UNIT CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = g_t_items-matnr i_in_me = g_t_items-basme i_out_me = g_t_items-bstme i_menge = g_t_items-ponormal IMPORTING e_menge = g_t_items-ponormal_in_bstme EXCEPTIONS error_in_application = 1 OTHERS = 2.

MD_CONVERT_MATERIAL_UNIT CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = g_t_items-matnr i_in_me = g_t_items-basme i_out_me = g_t_items-resme i_menge = g_t_items-ponormal IMPORTING e_menge = g_t_items-ponormal_in_resme EXCEPTIONS error_in_application = 1 OTHERS = 2.

MD_CONVERT_MATERIAL_UNIT CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = g_t_items-matnr i_in_me = g_t_items-basme i_out_me = g_t_items-bstme i_menge = g_t_items-poproinv IMPORTING e_menge = g_t_items-poproinv_in_bstme EXCEPTIONS error_in_application = 1 OTHERS = 2.

MD_CONVERT_MATERIAL_UNIT CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = g_t_items-matnr i_in_me = g_t_items-basme i_out_me = g_t_items-resme i_menge = g_t_items-poproinv IMPORTING e_menge = g_t_items-poproinv_in_resme EXCEPTIONS error_in_application = 1 OTHERS = 2.

MD_CONVERT_MATERIAL_UNIT CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = g_t_items-matnr i_in_me = g_t_items-basme i_out_me = g_t_items-bstme i_menge = g_t_items-poinvbuy IMPORTING e_menge = g_t_items-poinvbuy_in_bstme EXCEPTIONS error_in_application = 1 OTHERS = 2.

MD_CONVERT_MATERIAL_UNIT





CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = g_t_items-matnr i_in_me = g_t_items-basme i_out_me = g_t_items-resme i_menge = g_t_items-poinvbuy IMPORTING e_menge = g_t_items-poinvbuy_in_resme EXCEPTIONS error_in_application = 1 OTHERS = 2.

MD_CONVERT_MATERIAL_UNIT CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = g_t_items-matnr i_in_me = g_t_items-basme i_out_me = g_t_items-bstme i_menge = g_t_items-qtyonhnd IMPORTING e_menge = g_t_items-qtyonhnd_in_bstme EXCEPTIONS error_in_application = 1 OTHERS = 2.

MD_CONVERT_MATERIAL_UNIT CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = g_t_items-matnr i_in_me = g_t_items-basme i_out_me = g_t_items-bstme i_menge = g_t_items-qtyonord IMPORTING e_menge = g_t_items-qtyonord_in_bstme EXCEPTIONS error_in_application = 1 OTHERS = 2.

MD_CONVERT_MATERIAL_UNIT CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = g_t_items-matnr i_in_me = g_t_items-basme i_out_me = g_t_items-bstme i_menge = l_i_menge IMPORTING e_menge = l_e_menge EXCEPTIONS error_in_application = 1 OTHERS = 2.

MD_CONVERT_MATERIAL_UNIT CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = g_t_items-matnr i_in_me = g_t_items-basme i_out_me = g_t_items-bstme i_menge = g_t_items-curweksa IMPORTING e_menge = g_t_items-curweksa_in_bstme EXCEPTIONS error_in_application = 1 OTHERS = 2.

MD_CONVERT_MATERIAL_UNIT CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = g_t_items-matnr i_in_me = g_t_items-basme i_out_me = g_t_items-resme i_menge = g_t_items-ponorinv IMPORTING e_menge = g_t_items-ponorinv_in_resme EXCEPTIONS error_in_application = 1 OTHERS = 2.



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