Posts

Showing posts with the label SAP ERP ABAP

SAP ERP ABAP DEBUGGING

Image
Module Objectives •Define debugging •Describe branching to debugging mode •Define key debugging concepts and functions •Explain the debugging mode •Describe examining/changing variables •Debugging in ADT •Identify breakpoints and watchpoints •Debug internal tables What is Debugging? •Tool used to identify and eliminate errors in ABAP programs •Allows the verification of program logic in a step-by-step manner by examining the results of individual statements Branching to Debugging Mode ABAP Debugging Key Debugging Concepts •Debugger modes •Examining the value of variables •Changing the value of variables •Setting breakpoints •Setting watchpoints •Viewing contents of internal tables Classic Debugging Display Below is the screen shot of how the debugger looks like. Classic Debugging Display Important Debugging Functions Single Step   -Processes the next program line Execute        -Allows the change of data contents during debugging Continue      -Pr...

online Classes of SAP ERP ABAP 7.4 CONTROL STATEMENTS

Image
Module Objectives •Define Relational Operators •Explain Logical Expressions •Describe IF, CASE, SWITCH and COND statements •Explain DO and WHILE loops •Define CHECK, EXIT, and CONTINUE statements for use with loops IF Statement In every Programming language, we need conditional based code in ABAP, we use IF statement when we want to execute certain code based on any condition. for example, if the payment method is selected as credit card we want the particular code to execute and if payment method selects as cash we want some other code to execute. IF statements code Sample Relational Operators in order to compare variables we need some logical and relational operators which we can use to check the conditions and make decisions. for example, if the payment method is equal  Cash then we want the certain code to execute. to check if selected payment type is cash or not we use relational operators. Relational Operators Note: It is recommended to use symbols for relational op...

Online Classes SAP ERP ABAP Data

Image
SAP ERP ABAP 7.4 (Object oriented) DATA •Define variables with the DATA statement •Define constants •Apply type conversions •Explain arithmetic expressions •Perform date calculations •Use parameters (checkboxes and radio buttons) •Create selection screen boxes Predefined Data Types and Their Attributes Predefined Data Types and Their Attributes in SAP ABAP we have many type of data type to hold the value into the variables, from above table you can have a idea about the data type and meaning of datatype. Type-Specific Output below chart will give us the idea about type Specific output. Data Types in ABAP like other programming languages SAP ABAP have data types, which are divided into two categories, Elementary and structured, the Structured is further divided into Structure and internal table. Data Declaration - DATA Statement To store values in any variable we need to do the data declaration, we can only assign a value to a variable if the contain and value have the same datatype. R...

SAP ERP ABAP SIMPLE OUTPUT STATEMENTS

Image
Module Objectives •Explain the WRITE statement •Define text symbols •Use system fields •ABAP Expressions for WRITE Processing Review on How to create an ABAP Program The WRITE Statement Text Symbols Text symbols have the advantage of being translated to different languages depending on the logon language without further coding. After maintenance, save and activate the text symbols. System Fields •System fields are variables filled by the ABAP runtime environment and can be used in an ABAP program to know system statuses. •They should only be accessed on a read-only basis and not modified during runtime. Examples: sy-datum – system date sy-datlo – user local date sy-uname – user name sy-langu – SAP logon language key sy-uzeit – system time sy-timlo – user local time sy-repid – current ABAP program sy-sysid – current SAP system ABAP Expressions for WRITE Processing Using String Templates •String templates enables us to create a new character string out of literal texts and embedded expre...