Dear CL_SALV_TABLE Fans,
Welcome to February 8th, 2024, which is the sixteenth International Editable SALV Day. See below for a link to a blog I wrote to celebrate this day exactly one year ago.
This day marks the 16th anniversary of James Hawthorne going cap in hand to SAP and suggesting maybe the CL_SALV_TABLE could be brought up to functional parity with the CL_GUI_ALV_GRID and have an option to be editable.
Each year it gets more difficult to write this blog because there is never anything new to say.
It is as simple as this.
I like CL_SALV_TABLE and so do a lot of SAP developers. But everyone likes having the editability feature a lot more. But it’s never going to happen. As has been mentioned you would think that if 100% of your customers want something you might consider giving it to them, but obviously not.
The times they are a’changing
You will notice in both CL_GUI_ALV_GRID and CL_SALV_TABLE the internal table of data passed in is not an IMPORTING parameter but rather a CHANGING parameter. Why might this be?
I think it is because in CL_GUI_ALV_GRID you can actually change the internal table during ALV processing if it has any editable cells. You call CHECK_CHANGED_DATA and the changed values on the screen are updated in the internal table. Later you can loop through the changed internal table and updated the database with the changed values.
If the data table was an IMPORTING parameter, you would get a short dump if you tried to change any of the values.
That explains why the data table is a CHANGING parameter in CL_GUI_ALV_GRID. Even though officially you are not supposed to use this for editing even though things like are a clear indication it was designed with editing in mind.
So why is the data table still a CHANGING parameter in CL_SALV_TABLE when you cannot edit any of the values? I think this is because CL_SALV_TABLE is a wrapper with CL_GUI_ALV_GRID still inside it. This would also imply that making CL_SALV_TABLE editable is not as technically impossible as SAP claims.
OK so what else was happening in 2008?
Movies – The Dark Knight, Slumdog Millionaire, Iron Man
Songs – “Bleeding Love” by Leona Lewis, “I Kissed a Girl” by Katy Perry, “Take a Bow” by Rihanna
New inventions of 2008 include smog-earing cement, high altitude flying windmills, bionic contacts, pig-urine plastic.
Very soon we will get to the stage some people reading this blog will be younger than the age of the request to make the SALV editable. Since the SAP GUI is not going anywhere (evidenced by the huge amount of development money pumped into every year by SAP) it is possible I will die of old age before the request is actioned. I am 55 already.
Nevertheless, I will keep going. Miracles can happen.
Until then the situation is “Oi you 31,000 SAP ERP Customers! You see this? You like this? You want this? Well, you can’t have it!”
See you next year!
Cheersy Cheers
Paul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Subject | Kudos |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
User | Count |
---|---|
12 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |