SAP Reports / Programs | Logistics - General | Additionals Management(LO-ADM) SAP LO

AEMM_FORMS SAP ABAP INCLUDE - FORM routines for editing additionals in the material master







AEMM_FORMS 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 AEMM_FORMS 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 AEMM_FORMS. "Basic submit
SUBMIT AEMM_FORMS AND RETURN. "Return to original report after report execution complete
SUBMIT AEMM_FORMS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: FORM routines for editing additionals in the material master


INCLUDES used within this REPORT AEMM_FORMS

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:

CLMA_CLASS_READ_INTERNAL ** call function 'CLMA_CLASS_READ_INTERNAL' ** exporting ** classname = pxt_wtaddi_edit-class ** classtype = pxt_wtaddi_edit-klart ** importing ** classnumber = pxt_wtaddi_edit-clint ** exceptions ** class_not_found = 1 ** others = 2.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' EXPORTING matnr = pit_wtaddi_edit-addimat IMPORTING wmara = mara_data EXCEPTIONS lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

T134_SINGLE_READ call function 'T134_SINGLE_READ' EXPORTING t134_mtart = mara_data-mtart IMPORTING wt134 = it134 EXCEPTIONS not_found = 1 others = 2.

WTAD_CHECK_4_EMPTY_EDIT_ROW call function 'WTAD_CHECK_4_EMPTY_EDIT_ROW' EXPORTING line_no = current_row IMPORTING flag = flag TABLES iwtaddi_edit = pit_wtaddi_edit EXCEPTIONS others = 0.

WTAD_FIND_LINE_WITH_CURSOR call function 'WTAD_FIND_LINE_WITH_CURSOR' EXPORTING tc_top_line = pi_tc_top_line IMPORTING row_index = row_index TABLES iwtaddi_edit = pxt_wtaddi_edit EXCEPTIONS others = 0.

WTAD_DESCRIBE_IWTADDI call function 'WTAD_DESCRIBE_IWTADDI' EXPORTING line_no = row_index TABLES iwtaddi_edit = pxt_wtaddi_edit EXCEPTIONS others = 0.

WTAD_GET_NEXT_MTXID call function 'WTAD_GET_NEXT_MTXID' EXPORTING current_mtxid = iwtaddi_et-addimtxid IMPORTING next_mtxid = mtxid TABLES iwtaddi_edit = pxt_wtaddi_edit EXCEPTIONS no_free_number = 1 others = 2.

WTAD_EDIT_EXTRA_TEXT call function 'WTAD_EDIT_EXTRA_TEXT' EXPORTING status = pi_status mtxid = mtxid iwtaddi_et = iwtaddi_et TABLES imamt = pxt_mamt EXCEPTIONS others = 0.

WTAD_READ_ADDI_4_MATNR call function 'WTAD_READ_ADDI_4_MATNR' EXPORTING matnr = pi_matnr read_flag = pi_read_flag read_mamt = ' ' read_variants = pi_read_variants_flag TABLES iwtaddi = pet_wtaddi EXCEPTIONS wrong_call = 1 db_error = 2 others = 3.

WTAD_POST_ADDITIONALS call function 'WTAD_POST_ADDITIONALS' EXCEPTIONS db_failure = 1 others = 2.

WTAD_READ_ADDI_4_MATNR call function 'WTAD_READ_ADDI_4_MATNR' EXPORTING matnr = rmmg1_ref-matnr read_flag = addi_read_flag_matnr read_variants = ' ' " do NOT read variants of a TABLES " generic article! iwtaddi = iwtaddi EXCEPTIONS wrong_call = 1 db_error = 2 others = 3.

WTAD_REF_MAT_HANDLING call function 'WTAD_REF_MAT_HANDLING' EXPORTING fi_ref_matnr = rmmg1_ref-matnr fi_new_matnr = mara-matnr TABLES fxt_wtaddi = iwtaddi fxt_mamt = tmamt EXCEPTIONS others = 0.

WR20_READ_TWRF16 call function 'WR20_READ_TWRF16' EXPORTING i_bgapp = addi_appl_in_twrf16 TABLES o_twrf16 = itwtpc EXCEPTIONS no_entries_found = 1 others = 2.

WTAD_TWTFM_READ call function 'WTAD_TWTFM_READ' TABLES i_fb_twtfm = itwtfm EXCEPTIONS not_found = 1 others = 2.

WTAD_TWTFMP_READ call function 'WTAD_TWTFMP_READ' TABLES i_fb_twtfmp = itwtfmp EXCEPTIONS not_found = 1 others = 2.

ICON_CREATE call function 'ICON_CREATE' EXPORTING name = addi_zusatztext_icon text = '' info = addi_zusatztext_qit add_stdinf = 'X' IMPORTING result = addi_zusatztext EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 others = 3.

WTAD_REF_MAT_HANDLING call function 'WTAD_REF_MAT_HANDLING' EXPORTING fi_ref_matnr = pi_matnr_reference_data-matnr fi_new_matnr = pi_mara-matnr TABLES fxt_wtaddi = pet_wtaddi fxt_mamt = pxt_mamt.

WTAD_IWTADDI_2_IWTADDI_EDIT call function 'WTAD_IWTADDI_2_IWTADDI_EDIT' EXPORTING matnr = pi_mara-matnr TABLES iwtaddi = pet_wtaddi iwtaddi_edit = pet_wtaddi_edit EXCEPTIONS others = 1.

WTAD_DESCRIBE_IWTADDI





call function 'WTAD_DESCRIBE_IWTADDI' TABLES iwtaddi_edit = iwtaddi_edit EXCEPTIONS others = 1.

WTAD_APPEND_EMPTY_ROWS_TO_ITAB call function 'WTAD_APPEND_EMPTY_ROWS_TO_ITAB' EXPORTING status = addi_edit_status tc_looplines = number_of_tc_lines matnr = mara-matnr TABLES iwtaddi_edit = iwtaddi_edit EXCEPTIONS others = 0.

MGW1_VARIANTS_READ_GEN_ARTICLE call function 'MGW1_VARIANTS_READ_GEN_ARTICLE' EXPORTING mgw1_generic_article = pi_matnr TABLES mgw1_variants = pet_matnr EXCEPTIONS no_configuration_parameters = 1 dialog_interrupt = 2 others = 3.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' EXPORTING matnr = pi_matnr IMPORTING wmara = wmara EXCEPTIONS lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

MGW1_VARIANTS_READ_GEN_ARTICLE call function 'MGW1_VARIANTS_READ_GEN_ARTICLE' EXPORTING mgw1_generic_article = wmara-satnr TABLES mgw1_variants = pet_matnr EXCEPTIONS no_configuration_parameters = 1 dialog_interrupt = 2 others = 3.

WTAD_IWTADDI_2_IWTADDI_EDIT call function 'WTAD_IWTADDI_2_IWTADDI_EDIT' EXPORTING matnr = pi_matnr TABLES iwtaddi = pit_wtaddi iwtaddi_edit = pxt_wtaddi_edit EXCEPTIONS others = 0.

DYNP_VALUES_READ call function 'DYNP_VALUES_READ' EXPORTING dyname = 'SAPLAEMM' dynumb = sy-dynnr TABLES dynpfields = scr_fields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 others = 9.

WTAD_VALUE_REQUEST_KLART call function 'WTAD_VALUE_REQUEST_KLART' CHANGING klart = klart EXCEPTIONS cancelled = 1 no_values = 2 others = 3.

DYNP_VALUES_UPDATE call function 'DYNP_VALUES_UPDATE' EXPORTING dyname = 'SAPLAEMM' dynumb = sy-dynnr TABLES dynpfields = scr_fields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 others = 8.

DYNP_GET_STEPL call function 'DYNP_GET_STEPL' IMPORTING povstepl = scr_fields-stepl EXCEPTIONS stepl_not_found = 1 others = 2.

DYNP_VALUES_READ call function 'DYNP_VALUES_READ' EXPORTING dyname = 'SAPLAEMM' dynumb = sy-dynnr TABLES dynpfields = scr_fields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 others = 9.

WR20_READ_TWRF16 call function 'WR20_READ_TWRF16' EXPORTING i_bgapp = addi_appl_in_twrf16 TABLES o_twrf16 = itwtpc EXCEPTIONS no_entries_found = 1 others = 2.

WTAD_VALUE_REQUEST_CLASS call function 'WTAD_VALUE_REQUEST_CLASS' EXPORTING klart = klart CHANGING class = class EXCEPTIONS cancelled = 1 no_values = 2 others = 3.

DYNP_VALUES_UPDATE call function 'DYNP_VALUES_UPDATE' EXPORTING dyname = 'SAPLAEMM' dynumb = sy-dynnr TABLES dynpfields = scr_fields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 others = 8.

DYNP_GET_STEPL call function 'DYNP_GET_STEPL' IMPORTING povstepl = scr_fields-stepl EXCEPTIONS stepl_not_found = 1 others = 2.

SMEINH_MEINH_HELP call function 'SMEINH_MEINH_HELP' exporting * DISPLAY = ' ' * p_matnr = rmmg1-matnr p_matnr = mara-matnr importing meinh = addivkme exceptions others = 0.

CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING INPUT = scr_fields-fieldvalue LANGUAGE = SY-LANGU IMPORTING OUTPUT = scr_fields-fieldvalue.

DYNP_VALUES_UPDATE call function 'DYNP_VALUES_UPDATE' EXPORTING dyname = 'SAPLAEMM' dynumb = sy-dynnr TABLES dynpfields = scr_fields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 others = 8.

PROMOTION_CHECK_READ call function 'PROMOTION_CHECK_READ' EXPORTING pi_aktnr = pi_aktnr pi_nopos = 'X'" just the header IMPORTING pe_i_wakh = swakh EXCEPTIONS promotion_not_found = 1 item_not_found = 2 article_not_found = 3 others = 4.

PROMOTION_ON_ARTNR_ME_FIND call function 'PROMOTION_ON_ARTNR_ME_FIND' EXPORTING ffldat = pi_promo_date fartnr = pi_matnr * Note 614539- Begin * foffs = addi_promo_range_days foffs = l_addi_promo_range_days * Note 614539- End date_type = 'V'" sales date range IMPORTING faktnr = promo_no TABLES fwakh = iwakh EXCEPTIONS promotion_not_found = 1 storetype_wrong = 2 others = 3.




WTAD_WTADAB_READ call function 'WTAD_WTADAB_READ' EXPORTING addibelnr = iwakh-addibelnr matnr = pi_matnr read_wtadabt = pi_read_wtadabt TABLES iwtadab = iwtadab iwtadabt = iwtadabt EXCEPTIONS db_error = 1 others = 2.

MATERIAL_READ_VAR_TAB call function 'MATERIAL_READ_VAR_TAB' EXPORTING imp_satnr = pi_mara_matnr TABLES exp_var_tab = ivariants EXCEPTIONS wrong_satnr = 1 others = 2.

MATERIAL_READ_VAR_TAB call function 'MATERIAL_READ_VAR_TAB' EXPORTING imp_satnr = mara-matnr TABLES exp_var_tab = ivartab EXCEPTIONS wrong_satnr = 1 others = 2.

WTAD_TWTFMA_READ call function 'WTAD_TWTFMA_READ' TABLES i_fb_twtfma = itwtfma EXCEPTIONS not_found = 1 others = 2.

STRUC_ART_KEY_TODO call function 'STRUC_ART_KEY_TODO' EXPORTING pi_matnr = pi_matnr pi_werks = pi_plant pi_attyp = pi_attyp pi_key = pi_sm_transaction IMPORTING pe_headfl = disentangling_flag EXCEPTIONS no_twzla_found = 1 others = 2.

STRUC_ART_DET_COMP call function 'STRUC_ART_DET_COMP' EXPORTING struc_matnr = pi_matnr struc_meinh = pi_unit_of_measure struc_menge = pi_quantity TABLES comp_list = icomponents EXCEPTIONS no_splitting = 1 others = 2.

WTAD_READ_ADDI_4_MATNR call function 'WTAD_READ_ADDI_4_MATNR' EXPORTING matnr = px_ref_matnr read_variants = ' ' TABLES iwtaddi = pet_wtaddi EXCEPTIONS wrong_call = 1 db_error = 2 others = 3.

WTAD_READ_ADDI_4_MATNR call function 'WTAD_READ_ADDI_4_MATNR' EXPORTING matnr = pi_satnr read_variants = ' ' TABLES iwtaddi = pet_wtaddi EXCEPTIONS wrong_call = 1 db_error = 2 others = 3.

MATERIAL_READ_VAR_TAB call function 'MATERIAL_READ_VAR_TAB' EXPORTING imp_satnr = pi_satnr TABLES exp_var_tab = ivar_tab EXCEPTIONS wrong_satnr = 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 AEMM_FORMS or its description.