RW_SUBST_CONTABLE is a standard Executable ABAP Report 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 RW_SUBST_CONTABLE into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
WSUBST_CONTAB - Edit Substitution Assignments
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 Entries in the Assignment Table
Selection Text: SO_SPL_S = D .
Selection Text: SO_RPL_S = D .
Selection Text: SO_REA_S = D .
Selection Text: SO_ITM_S = D .
Selection Text: SO_ITM_O = D .
Selection Text: SO_DOC_S = D .
Selection Text: SO_DOC_O = D .
Selection Text: SO_DAT_S = D .
Selection Text: SO_CTRL = D .
Selection Text: SO_CRE_S = D .
Selection Text: SO_MAT_S = Substitute Material
Selection Text: SO_MAT_O = Original Material
Selection Text: DEL_ITEM = Delete Items
Title: Selection Entries in the Assignment Table
Text Symbol: 308 = Created on
Text Symbol: 307 = Created on
Text Symbol: 306 = Created on
Text Symbol: 305 = Created on
Text Symbol: 250 = Are you sure that you want to delete all items in the assignment table?
Text Symbol: 240 = Are you sure that you want to delete the items from the assignment table?
Text Symbol: 230 = Are you sure that you want to delete the selected items?
Text Symbol: 220 = Delete Items
Text Symbol: 210 = Selection
Text Symbol: 200 = Selection Parameters
Text Symbol: 112 = Update assignment table
Text Symbol: 111 = Delete Items
Text Symbol: 100 = Successful Substitutions
Text Symbol: 002 = No
Text Symbol: 001 = Yes
INCLUDE RW_SUBST_CONTABLE_TOP. " GLOBAL DATA
INCLUDE RW_SUBST_CONTABLE_SELECTION. " SELECTION SCREEN
INCLUDE RW_SUBST_CONTABLE_F01. " FORM ROUTINES
INCLUDE RW_SUBST_CONTABLE_PAII01. " PAI PROCESS
No SAP DATABASE tables are accessed within this REPORT code!
WSUBST_REQUEST_CONTAB_RANGE CALL FUNCTION 'WSUBST_REQUEST_CONTAB_RANGE' EXPORTING it_docno_orig = so_doc_o[] it_docitem_orig = so_itm_o[] it_matnr_orig = so_mat_o[] it_docno_subst = so_doc_s[] it_docitem_subst = so_itm_s[] it_matnr_subst = so_mat_s[] it_sup_plant = so_spl_s[] it_rec_plant = so_rpl_s[] it_ernam = so_cre_s[] it_subst_date = so_dat_s[] it_subst_reason = so_rea_s[] it_subst_ctrl = so_ctrl[] IMPORTING et_contable = gt_contable EXCEPTIONS no_data_found = 1 OTHERS = 2.
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-220 text_question = text-250 text_button_1 = text-001 text_button_2 = text-002 default_button = '1' display_cancel_button = gc_no start_column = 32 start_row = 12 IMPORTING answer = l_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-220 text_question = text-240 text_button_1 = text-001 text_button_2 = text-002 default_button = '1' display_cancel_button = gc_no start_column = 32 start_row = 12 IMPORTING answer = l_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.
WSUBST_DELETE_CONTABLE CALL FUNCTION 'WSUBST_DELETE_CONTABLE' EXPORTING it_contable = gt_contable IMPORTING et_deleted_items = lt_deleted_items et_no_deleted_items = lt_no_deleted_items et_messages = lt_messages.
LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'WSUBST_CONTAB' CHANGING ct_fieldcat = lt_fieldcat.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RW_SUBST_CONTABLE - Selection Entries in the Assignment Table RW_SUBST_CONTABLE - Selection Entries in the Assignment Table RW_FRET_AND_ACTIVITY_STATE_UPD - Updating of Table FRET and Allocation Table Activity Status RW_FRET_AND_ACTIVITY_STATE_UPD - Updating of Table FRET and Allocation Table Activity Status RW_CREATE_PI_DOC - Create Physical Inventory Docs for Unrestricted-Use Stock (Retail) RW_CREATE_PI_DOC - Create Physical Inventory Docs for Unrestricted-Use Stock (Retail)