SAP Reports / Programs | Materials Management | Inventory Management(MM-IM) SAP MM

RM07DOCS SAP ABAP Report - Material Document List







RM07DOCS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for List of Material Documents This report displays a list of the see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RM07DOCS into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MB59 - Material Doc. List
MB51 - Material Doc. List


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


Text pool values


Selection Text: ARCHIVE = Reread Short Docs In Archive
Selection Text: DATABASE = Database
Selection Text: SHORTDOC = Short Documents
Selection Text: ALV_DEF = D .
Selection Text: BUDAT = D .
Selection Text: BWART = D .
Selection Text: CHARG = D .
Selection Text: KUNNR = D .
Selection Text: LGORT = D .
Selection Text: LIFNR = D .
Selection Text: MATNR = D .
Selection Text: MAT_KDAU = D .
Selection Text: MAT_KDPO = D .
Selection Text: PA_MAA = D .
Selection Text: SOBKZ = D .
Selection Text: USNAM = D .
Selection Text: VGART = D .
Selection Text: WERKS = D .
Selection Text: XBLNR = D .
Title: Material Document List
Text Symbol: 105 = Layout
Text Symbol: 104 = Flat List
Text Symbol: 103 = Hierarchy List
Text Symbol: 001 = Item Data
Text Symbol: 002 = Header Data
Text Symbol: 003 = Display Options
Text Symbol: 005 = Data Source
Text Symbol: 011 = Error reading archive
Text Symbol: 012 = This list may be incomplete
Text Symbol: 013 = Error messages: See end of list
Text Symbol: 014 = Display existing (incomplete) data?
Text Symbol: 015 = Yes
Text Symbol: 016 = No
Text Symbol: 021 = Read MM Documents
Text Symbol: 022 = Read Short Documents
Text Symbol: 023 = Prepare List Output
Text Symbol: 024 = Read MM Documents in Archive
Text Symbol: 025 = Read Archive Info Records





Text Symbol: 026 = Choose an active archive info structure
Text Symbol: 091 = Specification of Database Access for Best Runtime
Text Symbol: 092 = Database Determines Optimum Access
Text Symbol: 093 = Start Off with Material Number
Text Symbol: 094 = Start Off with Posting Date
Text Symbol: 095 = Database access does not match selections
Text Symbol: 101 = POIs with Multiple Account Assignments
Text Symbol: 102 = Read Multiple Account Assignments


INCLUDES used within this REPORT RM07DOCS

INCLUDE RM07DOCS_CONTROL.
INCLUDE RM07DOCS_GENERATED.
INCLUDE RM07ALVI.


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:

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' "n732471 EXPORTING "n732471 name = g_f_name "n732471 state = 'A' "n732471 langu = sy-langu "n732471 IMPORTING "n732471 dd04v_wa = g_s_dd04v_wa. "n732471

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = c_hdb_dbcon_get EXCEPTIONS FUNCTION_NOT_EXIST = 1 OTHERS = 2.

MMIM_ENTRYCHECK_MAIN CALL FUNCTION 'MMIM_ENTRYCHECK_MAIN' TABLES it_matnr = matnr it_werks = werks it_lgort = lgort it_lifnr = lifnr it_kunnr = kunnr it_bwart = bwart it_sobkz = sobkz it_vgart = vgart it_usnam = usnam.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' "n555893 EXPORTING "n555893 funcname = 'FI_CHECK_DATE' "n555893 EXCEPTIONS "n555893 function_not_exist = 1 "n555893 OTHERS = 2. "n555893

FI_CHECK_DATE CALL FUNCTION 'FI_CHECK_DATE' "#EC EXISTS "n555893 EXPORTING "n486477 i_bukrs = space "n486477 i_user = sy-uname "n486477 i_program = g_f_repid "n486477 IMPORTING "n486477 e_return = g_flag_tpcuser "n486477 EXCEPTIONS "n486477 no_authority_prog = 1 "n486477 no_authority_date = 2 "n486477 wrong_parameter = 3 "n486477 OTHERS = 4. "n486477

DB_COMMIT CALL FUNCTION 'DB_COMMIT'. "n732471

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "n732471 EXPORTING "n732471 TEXT = text-021. "Reading MM documents "n732471

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "n732471 EXPORTING "n732471 TEXT = text-022. "Reading short documents "n732471

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = text-102. " reading multe account assignments

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "n732471 EXPORTING "n732471 TEXT = text-023. "Preparing list output "n732471

CJPN_INTERN_TO_EXTERN_CONV CALL FUNCTION 'CJPN_INTERN_TO_EXTERN_CONV' "428530 EXPORTING edit_imp = space int_num = list-ps_psp_pnr IMPORTING ext_num = list-pspid EXCEPTIONS not_found = 1 OTHERS = 2.

READ_NETWORK_NPLNR_VORNR CALL FUNCTION 'READ_NETWORK_NPLNR_VORNR' "215929 EXPORTING "215929 aplzl = list-aplzl "215929 aufpl = list-aufpl "215929 IMPORTING "215929 vornr = list-vornr "215929 EXCEPTIONS "215929 not_found = 1 "215929 OTHERS = 2. "215929

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_interface_check = g_interface_check "n777869 i_callback_program = alv_repid i_callback_pf_status_set = 'SET_STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = alv_layout is_print = alv_print it_fieldcat = fc_hier[] i_default = 'X' i_save = 'A' * is_variant = alv_variant "n1870531 is_variant = variante "n1870531 it_events = gt_events[] "n777869 i_tabname_header = 'HEADER' i_tabname_item = 'LIST' is_keyinfo = alv_keyinfo TABLES t_outtab_header = header[] t_outtab_item = list[] EXCEPTIONS program_error = 1 OTHERS = 2.






DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = 'MARI' TABLES x031l_tab = mariinfo EXCEPTIONS OTHERS = 5.

MIGO_DIALOG CALL FUNCTION 'MIGO_DIALOG' EXPORTING i_action = 'A04' i_refdoc = 'R02' i_notree = 'X' i_no_auth_check = ' ' i_deadend = 'X' i_skip_first_screen = 'X' i_okcode = 'OK_GO' i_mblnr = list-mblnr i_mjahr = list-mjahr i_zeile = list-zeile.

ME_DISPLAY_PURCHASE_DOCUMENT CALL FUNCTION 'ME_DISPLAY_PURCHASE_DOCUMENT' EXPORTING i_ebeln = list-ebeln i_ebelp = list-ebelp i_enjoy = 'X' EXCEPTIONS not_found = 1 no_authority = 2 invalid_call = 3 OTHERS = 4.

REUSE_ALV_LIST_LAYOUT_INFO_SET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_SET' EXPORTING it_sort = sort[].

AC_DOCUMENT_RECORD CALL FUNCTION 'AC_DOCUMENT_RECORD' EXPORTING i_awtyp = 'MKPF' i_awref = awref i_aworg = aworg EXCEPTIONS no_reference = 1 no_document = 2 OTHERS = 3.

MB_GET_SINGLE_MM_MATBEL CALL FUNCTION 'MB_GET_SINGLE_MM_MATBEL' EXPORTING document_number = list-mblnr document_year = list-mjahr TABLES line_items = archive_table EXCEPTIONS index_not_found = 1 no_access_to_archive = 2 no_authority_to_read_archive = 3 OTHERS = 4.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "n732471 EXPORTING "n732471 TEXT = text-024. "Reading MM docs in archive "n732471

MB_GET_MM_MATBEL CALL FUNCTION 'MB_GET_MM_MATBEL' TABLES data_table = archive_documents key_table = maritab message_table = archive_messages EXCEPTIONS no_authority_to_read_archive = 1 check_message_table = 2 index_not_found = 3 OTHERS = 4.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = alv_repid i_callback_pf_status_set = 'SET_STATUS_ARCHIVE_POPUP' it_fieldcat = fc[] i_default = ' ' i_save = ' ' i_screen_start_column = 3 i_screen_start_line = 3 i_screen_end_column = 107 i_screen_end_line = 20 TABLES t_outtab = outtab.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = 'MKPF' TABLES x031l_tab = lt_x031ltemp.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = 'MSEG' TABLES x031l_tab = lt_x031ltemp.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' "n555246 EXPORTING "n555246 funcname = 'CA_WRITE_LOG' "n555246 EXCEPTIONS "n555246 function_not_exist = 1 "n555246 OTHERS = 2. "n555246

CA_WRITE_LOG CALL FUNCTION 'CA_WRITE_LOG' "#EC EXISTS "n555246 EXPORTING "n555246 i_program = g_f_repid "n555246 EXCEPTIONS "n555246 write_error = 1 "n555246 OTHERS = 2. "n555246

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'AS_API_INFOSTRUC_FIND' EXCEPTIONS function_not_exist = 1 OTHERS = 2.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'ASH_MM_MATBEL_READ' EXCEPTIONS function_not_exist = 1 OTHERS = 2.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'AS_API_READ' EXCEPTIONS function_not_exist = 1 OTHERS = 2.

AIND_NAMETAB_GET CALL FUNCTION 'AIND_NAMETAB_GET' EXPORTING I_ARCHINDEX = pa_aistr I_REFFIELDS_ONLY = 'X' TABLES T_NAMETAB = lt_nametab "MAA EhP4 EXCEPTIONS "MAA EhP4 OTHERS = 1. "MAA EhP4

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "n732471 EXPORTING "n732471 TEXT = text-024. "Reading MM docs in archive "n732471

ASH_MM_MATBEL_READ CALL FUNCTION 'ASH_MM_MATBEL_READ' EXPORTING I_ARCHIVEKEY = g_s_as_key-archivekey I_OFFSET = g_s_as_key-archiveofs TABLES eT_MKPF = xmkpf ET_MSEG = xmseg EXCEPTIONS NOT_IN_INFOSTRUCTURE = 1 "n732471 NOT_IN_ARCHIVE = 2 "n732471 NO_INSTRUCTURE_DEFINED = 3 "n732471 OTHERS = 4. "n732471

ASH_MM_MATBEL_READ



CALL FUNCTION 'ASH_MM_MATBEL_READ' EXPORTING i_archivekey = g_s_as_hashed_key-archivekey i_offset = g_s_as_hashed_key-archiveofs TABLES et_mkpf = xmkpf et_mseg = xmseg EXCEPTIONS OTHERS = 4.

MB_GET_MM_MATBEL CALL FUNCTION 'MB_GET_MM_MATBEL' TABLES data_table = archive_documents key_table = maritab message_table = archive_messages EXCEPTIONS no_authority_to_read_archive = 1 check_message_table = 2 index_not_found = 3 OTHERS = 4.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' "n777869 EXPORTING "n777869 titlebar = text-011 "n777869 * show available ( incomplete ) data ? "n777869 text_question = text-014 "n777869 text_button_1 = text-015 "yes "n777869 icon_button_1 = 'ICON_OKAY' "n777869 text_button_2 = text-016 "no "n777869 icon_button_2 = 'ICON_CANCEL' "n777869 default_button = '2' "n777869 display_cancel_button = ' ' "n777869 IMPORTING "n777869 answer = g_flag_answer "n777869 EXCEPTIONS "n777869 OTHERS = 1. "n777869

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' "n777869 EXPORTING "n777869 it_list_commentary = g_t_listheader[]. "n777869

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' "n777869 EXPORTING "n777869 it_list_commentary = g_t_end_of_list[]. "n777869

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "n732471 EXPORTING "n732471 TEXT = text-025. "reading archive info records "n732471

AS_API_READ CALL FUNCTION 'AS_API_READ' EXPORTING I_FIELDCAT = g_f_afcat "n732471 I_SELECTIONS = l_t_frange[] IMPORTING E_RESULT = l_t_result[] EXCEPTIONS PARAMETERS_INVALID = 1 NO_INFOSTRUC_FOUND = 2 OTHERS = 4.

AS_API_READ CALL FUNCTION 'AS_API_READ' EXPORTING I_FIELDCAT = g_f_afcat "n732471 I_SELECTIONS = l_t_frange[] IMPORTING E_RESULT = l_t_as_key[] EXCEPTIONS PARAMETERS_INVALID = 1 NO_INFOSTRUC_FOUND = 2 OTHERS = 4.

AIND_NAMETAB_GET CALL FUNCTION 'AIND_NAMETAB_GET' EXPORTING I_ARCHINDEX = g_s_aind_str1_ais-archindex I_REFFIELDS_ONLY = 'X' TABLES T_NAMETAB = lt_nametab "MAA EhP4 EXCEPTIONS "MAA EhP4 OTHERS = 1. "MAA EhP4

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING I_INTERFACE_CHECK = g_interface_check i_callback_program = alv_repid i_callback_pf_status_set = 'SET_STATUS' i_callback_user_command = 'USER_COMMAND_F4' is_layout = g_s_f4_layout it_fieldcat = g_t_f4_fc i_tabname_header = 'G_T_F4_HEADER' i_tabname_item = 'G_T_F4_ITEM' is_keyinfo = g_s_f4_keyinfo it_sort = g_t_f4_sort TABLES t_outtab_header = g_t_f4_header t_outtab_item = g_t_f4_item EXCEPTIONS OTHERS = 1.

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = g_f_name state = 'A' langu = sy-langu IMPORTING dd04v_wa = g_s_dd04v_wa exceptions others = 1.

AS_API_INFOSTRUC_FIND CALL FUNCTION 'AS_API_INFOSTRUC_FIND' EXPORTING I_FIELDCAT = g_s_aind_str1_fc-archindex IMPORTING E_ALL_FIELDS = g_t_all_fields EXCEPTIONS NO_INFOSTRUC_FOUND = 1 OTHERS = 2.

AIND_NAMETAB_GET CALL FUNCTION 'AIND_NAMETAB_GET' EXPORTING I_ARCHINDEX = pa_aistr I_REFFIELDS_ONLY = 'X' TABLES T_NAMETAB = lt_nametab "MAA EhP4 EXCEPTIONS "MAA EhP4 OTHERS = 1. "MAA EhP4

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = g_s_field_too-rollname state = 'A' langu = sy-langu IMPORTING dd04v_wa = g_s_dd04v_wa exceptions others = 1.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = 'MKPF' TABLES X031L_TAB = g_t_x031l_mkpf EXCEPTIONS OTHERS = 5.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = 'MSEG' TABLES X031L_TAB = g_t_x031l_MSEG EXCEPTIONS OTHERS = 5.

MB_CHECK_MSEG_CONVERSION_DONE CALL FUNCTION 'MB_CHECK_MSEG_CONVERSION_DONE' "n1550000 IMPORTING "n1550000 E_CONVERSION_DONE = g_f_msegex_act. "n1550000

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = def_variante_f4 i_save = 'A' * it_default_fieldcat = IMPORTING e_exit = variant_exit es_variant = def_variante EXCEPTIONS not_found = 2.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = 'A' CHANGING cs_variant = def_variante.

ME_CHECK_T160M CALL FUNCTION 'ME_CHECK_T160M' EXPORTING I_ARBGB = 'M7' I_MSGNR = '393' EXCEPTIONS NOTHING = 0 OTHERS = 1.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = 'A' CHANGING cs_variant = def_variante EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = 'A' CHANGING cs_variant = def_variante EXCEPTIONS not_found = 2.

SUSR_USER_AUTH_FOR_OBJ_GET CALL FUNCTION 'SUSR_USER_AUTH_FOR_OBJ_GET' EXPORTING user_name = sy-uname sel_object = gv_auth_obj TABLES values = lt_values EXCEPTIONS user_name_not_exist = 1 not_authorized = 2 internal_error = 3 OTHERS = 4.



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