Generic Programming

Alles, was irgendwie mit universeller Programmierung zu tun hat. RTTI, RTTS, RTTC, Create Data, Create Table, Field-Symbols, CL_ABAP_TYPEDESCR, CL_ABAP_TYPEDESCR, CL_ABAP_STRUCTDESCR, CL_ABAP_COMPLEXDESCR, CL_ABAP_REFDESCR, CL_ABAP_ELEMDESCR, CL_ABAP_DATADESCR, CL_ABAP_OBJECTDESCR, CL_ABAP_INTFDESCR, CL_ABAP_CLASSDESCR

Generic class for inserting, updating and deleting records

Purpose of this class is to store and process records that need to be modified in database tables. When the user is working on an object that contains header and detail records, a ‚Save‘ means that records need to be modified in different tables. Imagine that the application shows a grid where the user can insert, update and delete records; the logic for saving these changes can be a bit complex.

This class should provide the necessary functions for this kind of functionality. It holds a table with the database tables and records that we need to update. Methods are available to add entries to this table and this means that during a process, the required database updates are collected until the actual database update takes place. When the application has finished the process, it calls the method that performs the database update.

http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP+OO+-+Generic+class+for+inserting%2C+updating+and+deleting+records

Advanced and Generic Programming in ABAP

Weiterführende Links und Hilfen findest du unter den Stichworten

  • RTTI – Run Time Type Information
  • RTTS – Run Time Type Services
  • RTTC – Run Time Type Creation

http://zevolving.com/2008/09/dynamic-internal-table-creation/

image_pdfimage_print