Middle level entry

At this entry level, you call function modules to control the table maintenance.

Call the function module VIEW_MAINTENANCE.

For this function module, only the table or view name need be specified. The control function module name for the maintenance dialog call is put together and then called.

The function module performs the selection, processing and saving of the data and the interface layout. You must have already performed the following activities yourself before you call VIEW_MAINTENANCE.

  • Authorization check for the table/view
    The function module VIEW_AUTHORITY_CHECK can be used.
  • Lock the table/view
    The function module VIEW_ENQUEUE can be used.
  • Fetching and formatting the required information from the Dictionary
    The function module VIEW_GET_DDIC_INFO can be used.
  • Possibly restricting the data area in dialog
    The function module TABLE_RANGE_INPUT can be used.

At run-time you can influence the maintenance dialog in the following ways:

    • Selection conditions
      You save the selection conditions with which you wish to restrict the data selection in the database in an internal table.
    • Interface
      You can dynamically disactivate functions of the central standard interface SAPLSVIM via an internal table.

Please see the function module documentation in the system for the interface description.

Interface description

Import parameters

  • CORR_NUMBER
    Change request number of the change made, see function module VIEW_MAINTENANCE_CALL documentation
  • VIEW_ACTION
    Action (Display, maintain or transport)
    see function module VIEW_MAINTENANCE_CALL documentation
  • VIEW_NAME
    Name of the table/view to be processed

Export parameters

none

Tables

  • DBA_SELLIST
    Database access selection conditions.

Structure: INCLUDE STRUCTURE VIMSELLIST, see function module VIEW_MAINTENANCE_CALL documentation.

All data which are read for table processing and are created by maintenance, are stored at run-time in the internal table TOTAL.

The table TOTAL has the structure:

    • INCLUDE STRUCTURE <view name> or <table name>
    • INCLUDE STRUCTURE VIMFLAGTAB
  • DPL_SELLIST
    Selection conditions for the display of part of a work area on the maintenance screens.

Structure and documentation as for DBA_SELLIST.

The data are stored at run-time in the internal table EXTRACT. The table EXTRACT always contains only the table records which were filtered out of the table TOTAL as a result of a user action.

The table EXTRACT has the same structure as the table TOTAL

  • EXCL_CUA_FUNCT
    Interface functions which can be dynamically de-activated.

Structure: INCLUDE STRUCTURE VIMEXCLFUN, see function module VIEW_MAINTENANCE_CALL documentation

  • X_HEADER
    Control block table for the view/table.

Structure: INCLUDE STRUCTURE VIMDESC.

The table contains the table or view header information from the Dictionary, such as sub-set, selection conditions, maintenance status, delivery class. The table also contains information about the table or view generation and event times for user form routines. You can fill this table with the function module VIEW_GET_DDIC_INFO.

  • X_NAMTAB
    Control block table for the table/view fields.

Structure: INCLUDE STRUCTURE VIMDESC.

The table contains the table or view field information from the Dictionary, such as structure field positions, key information and maintenance characteristics of the field. You can fill this table with the function module VIEW_GET_DDIC_INFO.

Exceptions

  • MISSING_CORR_NUMBER
    Correction number missing
  • NO_DATABASE_FUNCTION
    Data processing module missing
  • NO_EDITOR_FUNCTION
    Control module missing
  • NO_VALUE_FOR_SUBSET_IDENT
    Sub-set field value missing