Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV with IDA, global layout can't be saved

ckocyigit
Explorer
0 Kudos
1,240

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.

1 ACCEPTED SOLUTION

thkolz
Contributor
760

Found a note that should solve your problem:
https://me.sap.com/notes/3196994

6 REPLIES 6

thkolz
Contributor
0 Kudos
760

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.

0 Kudos
760

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.

thkolz
Contributor
760

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.

thkolz
Contributor
761

Found a note that should solve your problem:
https://me.sap.com/notes/3196994

0 Kudos
760

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.

0 Kudos
760

Hi,

sorry for the late reply,

It seemed like our problem was at saving but this note fixed it.

Thanks again.