Video Lesson 4.13: ABAP Exercise: Flight Information Report Summary

Learn ABAP

Video Lesson 4.13: ABAP Exercise: Flight Information Report Summary

You will be creating a Flight Information report summary using everything you learned in this lesson.

Your assignment is to:

  • Modify the “Flight Report” created earlier so that it shows the Airline Code, No. Flight, Flight Date, Total amount of bookings, Total occupied seats, and Total free seats.
  • Create a structure for the report fields.
  • Make it possible to filter by Airline Code and Flight No.
  • Attach a search help to the input fields filters.




Video Lesson 4.12: ABAP Elementary Search Help

Learn ABAP

Video Lesson 4.12: ABAP Elementary Search Help

This lesson shows how to create an elementary search help as an object in the ABAP dictionary.

An elementary search help defines the standard flow of an input help. You can define the following components of this flow in the search help:

  • Where does the data displayed in the hit list come from (selection method)
  • Which information must be displayed in the dialog box for value selection and in the hit list (search help parameters)
  • Which field contents can be taken into account for hit list selections and which values in the hit list can be returned to the screen fields (search help parameters)
  • Which dialog steps must be executed in the input help (dialog behavior)




Video Lesson 4.11: ABAP Search Helps F4

Learn ABAP

Video Lesson 4.11: ABAP Search Helps F4

This lesson talks about search helps in the ABAP dictionary. Search Helps are useful to display information on the screen for a user to select.

Overview of Search Helps

  • The input help (F4 help) is a standard function of the R/3 System.
  • The user can display the list of all possible input values for a screen field with the input help
  • The possible input values can be enhanced with further information.
  • This standard process can be completely defined by creating a search help in the ABAP Dictionary.
  • There are two types of search help:
  • Elementary Search Helps
  • Collective Search Helps




Video Lesson 4.10: ABAP Loops

Learn ABAP

Video Lesson 4.10: ABAP Loops

This lesson shows how to create loops in ABAP to iterate through a process.

Loops

In a loop, a statement block is executed several times in succession. There are four kinds of loops in ABAP:

  • Unconditional loops using the DO statement.
  • Conditional loops using the WHILE statement.
  • Loops through internal tables and extract data sets using the LOOP statement.
  • Loops through datasets from database tables using the SELECT statement.

Unconditional Loops

  • To process a statement block several times unconditionally, use the following control structure:
  • DO [n TIMES] ...
      [statement_block]
    ENDDO.
  • Use the TIMES addition to restrict the number of loop passes to n.
  • If you do not specify any additions, the statement block is repeated until it reaches a termination statement such as EXIT or STOP.

Video Lesson 4.9: ABAP Logical Expressions

Learn ABAP

Video Lesson 4.9: ABAP Logical Expressions

This lesson shows some of the most common used logical expressions like AND, OR and IF.

Logical Expressions

  • When writing application programs, you often need to formulate conditions.
  • These are used mostly to control the flow of the program, or to decide whether to exit a processing block.
  • You formulate a condition using logical expressions. A logical condition can be either true or false.

Combining Several Logical Expressions (AND, OR)

  • To combine several logical expressions together in one single expression which is true only if all of the component expressions are true, link the expressions with AND.
  • To combine several logical expressions together in one single expression which is true if at least one of the component expressions is true, link the expressions with OR.
  • To negate the result of a logical expression, you can precede it with the NOT operator. → SAP VIDEO



Video Lesson 4.8: ABAP IF statement and CASE

Learn ABAP

Video Lesson 4.8: ABAP IF statement and CASE

This lesson shows how to use the IF statement and the CASE statement for conditioning.

  • In ABAP you have two ways to execute different sequences of statements, depending on certain conditions:
  • In the IF construct you can define any logical expressions as check conditions.
  • You can use nested IF statements, using the ELSEIF clause.
  • You can use the CASE construct to clearly distinguish cases.
  • The content of the field specified in the CASE part is checked against the data objects listed in the WHEN branches to see whether they match.

  • In both constructs the condition or match check happens sequentially from the top down.
  • As soon as the statement block of a branch has been executed, the system immediately jumps to ENDIF or ENDCASE.



Video Lesson 4.7: Dialog Messages

Learn ABAP

Video Lesson 4.7: Dialog Messages

In this lesson you will learn about the different dialog messages that SAP present.

Dialog Messages

  • You use the MESSAGE statement to send dialog messages to the users of your Program.
  • When you do this, you must specify the three digit message number and the message class.

  • Message number and message class clearly identify the message to be displayed.
  • You use the message type to specify where the message is to be displayed.
  • You can test the display behavior for using the different message types by means of the DEMO_MESSAGES demo program that is shipped in the SAP standard.

For further information on the syntactical alternatives to the MESSAGE statement, refer to the keyword documentation.


Video Lesson 4.6: How to create ABAP Structures

Learn ABAP

Video Lesson 4.6: How to create ABAP Structures

In this lesson you will learn how to create ABAP structures and nested structures in the dictionary.

A structure (structured type) comprises components (fields). Types are defined for the components A component can refer to an elementary type (via a data element or by directly specifying the data type and length in the structure definition), another structure or a table type. A structure can therefore be nested to any depth.

You should now be able to:



Video Lesson 4.5: ABAP Structures

Learn ABAP

Video Lesson 4.5: ABAP Structures

This lesson gives you an overview of ABAP structures, what they are and what they are used for.

We will continue with the definition of structured data objects (structure variables). Also, this chapter will teach you how to use basic ABAP statements for structured data objects.

  • In ABAP, you can define structured data objects (called structure variables or simply structures).
  • This allows you to combine values that belong together logically into one data object.
  • Structures can be nested.
  • This means that components can be made up of more structures or even internal tables.
  • In the program, structure variables are defined with the DATA statement, in the same way as elementary data objects.

When you set the types, you can refer to:

  • A Dictionary structure.
  • A transparent table (that is then used as a structure type)
  • a structure type that is declared locally in the program



Video Lesson 4.4: ABAP Calculator

Learn ABAP

Video Lesson 4.4: ABAP Calculator

In this lesson you will use basic ABAP statements like ADD, SUBTRACT and MULTIPLY to perform math calculations.

In ABAP you can program arithmetic expressions nested to any depth. Valid operations include:

  • + Addition
  • - Subtraction
  • * Multiplication
  • / Division
  • ** Exponentiation
  • DIV Integral division without remainder
  • MOD Remainder after integral division