ERP Database - The Unofficial ERP Knowledge Base

Facebook Twitter del.icio.us Digg it
ERP Database contains a huge collection of articles related to ERP System and Software. Many of the articles are specifically related to SAP. All these ERP/SAP articles are freely available to everyone.

If you would like to submit an article or share any document related to ERP or any specific ERP software. Please mail it to support@erpdb.info. Please make sure that the documents are not copyrighted.
Social Bookmarks:

How to define types and data objects

Print This Post Email This Post Written by admin on Oct 29th, 2007 | Filed under: ABAP, ABAP Programs

REPORT CHAP0101.

* Elementary type character, length 20
DATA CUSTOMER_NAME(25) TYPE C.

* Non-elementary type
TYPES T_NAME(25) TYPE C.
DATA NEW_CUSTOMER_NAME TYPE T_NAME.

* Reference to a data object
DATA VENDOR_NAME LIKE CUSTOMER_NAME.

* Record
DATA: BEGIN OF BOOKING,
ID(4) TYPE C,
FLIGHT_DATE TYPE D,
NAME LIKE CUSTOMER_NAME,
END OF BOOKING.

* Internal table
DATA BOOKING_TABLE LIKE BOOKING OCCURS 100.
———————
ABAPer, mail: abap.community@gmail.com http://www.erpdb.info

Share

If you like this post, you may as well like these too:

  1. ABAP Source Code: Three approaches to define data objects REPORT ZSOURCE0401.* 1. Elementary typesDATA: CUSTOMER_NAME_1(25) TYPE C, VENDOR_NAME_1(25) TYPE C. * 2. Reference to an existing fieldDATA: CUSTOMER_NAME_2(25) TYPE C, VENDOR_NAME_2 LIKE CUSTOMER_NAME_2. * 3. Reference to a non-elementary...
  2. ABAP Programs: Complex Non-Elementary Types and Data Objects REPORT ZSOURCE0408. * Nested recordsTYPES: BEGIN OF ADDRESS, CITY(25), STREET(30), END OF ADDRESS, BEGIN OF PERSON, NAME(25), ADDRESS TYPE ADDRESS, END OF PERSON.DATA RECEIVER TYPE PERSON.RECEIVER-NAME = ‘Smith’.RECEIVER-ADDRESS-CITY = ‘Big...
  3. Define Document Types for Cash Journal Document You can select existing document types for cash journal documents, or define new document types in this activity. You must have document types for the following postings: G/L account postings...
  4. ABAP Source Code: Types, data, constants REPORT ZSOURCE0402.* Type flag defines an abstract typeTYPES FLAG TYPE C. * Field address_flag will allocate space in main memory at runtimeDATA ADDRESS_FLAG TYPE FLAG VALUE ‘X’.* Constants are defined...
  5. ABAP Objects – Class and objects Why do you need ABAP Objects? ABAP Objects oriented programming lets you to be at par with the others as this is better methodology. To understand the recent concept of...
  6. Difference between Master Data, Transaction Data and Customizing Data Customizing Data refers to the customized information for a particular Client. This includes data such as payment terms, discounts, pricing, tolerance limits, etc., which you do not normally change on...
  7. How to Define a Division? A division is used to group materials and services. Division will be assigned to a sales organization. IMG -> Enterprise Structure -> Definition -> Logistic General -> Define, copy, delete,...
  8. How to Define a Distribution Channel? A distribution channel is a mean through which salable materials or services reach the customer. Distribution channel will be assigned to a sales organization. IMG -> Enterprise Structure -> Definition...
  9. How to Define a Sales Organisation? The sales organization is an organizational unit in Logistics that groups the enterprise according to the requirements of sales and distribution. A sales organization is responsible for distributing goods and ...
  10. ABAP Objects: Components of Class in ABAP Objects Components of Class in ABAP Objects DATA – for instance attributes METHODS  – for instance methods EVENTS – for instance events Static components: CLASS-DATA  – for static attributes CLASS-METHODS   –...
  11. DEFINE : ABAP Keyword a day DEFINE Basic formDEFINE macro.EffectDefines a program component (macro) under the name macro . It must consist only of ABAP/4 statements and is expanded at compilation time.A macro should always be...
  12. Define Number Range Intervals for Cash Journal Document You have to define a number range interval for cash journal documents. Each document then receives a unique number that does not clash with the G/L document number. Note: This...



Leave a Reply