This essay has been submitted by a student. This is not an example of the work written by our professional essay writers.
This document describes how a structure descriptions of a table or structure in the ABAP Dictionary is converted to a high level Language such as COBOL , C, RPG and PL/1. If a person wants to know the structure of a table in COBOL or C, we can use this Table Description Generator.
What is Table Description Generator
Table Description Generator generates Structure Description for Higher-Level Programming Language. It generates structure descriptions of tables or structures from the ABAP/4 Dictionary in a higher-level programming language. Depending on the input data, the program generates structure descriptions from the ABAP/4 Dictionary. Those data will be displayed on the screen; it can also be written to a file of the operating system if a file name or a model for the file name is specified. The set of tables to be processed can be defined by entering a table name, by specifying a command file name which is then searched for table names or by specifying an identifier in table TSRCG.
Steps to Generate a Structure Description for Higher Level Language
To Generate a Data Structure, proceed as follows:
Go to Transaction O020 or From Standard SAP Workbench - Choose SAP Menu ®€ Tools ® ABAP Workbench Click on the node Development and then ABAP Dictionary (T Code SE11).
In the ABAP Dictionary® Utilities and then Table Description Generator
A selection screen appears as below
Specify the programming language in which the structure should be generated.
Identify the tables to be included.
Under Table Selection, we can define the tables or structures for which a structure description should be generated.
The meaning of an empty selection condition is different here from the standard (full selection without restrictions); it assumes that the tables are specified with a command file or with an entry in table TSRCG.
If we want to generate the structure descriptions for all the tables of a transport request, we need to enter the Request Number in command file field.
We can enter tables for which structure descriptions should be generated in table TSRCG. These tables can be combined into groups. This is done with a group identifier which forms the key of table TSRCG together with the table name.
Under Output, specify the Path/Location with file name in which the structure descriptions should be written.
If the Path/Location is not defined, the structure descriptions are simply displayed in the standard output screen. Note: Make sure that the file name is not too long (depending on the operating system used).
If we want to generate structure descriptions for more number of tables, we can get the structure description for each table in a separate file.
We must define the Path/Location with file name generically in this case.
The first & in the specified name is replaced by the table name in lowercase and the first * with the table name in uppercase. For example, Structure descriptions are to be generated for tables VBAK and VBAP. If you define the file name D.UNI.*, the output files D.UNI.VBAK and D.UNI.VBAP are generated. If you define d.uni. &, the output files are d.uni.vbak and d.uni.vbap.
Local file system - This flag defines whether the output file is written to the local file system (front end host) or central file system (application server).
In ABAP, the storage area for certain data types starts at even-numbered byte limits or at byte limits divisible by 4 or 8.Consequently, it is sometimes necessary to leave gaps (or "alignments") between two fields of a work area. If the flag is set, dummy fields are generated for these gaps. The description that is generated covers a continuous storage area.
Press F8 or Click ' Execute ' Button
The Structure Description for ' MAKT' table in COBOL language is been generated.
If file name is not defined then, Choose System ® List ® save ® File to download the data structure to your workstation or PC.
We can incorporate these data structures in conversion program.
For most of the SAP data transfer standard programs, SAP has also provided special data structure identifiers. With such an identifier, you can generate a listing of all of the table fields that are required by the data transfer program. You manage these programs in the Data Transfer Workbench. If you have generated your own program to transfer data from an external file, the SAP data structure definition that you require is stored in the data declaration section of the program.
Conversion Programs in ABAP
If your conversion program is written in ABAP, you can use the information from the ABAP Dictionary directly to record the data structure of your tables. The graphic below shows the structures of conversion programs in ABAP and as external programs written in other languages.
Including Table Structures in Conversion Programs: ABAP and Other Languages
© Copyright 2010 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, Open Power, Power PC, Batch Pipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Red books, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, Web Sphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, Meta Frame, Win Frame, Video Frame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.
Java is a registered trademark of Sun Microsystems, Inc.
SAP, R/3, SAP Net Weaver, Duet, Partner Edge, By Design, SAP Business By Design, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, Business Objects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.