WTPR_BUYING 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 WTPR_BUYING 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!
WTAD_ADDI_ACTION_DERIVE call function 'WTAD_ADDI_ACTION_DERIVE' exporting fi_addifm = pxt_addi_info-addifm fi_addiappl = addi_appl_buying fi_addievent = pi_event * FI_OPERTYPE = '1' fi_ekko = pi_ekko fi_ekpo = pi_uekpo importing fe_addi_follow_up_action = stwt_action exceptions addifm_irrelevant = 1 others = 2.
WTAD_WTADAB_ENTRIES_GENERATE call function 'WTAD_WTADAB_ENTRIES_GENERATE' exporting application = addi_appl_buying event = pi_addievent username = sy-uname datecr = sy-datum timecr = sy-uzeit tables fit_addi_info = pet_addi_info fxt_wtadab = pet_wtadab fxt_wtadabt = pet_wtadabt.
WTAD_COMPILE_IDOC_KEY_ENTRIES call function 'WTAD_COMPILE_IDOC_KEY_ENTRIES' exporting fi_retrieve_ref_data = ' ' tables fit_wtadab = iwtadab_tmp fit_wtadabt = pit_wtadabt fet_addi_info = iaddi_info fet_addi_idoc_keys = iaddi_keys fxt_ekko = iekko fxt_uekpo = pit_ekpo fxt_ueket = pit_eket.
MASTERIDOC_CREATE_WTADDI call function 'MASTERIDOC_CREATE_WTADDI' exporting application = '99' tables pit_addi_idoc_keys = iaddi_keys pit_addi_info = iaddi_info.
MASTERIDOC_CREATE_WTADDI call function idoc_create_fb "'MASTERIDOC_CREATE_WTADDI' * CvB/99A ) exporting application = addi_appl_buying event = pi_addi_event destination_locnr = idoc_destination create_idoc_in_update_task = pi_update_task_flag pi_ekko = pi_ekko pi_ekko_old = pi_ekko_old tables pit_addi_idoc_keys = iaddi_keys pit_addi_info = iaddi_info pit_ekpo = pit_ekpo pit_ekpo_old = pit_ekpo_old pit_eket = pit_eket pit_eket_old = pit_eket_old exceptions no_key_data_provided = 1 no_additionals_provided = 2 others = 3.
WTAD_ADDIS_IN_BUYING_POST_EXEC call function 'WTAD_ADDIS_IN_BUYING_POST_EXEC' in update task exporting fi_addievent = g_addievent_buy fi_ekko = pi_ekko fi_ekko_old = pi_ekko_old tables fit_addi_info = gt_addi_info_buy fit_addi_idoc_keys = gt_addi_idoc_keys_buy fit_addi_suppliers = gt_addi_supps_buy fit_wtadab = gt_wtadab_buy fit_wtadab_old = gt_wtadab_buy_old fit_wtadabt = gt_wtadabt_buy fit_wtadabt_old = gt_wtadabt_buy_old fit_ekpo = pit_ekpo fit_ekpo_old = pit_ekpo_old fit_eket = pit_eket fit_eket_old = pit_eket_old exceptions general_error = 1 others = 2.
WTAD_TWTCTRL_READ call function 'WTAD_TWTCTRL_READ' tables i_fb_twtctrl = itwtctrl exceptions not_found = 1 others = 2.
WTAD_TWTCTRL_READ call function 'WTAD_TWTCTRL_READ' exporting kzrfb = ' ' fi_provide_action_oper = 'X' fi_provide_ris_oper = ' ' tables i_fb_twtctrl = pet_twtctrl exceptions not_found = 1 others = 2.
WTAD_DERIVE_TOTAL_ADDI_STATUS call function 'WTAD_DERIVE_TOTAL_ADDI_STATUS' tables fxt_wtadab = pxt_wtadab.
MATERIAL_UNIT_CONVERSION call function 'MATERIAL_UNIT_CONVERSION' exporting input = input_quant kzmeinh = 'X' matnr = pi_matnr meinh = pi_meins importing output = output_quant 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_UNIT_CONVERSION call function 'MATERIAL_UNIT_CONVERSION' exporting input = input_quant * KZMEINH = ' ' matnr = pi_matnr meinh = pi_addivkme * MEINS = ' ' * EXTENDED_CONV = ' ' * TYPE_UMR = ' ' * NO_OUTPUT = ' ' * CHARGE = * CHARG_CUOBJ = * WERKS = importing * ADDKO = * MEINS = output = output_quant * UMREN = * UMREZ = * BATCH_CONVERSION_ERROR = * KZWSO = 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.
WTAD_ADDI_NUMBER_ROUND call function 'WTAD_ADDI_NUMBER_ROUND' exporting fi_addimatnr = pi_addimatnr fi_plant = pi_plant fi_quantity = pe_addiquant importing fe_quantity_rounded = pe_addiquant exceptions mara_single_read_error = 1 marc_single_read_error = 2 md_einzelrundung_error = 3 others = 4.
WTAD_ADDI_SUPPLIER_SEARCH call function 'WTAD_ADDI_SUPPLIER_SEARCH' exporting fi_additional = pi_addimatnr fi_addibelnr = pi_addibelnr fi_addiposnr = pi_addiposnr fi_addistunr = pi_addistunr fi_addilfdnr = pi_lfdnr fi_lifnr = pi_ekko_lifnr fi_lifnr_ekorg = pi_lifnr_ekorg fi_addi_ekorg = ekorg fi_werks = pi_ekko_werks tables fet_additional_sources = iaddi_suppliers exceptions additional_is_no_additional = 1 no_additional_supplier_found = 2 supplier_has_no_addi_partners = 3 addi_supplier_not_for_lifnr = 4 others = 5.
WTAD_WTADAB_READ call function 'WTAD_WTADAB_READ' exporting addibelnr = pi_ekko-addnr **!** addistunr = 1 read_wtadabt = 'X' tables iwtadab = pet_wtadab iwtadabt = iwtadabt exceptions db_error = 1 no_additionals_selected = 2 no_extra_text_selected = 3 others = 4.
WTAD_WTADAB_TO_ADDI_INFO call function 'WTAD_WTADAB_TO_ADDI_INFO' tables fit_wtadab = pet_wtadab fit_wtadabt = iwtadabt fxt_addi_info = pet_addi_info.
UNIT_OF_MEASURE_SAP_TO_ISO call function 'UNIT_OF_MEASURE_SAP_TO_ISO' exporting sap_code = pi_addi_info-addivkme importing iso_code = se1addi1-addivkme exceptions not_found = 1 no_iso_code = 2 others = 3.
LANGUAGE_CODE_SAP_TO_ISO call function 'LANGUAGE_CODE_SAP_TO_ISO' exporting sap_code = pit_addi_extra_text-spras importing iso_code = spras_iso exceptions not_found = 1 others = 2.
WTAD_TWTFMT_READ call function 'WTAD_TWTFMT_READ' tables i_fb_twtfmt = itwtfmt exceptions not_found = 1 others = 2.
call function 'CLMA_CLASS_READ' exporting classnumber = pi_clint importing classname = pe_addiclass classtype = pe_addiklart description = pe_addiclass_txt exceptions class_not_found = 1 others = 2.
WTAD_WTADAB_POST call function 'WTAD_WTADAB_POST' in update task tables fit_wtadab = iwtadab fit_wtadab_old = iwtadab_old exceptions db_error_wtadab_ins_failed = 1 db_error_wtadab_upd_failed = 2 db_error_wtadab_del_failed = 3 db_error_wtadabt_ins_failed = 4 db_error_wtadabt_upd_failed = 5 db_error_wtadabt_del_failed = 6 others = 7.
LFA1_SINGLE_READ call function 'LFA1_SINGLE_READ' exporting lfa1_lifnr = pi_lifnr importing wlfa1 = slfa1 exceptions not_found = 1 others = 2.
T024E_SINGLE_READ call function 'T024E_SINGLE_READ' exporting t024e_ekorg = pi_ekorg importing wt024e = st024e exceptions not_found = 1 others = 2.
T001_SINGLE_READ call function 'T001_SINGLE_READ' exporting bukrs = st024e-bukrs importing wt001 = st001 exceptions not_found = 1 wrong_call = 2 others = 3.
WTAD_TWTCTRL_READ call function 'WTAD_TWTCTRL_READ' tables i_fb_twtctrl = itwtctrl exceptions not_found = 1 others = 2.
WTAD_ADDI_NUMBER_DERIVE call function 'WTAD_ADDI_NUMBER_DERIVE' exporting fi_matnr = px_addi_info-matnr fi_addimatnr = px_addi_info-addimat fi_plant = pi_ekpo-werks fi_quantity = qu_input fi_meins = px_addi_info-meins fi_addivkme = px_addi_info-addivkme importing fe_quantity = qu_rounded exceptions material_unit_conversion_error = 1 addi_number_round_error = 2 others = 3.
WTAD_READ_ADDI_4_MATNR call function 'WTAD_READ_ADDI_4_MATNR' exporting matnr = pi_ekpo-matnr flag_addiprass_always = addiprass_always flag_addiprass_promo_only = addiprass_promo_only flag_addiprass_promo_never = addiprass_promo_never read_flag = read_flag read_mamt = 'X' read_variants = ' ' aktnr = pi_ekpo-aktnr * CvB/0998.ALRK139968 (
WTAD_TWT_ACTION_READ call function 'WTAD_TWT_ACTION_READ' tables fet_twt_action = itwt_action exceptions not_found = 1 others = 2.
W_CPO_SLS_DATA_DURING_PO_POST CALL FUNCTION 'W_CPO_SLS_DATA_DURING_PO_POST' EXPORTING i_bposb = bposb IMPORTING E_SERVICE_DATA = pe_frm_service EXCEPTIONS ITEM_LINE_NOT_FOUND = 1 OTHERS = 99.
WTAD_TWT_ACTION_READ call function 'WTAD_TWT_ACTION_READ' tables fet_twt_action = itwt_action exceptions not_found = 1 others = 2.
KNA1_SINGLE_READ call function 'KNA1_SINGLE_READ' exporting * KZRFB = ' ' kna1_kunnr = pi_customer importing wkna1 = skna1 exceptions not_found = 1 others = 2.
LANGUAGE_CODE_SAP_TO_ISO call function 'LANGUAGE_CODE_SAP_TO_ISO' exporting sap_code = skna1-spras importing iso_code = laiso exceptions not_found = 1 others = 2.
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 WTPR_BUYING or its description.