• 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
  • ALV Grid in the nutshell

ALV Grid in the nutshell: Field catalog - col_id - ALV control: Column ID

Details
Łukasz Pęgiel
ALV Grid in the nutshell
08 June 2020
Hits: 9361
Tags: CL_GUI_ALV_GRID , ALV GRID IN THE NUTSHELL , FIELDCATALOG , LVC_T_FCAT , COL_ID , ALV GRID

Column ID is not really a special field in ALV. It is always filled automatically by ALV and your manual entries are overwritten and set to the same value as COL_POS (Column position).

I’ve prepared a demo program (ZDEMO_AIN_CL46) to show you, how the COL_ID is changing on a base of COL_POS. On the selection screen you can find two radio-buttons.
 

Figure 120 ZDEMO_AIN_CL46 Selection screen

 

When you select the first option - “COL_ID filled”,  the FCAT will be created with manual COL_ID.
 

Add a comment
Read more ...

ALV Grid in the nutshell: Field catalog - dfieldname – Fieldname for column group

Details
Łukasz Pęgiel
ALV Grid in the nutshell
27 April 2020
Hits: 7418
Tags: CL_GUI_ALV_GRID , ALV GRID IN THE NUTSHELL , FIELDCATALOG , LVC_T_FCAT , DFIELDNANE , ALV GRID

I was trying to find an usage of this field in ALV, but I failed. Any of known behaviours of ALV didn’t shown anything on a base of this field.

 

Add a comment
Read more ...

ALV Grid in the nutshell: Field catalog - Hotspot - ALV control: SingleClick-sensitive

Details
Łukasz Pęgiel
ALV Grid in the nutshell
27 April 2020
Hits: 24884
Tags: CL_GUI_ALV_GRID , ALV GRID IN THE NUTSHELL , FIELDCATALOG , LVC_T_FCAT , HOTSPOT , ALV GRID

Hotspot fields are very widely used in ALV, such fields have the behaviour and style of hyperlinks, which means they are triggering the single-click event of ALV called HOTSPOT_CLICK. It is commonly used to show the details of the clicked object, or to move to a transaction in which the object can be modified.

As you can imagine, setting column as a HOTSPOT is very easy, you need to pass only the ABAP_TRUE (‘X’) value to the field catalog, but this will only change the style of the field (content of the field is underlined) and it will fire the HOTSPOT_CLICK event.

Figure 114 Setting column as hotspot

Add a comment
Read more ...

ALV Grid in the nutshell: Field catalog - sp_group - Group key

Details
Łukasz Pęgiel
ALV Grid in the nutshell
18 April 2020
Hits: 12558
Tags: CL_GUI_ALV_GRID , ALV GRID IN THE NUTSHELL , FIELDCATALOG , LVC_T_FCAT , SP_GROUP , ALV GRID

Group key is not widely used but it has nice feature. Once you group the field catalog fields and you pass the group name into parameter IT_SPECIAL_GROUPS of method SET_TABLE_FOR_FIRST_DISPLAY, then in selection of fields to display in layout change window, you’ll be able to choose to see all hidden fields or the hidden fields from the group you’ve created. If you don’t pass the group name into IT_SPECIAL_GROUPS, then this setting of field catalog has no impact on display.

 

For my demo program ZDEMO_AIN_CL43, I’ve created a field catalog with REF_TABLE filled for all fields, so it is easier to understand the functionality. Additionally, I’ve hidden all fields that have SP_GROUP filled, so you can check the behaviour directly after running the program.

 

Figure 109 Field catalog with Group Keys

Add a comment
Read more ...

ALV Grid in the nutshell: Field catalog - domname - Domain name

Details
Łukasz Pęgiel
ALV Grid in the nutshell
18 April 2020
Hits: 7989
Tags: CL_GUI_ALV_GRID , ALV GRID IN THE NUTSHELL , FIELDCATALOG , LVC_T_FCAT , DOMNAME , ALV GRID

You may suspect that setting up a domain name in the field catalog will make some effect on the display, for example in data type, length, lowercase sign,  but it seems that it has no effect in ALV grid. Maybe just for information and for Report-Report interface, where this field is use as one of the matching criteria for selection-screen parameters.

As you can see on the next image, although I gave the DOMNAME value FLAG, it didn’t changed anything in the field catalog.

 

Figure 108 DOMNAME in Field catalog

Add a comment

ALV Grid in the nutshell: Field catalog - reprep - ALV control: Value is selection criterion for rep./rep.intf.

Details
Łukasz Pęgiel
ALV Grid in the nutshell
13 April 2020
Hits: 9471
Tags: CL_GUI_ALV_GRID , ALV GRID IN THE NUTSHELL , FIELDCATALOG , LVC_T_FCAT , REPREP , ALV GRID

Before writing this part, I was never using Report-Report Interface, so probably it is not common scenario to do so, or it is not used with the systems I had possibility to use. But anyway I’ve made a deep dive into topic, to understand how we can use this interface and for which purpose.  

Seems that, using this interface, you can call from ALV grid an BW Query, SAP Query, ABAP Report Program or Transaction. Probably depending on the installed version of your system, or addons, the list of the interfaces may be longer.

Anyway I’ve focused here on a simple example of calling another ABAP report using RRI. At the beginning I was wondering if configuration in table TRSTI and setting the parameter REPREP to ABAP_TRUE will be enough to call the interface. So I’ve started with filling TRSTI, where I’ve set sender and receiver, both as RT (ABAP Report Program).

Figure 100 TRSTI entry for sender program

 

Add a comment
Read more ...

ALV Grid in the nutshell: Field catalog - reptext – Heading

Details
Łukasz Pęgiel
ALV Grid in the nutshell
13 April 2020
Hits: 10870
Tags: CL_GUI_ALV_GRID , ALV GRID IN THE NUTSHELL , FIELDCATALOG , LVC_T_FCAT , REPTEXT , ALV GRID

This field allows us to set (or change) the header text of the column. It can consist up to 55 characters in lowercase mode. When you use data dictionary reference ( REF_FIELD, REF_TABLE ) it is populated automatically from the data element of the referenced field.

Figure 97 Texts of Data Element S_FROMAIRP

 

Add a comment
Read more ...

ALV Grid in the nutshell: Field catalog - lowercase - Lowercase letters allowed/not allowed

Details
Łukasz Pęgiel
ALV Grid in the nutshell
13 April 2020
Hits: 8919
Tags: CL_GUI_ALV_GRID , ALV GRID IN THE NUTSHELL , FIELDCATALOG , LVC_T_FCAT , LOWERCASE , ALV GRID

The changes of this parameter are only visible in edit mode and makes sense only for character or string fields. If it is set to ABAP_TRUE (‘X’), then the ALV grid stores in internal table the value in lowercase, if the value of the parameter is empty, then it will always convert the entered value to uppercase.

 

Figure 96 Results of zdemo_ain_cl39 with lowercase turned on

 

 

Add a comment

More Articles ...

  1. ALV Grid in the nutshell: Field catalog - intlen - Internal Length in Bytes
  2. ALV Grid in the nutshell: Field catalog - inttype - ABAP data type (C,D,N,...)
  3. ALV Grid in the nutshell: Field catalog - datatype
  4. ALV Grid in the nutshell: Field catalog - rollname
Page 1 of 6
  • Start
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next
  • End


Łukasz Pęgiel
ALV Grid in the nutshell Field catalog - tech Downloading Exchange Rates from NBP National Bank of Poland ALV GRID Field catalog - col pos LOWER CASE PERIOD AND DATE CONVERT OUTPUT MB51 SAP NPL OLE2 OBJECT MB51 ENHANCEMENT GUI ALV GRID SAP DEVELOPMENT TOOLS FOR ECLIPSE CTMS DDB SET VALUE ONLINE SUM ADT ESDUS FIELDCATALOG ESRUO - MM settings table - Part 1 HTML VIEWER FALV CMD API EXTRACT DELETE USER SETTINGS IXML DOCUMENT ZDEMO FALV14 - Popup calls Enhanced MB51 Part 4 - Call MB51 Field catalog - qfieldname GET SELECTED CELLS OSTREAM EDITOR TABLE WITH STATUS CREATE COM APPEND ALV GRID IN THE NUTSHELL EWB Components allocation to routing operation multilevel BOM chart designer QM ATTACHMENTS Scan program for authority-check COPY TSK UNLOCK TVCPLAK REFRESH FROM SELECTOPTIONS BINARY RELATION COMMIT FIX COLUMN FRONTEND SERVICES GTENVIRONMENT VARIABLE SCMS XSTRING FALV06 - Grid Layout settings Mark field STARTING NEW TASK SALV AGGREGATIONS LEARN ABAP READ Field catalog - no zero REJECTION ALLOWED PURCHASE REQUISITION Field catalog - fix column OBJECTS
  • 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
  • GOS - How to add business documents at creation of object
  • Endless loop in BADI ME_PROCESS_PO_CUST
  • 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
  • Popup with multi-select ALV

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.