RM08RL80 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for A delivery note is suggested in the possible entries help only when the following apply to at least one item in the delivery note: The item meets the selection criteria The corresponding purchasing document is either a purchase order or a scheduling agreement The "goods receipt" indicator is set for the corresponding purchasing document item The "invoice receipt" indicator is set for the corresponding purchasing document item If the "invoice expected" indicator is selected, the corresponding purchasing document item must contain a delivered quantity that is greater than the settled quantity Furthermore, the following must apply: The delivery note number is not blank The corresponding material document exists (therefore not reorganized yet)
If you would like to execute this report or see the full code listing simply enter RM08RL80 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.
Selection Text: SO_WERKS = D Plant
Selection Text: SO_MATNR = D Material
Selection Text: SO_LIFNR = Vendor
Selection Text: SO_IDNLF = D Vendor material number
Selection Text: SO_EBELN = Document number
Selection Text: SO_BUDAT = D Posting date
Selection Text: SO_BLDAT = D Document date
Selection Text: SO_BEDAT = D Document date
Selection Text: PA_XRERW = D Invoice expected
Selection Text: PA_XGERW = D Credit memo expected
Selection Text: PA_XBLNR = Delivery note number
Selection Text: PA_LIFRE = Invoicing party
Selection Text: PA_EXAKT = D Exact
Selection Text: PA_BUKRS = D Company code
Selection Text: PA_AEHNL = D Approx.
Title: Possible Entries for Delivery Note
Text Symbol: 200 = (& selected)
Text Symbol: 130 = Reading material documents: & documents ...
Text Symbol: 120 = Reading delivery note data: &1 of &2 documents ...
Text Symbol: 110 = Reading matchcode data: & entries ...
Text Symbol: 100 = Reading purchasing docs. (header data): & docs ...
Text Symbol: 055 = to continue?
Text Symbol: 054 = Do you want the selection run
Text Symbol: 052 = &1 minute(s) and &2 second(s)
Text Symbol: 051 = Time elapsed since selection start:
Text Symbol: 050 = Selecting the delivery notes
Text Symbol: 023 = Other selections
Text Symbol: 022 = Selections for the purchasing document
Text Symbol: 021 = Selections for the delivery note
Text Symbol: 020 = General selections
Text Symbol: 014 = UoM
Text Symbol: 013 = Open quantity
Text Symbol: 012 = R
Text Symbol: 011 = Material
Text Symbol: 008 = MatYear
Text Symbol: 007 = Curr.
Text Symbol: 006 = Open amount
Text Symbol: 005 = Vendor
INCLUDE: MRM_CONST_COMMON,
MRM_CONST_ME.
No SAP DATABASE tables are accessed within this REPORT code!
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = ls_ekbe-budat foreign_amount = ls_ekbe-wrbtr foreign_currency = ls_ekbe-waers local_currency = ls_ekko-waers IMPORTING local_amount = l_re_wrbtr_be.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = ls_ekbe-budat foreign_amount = ls_ekbe-dmbtr foreign_currency = ls_ekbe-hswae local_currency = ls_ekko-waers IMPORTING local_amount = l_re_wrbtr_be.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' "#EC FB_OLDED EXPORTING titel = text-050 diagnosetext1 = text-051 diagnosetext2 = text * diagnosetext3 = textline1 = text-054 textline2 = text-055 * start_column = 25 * start_row = 6 defaultoption = 'N' IMPORTING answer = antw.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 0 text = text EXCEPTIONS OTHERS = 1.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 0 text = text EXCEPTIONS OTHERS = 1.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 0 text = text EXCEPTIONS OTHERS = 1.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = prozent text = text.
REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = c_repid i_callback_pf_status_set = c_pf_status_set i_callback_user_command = c_user_command is_layout = s_layout it_fieldcat = tab_fieldcat[] it_excluding = tab_extab[] * IT_SPECIAL_GROUPS = GT_SP_GROUP[] * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * i_default = g_default i_save = 'A' is_variant = s_variant it_events = tab_events[] * IT_EVENT_EXIT = i_tabname_header = tabname_header i_tabname_item = tabname_item is_keyinfo = s_keyinfo * IS_PRINT = i_buffer_active = ' ' i_bypassing_buffer = 'X' IMPORTING e_exit_caused_by_caller = l_exit TABLES t_outtab_header = t_delhdr t_outtab_item = t_delpos.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING * I_PROGRAM_NAME = i_internal_tabname = tabname_header i_structure_name = c_alv_hdr_struc_name * I_CLIENT_NEVER_DISPLAY = 'X' CHANGING ct_fieldcat = t_fieldcat[].
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING * I_PROGRAM_NAME = i_internal_tabname = tabname_item i_structure_name = c_alv_pos_struc_name * I_CLIENT_NEVER_DISPLAY = 'X' CHANGING ct_fieldcat = t_fieldcat[].
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = t_events.
REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = 'A' CHANGING cs_variant = s_variant EXCEPTIONS not_found = 2.
MIGO_DIALOG CALL FUNCTION 'MIGO_DIALOG' EXPORTING i_mblnr = s_mkpf_key-mblnr i_mjahr = s_mkpf_key-mjahr.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.