SAP Reports / Programs | Logistics - General | Logistics Basic Data | Assortment Maintenance(LO-MD-RA-MT) SAP LO

RWARTREPL SAP ABAP Report - Replacement of Article Assignments in Layout Module Versions







RWARTREPL 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 RWARTREPL 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

ARTE - Replace Articles in Layout Modules


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


Text pool values


Replacement of Article Assignments in Layout Module Versions
Selection Text: P_NARTI = New Article
Selection Text: P_GUELT = Version Validity Date
Selection Text: P_AARTI = Old Article
Selection Text: PF_INAKT = Only Planned Versions
Selection Text: PF_BOTH = Both Versions
Selection Text: PF_AKT = Only Released Versions
Title: Replacement of Article Assignments in Layout Module Versions
Text Symbol: T02 = Replace In...
Text Symbol: T01 = Delete In...
Text Symbol: B02 = Status of Layout Module Versions
Text Symbol: B01 = Enter New Article
Text Symbol: 010 = Article Was Deleted
Text Symbol: 004 = Cancel => Do Not Replace, Delete
Text Symbol: 003 = Replace With?
Text Symbol: 002 = Unit of Meas.
Text Symbol: 001 = Confirmation of Change/Cancellation => No Change


INCLUDES used within this REPORT RWARTREPL

INCLUDE SHELF_ARTICLE_SELECTION.


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:

WPLG_AUTHORITY_CHECK CALL FUNCTION 'WPLG_AUTHORITY_CHECK' EXPORTING i_laygr = -laygr i_laymod_var = -lmvar if_artikel_assignment = 'X' EXCEPTIONS no_authority = 1 OTHERS = 2.

SMPO_DISPLAY_MESSAGES CALL FUNCTION 'SMPO_DISPLAY_MESSAGES' TABLES messages = gt_msg.

SMPO_DISPLAY_MESSAGES CALL FUNCTION 'SMPO_DISPLAY_MESSAGES' EXPORTING titlebar = text-001 TABLES messages = gt_msg.

MAP2E_MALG_TO_BAPIE1MALG CALL FUNCTION 'MAP2E_MALG_TO_BAPIE1MALG' EXPORTING malg = CHANGING bapie1malg = gs_items.

MAP2E_MALG_TO_BAPIE1MALG CALL FUNCTION 'MAP2E_MALG_TO_BAPIE1MALG' EXPORTING malg = CHANGING bapie1malg = gs_items.

BAPI_LAYMOD_SAVEREPLICA CALL FUNCTION 'BAPI_LAYMOD_SAVEREPLICA' EXPORTING layout_module = gs_laymod "dummy * TESTRUN = ' ' IMPORTING return = gs_return TABLES items = gt_items_ins .

BAPI_LAYMOD_SAVEREPLICA CALL FUNCTION 'BAPI_LAYMOD_SAVEREPLICA' EXPORTING layout_module = gs_laymod "dummy * TESTRUN = ' ' IMPORTING return = gs_return TABLES items = gt_items_del .

BAPI_LAYMOD_SAVEREPLICA CALL FUNCTION 'BAPI_LAYMOD_SAVEREPLICA' EXPORTING layout_module = gs_laymod "dummy * TESTRUN = ' ' IMPORTING return = gs_return TABLES * items = gt_items_ins2 GB 1638821 items = gt_items_del2 " GB 1638821 .

BAPI_LAYMOD_SAVEREPLICA CALL FUNCTION 'BAPI_LAYMOD_SAVEREPLICA' EXPORTING layout_module = gs_laymod "dummy * TESTRUN = ' ' IMPORTING return = gs_return TABLES * items = gt_items_del2 GB 1638821 items = gt_items_ins2 " GB 1638821 .

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_title = l_title i_selection = 'X' i_tabname = 'GT_NEW_MEIH' it_fieldcat = lt_fcat * IT_EXCLUDING = IMPORTING es_selfield = ls_sfield e_exit = lf_exit TABLES t_outtab = gt_new_meinh .

MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' EXPORTING matnr = i_artnr spras = sy-langu IMPORTING wmakt = ls_makt EXCEPTIONS OTHERS = 3.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_title = l_title i_selection = 'X' * I_ZEBRA = ' ' * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 i_checkbox_fieldname = 'MARK' * I_LINEMARK_FIELDNAME = * I_SCROLL_TO_SEL_LINE = 'X' i_tabname = 'LT_LMTXT' i_structure_name = 'LMV_VV_TEXT' * IT_FIELDCAT = * IT_EXCLUDING = * I_CALLBACK_PROGRAM = * I_CALLBACK_USER_COMMAND = * IS_PRIVATE = IMPORTING * ES_SELFIELD = e_exit = ef_exit TABLES t_outtab = lt_lmtxt.



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