- SAP ABAP Advanced Cookbook
- Rehan Zaidi
- 259字
- 2021-08-05 18:21:52
Introduction
This chapter explores recipes related to dynamic programming. Dynamic programming is a very vast topic. It may be simply defined as a technique whose behavior/effect is only evident at execution time. There are many facets of dynamic programming with ABAP. These include generic programming such as dynamic source code generation. Also specifying parts of the Open SQL statements (clauses) dynamically using string variables, and the creation of data objects based on a type known only at runtime are within the dynamic programming landscape. When using dynamic programming, we may also sometimes need to determine the data type of data objects at runtime. This is called Runtime Type Identification (RTTI).
The ABAP language provides a number of features/options for making programs dynamic or to avoid hardcoding of values. We will start with application of field symbols and references. As an example, we will create a program that will take as input the name of a table and print its contents.
Also we will look at some of the ways in which dynamic SQL may be applied to fulfill simple requirements. We will also cover the option of generating ABAP programs at runtime using the INSERT REPORT
statement.
The examples are kept simple in order to emphasize on the dynamic programming concept. We assume that the reader is familiar with basics of SELECT
statement, the CREATE DATA
statement and the concept of field symbols, and the ASSIGN
statement. Also, the knowledge of the cl_abap_datadescr
classes is assumed. Moreover, the knowledge of downcasting (widening cast) is also important.
- Managing IaaS and DBaaS Clouds with Oracle Enterprise Manager Cloud Control 12c
- Mastering System Center Configuration Manager
- Citrix? XenMobile? Mobile Device Management
- Salesforce Essentials for Administrators
- Programming Microsoft Dynamics NAV(Fifth Edition)
- 企業并購審查中的相關市場界定:理論與案例
- 行政單位經濟責任審計實務指南
- 2017年度注冊會計師全國統一考試專用教材(圖解版):審計
- 下一場全球金融危機的到來:明斯基與金融不穩定
- Learn Power Query
- 計量經濟學理論與應用:基于Eviews的應用分析
- Microsoft Dynamics CRM 2016 Customization(Second Edition)
- Managing Virtual Infrastructure with Veeam? ONE?
- 汪博士解讀PMP?考試(第6版)
- 中國重點經濟領域統計分析