Functionality The SCHEME_INSTANTIATE function instantiates a schema with the globaldata of the calling program. A schema is a simple, maintainable method for generating text,especially of ABAP programs. A schema can be compared with thedefinition of a regular expression with variables, alternatives, loops,and subschema calls. Schemas strictly distinguish between data collection in the callingprogram and syntax definition in the schema program, so that changescan easily be made to the syntax. The syntax in a schema is relativelyclear, in contrast to combining lines under program control withconcatenate and append. Technique Program /1SAP1/SCMG_s> is generated from schema program s. Foreach schema in s>, it contains a form that performs theinstantiation. The program is only generated again if the schemaprogram or schema parser changes. This technique results in very efficient load times and runtimes forschema instantiations. A form that returns an error message at instantiation is generated forincorrect schemes. As a result, all correct schemes can be correctlyinstantiated, even if the scheme program contains incorrect schemes.Schema Syntax The default control characters are used below, but can be redefined foreach schema program. Schema Program A schema program is an ABAP report created with SE38 containing one ormore schemas. This report has type I(nclude) since schemas do notsatisfy the ABAP syntax.
|