• Home
  • About me
  • FALV
  • ALV Grid in the nutshell
    • Basic Information
    • Field catalog
  • Articles
    • Tricks
    • FALV (Fast ALV Grid)
    • ALV Grid in the nutshell
    • Tips
    • How to...
    • For beginners
    • Thoughts
  • By Topic
    • ALV
    • ALV OO
    • SALV
    • GOS
    • Selection screen
    • Purchase Requisitions
    • Purchase Orders
    • Attachments
    • Others
    • Characteristics
    • Sample Programs
    • ZIP
    • OLE
    • Mails
    • Routings
    • EWB
    • Excel
  • Keywords
  • RSS
  • Download
  • Home
  • Articles
  • FALV (Fast ALV Grid)

ZDEMO_FALV02 - Full screen with redefinitions

Details
Łukasz Pęgiel
FALV (Fast ALV Grid)
05 January 2016
Hits: 11263
Tags: FALV
The latest version of each part of FALV can be found on github repository https://github.com/fidley/falv which you can use in abapGit for easier up to date handling. 
 
Second demo program shows how to use FALV when you want to use event handlers by your own. 
"All" events are handled so you just need to redefine proper method starting from evt_*
 

"! This is demo for FALV with redefinition of hotspot event handler
"! done by Lukasz Pegiel for http://abapblog.com
report zdemo_falv02.

data: sflight type standard table of sflight.


class lcl_test definition inheriting from zcl_falv.
  public section.

  protected section.
    "redefinition of event handler
    methods evt_hotspot_click redefinition.
  private section.

endclass.

class lcl_test implementation.

  method evt_hotspot_click.
    case e_column_id-fieldname.
      when 'SEATSMAX'.
        call function 'POPUP_DISPLAY_MESSAGE'
          exporting
            titel = 'Hotspot is working'   " Title
            msgid = '00'
            msgty = 'I'
            msgno = '001'
            msgv1 = 'Yupi!'.
    endcase.
  endmethod.

endclass.

start-of-selection.

  select * up to 100 rows
  into corresponding fields of table @sflight
  from sflight.

  "creation of falv with local redefinition
  data falv type ref to lcl_test.
  falv ?= lcl_test=>create( exporting  i_subclass = cl_abap_classdescr=>describe_by_name( p_name = 'LCL_TEST' )
                              changing ct_table = sflight    ) .

  "Add hotspot to column 'SEATSMAX'
  falv->column( 'SEATSMAX' )->set_hotspot( abap_true ).
  "Add title variable
  falv->title_v1 = 'ZDEMO_FALV02'.
  "Display full screen grid
  falv->display( ).

Add a comment
Read more ...

ZDEMO_FALV01 - Standard full screen FALV

Details
Łukasz Pęgiel
FALV (Fast ALV Grid)
05 January 2016
Hits: 15806
Tags: FALV
The latest version of each part of FALV can be found on github repository https://github.com/fidley/falv which you can use in abapGit for easier up to date handling. 
 
First demo shows how fast and simple is to use FALV. A table is passed to factory method , title is updated and then full screen grid displayed
 

"! This is demo for FALV standard fast call
"! done by Lukasz Pegiel for http://abapblog.com
report zdemo_falv01.

data: sflight type standard table of sflight.


start-of-selection.


  select * up to 100 rows
  into corresponding fields of table @sflight
  from sflight.

  "FALV creation with only table passed
  data(falv) = zcl_falv=>create( changing ct_table = sflight ).

  "Add title variable
  falv->title_v1 = 'ZDEMO_FALV01'.
  "Display full screen grid
  falv->display( ).

The result of this program looks like REUSE_ALV_GRID_DISPLAY
 
Add a comment

FALV (Fast ALV Grid)

Details
Łukasz Pęgiel
FALV (Fast ALV Grid)
04 January 2016
Hits: 102182
Tags: FALV
 
Finally I've finished to work under FALV. You can find FALV classes in attachment and description under the links. But firstly let's go through few following points:
 
  1. Why I've created FALV although SALV classes are provided by SAP?

    I know SALV classes although I haven't used them often. The main reason was that they don't provide edit mode. So at the end I've always worked with cl_gui_alv_grid class so then whenever users decided that they need one of the field to be editable then I can do it in few seconds/minutes.
     
  2. But there is a way to make SALV editable!

    Yes, I know the solutions of Naimesh Patel (found here) and Paul Hardy (in his ABAP to the Future book) and some other folks to make SALV editable. But In my own opinion, especially when you're at least on 7.40 with SP5 making SALV editable is not needed as you can fast create ALV Grid which does everything you want. To be clear the big advantage of SALV, to call grid output of table in two, three lines when you goes to the code you'll see it's nothing more than call of REUSE_ALV_GRID_DISPLAY... really old FM, which at the end use CL_GUI_ALV_GRID.
     
  3. Direct reasons
     
    As I used CL_GUI_ALV_GRID so often then I came up with an idea to do some class which will make the creation faster, but I never had time to do it at work. You may know it, because of the time pressure you choose to create report/program/solution in the way you're doing from years ... and then comes another task....and another....

    So I've decided to do it at home.... yeah I'm crazy. But at least some of you can also use it.
     
  4. Advantages
     
    • Fast CL_GUI_ALV_GRID creation
    • Replacement of REUSE_ALV_GRID_DISPLAY and REUSE_ALV_GRID_DISPLAY_LVC for a simple editable reports to omit screen creation
    • All events are already handled and with redefinition of method I can faster use it
    • Faster setting of layout and field catalog attributes 
    • Easy switch and copy between popup, full screen and container version
    • Easy toolbar handling (in grid and in full screen/popup using Dynamic GUI STATUS & TITLE with ABAP code )
    • One place to handle user commands of full screen/popup call -> event user_command 
  5. Prerequisites

    I've worked on this on 7.40 SP8 but this should work also on SP5 as well. Sorry for the users bellow that versions but I'm so used to use new syntax that I couldn't force myself to use old way of coding.

    UPDATE: Thanks to Santi Moreno we have now 7.31 version, you can find it here as an attachment ZFALV_V1.1.0.zip. Also GitHub repository is now available here https://github.com/fidley/falv so if you'd like to join us, you're more than welcomed.
     
  6. Outcome
 
The outcome of this work is following:
  • Package ZFALV
    • Classes
      • ZCL_FALV - main class, inheriting from CL_GUI_ALV_GRID
      • ZCL_FALV_LAYOUT - layout class
      • ZCL_FALV_COLUMN - column (fcat) class
      • ZCL_FALV_DYNAMIC_STATUS - dynamic GUI status for full screen display
    • Function Group
      • ZFALV - screens, GUI STATUSES, TITLE, FMs for ZCL_FALV, local classes
    • Demo Programs
      • ZDEMO_FALV01 - FALV: Demo Simple Full Screen Call
      • ZDEMO_FALV02 - FALV: Demo with Redefinitions
      • ZDEMO_FALV03 - FALV: Demo Full Screen GUI Status Dynamic Partly
      • ZDEMO_FALV04 - FALV: Demo Full Screen GUI Status Dynamic Fully
      • ZDEMO_FALV05 - FALV: Demo Full Screen ALV Toolbar
      • ZDEMO_FALV06 - FALV: Demo Full Screen Layout
      • ZDEMO_FALV07 - FALV: Demo Full Screen Columns
      • ZDEMO_FALV08 - FALV: Demo Mass Replace Function
      • ZDEMO_FALV09 - FALV: Demo Cell Settings
      • ZDEMO_FALV10 - FALV: Demo Colors
      • ZDEMO_FALV11 - FALV: Demo Editable
      • ZDEMO_FALV12 - FALV: Demo Error Log
      • ZDEMO_FALV13 - FALV: Mix Demo + own screen and container usage
      • ZDEMO_FALV14 - FALV: Popup calls
 
I really encourage you to try it and give me your feedback about FALV.
 
Cheers
Łukasz
Add a comment

FALV (Fast ALV Grid) - First blood

Details
Łukasz Pęgiel
FALV (Fast ALV Grid)
28 December 2015
Hits: 12946
Tags: CL_GUI_ALV_GRID , FALV , REUSE_ALV_GRID_DISPLAY , REUSE_ALV_GRID_DISPLAY_LVC
On one of my last tweets I have mentioned, that I'm working currently on some fast ALV Grid creation class. I know that we have SALV classes which does many of this what I'm trying to achieve here but, many doesn't mean everything. Especially that I really like CL_GUI_ALV_GRID class and this that without any tricks I can make it editable in easy way. 
 
My class in not yet finished but it has already some basic functions available, that's why I'm presenting you just short demo and some screen-shots of the code. I will of course put a nugget here as fast as I'll finish more than alpha release. 
 
Basically what I try to get from this class:
 
  • Fast CL_GUI_ALV_GRID creation
  • Replacement of REUSE_ALV_GRID_DISPLAY and REUSE_ALV_GRID_DISPLAY_LVC for a simple editable reports to omit screen creation
  • All events should be already handled and with redefinition of method I can faster use it
  • Faster setting of layout and field catalog attributes 
  • Easy switch and copy between popup, full screen and container version
  • Easy toolbar handling (in grid and in full screen/popup using Dynamic GUI STATUS & TITLE with ABAP code )
  • One place to handle user commands of full screen/popup call -> event user_command 
 
At the end of the work I'll be able to say: "I've made really good, unnecessary work! " :-)
Add a comment
Read more ...
Page 3 of 3
  • Start
  • Prev
  • 1
  • 2
  • 3
  • Next
  • End


Łukasz Pęgiel
ALV GRID IN THE NUTSHELL AT SELECTION-SCREEN OUTPUT Delete Routing - piece of cake OUTLOOK APPLICATION AUTOMATIC LOGON DATE FIELDCATALOG Mass replace popup for ALV grid PERIOD AND CONVERT OUTPUT FALV GUI ALV GRID ALV GRID TIMER CTMS DDB SET VALUE INTERNAL ZDEMO FALV05 - Adding Removing Disabling grid toolbar GET SELECTED ROWS Free global data of a program at once COC1 FEATURE CHECK FALV14 - Popup calls CURRENCY COMP REQUIREMENT VRM VALUES ALV Grid in the nutshell Field catalog - icon Field catalog LVC FCAT ESRUO SALV UTIL Field catalog - tabname MB51 Scan program for authority-check Enhanced MB51 Part 5 - Export from MB51 CREATE VARIANT ECLIPSE PLUGIN DESCRIBE NAME APPEND USER SETTINGS CMD API SYM SCAN ABAP-SOURCE Custom selection-screen fields for MD07 MS07 #EC REUSE DISPLAY Field catalog - currency TECH READ OBJECTS ABAP STRUCTDESCR ADT Field catalog - no convext OLE2 OBJECT Classifications - Part 2 - Get Object Details ABAP IN ECLIPSE SAP WebIDE ALV POPUP Field catalog - reprep - ALV control Value is selection criterion for rep rep intf FALV Fast ALV Grid - First blood CONVEXIT TVCPLAP PROCESS CUST REJECTION ALLOWED SBCS SEND
  • Laserowe usuwanie blizn Tychy
  • Laserowe usuwanie zmarszczek Tychy
  • Salon Kosmetyczny Tychy
  • Trycholog Tychy
  • Wypadanie włosów Tychy
Tweets by abapblog

Eclipse Plugins for ABAP

ABAP Favorites

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client

ABAP ADT Extensions

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client

ABAP Quick Fixes

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client

 

Latest Articles

  • ABAP in Eclipse - Install, Configure, Use, and Enhance Your ADT
  • ALV Grid in the nutshell: Field catalog - col_id - ALV control: Column ID
  • ALV Grid in the nutshell: Field catalog - dfieldname – Fieldname for column group
  • ALV Grid in the nutshell: Field catalog - Hotspot - ALV control: SingleClick-sensitive
  • ALV Grid in the nutshell: Field catalog - sp_group - Group key
  • ALV Grid in the nutshell: Field catalog - domname - Domain name
  • ALV Grid in the nutshell: Field catalog - reprep - ALV control: Value is selection criterion for rep./rep.intf.
  • ALV Grid in the nutshell: Field catalog - reptext – Heading
  • ALV Grid in the nutshell: Field catalog - lowercase - Lowercase letters allowed/not allowed
  • ALV Grid in the nutshell: Field catalog - intlen - Internal Length in Bytes
  • Downloading Exchange Rates from NBP (National Bank of Poland)
  • Downloading Exchange Rates from Central Bank of Turkey
  • ABAP Extensions - Automatic Logon
  • ALV Grid in the nutshell: Field catalog - inttype - ABAP data type (C,D,N,...)
  • ALV Grid in the nutshell: Field catalog - datatype

Most Read

  • Create XLSX/MHTML file from internal table in background
  • Refresh ALV GRID and keep position and current cell
  • Create XLSX file from internal table in background v2
  • FALV (Fast ALV Grid)
  • ATC Pseudo Comments list
  • Call standard F4 search help with customized parameters
  • Dynamic GUI STATUS & TITLE with ABAP code
  • Create fieldcatalog from internal table
  • Link Attachments of Purchase Requisition to Purchase Order
  • Endless loop in BADI ME_PROCESS_PO_CUST
  • GOS - How to add business documents at creation of object
  • Create a nice looking chart with CL_GUI_CHART_ENGINE - Part 3 - Chart Data and render
  • How to access private or protected data and methods of CL_GUI_ALV_GRID
  • Subtotal lines of ALV GRID OO as content separator
  • How to handle CL_GUI_ALV_GRID events in SALV

Latest Comments

ABAP code and articles provided on http://abapblog.com, if it is not statet otherwise, were created by Łukasz Pęgiel. You can use the code in your SAP instance for commercial and non-commercial use without any warranty from side of the author. You cannot sell the code as a full program or a part of it.
Replicating of the articles and code is prohibited unless the agreement of the author is given to you. 

Bootstrap is a front-end framework of Twitter, Inc. Code licensed under MIT License. Font Awesome font licensed under SIL OFL 1.1.