You are on page 1of 4

p39 to output text, use WRITE command to write data to new line item, use new-line command p70

abap does not differentiate between upp and lower case It has become customary to write keywords in uppercase; operands in lowercase. Statement ends with . Pretty Printer - converting cases (Tools: Settings: ABAP Editor; Pretty Printer) P71 Lines that begin with * in first column is a comment line " indicated that the remainder of hte line is a comment Statements with the same beginning can be combined into one statement by: writing hte indentical beginning part of the statement, followed by a colon after the colon, list the end parts of the statement (seperated by commas) Blank space and line breaks are allowed Simply represents a simplified form of syntax, no performance improvement (each statement is executed individually) P75 se38 - create program p85 Active\inactive versions If you start a program using transaction SE38, the active version is used. By contrast, the inactive version can be loaded to the editor by using F8. A temporary runtime object is generated and executed. In this way, it is possible to continue developing a program without changing the currenct system status. All changes to the program become visible only when activated. p100 standard datatypes: d - date (yyyymmdd t - time hhmmss i - integer(4) f - floating point (8) string - dynamic length string xstring - dynamic length byte sequence (hex string) datatypes without a fixed length; a length must be specified c - char n - number x - byte sequence p - packed number p101 types - declare local data types (used to define variables) TYPES gty_c_type(3) TYPE c.

local type gty_c_type, len - 3, type = c datatypes defined in the ABAP dictionary is global data types; can be used throughout the entire system p103 Data objects are defined using DATA keyword Standard types, local types or global types can be used eg: TYPES qty_percentage TYPE p LENGTH 3 DECIMALS 2. DATA: percentage1 TYPE qty_percentage, percentage2 TYPE qty_percentage, number1 Type i VALUE 17 If no length is specified then the default length will be used: for types C, N, X - 1 for type X - 8 p105 literals - fixed value items (do not use) constants - define using keyword CONSTANTS Value property must be defined; text in '' p109 to set values of variables equal; use move or = eg move gd_var1 to gd_var2. or gd_var2 = gd_var1. if a data type conflict accurs, a type conversion is carried out automatically CLEAR = reset a specific item p110 arithmetic expressions van be used + - Addition - - subtraction * - multiply / - divide ** - exponentional DIV - integral division without decimal MOD - remainted after integral division parentheses and operators must be seperated for other words by at leat one space strlen - returns the length of a specific string for detailed information, search COMPUTE statement p119 log_exp - logical expression; return true or false ABAP does not have a boolean data type logical expression cannot be assignt to data object used for formulating conditions in control statements can be used with AND, OR, NOT operators p123 logical expresssions:

if elseif else endif. case whene when when others endcase. p134 Debugging breakpoint can be set at specific point before program in executed else a specific function can be debugged start the program without debugger Choose System, utilities, debugging ABAP afer program has been started or /h in toolbar, enter step by step debugging is possible data for specific data objectsvan be displayed by entering hte name of the object in the variable display area p138 watchpoints can be set; like a breakpoint but is triggered when the value of the object changes p148 do enddo. do n times enddo. while endwhile. sy-index contains number of times steps within a loop was executed. p150 system fields: sy-mandt - logon client sy-uname - user name sy-langu - user language sy-datum - local date sy-uzeit - local time sy-tcode - curr tcode sy-index - loop step count sy-subrc - return code of last executed abap statement MESSAGE - display message to user message class: i- info message s - set message w - warning e - error a - termination x - shortdump (message_type_x is triggered)

p177 selection screens are not defined in screen painter, but is generated automatica lly based on selection items. completed selection screens can be saved as variants for reuse or background ope ration. p181 input variables are defined using the PARAMETERS statement input variable defined the same way as ordinary variable, except the PARAMETERS keyword is used, not DATA. Defaults values are not assigned using VALUE addition, but by using the DEFAULT addition p189 lists - used to output data p200 string functions: concatenate - add string together, seperator can be specified eg concatenate pa_fname pa_iname into gv_name seperated by gv_sep. find - find specific substring replace - replace specific substring split - splitting character string p212 program terminations - review shortdump log using st22 p230 reuse components - add some parts of a program in a subroutie for reuse parameters are used to exchange data between subroutine and main program subroutines are defined using the following syntax: form calc_perc. endform. p247 subroutines are executed using hte perform statement. eg perform calc_perc using param1 param changing gv_erg. --(output value)

You might also like