P. 1
ABAP Summary

ABAP Summary

|Views: 10|Likes:
Published by suhradam

More info:

Published by: suhradam on Jan 21, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

07/20/2013

pdf

text

original

ABAP PROGRAM TYPE 1 M F K J S I Reports (Selection Screen, List) Module Pools (Screen) Function Groups / Modules Class Definitions

Interface Definitions Subroutine Pools Includes

PROCESSING BLOCK 1. Dialog Modules. MODULE . END MODULE PBO, PAI, POOL, CHAIN, FIELD 2. Event Blocks For Selection Screen a. PBO PARAMETERS, SELECT-OPTIONS, SELECTION-SCREEN INITIALIZATION AT SELECTION-SCREEN OUTPUT b. PAI AT SELECTION-SCREEN AT SELECTION-SCREEN ON <FIELD> START OF SELECTION END OF SELECTION 3. Events Blocks for LIST. WRITE, NEW-PAGE, ULINE, SKIP, TOP OF PAGE, AT LINE SELECTION, AT USER COMMAND

HOW THE SELECTION SCREEN EXECUTED. INITIALIZATION SELECTION SCREEN AT SELECTION SCREEN START OF SELECTION END OF SELECTION LIST AT LINE SELECTION

INPUT SCREEN

OUTPUT SCREEN

ENDFORM FUNCTION MODULES (FUNCTION GROUPS) CALL INTRODUCED -> CALL FUNCTION -> FUNCTION . ENDMETHOD DECLARATIVE STATEMENTS TYPES DATA TABLES MODULARIZATION STATEMENTS EVENT AT SELECTION SCREEN START OF SELECTION AT USER COMMAND DEFINING FORM ...SUBROUTINE MODULES CALL INTRODUCED -> PERFORM -> FORM . LOOP... SUBMIT. WHILE. : -> CALL METHOD -> METHOD . ENDMODULE CONTROL STATEMENTS IF. CALL. ENDFUNCTION METHODS (CLASS) CALL INTRODUCED CLASS DEFINITION IMPLEMENTATION (METHOD) COMMENTS -> LINE INCLUDE -> CHAINING -> * . ENDFORM FUNCTION ENDFUNCTION MODULE . LEAVE TO . SET USER-COMMAND. CASE CALL STATEMENTS PERFORM..

ANY TABLE.. INDEX TABLE. USING / CHANGING <f> TYPE <type> FORMAL PARAMETERS IN MATHODS MATHODS <meth> IMPORTING/ EXPORTING / CHANGING <f> TYPE <type> FIELD SYMBOL FIELD-SYMBOL <f> TYPE <type> USING WITH TYPES (BELOW CONSTRUCTORS) FOR REFERENCES REF TO <class> / <interface> FOR STRUCTURES BEGIN OF <struct> . ADD DATABASE STATEMENTS OPEN SQL NATIVE SQL TYPE REFERENCES LOCAL PROGRAM TYPES <f> TYPE <type> DATA OBJECTS DATA <f> TYPE <type> CLASS-DATA <f> TYPE <type> CONSTANTS <f> TYPE <type> STATICS <f> TYPE <type> PARAMETERS <f> TYPE <type> DYNAMIC DATA OBJECTS CREATE DATA <f> TYPE <type> FORMAL PARAMETER IN SUBROUTINES FORM <sub> . STANDARD TABLE. END OF <struct> FOR TABLES <tabkind> of <linetype> [WITH <key>] USING WITH TYPE ANY. MOVE.OPERATIONSL STATEMENTS WRITE. TABLE. SORTED TABLE. HASHED TABLE .

but without linking it to a selection screen. screens. You declare them using the CONSTANTS statement. Text symbols. and logical databases. Constants [Page 129] are data objects whose contents cannot be changed. and selection texts. list headings. Text literals Text literals are sequences of alphanumeric characters in the source code of an ABAP program enclosed in single quotation marks. PARAMETERS. CLASS-DATA. belong to the text elements of a program. and RANGES statements. Interface work areas [Page 130] are special variables that serve as interfaces between programs. There are two types of literals: numeric and text. along with the program title. Number literals Numeric literals are sequences of digits which may contain a plus or minus sign. STATICS. They are fully defined by their value.Data Objects Variables [Page 123] are data objects whose contents can be changed using ABAP statements. You declare them using the TABLES and NODES statements. It always has the data type C. . Its field length is that of the text in the text pool. You declare them using the DATA. Literals Literals are unnamed data objects that you create within the source code of a program. SELECTOPTIONS. Variables You can declare variables statically using the following statements: DATA: To declare variables whose lifetime is linked to the context of the declaration STATICS: To declare variables with static validity in procedures CLASS-DATA: To declare static variables within classes PARAMETERS: To declare elementary data objects that are also linked to an input field on a selection screen SELECT-OPTIONS: To declare an internal table that is also linked to input fields on a selection screen RANGES: To declare an internal table with the same structure as in SELECT-OPTIONS. You cannot change the value of a literal. Text Symbols A text symbol is a named data object that is generated when you start the program from the texts in the text pool of the ABAP program.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->