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
ALV Grid in The Nutshell Field Catalog - Col - Id - ALV Control Column ID
(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&title=&summary=&source=http%3A%2F%2Fabapblog.com) (https://pinboard.in/popup_login/?url=http%3A%2F%2Fabapblog.com&title=&description=)
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.
When you select the first option - “COL_ID filled”, the FCAT will be created 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.
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.
Sponsored
back to top
Share
Next (/articles/alv-grid-in-the-nutshell/178-alv-grid-in-the-nutshell-field-catalog-dfieldname-fieldname-for-column-group)
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
GUI (https://abapblog.com/search/?searchword=GUI&ordering=&
Itemid=228&option=com_search)
ALV (https://abapblog.com/search/?searchword=ALV&ordering=&
option=com_search)
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
5h
4 Feb 2022
Ludwig Stockbauer-Muhr
@stocki3
Another milestone done Smiling face with smiling eyes.
(https://marketplace.eclipse.org/marketplace-client-intro?mpc_install=3522403)
(http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=4441477)
(http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=4666037)
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.