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

AM_FORMS SAP ABAP INCLUDE - AMFORMS







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

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Lese Verkaufshilfsmittel-Belege von der Datenbank'(007).

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = c_structure_for_am CHANGING ct_fieldcat = ifieldcat[] EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = c_structure_for_status CHANGING ct_fieldcat = ifieldcat[] EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = repid i_callback_pf_status_set = 'REACT_ON_ALV_CODES_FOR_AM' i_callback_user_command = 'ALV_CALLBACK_FOR_AM' * I_STRUCTURE_NAME = is_layout = pi_layout it_fieldcat = pit_fieldcat[] * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'A' is_variant = isvariant * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = pit_am_data EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = repid i_callback_pf_status_set = 'REACT_ON_ALV_CODES_FOR_AM' i_callback_user_command = 'ALV_CALLBACK_FOR_AM' * I_STRUCTURE_NAME = i_grid_title = sy-title is_layout = pi_layout it_fieldcat = pit_fieldcat[] it_excluding = lt_excluding * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'A' is_variant = isvariant * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 it_except_qinfo = gt_exc
* IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = pit_am_data EXCEPTIONS program_error = 1 OTHERS = 2.

T023T_SINGLE_READ CALL FUNCTION 'T023T_SINGLE_READ' EXPORTING t023t_spras = pi_language t023t_matkl = pi_matkl IMPORTING wt023t = st023t EXCEPTIONS not_found = 1 OTHERS = 2.

MARA_READ CALL FUNCTION 'MARA_READ' EXPORTING i_matnr = pi_matnr i_sprache = pi_language IMPORTING e_makt = pe_makt e_mara = pe_mara EXCEPTIONS no_entry = 1 OTHERS = 2.

ME_EKKO_SINGLE_READ CALL FUNCTION 'ME_EKKO_SINGLE_READ' EXPORTING pi_ebeln = pi_addirdid IMPORTING po_ekko = sekko EXCEPTIONS no_records_found = 1 OTHERS = 2.

EDI_DOCUMENT_TREE_DISPLAY CALL FUNCTION 'EDI_DOCUMENT_TREE_DISPLAY' EXPORTING docnum = pi_am_data-addiidocn * OPEN = EXCEPTIONS no_idoc_found = 1 OTHERS = 2.

EDI_DOCUMENT_TREE_DISPLAY CALL FUNCTION 'EDI_DOCUMENT_TREE_DISPLAY' EXPORTING docnum = pi_am_data-addiidocn * OPEN = EXCEPTIONS no_idoc_found = 1 OTHERS = 2.

EDI_DOCUMENT_TREE_DISPLAY CALL FUNCTION 'EDI_DOCUMENT_TREE_DISPLAY' EXPORTING docnum = pi_am_data-addiidocn * OPEN = EXCEPTIONS no_idoc_found = 1 OTHERS = 2.

EDI_DOCUMENT_TREE_DISPLAY CALL FUNCTION 'EDI_DOCUMENT_TREE_DISPLAY' EXPORTING docnum = pi_am_data-addiidocn * OPEN = EXCEPTIONS no_idoc_found = 1 OTHERS = 2.

EDI_DOCUMENT_TREE_DISPLAY CALL FUNCTION 'EDI_DOCUMENT_TREE_DISPLAY' EXPORTING docnum = pi_am_data-addiidocn * OPEN = EXCEPTIONS no_idoc_found = 1 OTHERS = 2.

ME_DISPLAY_PURCHASE_DOCUMENT CALL FUNCTION 'ME_DISPLAY_PURCHASE_DOCUMENT' EXPORTING i_ebeln = ebeln * I_EBELP = * IMPORTING * E_EKKO = EXCEPTIONS not_found = 1 OTHERS = 2.

WTAD_TWTFMT_READ CALL FUNCTION 'WTAD_TWTFMT_READ' EXPORTING sy_langu = pi_language TABLES i_fb_twtfmt = itwtfmt EXCEPTIONS not_found = 1 OTHERS = 2.

WTAD_TWT_ACTIONT_READ CALL FUNCTION 'WTAD_TWT_ACTIONT_READ' TABLES fet_twt_actiont = itwt_actiont EXCEPTIONS not_found = 1 OTHERS = 2.

DOMAIN_VALUE_GET CALL FUNCTION 'DOMAIN_VALUE_GET' EXPORTING i_domname = 'ADDI_APPL' i_domvalue = dom_value_tmp IMPORTING e_ddtext = dom_text EXCEPTIONS not_exist = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = ratio text = display_text.

DOMAIN_VALUE_GET





CALL FUNCTION 'DOMAIN_VALUE_GET' EXPORTING i_domname = 'ADDI_INVOC' i_domvalue = dom_value_tmp IMPORTING e_ddtext = dom_text EXCEPTIONS not_exist = 1 OTHERS = 2.

WTAD_WTADAB_POST CALL FUNCTION 'WTAD_WTADAB_POST' 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.

WTAD_ADDITIONALS_ORDER_CREATE CALL FUNCTION 'WTAD_ADDITIONALS_ORDER_CREATE' TABLES fxt_wtadab = iwtadab fit_wtadabt = pit_wtadabt * FET_ADDI_ORDERS = * FET_FAULTS_FOUND = * FET_HEAD_CONDITIONS = * FET_ITEM_CONDITIONS = fet_messages = pet_messages.

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.

WTAD_DERIVE_TOTAL_ADDI_STATUS CALL FUNCTION 'WTAD_DERIVE_TOTAL_ADDI_STATUS' TABLES fxt_wtadab = iwtadab.

WTAD_PRESENT_ADDI_MESSAGES CALL FUNCTION 'WTAD_PRESENT_ADDI_MESSAGES' TABLES fit_messages = pit_messages fit_wtadab = pit_wtadab.

POPUP_TO_DECIDE_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_DECIDE_WITH_MESSAGE' EXPORTING * DEFAULTOPTION = '1' diagnosetext1 = 'Bestellungen für Verkaufshilfsmittel erzeugt'(010) * DIAGNOSETEXT2 = ' ' * DIAGNOSETEXT3 = ' ' textline1 = 'Möchten Sie das Protokoll jetzt sehen?'(011) * TEXTLINE2 = ' ' * TEXTLINE3 = ' ' text_option1 = 'Ja'(012) text_option2 = 'Nein'(013) titel = 'Wie soll''s weitergehen?'(015) * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' IMPORTING answer = pe_answer.

CLMA_CLASS_READ CALL FUNCTION 'CLMA_CLASS_READ' EXPORTING classnumber = pi_addiclint IMPORTING classname = pe_class classtype = pe_klart description = pe_kschl EXCEPTIONS class_not_found = 1 OTHERS = 2.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = isvariant i_save = 'A' * IT_DEFAULT_FIELDCAT = IMPORTING e_exit = tmp_exit es_variant = esvariant EXCEPTIONS not_found = 2.

SD_VBFA_READ_WITH_VBELV * call function 'SD_VBFA_READ_WITH_VBELV' * exporting * i_vbelv = pi_vbeln ** I_REFRESH_BUFFER = ** I_BYPASSING_BUFFER = ' ' * tables ** ET_VBFAVB = * et_vbfa = ivbfa * exceptions * record_not_found = 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 AM_FORMS or its description.