14.01.2020 Views

ABAP_to_the_Future

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Contents

9.6.3 Custom Frontends ............................................................ 402

9.6.4 Custom Extensions ........................................................... 403

9.7 Summary ....................................................................................... 403

PART III User Interface Layer

10 ALV SALV Reporting Framework .............................................. 407

10.1 Getting Started .............................................................................. 409

10.1.1 Defining a SALV-Specific (Concrete) Class ......................... 410

10.1.2 Coding a Program to Call a Report ................................... 411

10.2 Designing a Report Interface ......................................................... 414

10.2.1 Report Flow Step 1: Creating a Container

(Generic/Optional) ........................................................... 416

10.2.2 Report Flow Step 2: Initializing a Report (Generic) ........... 416

10.2.3 Report Flow Step 3: Making Application-Specific

Changes (Specific) ............................................................ 424

10.2.4 Report Flow Step 4: Displaying the Report (Generic) ........ 435

10.3 Adding Custom Command Icons Programmatically ........................ 441

10.3.1 Creating a Method to Automatically Create a

Container ......................................................................... 442

10.3.2 Changing ZCL_BC_VIEW_SALV_TABLE to Fill

the Container ................................................................... 443

10.3.3 Changing the INITIALIZE Method ..................................... 444

10.3.4 Adding the Custom Commands to the Toolbar ................. 445

10.3.5 Sending User Commands from the Calling Program .......... 446

10.4 Editing Data .................................................................................. 447

10.4.1 Creating a Custom Class to Hold the Standard

SALV Model Class ............................................................ 448

10.4.2 Changing the Initialization Method of

ZCL_BC_VIEW_SALV_TABLE ............................................ 449

10.4.3 Adding a Method to Retrieve the Underlying

Grid Object ...................................................................... 449

10.4.4 Changing the Calling Program .......................................... 450

10.4.5 Coding User Command Handling ...................................... 451

10.5 Handling Large Internal Tables with CL_SALV_GUI_TABLE_IDA ..... 454

10.6 Summary ....................................................................................... 456

11 ABAP2XLSX ............................................................................... 457

11.1 The Basics ...................................................................................... 459

11.1.1 How XLSX Files are Stored ............................................... 459

14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!