SAP Reports / Programs

CACS_VIEW_GENERATOR SAP ABAP Report - Program CACS_VIEW_GENERATOR







CACS_VIEW_GENERATOR is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program CACS_VIEW_GEGENRATOR helps developers to create a maintenance dialog for a versioned table...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 CACS_VIEW_GENERATOR 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 CACS_VIEW_GENERATOR. "Basic submit
SUBMIT CACS_VIEW_GENERATOR AND RETURN. "Return to original report after report execution complete
SUBMIT CACS_VIEW_GENERATOR 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: ALLVERS = All Versions
Selection Text: INCLUDE = Include
Selection Text: TABNAME = Table Name
Selection Text: TEXTTAB = Text Table
Selection Text: VIEWNAME = View Name
Title: Program CACS_VIEW_GENERATOR
Text Symbol: 010 = Table does not exist
Text Symbol: 100 = Params
Text Symbol: 101 = Table Name
Text Symbol: 102 = ViewName (Optional)
Text Symbol: 103 = Create text table?
Text Symbol: 104 = Create additional view for all versions?
Text Symbol: 105 = Use which include for versioning?


INCLUDES used within this REPORT CACS_VIEW_GENERATOR

INCLUDE CACS_VIEW_GENERATOR_DEVCLASF01.
INCLUDE CACS_VIEW_GENERATOR_TRANSPOF01.


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:

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' " Check if tab is existing EXPORTING tabname = tabname TABLES dfies_tab = lt_dfies EXCEPTIONS not_found = 1 OTHERS = 2.

TR_ORDER_CHOICE_CORRECTION CALL FUNCTION 'TR_ORDER_CHOICE_CORRECTION' EXPORTING iv_category = 'SYST' iv_cli_dep = ' ' IMPORTING ev_task = lv_task EXCEPTIONS invalid_category = 1 no_correction_selected = 2 OTHERS = 3.

DDUT_TEXTTABLE_GET CALL FUNCTION 'DDUT_TEXTTABLE_GET' EXPORTING tabname = tabname IMPORTING texttable = lv_texttabname.

CACS_CREATE_TEXTTAB CALL FUNCTION 'CACS_CREATE_TEXTTAB' EXPORTING i_maintabname = tabname i_texttabname = lv_texttabname EXCEPTIONS failure = 1 activated_with_warning = 2 OTHERS = 3.

CACS_CREATE_MVIEW CALL FUNCTION 'CACS_CREATE_MVIEW' EXPORTING i_maintabname = tabname i_viewname = viewname EXCEPTIONS not_activated = 1 put_failure = 2 no_structure_for_txttab = 3 no_structure_for_versioning = 4 no_table_information_found = 5 could_not_get_table_structure = 6 OTHERS = 7.

CACS_CREATE_MVIEW CALL FUNCTION 'CACS_CREATE_MVIEW' EXPORTING i_maintabname = tabname i_viewname = viewname_al i_all_versions = 'X' EXCEPTIONS not_activated = 1 put_failure = 2 no_structure_for_txttab = 3 no_structure_for_versioning = 4 no_table_information_found = 5 could_not_get_table_structure = 6 OTHERS = 7.

CACS_CREATE_MDIALOG CALL FUNCTION 'CACS_CREATE_MDIALOG' EXPORTING i_viewname = viewname i_fugr = lv_fugr_name i_authgrp = lv_authgrp i_include = include it_eventforms = lt_eventforms i_request = lv_task EXCEPTIONS not_successful = 1 no_results_for_view = 2 no_table_information_found = 3 no_include_created = 4 inconsistent_include_parameter = 5 OTHERS = 6.

CACS_CREATE_MDIALOG CALL FUNCTION 'CACS_CREATE_MDIALOG' EXPORTING i_viewname = viewname_al i_fugr = lv_fugr_name i_authgrp = lv_authgrp i_request = lv_task EXCEPTIONS not_successful = 1 no_results_for_view = 2 no_table_information_found = 3 no_include_created = 4 inconsistent_include_parameter = 5 OTHERS = 6.



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