ALV Grid in The Nutshell Field Catalog - Col - Id - ALV Control Column ID

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

ABAPblog.com - ALV Grid in the nutshell: Field catalog - col_id - AL... https://abapblog.com/articles/alv-grid-in-the-nutshell/179-alv-grid-in-t...

(https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fabapblog.com&t=) (https://twitter.com/intent/tweet?source=http%3A%2F%2Fabapblog.com&text=:%20http

%3A%2F%2Fabapblog.com&via=abapblog) (http://pinterest.com/pin/create/button/?url=http%3A%2F%2Fabapblog.com&description=) (https://getpocket.com/save?url=http

%3A%2F%2Fabapblog.com&title=) (http://www.reddit.com/submit?url=http%3A%2F%2Fabapblog.com&title=) (http://www.linkedin.com/shareArticle?mini=true&url=http

%3A%2F%2Fabapblog.com&title=&summary=&source=http%3A%2F%2Fabapblog.com) (https://pinboard.in/popup_login/?url=http%3A%2F%2Fabapblog.com&title=&description=)

Home (/) / Articles (/articles) / ALV Grid in the nutshell (/articles/alv-grid-in-the-nutshell)


/ ALV Grid in the nutshell: Field catalog - col_id - ALV control: Column ID (https://abapblog.com/articles/alv-grid-in-the-nutshell/179-alv-grid-in-the-
nutshell-field-catalog-col-id-alv-control-column-id)

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


Column ID (/articles/alv-grid-in-the-nutshell/179-alv-grid-in-the-
nutshell-field-catalog-col-id-alv-control-column-id)
Written by Łukasz Pęgiel Category: ALV Grid In The Nutshell (/Articles/alv-grid-in-the-nutshell) Published: 08 June 2020 Hits: 3182

Tags: CL_GUI_ALV_GRID (/component/search/?searchword=CL_GUI_ALV_GRID&ordering=&searchphrase=all) , ALV GRID IN THE NUTSHELL (/component/search

/?searchword=ALV%20GRID%20IN%20THE%20NUTSHELL&ordering=&searchphrase=all) , FIELDCATALOG (/component/search/?searchword=FIELDCATALOG&ordering=&

searchphrase=all) , LVC_T_FCAT (/component/search/?searchword=LVC_T_FCAT&ordering=&searchphrase=all) , COL_ID (/component/search/?searchword=COL_ID&ordering=&

searchphrase=all) , ALV GRID (/component/search/?searchword=ALV%20GRID&ordering=&searchphrase=all)

0 Comments

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.

1z6 22.02.2022, 20:46


ABAPblog.com - ALV Grid in the nutshell: Field catalog - col_id - AL... https://abapblog.com/articles/alv-grid-in-the-nutshell/179-alv-grid-in-t...

Figure 121 ZDEMO_AIN_CL46 FCAT with manual COL_ID

As you will notice on the screen, or while debugging the code, after the method SET_TABLE_FOR_THE_FIRST_DISPLAY is called, the FCAT is changed and so are the COL_ID entries. Now it
is equal to COL_POS, which was in this case also set manually on a base of columns order in the FCAT table.

Figure 122 ZDEMO_AIN_CL46 FCAT of the first selection option after displaying ALV

Using the option “COL_ID & COL_POS filled” on the selection screen, the following FCAT will be build. You ca notice that the COL_ID is different than COL_POS. Additionally after the creation
of FCAT, I’ve sorted it by FIELDNAME, just to show you, that in this case the sequence of the field doesn’t matter.

Figure 123 ZDEMO_AIN_CL46 FCAT with COL_ID and COL_POS filled

As you will notice on the screen, now field position is set according COL_POS column. Additionally COL_ID is set exactly to the same value.

Figure 124 ZDEMO_AIN_CL46 FCAT after displaying ALV

While there is no effect of this field, simply forget about it.

2z6 22.02.2022, 20:46


ABAPblog.com - ALV Grid in the nutshell: Field catalog - col_id - AL... https://abapblog.com/articles/alv-grid-in-the-nutshell/179-alv-grid-in-t...

Sponsored

Top Online RPG


Hero Wars

Najbardziej relaksująca gra roku 2021. Bez instalacji


Taonga: farma na wyspie Zagraj teraz

Łyżka dziennie spali nawet -12kg tłuszczu z brzucha. Efekty po 2 dniach.


Holisten

Przyszłość kryptowalut: 5 prognoz na rok 2022


eToro Kliknij tutaj

Szumy uszne? Wzbogać dietę o ten składnik i zobacz efekty!


Calminax Kliknij tutaj

Dokucza Ci otyłość brzuszna? Ekspert wyjaśnia jak łatwo schudnąć.


Akademia zdrowia

Chcesz w prosty sposób nauczyć się jak schudnąć nawet 30 kg?


twoje-piekno.pl

back to top
Share

Next (/articles/alv-grid-in-the-nutshell/178-alv-grid-in-the-nutshell-field-catalog-dfieldname-fieldname-for-column-group)

Łukasz Pęgiel (https://pl.linkedin.com/in/lukaszpegiel?trk=profile-badge)

3z6 22.02.2022, 20:46


ABAPblog.com - ALV Grid in the nutshell: Field catalog - col_id - AL... https://abapblog.com/articles/alv-grid-in-the-nutshell/179-alv-grid-in-t...

FIELDCATALOG (https://abapblog.com/search/?searchword=FIELDCATALOG&ordering=&
searchphrase=exact&Itemid=228&option=com_search) CTMS (https://abapblog.com/search/?searchword=CTMS&ordering=&searchphrase=exact&
Itemid=228&option=com_search) DDB (https://abapblog.com/search/?searchword=DDB&ordering=&searchphrase=exact&Itemid=228&option=com_search) SET (https://abapblog.com
/search/?searchword=SET&ordering=&searchphrase=exact&Itemid=228&option=com_search) VALUE (https://abapblog.com/search/?searchword=VALUE&ordering=&
searchphrase=exact&Itemid=228&option=com_search) ONLINE (https://abapblog.com/search/?searchword=ONLINE&ordering=&searchphrase=exact&Itemid=228&option=com_search) ABAP IN ECLIPSE

(https://abapblog.com/search/?searchword=ABAP IN ECLIPSE&ordering=&searchphrase=exact&Itemid=228&option=com_search) ALV Grid in the nutshell (https://abapblog.com


/search/?searchword=ALV Grid in the nutshell&ordering=&searchphrase=exact&Itemid=228&option=com_search) Field
catalog - quantity (https://abapblog.com/search/?searchword= Field catalog - quantity&ordering=&searchphrase=exact&Itemid=228&option=com_search) ALV GRID (https://abapblog.com

/search/?searchword=ALV GRID&ordering=&searchphrase=exact&Itemid=228&option=com_search) VARIANT


(https://abapblog.com/search/?searchword=VARIANT&ordering=&searchphrase=exact&Itemid=228&option=com_search) CATALOG (https://abapblog.com/search/?searchword=CATALOG&ordering=&
searchphrase=exact&Itemid=228&option=com_search) Field catalog - edit (https://abapblog.com/search/?searchword= Field catalog - edit&ordering=&searchphrase=exact&Itemid=228&option=com_search) mask
(https://abapblog.com/search/?searchword=mask&ordering=&searchphrase=exact&Itemid=228&option=com_search) SELECT (https://abapblog.com/search/?searchword=SELECT&ordering=&searchphrase=exact&
Itemid=228&option=com_search) DELETE (https://abapblog.com/search/?searchword=DELETE&ordering=&searchphrase=exact&Itemid=228&option=com_search) USER

(https://abapblog.com/search/?searchword=USER&ordering=&searchphrase=exact&Itemid=228&option=com_search) SETTINGS (https://abapblog.com


ALV GRID IN THE NUTSHELL (https://abapblog.com
/search/?searchword=SETTINGS&ordering=&searchphrase=exact&Itemid=228&option=com_search)

/search/?searchword=ALV GRID IN THE NUTSHELL&ordering=&searchphrase=exact&Itemid=228&


option=com_search) LVC (https://abapblog.com/search/?searchword=LVC&ordering=&searchphrase=exact&
Itemid=228&option=com_search) FCAT (https://abapblog.com/search/?searchword=FCAT&ordering=&
searchphrase=exact&Itemid=228&option=com_search) MEPO (https://abapblog.com/search/?searchword=MEPO&ordering=&searchphrase=exact&Itemid=228&
option=com_search) DOCUMENT (https://abapblog.com/search/?searchword=DOCUMENT&ordering=&searchphrase=exact&Itemid=228&option=com_search) ABAP (https://abapblog.com/search
/?searchword=ABAP&ordering=&searchphrase=exact&Itemid=228&option=com_search) TABLEDESCR (https://abapblog.com/search/?searchword=TABLEDESCR&ordering=&searchphrase=exact&
Itemid=228&option=com_search) PROGRESS (https://abapblog.com/search/?searchword=PROGRESS&ordering=&searchphrase=exact&Itemid=228&option=com_search) INDICATOR (https://abapblog.com
/search/?searchword=INDICATOR&ordering=&searchphrase=exact&Itemid=228&option=com_search) READY (https://abapblog.com/search/?searchword=READY&ordering=&searchphrase=exact&Itemid=228&
option=com_search) FOR (https://abapblog.com/search/?searchword=FOR&ordering=&searchphrase=exact&Itemid=228&option=com_search) INPUT (https://abapblog.com/search/?searchword=INPUT&ordering=&
searchphrase=exact&Itemid=228&option=com_search) REFRESH (https://abapblog.com/search/?searchword=REFRESH&ordering=&searchphrase=exact&Itemid=228&option=com_search) TABLE
(https://abapblog.com/search/?searchword=TABLE&ordering=&searchphrase=exact&Itemid=228&option=com_search) DISPLAY (https://abapblog.com/search/?searchword=DISPLAY&ordering=&
searchphrase=exact&Itemid=228&option=com_search) F4IF (https://abapblog.com/search/?searchword=F4IF&ordering=&searchphrase=exact&Itemid=228&option=com_search) START (https://abapblog.com/search
/?searchword=START&ordering=&searchphrase=exact&Itemid=228&option=com_search) REQUEST (https://abapblog.com/search/?searchword=REQUEST&ordering=&searchphrase=exact&Itemid=228&option=com_search)
MB51 ENHANCEMENT (https://abapblog.com/search/?searchword=MB51 ENHANCEMENT&ordering=&searchphrase=exact&Itemid=228&option=com_search) #EC (https://abapblog.com/search/?searchword=#EC&
ordering=&searchphrase=exact&Itemid=228&option=com_search) Create a nice looking chart with CL (https://abapblog.com/search/?searchword=Create a nice looking chart with CL&ordering=&searchphrase=exact&

GUI (https://abapblog.com/search/?searchword=GUI&ordering=&
Itemid=228&option=com_search)

searchphrase=exact&Itemid=228&option=com_search) CHART (https://abapblog.com/search/?searchword=CHART&ordering=&


searchphrase=exact&Itemid=228&option=com_search) ENGINE - Part 3 - Chart Data and render (https://abapblog.com/search/?searchword=ENGINE - Part 3 - Chart Data and render&ordering=&searchphrase=exact&
Itemid=228&option=com_search) CMD (https://abapblog.com/search/?searchword=CMD&ordering=&searchphrase=exact&Itemid=228&option=com_search) API (https://abapblog.com/search/?searchword=API&
ordering=&searchphrase=exact&Itemid=228&option=com_search) EXTRACT (https://abapblog.com/search/?searchword=EXTRACT&ordering=&searchphrase=exact&Itemid=228&option=com_search) CALL
TRANSFORMATION (https://abapblog.com/search/?searchword=CALL TRANSFORMATION&ordering=&searchphrase=exact&Itemid=228&option=com_search) BCS (https://abapblog.com/search/?searchword=BCS&
ordering=&searchphrase=exact&Itemid=228&option=com_search) MESSAGE (https://abapblog.com/search/?searchword=MESSAGE&ordering=&searchphrase=exact&Itemid=228&option=com_search) SCMS
(https://abapblog.com/search/?searchword=SCMS&ordering=&searchphrase=exact&Itemid=228&option=com_search) STRING (https://abapblog.com/search/?searchword=STRING&ordering=&
searchphrase=exact&Itemid=228&option=com_search) XSTRING (https://abapblog.com/search/?searchword=XSTRING&ordering=&searchphrase=exact&Itemid=228&option=com_search) CUSTOM
(https://abapblog.com/search/?searchword=CUSTOM&ordering=&searchphrase=exact&Itemid=228&option=com_search) CONTAINER (https://abapblog.com/search/?searchword=CONTAINER&ordering=&
searchphrase=exact&Itemid=228&option=com_search) ALINK (https://abapblog.com/search/?searchword=ALINK&ordering=&searchphrase=exact&Itemid=228&option=com_search) CONNECTION
(https://abapblog.com/search/?searchword=CONNECTION&ordering=&searchphrase=exact&Itemid=228&option=com_search) GTUPDATE (https://abapblog.com/search/?searchword=GTUPDATE&ordering=&
searchphrase=exact&Itemid=228&option=com_search) OUT (https://abapblog.com/search/?searchword=OUT&ordering=&searchphrase=exact&Itemid=228&option=com_search) IDENTITY (https://abapblog.com/search
/?searchword=IDENTITY&ordering=&searchphrase=exact&Itemid=228&option=com_search) Create fieldcatalog from internal table (https://abapblog.com/search/?searchword=Create fieldcatalog from internal
table&ordering=&searchphrase=exact&Itemid=228&option=com_search) ISOLATE (https://abapblog.com/search/?searchword=ISOLATE&ordering=&searchphrase=exact&Itemid=228&option=com_search) SELSCREEN
(https://abapblog.com/search/?searchword=SELSCREEN&ordering=&searchphrase=exact&Itemid=228&option=com_search) RESET (https://abapblog.com/search/?searchword=RESET&ordering=&searchphrase=exact&
Itemid=228&option=com_search) REJ (https://abapblog.com/search/?searchword=REJ&ordering=&searchphrase=exact&Itemid=228&option=com_search) ALLOWED (https://abapblog.com/search
/?searchword=ALLOWED&ordering=&searchphrase=exact&Itemid=228&option=com_search) COM (https://abapblog.com/search/?searchword=COM&ordering=&searchphrase=exact&Itemid=228&
option=com_search) BAPI (https://abapblog.com/search/?searchword=BAPI&ordering=&searchphrase=exact&Itemid=228&option=com_search) EXCHANGERATE (https://abapblog.com/search
/?searchword=EXCHANGERATE&ordering=&searchphrase=exact&Itemid=228&option=com_search) CREATE (https://abapblog.com/search/?searchword=CREATE&ordering=&searchphrase=exact&Itemid=228&
option=com_search) FILL (https://abapblog.com/search/?searchword=FILL&ordering=&searchphrase=exact&Itemid=228&option=com_search) MDPA (https://abapblog.com/search/?searchword=MDPA&ordering=&
searchphrase=exact&Itemid=228&option=com_search) FROM (https://abapblog.com/search/?searchword=FROM&ordering=&searchphrase=exact&Itemid=228&option=com_search) EBAN
(https://abapblog.com/search/?searchword=EBAN&ordering=&searchphrase=exact&Itemid=228&option=com_search) MDC7 (https://abapblog.com/search/?searchword=MDC7&ordering=&searchphrase=exact&
Itemid=228&option=com_search) Classifications - Part 2 - Get Object Details (https://abapblog.com/search/?searchword=Classifications - Part 2 - Get Object Details&ordering=&searchphrase=exact&Itemid=228&

ALV (https://abapblog.com/search/?searchword=ALV&ordering=&
option=com_search)

searchphrase=exact&Itemid=228&option=com_search) GRID (https://abapblog.com/search


/?searchword=GRID&ordering=&searchphrase=exact&Itemid=228&option=com_search) Custom selection-screen
fields for MD07 (https://abapblog.com/search/?searchword=Custom selection-screen fields for MD07&ordering=&searchphrase=exact&Itemid=228&option=com_search) MS07 (https://abapblog.com/search
/?searchword=MS07&ordering=&searchphrase=exact&Itemid=228&option=com_search) BOM (https://abapblog.com/search/?searchword=BOM&ordering=&searchphrase=exact&Itemid=228&option=com_search)
PROVIDE (https://abapblog.com/search/?searchword=PROVIDE&ordering=&searchphrase=exact&Itemid=228&option=com_search) MBM (https://abapblog.com/search/?searchword=MBM&ordering=&
searchphrase=exact&Itemid=228&option=com_search) SUM (https://abapblog.com/search/?searchword=SUM&ordering=&searchphrase=exact&Itemid=228&option=com_search) COL (https://abapblog.com/search

4z6 22.02.2022, 20:46


ABAPblog.com - ALV Grid in the nutshell: Field catalog - col_id - AL... https://abapblog.com/articles/alv-grid-in-the-nutshell/179-alv-grid-in-t...

/?searchword=COL&ordering=&searchphrase=exact&Itemid=228&option=com_search) POS (https://abapblog.com/search/?searchword=POS&ordering=&searchphrase=exact&Itemid=228&option=com_search) RM07DOCS


(https://abapblog.com/search/?searchword=RM07DOCS&ordering=&searchphrase=exact&Itemid=228&option=com_search) Keywords (https://abapblog.com/search/?searchword=Keywords&ordering=&
searchphrase=exact&Itemid=228&option=com_search) Endless loop in BADI ME (https://abapblog.com/search/?searchword=Endless loop in BADI ME&ordering=&searchphrase=exact&Itemid=228&option=com_search)
PROCESS (https://abapblog.com/search/?searchword=PROCESS&ordering=&searchphrase=exact&Itemid=228&option=com_search) CUST (https://abapblog.com/search/?searchword=CUST&ordering=&
searchphrase=exact&Itemid=228&option=com_search) REPREP (https://abapblog.com/search/?searchword=REPREP&ordering=&searchphrase=exact&Itemid=228&option=com_search) Field catalog - emphasize
(https://abapblog.com/search/?searchword= Field catalog - emphasize&ordering=&searchphrase=exact&Itemid=228&option=com_search) ESRUO (https://abapblog.com/search/?searchword=ESRUO&ordering=&
searchphrase=exact&Itemid=228&option=com_search) Field catalog - dfieldname (https://abapblog.com/search/?searchword= Field catalog - dfieldname &ordering=&searchphrase=exact&Itemid=228&option=com_search)
�� Fieldname for column group (https://abapblog.com/search/?searchword=�� Fieldname for column group&ordering=&searchphrase=exact&Itemid=228&option=com_search) Battleships game (https://abapblog.com
/search/?searchword=Battleships game &ordering=&searchphrase=exact&Itemid=228&option=com_search) two players (https://abapblog.com/search/?searchword=two players&ordering=&searchphrase=exact&Itemid=228&
option=com_search) Field catalog - icon (https://abapblog.com/search/?searchword= Field catalog - icon&ordering=&searchphrase=exact&Itemid=228&option=com_search) XML (https://abapblog.com/search
/?searchword=XML&ordering=&searchphrase=exact&Itemid=228&option=com_search) CHARACT (https://abapblog.com/search/?searchword=CHARACT&ordering=&searchphrase=exact&Itemid=228&option=com_search)
GETDETAIL (https://abapblog.com/search/?searchword=GETDETAIL&ordering=&searchphrase=exact&Itemid=228&option=com_search)

Laserowe usuwanie blizn Tychy (http://zofia.pegiel.pl/twarz/emerge)


Laserowe usuwanie zmarszczek Tychy (http://zofia.pegiel.pl/twarz/emerge)
Paznokcie hybrydowe Tychy (http://zofia.pegiel.pl/dlonie/paznokcie-hybrydowe)
Paznokcie tytanowe Tychy (http://zofia.pegiel.pl/dlonie/manicure-tytanowy)
Salon Kosmetyczny Tychy (http://zofia.pegiel.pl)
Trycholog Tychy (http://trycholog.tychy.pl)
Wypadanie włosów Tychy (http://trycholog.tychy.pl)

Tweets by @abapblog
Łukasz Pęgiel ~d( abapBlog.com )b~ Retweeted

Christian Drumm
@ceedee666
The @openSAP course #Python for Beginners has been announced. I’m very excited that this
course I have been working on since a few month in now getting real. Still lots of work to do
though… #fhaachen open.sap.com/courses/python1

Python for Beginners


Join this free online course to learn how to program with Python. You’ll be introduced to the fu…
open.sap.com

5h

Łukasz Pęgiel ~d( abapBlog.com )b~ Retweeted

Lars Hvam Petersen


@LarsHvam
Writing multitarget #ABAP applications blogs.sap.com/2022/02/04/wri… aka. another way to paste
Excel values into ABAP

4 Feb 2022

Łukasz Pęgiel ~d( abapBlog.com )b~ Retweeted

Ludwig Stockbauer-Muhr
@stocki3
Another milestone done Smiling face with smiling eyes.

Embed View on Twitter

Eclipse Plugins for ABAP


ABAP Favorites

(https://marketplace.eclipse.org/marketplace-client-intro?mpc_install=3522403)

ABAP ADT Extensions

(http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=4441477)

ABAP Quick Fixes

(http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=4666037)

5z6 22.02.2022, 20:46


ABAPblog.com - ALV Grid in the nutshell: Field catalog - col_id - AL... https://abapblog.com/articles/alv-grid-in-the-nutshell/179-alv-grid-in-t...

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.

6z6 22.02.2022, 20:46

You might also like