SAP Reports / Programs

SDWETTMAT SAP ABAP Report - Display Competitive Products







SDWETTMAT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Displaying competitive products for a product hierarchy The input parameters are the product hierarchy and a material...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 SDWETTMAT 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

VCR1 - Competitive products


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 SDWETTMAT. "Basic submit
SUBMIT SDWETTMAT AND RETURN. "Return to original report after report execution complete
SUBMIT SDWETTMAT 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: INFO_STR = Information structure
Selection Text: P_MAT = Material
Selection Text: P_PRDHA = Product Hierarchy
Title: Display Competitive Products
Text Symbol: 001 = Select by product hierarchy or material
Text Symbol: 002 = Material
Text Symbol: 003 = Product hierarchy
Text Symbol: 004 = Level
Text Symbol: 005 = Short text
Text Symbol: 006 = Competitors
Text Symbol: 007 = Name
Text Symbol: 008 = Competitor
Text Symbol: 009 = Own material
Text Symbol: 010 = Own materials
Text Symbol: 011 = Pot.value
Text Symbol: 012 = Pot.quant.
Text Symbol: 013 = Selection info structure
Text Symbol: 014 = Level/Product Hierarchy/Material
Text Symbol: 015 = Note text
Text Symbol: 016 = Competitor or Own Material/Level/Material
Text Symbol: 017 = Competitor or Own Material


INCLUDES used within this REPORT SDWETTMAT

No INCLUDES are used within this REPORT code!


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:

RV_PRODUKTHIERARCHIE_SHOW CALL FUNCTION 'RV_PRODUKTHIERARCHIE_SHOW' EXPORTING ROOT = GV_PRDHA SELMODE = '4' REFRESH = 'X' DISPLAY = ' ' SPRAS = SY-LANGU SHOW_ONLY = ' ' TABLES DISP_T179 = GT_DISP179 EXCEPTIONS ROOT_NOT_EXIST = 1 TOO_MANY_LEVEL = 2 OTHERS = 3.

RV_PRODUKTHIERARCHIE_INFO CALL FUNCTION 'RV_PRODUKTHIERARCHIE_INFO' TABLES FPRODHSINFO = GT_STUFE EXCEPTIONS TOO_MANY_LEVEL = 1 OTHERS = 2.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING DATE = SYST-DATUM FOREIGN_CURRENCY = C_STWAE LOCAL_AMOUNT = GS2_POTENTIAL-AENETWR LOCAL_CURRENCY = GS2_POTENTIAL-STWAE * RATE = 0 * TYPE_OF_RATE = 'M' IMPORTING * EXCHANGE_RATE = FOREIGN_AMOUNT = FC_AMOUNT * FOREIGN_FACTOR = * LOCAL_FACTOR = * EXCHANGE_RATEX = * DERIVED_RATE_TYPE = * FIXED_RATE = EXCEPTIONS NO_RATE_FOUND = 1 OVERFLOW = 2 NO_FACTORS_FOUND = 3 NO_SPREAD_FOUND = 4 DERIVED_2_TIMES = 5 OTHERS = 6.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING DYNAME = DYNPRO_NAME DYNUMB = DYNPRO_NUMBER TABLES DYNPFIELDS = DYNPRO_FIELDS EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 INVALID_PARAMETER = 7 UNDEFIND_ERROR = 8 OTHERS = 9.

HELP_VALUES_GET_WITH_TABLE_EXT CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE_EXT' EXPORTING FIELDNAME = 'MATNR' TABNAME = 'MARA' IMPORTING INDEX = INDEX SELECT_VALUE = SELECT_VALUE TABLES FIELDS = FIELDS SELECT_VALUES = SELECT_VALUES VALUETAB = VALUE_TAB EXCEPTIONS FIELD_NOT_IN_DDIC = 1 MORE_THEN_ONE_SELECTFIELD = 2 NO_SELECTFIELD = 3 OTHERS = 4.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING DYNAME = DYNPRO_NAME DYNUMB = DYNPRO_NUMBER TABLES DYNPFIELDS = DYNPFIELDS EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 UNDEFIND_ERROR = 7 OTHERS = 8.

CALL_BROWSER CALL FUNCTION 'CALL_BROWSER' EXPORTING URL = GT_KUN-KNURL EXCEPTIONS OTHERS = 01.

MCS_TMC7_F4 CALL FUNCTION 'MCS_TMC7_F4' EXPORTING I_MCAPP = LC_MCAPP I_MCINF = LS_POTENTIALANALYSIS-MCINF IMPORTING E_MCANA = LV_MCANA EXCEPTIONS NO_FIELD_SELECTED = 1 OTHERS = 2.

RSTI_REPORT_FIELDS_FIND CALL FUNCTION 'RSTI_REPORT_FIELDS_FIND' EXPORTING E_REPID = LV_MCREPO E_TYPE = 'R' TABLES IT_FIELDS = LT_SELFIELDS EXCEPTIONS OTHERS = 1.

MCS_ANALYSE_CALL CALL FUNCTION 'MCS_ANALYSE_CALL' EXPORTING I_MCINF = LS_POTENTIALANALYSIS-MCINF I_FLG_VIA_SELSCREEN = 'X' TABLES T_SEL = LT_SELOPTION T_FIELDS = LT_SELFIELDS EXCEPTIONS EVALUATIVE_INFO_STRUCTURE = 1 INFO_STRUCTURE_NOT_GENERATED = 2 NO_ANALYSIS_SELECTED = 3 INFO_STRUCTURE_DOES_NOT_EXIST = 4 OTHERS = 5.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING DATE = SYST-DATUM FOREIGN_CURRENCY = PI_STWAE LOCAL_AMOUNT = GS_POTENTIAL-AENETWR LOCAL_CURRENCY = C_STWAE "GS_POTENTIAL-STWAE IMPORTING FOREIGN_AMOUNT = LV_AMOUNT EXCEPTIONS NO_RATE_FOUND = 1 OVERFLOW = 2 NO_FACTORS_FOUND = 3 NO_SPREAD_FOUND = 4 DERIVED_2_TIMES = 5 OTHERS = 6.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING RETFIELD = 'FIELDNAME' DYNPPROG = DYNAME DYNPNR = DYNUMB DYNPROFIELD = 'INFO_STR' VALUE_ORG = 'S' CALLBACK_PROGRAM = DYNAME TABLES VALUE_TAB = IT_INFOTAB EXCEPTIONS OTHERS = 0.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING I_STRUCTURE_NAME = gc_struc1_alv CHANGING CT_FIELDCAT = p_fieldcatalog EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING I_STRUCTURE_NAME = gc_struc2_alv CHANGING CT_FIELDCAT = p_fieldcatalog EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.



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