Video Lesson 9.3: Generating A Details List – AT LINE SELECTION

In this lesson you will be able to react to the user double-click on the
basic list with the display of a details list that contains detailed information on the
clicked line (interactive list).

Generating a Details List

  • When the user selects a basic list by means of double-click of function key F2, the ABAP event AT LINE-SELECTION is triggered.
  • You must implement this in your program in the form of a corresponding processing block.
  • You can read the data requested by the user and out put them with the WRITE statement.
  • Hint: If an AT LINE-SELECTION block is implemented in the program, a push button with the magnifying glass symbol also appears above the list.
  • Marking the list row and then choosing this button has the same effect as double-clicking the list row.

Generating Several Details Lists

  • The row selection on the detail list also triggers the AT LINE-SELECTION event.
  • You must be able to determine within this block on which list the current row selection was made so that you can react adequately.
  • You can use the sy-lsind system field for this. This field shows the current list level: 0 for the basic list, 1 for the first details list, and so on.
  • The value of sy-lsind should be used to control processing in the AT LINE-SELECTION block.

Share this on Social Media

Facebook
Twitter
LinkedIn
Pinterest
WhatsApp

Unit 1 – SAP System Architecture

Unit 2 – Object Navigator, Repository and ABAP Programs

Unit 3 – Transparent tables in the ABAP Dictionary

Unit 4 – Basic ABAP statements, ABAP Structures and ABAP Logical Expressions

Unit 5 – ABAP Data Retrieval

Unit 6 – SAP Analysis Tools

Unit 7 – ABAP Subroutines

Unit 8 – ABAP Events

Unit 9 – ABAP User Interface

Unit 10 – Function Modules, Methods, ALV and BAPI

Unit 11 – Adjusting SAP Standard Software

Unit 12 – ABAP Debugger, Selection Screens, and Table Controls

Unit 13 – ABAP Web Dynpro

Unit 14 – Advanced Topics

Unit 15 – Advanced Topics II

Object Oriented (OO) ABAP

ABAP for SAP HANA (Introduction)

OData and SAP Netweaver Gateway