SAP Reports / Programs | Basis Components | Basis Components | Table Maintenance Tool(BC-CUS-TOL-TME) SAP BC

RSVIEWGN SAP ABAP Report - Create View Module for View Maintenance (SM30)







RSVIEWGN is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program RSVIEWGN is used to generate maintenance modules for views of type C or H which are entered in table TVDIR...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 RSVIEWGN into the relevant SAP transactions such as SE38 or SE80


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 RSVIEWGN. "Basic submit
SUBMIT RSVIEWGN AND RETURN. "Return to original report after report execution complete
SUBMIT RSVIEWGN 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: TEST = Test mode (display only: 'X')
Selection Text: PARVIEW = Name of view/table
Selection Text: FCODE = Function:
Title: Create View Module for View Maintenance (SM30)
Text Symbol: 032 = Table control function module
Text Symbol: 033 = Table editor function module
Text Symbol: 034 = Table Control FM Program
Text Symbol: 035 = Program for table editor FM
Text Symbol: 036 = *** Error ***: TVDIR entry for
Text Symbol: 037 = ***** T E S T M O D E *****
Text Symbol: 040 = Generation failed.
Text Symbol: 041 = start of generation
Text Symbol: 042 = end of generation
Text Symbol: 043 = Start generation for
Text Symbol: 044 = Function group:
Text Symbol: 045 = Maintenance
Text Symbol: 046 = Overview screen no.
Text Symbol: 047 = with detail screen
Text Symbol: 048 = only overview screen no
Text Symbol: 049 = Last generation of the view:
Text Symbol: 050 = Cancel: first Include:
Text Symbol: 051 = Rename
Text Symbol: 052 = The program Include
Text Symbol: 053 = already exists.
Text Symbol: 054 = Can this Include be overwritten?
Text Symbol: 055 = (otherwise rename first)
Text Symbol: 056 = Overwrite Include
Text Symbol: 059 = Object description error ****
Text Symbol: 060 = Object description updated
Text Symbol: 061 = Message:
Text Symbol: 031 = *** Function <> generate cannot be performed: No function mod
Text Symbol: 001 = Function group
Text Symbol: 002 = CUA interface
Text Symbol: 003 = Text Element
Text Symbol: 004 = Main program
Text Symbol: 005 = Global data declaration
Text Symbol: 006 = View-specific PAI modules
Text Symbol: 007 = View-specific data declarations





Text Symbol: 008 = View-specific FORM routines
Text Symbol: 009 = Main function module
Text Symbol: 010 = Editor function module
Text Symbol: 011 = Program for main FM
Text Symbol: 012 = Program for editor FM
Text Symbol: 013 = Overview screen
Text Symbol: 014 = Detail screen
Text Symbol: 015 = TVDIR entry
Text Symbol: 016 = Generation completed.
Text Symbol: 017 = Generation failed.
Text Symbol: 018 = was created.
Text Symbol: 019 = was deleted.
Text Symbol: 020 = was deleted and
Text Symbol: 021 = Created
Text Symbol: 022 = already exists and
Text Symbol: 023 = has not been changed
Text Symbol: 024 = was modified.
Text Symbol: 025 = could not be
Text Symbol: 026 = genrtd
Text Symbol: 027 = must not be
Text Symbol: 028 = genrtd
Text Symbol: 029 = not found
Text Symbol: 030 = *** Invalid FCODE


INCLUDES used within this REPORT RSVIEWGN

FORM CHECK_INCLUDES USING VALUE(MEMBNAME) VALUE(STRING) RC.


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:

OBJ_GENERATE CALL FUNCTION 'OBJ_GENERATE' EXPORTING IV_OBJECTNAME = XTVDIR-TABNAME IV_OBJECTTYPE = PC_MAINT_MODE IV_MAINT_MODE = 'U' IV_NO_CORRECTION = 'X' EXCEPTIONS OTHERS = 5.

OBJ_GENERATE CALL FUNCTION 'OBJ_GENERATE' EXPORTING IV_OBJECTNAME = XTVDIR-TABNAME IV_OBJECTTYPE = PC_MAINT_MODE IV_MAINT_MODE = 'U' IV_NO_CORRECTION = 'X' EXCEPTIONS OTHERS = 5.

OBJ_GENERATE CALL FUNCTION 'OBJ_GENERATE' EXPORTING IV_KORRNUM = ' ' IV_OBJECTNAME = TVDIR-TABNAME IV_OBJECTTYPE = TVDIR-BASTAB IV_MAINT_MODE = 'U' IV_NO_CORRECTION = 'X' EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING DEFAULTOPTION = 'N' DIAGNOSETEXT1 = 'Das Programminclude'(052) DIAGNOSETEXT2 = MEMBNAME DIAGNOSETEXT3 = 'ist schon vorhanden.'(053)

RS_PROGNAME_SPLIT CALL FUNCTION 'RS_PROGNAME_SPLIT' EXPORTING PROGNAME_WITH_NAMESPACE = NAME IMPORTING NAMESPACE = NAMESPACE PROGNAME_WITHOUT_NAMESPACE = NO_NAMESPACE * etc.



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