2022 Sep 13 1:43 PM
Hello,
In our system users can't set global layouts if ALV with IDA is used.
I tested this with my own program and the test program "SALV_IDA_LAYOUT_PERSISTENCE".
At program "SALV_IDA_LAYOUT_PERSISTENCE" if you choose only "user specific layouts" then it is saved and works normally. But if you choose "ALL" or "Global layouts", you see the confirmation message that layout is saved but it is not.
After debugging I found the below class/method.
cl_gui_layout_ida
IF_ALV_CML_LAYOUT_EDITOR~SAVE_AS
and in this method there is an if statement:
if if_alv_z=>c_api_version ge cl_salv_gui_supplied_clnt_func=>cs_api_version-v756_02.
Depending on api version a function or class metod is called.
Since our api version is 756 03, we are routed to class.
If I bypass this and enter the function the variant is saved normally and we can use it.
Anyone else having similar problems?
Have a nice day.
2022 Sep 13 4:23 PM
Found a note that should solve your problem:
https://me.sap.com/notes/3196994
2022 Sep 13 3:32 PM
Adding this to my code, I'm able to save Global layouts:
* ... Modify layout
gs_persistence_key-report_name = sy-repid.
lo_alv_display->layout_persistence( )->set_persistence_options(
EXPORTING
is_persistence_key = gs_persistence_key
i_global_save_allowed = abap_true
i_user_specific_save_allowed = abap_true
).
But I don't know which API version we're on ( I couldn't find class cl_salv_gui_supplied_clnt_func in our system).
We have a 7.55 0003 SAP_BASIS and a 755 0005 SAP_UI component.
2022 Sep 13 4:06 PM
Hi Thorsten,
I tried it the same way on my program and "SALV_IDA_LAYOUT_PERSISTENCE" program does it same way when you select "All" on selection screen.
Either our system needs and update or there is a bug on newer systems concerning SALV_IDA.
Our sap basis is 7.56 0000, sap ui is 7.56 0001.
api version is an attribute of the interface.
if_alv_z=>c_api_version
Thanks for the reply,
have a nice day.
2022 Sep 13 4:21 PM
Hi Cagalp,
I had a look again.
We are on API version 754.00, so it seems that SAP added a bug.
I guess you should open an incident.
But you are on a S/4 HANA Cloud system, right?
We have an on-prem system. So maybe it's just an issue on Cloud systems.
2022 Sep 13 4:23 PM
Found a note that should solve your problem:
https://me.sap.com/notes/3196994
2022 Sep 13 4:55 PM
Hi Thorsten,
I searched all day and couldn't find 1 related note 😄 Thank you very much.
I'll try this out and return with results.
My only concern is if I use the old function and save the layout, I can then see it normally on the dialogs.
Regardless I'll pass this to BASIS. Thank you very much.
Have a nice day.
2022 Sep 20 1:26 PM
Hi,
sorry for the late reply,
It seemed like our problem was at saving but this note fixed it.
Thanks again.