SAP Reports / Programs

RW_SUBST_CONTABLE SAP ABAP Report - Selection Entries in the Assignment Table







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


Transaction Code(s):

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

WSUBST_CONTAB - Edit Substitution Assignments


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


Text pool values


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


INCLUDES used within this REPORT RW_SUBST_CONTABLE

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


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:

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.



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