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

WLB14F02 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_LIST_LAYOUT_INFO_SET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_SET' EXPORTING is_list_scroll = l_list_scroll.

REUSE_ALV_LIST_LAYOUT_INFO_SET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_SET' EXPORTING is_list_scroll = l_list_scroll.

POPUP_TO_CONFIRM_LOSS_OF_DATA CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA' EXPORTING textline1 = text-014 textline2 = text-015 titel = text-016 start_column = 18 start_row = 6 IMPORTING answer = l_ja_nein EXCEPTIONS OTHERS = 1.

BAPI_PO_CHANGE CALL FUNCTION 'BAPI_PO_CHANGE' EXPORTING purchaseorder = l_t_po-ebeln poheader = l_s_poheader poheaderx = l_s_poheaderx * POADDRVENDOR = * POADDRVENDORX = TABLES return = l_t_return * POITEM = L_T_POITEM * POITEMX = L_T_POITEMX * POADDRDELIVERY = * POADDRDELIVERYX = poschedule = l_t_poschedule poschedulex = l_t_poschedulex * POACCOUNT = * POACCOUNTX = * POCOND = * POCONDX = .

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = l_menge kzmeinh = c_no matnr = l_t_po_to_create-matnr meinh = g_t_items-bstme meins = g_t_items-basme type_umr = '3' IMPORTING output = l_menge 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 error_message = 9 OTHERS = 99.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = l_t_summen-sum_b kzmeinh = c_no matnr = l_t_summen-matnr meinh = l_t_summen-bstme meins = l_t_summen-basme type_umr = '2' IMPORTING output = l_t_summen-sum_b 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.

VWWS_STORD_DISPATCHER CALL FUNCTION 'VWWS_STORD_DISPATCHER' EXPORTING call_from = '9' no_wf = 'X' item_docu_log_on = 'X' TABLES faults_found = l_t_fehler order_positions = l_t_po_to_create head_partners = l_t_lts EXCEPTIONS error_in_application = 1 no_order_positions = 2 no_document_written = 3 no_external_vendor_given = 4 no_unique_source_of_supply = 5 appl_errors_exist = 6 error_message = 98 OTHERS = 99.

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

MD_SET_RESTRICTIONS CALL FUNCTION 'MD_SET_RESTRICTIONS' TABLES t_restri = l_restri t_restri_plus = l_restri_plus EXCEPTIONS OTHERS = 1.

MD_CHECK_RESTRICTIONS CALL FUNCTION 'MD_CHECK_RESTRICTIONS' EXPORTING i_bopnr = g_t_header-bopnr TABLES t_restri = l_restri EXCEPTIONS OTHERS = 1.

MMPUR_REQUISITION_DISPLAY CALL FUNCTION 'MMPUR_REQUISITION_DISPLAY' EXPORTING im_banfn = g_t_items-ebeln im_bnfpo = g_t_items-ebelp * IM_CHANGE = im_display_only = 'X' EXCEPTIONS no_authority = 1 OTHERS = 99.

ME_DISPLAY_PURCHASE_DOCUMENT CALL FUNCTION 'ME_DISPLAY_PURCHASE_DOCUMENT' EXPORTING i_ebeln = g_t_items-ebeln * I_EBELP = i_enjoy = 'X' * I_PREVIEW = * I_DATA_FROM_BUFFER = * I_BSTYP = i_display_only = 'X' * I_EDIT = ' ' * I_ETENR = * I_DOC_INITIATOR = EXCEPTIONS not_found = 1 no_authority = 2 invalid_call = 3 preview_not_possible = 4 OTHERS = 99.

WLB_DISPLAY_ERROR_LIST CALL FUNCTION 'WLB_DISPLAY_ERROR_LIST' TABLES t_fehler = g_t_fehler.

ME_PO_PRICE_SIMULATION CALL FUNCTION 'ME_PO_PRICE_SIMULATION' EXPORTING i_pricing_data = l_simul_po EXCEPTIONS error_create_po = 1 OTHERS = 2.

ME_PO_PRICE_SIMULATION CALL FUNCTION 'ME_PO_PRICE_SIMULATION' EXPORTING i_pricing_data = l_simul_po EXCEPTIONS error_create_po = 1 OTHERS = 2.

ME_EKKO_SINGLE_READ CALL FUNCTION 'ME_EKKO_SINGLE_READ' EXPORTING pi_ebeln = g_t_items-ebeln * PI_BYPASSING_BUFFER = * PI_REFRESH_BUFFER = IMPORTING po_ekko = l_ekko EXCEPTIONS no_records_found = 1 OTHERS = 2.

ME_EKPO_SINGLE_READ CALL FUNCTION 'ME_EKPO_SINGLE_READ' EXPORTING pi_ebeln = g_t_items-ebeln pi_ebelp = g_t_items-ebelp * PI_BYPASSING_BUFFER = * PI_REFRESH_BUFFER = IMPORTING po_ekpo = l_ekpo EXCEPTIONS no_records_found = 1 OTHERS = 2.

ME_EKET_SINGLE_READ_ITEM CALL FUNCTION 'ME_EKET_SINGLE_READ_ITEM' EXPORTING pi_ebeln = g_t_items-ebeln pi_ebelp = g_t_items-ebelp * PI_BYPASSING_BUFFER = * PI_REFRESH_BUFFER = TABLES pto_eket = l_t_eket EXCEPTIONS err_no_record_found = 1 OTHERS = 2.

ME_PO_PRICE_SIMULATION





CALL FUNCTION 'ME_PO_PRICE_SIMULATION' EXPORTING i_pricing_data = l_simul_po EXCEPTIONS error_create_po = 1 OTHERS = 2.

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING es_list_scroll = l_list_scroll EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING es_list_scroll = l_list_scroll EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING es_list_scroll = l_list_scroll EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_LIST_LAYOUT_INFO_SET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_SET' EXPORTING is_list_scroll = l_list_scroll.

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING language = sy-langu popup_title = '' start_column = 10 start_row = 3 text_object = 'RWVLB014_LIST_INFOTEXT_1' help_modal = 'X'.

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING * DEFAULTOPTION = '1' textline1 = text-040 textline2 = text-041 * TEXTLINE3 = ' ' text_option1 = text-042 text_option2 = text-043 * ICON_TEXT_OPTION1 = ' ' * ICON_TEXT_OPTION2 = ' ' titel = text-044 * START_COLUMN = 25 * START_ROW = 6 cancel_display = ' ' IMPORTING answer = l_answer.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = l_s_log IMPORTING e_log_handle = l_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 99.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = l_log_handle i_s_msg = l_s_msg * IMPORTING * E_S_MSG_HANDLE = * E_MSG_WAS_LOGGED = * E_MSG_WAS_DISPLAYED = EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 99.

BAL_DSP_PROFILE_POPUP_GET CALL FUNCTION 'BAL_DSP_PROFILE_POPUP_GET' IMPORTING e_s_display_profile = l_s_display_profile EXCEPTIONS OTHERS = 99.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = l_s_display_profile i_t_log_handle = l_t_log_handle_oh * I_T_MSG_HANDLE = * I_S_LOG_FILTER = * I_S_MSG_FILTER = * I_T_LOG_CONTEXT_FILTER = * I_T_MSG_CONTEXT_FILTER = * I_AMODAL = ' ' * IMPORTING * E_S_EXIT_COMMAND = EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 99.

MDR1_SIMU_ROUNDING CALL FUNCTION 'MDR1_SIMU_ROUNDING' EXPORTING i_s_general = l_s_general EXCEPTIONS error = 1 bad_params = 2 bad_profil = 3 * *** error_message = 98 => diese EXCEPTION nicht * *** abfangen, sonst wird bei einem Eingabefehlern auf * *** Dynpro 800, der FB mit verlassen!!! OTHERS = 99.

MEXF_BSART CALL FUNCTION 'MEXF_BSART' EXPORTING i_bsart = 'NB' i_bstyp = 'B' IMPORTING * E_BSART = * E_BSAKZ = * E_BSTYP = e_t161 = l_t161 * E_T161T = EXCEPTIONS OTHERS = 99.

BAPI_REQUISITION_CREATE CALL FUNCTION 'BAPI_REQUISITION_CREATE' EXPORTING skip_items_with_error = 'X' IMPORTING number = h_banfn TABLES requisition_items = req_item return = return EXCEPTIONS OTHERS = 0.



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