0

How to reset the spreadsheet export format in ALV

When working with the ALV (ABAP List Viewer), the records/result-set displayed can be exported in various formats including those for spreadsheet programs.

alv_save_choice_excel_export_enIf you use this feature more often and always export your data into the same format, there does exist an option called “Always Use Selected Format”  in the spreadsheet-export-dialog. If you check this option after selecting an export format, so in subsequent exports always the specified format is preselected and you won’t see the format selection dialog anymore.

However, if you would like to change the format or want to get asked for he format again before every re-export, most users recognize that it isn’t such easy to revoke the “Always Use Selected Format” option.

In the following I would like to briefly point out two approaches to solve this nuisance. The first can be done by the user himself and is likely to be the faster solution in most cases. The second can be performed by an authorized user. The advantage here is that the legitimate user can remove the default settings for all other users individually.

Option 1 – performed by the user

alv_reset_choice_excel_export_enIf the user like to get asked again for the export format, so it’s enough to right-click on any row of data. Now, in the context menu, he has to select the item “Spreadsheet…”. This opens the selection dialog, where he’s able to remove the “Always Use Selected Format” option.

 

  1. Right-click on any row in ALV
  2. Click “Spreadsheet…” in the context menu
  3. Uncheck “Always Use Selected Format”

Option 2 – run by an admin or user with sufficient privileges

The second approach makes a remote-hand reset of settings possible, so that the user does not have to be on site.

Using transaction SE38 (ABAP Editor), the program “SALV_BS_ADMIN_MAINTAIN” must be called. Then the “User-Specific Settings for SAP GUI ALV” option must be selected. After that run the progam (e.g. by pressing F8).

alv_reset_for_user_choice_excel_export_1_en  alv_reset_for_user_choice_excel_export_2_en  alv_reset_for_user_choice_excel_export_3_en

Now you get a list of all users who have selected a default export format. To reset the settings for one user, select the row which belongs to the user and then delete it by clicking on the trash-icon. If necessary, the user has to re-call his transaction before the new settings will work.

  1. SE38 -> run program „SALV_BS_ADMIN_MAINTAIN“
  2. Select “User-Specific Settings for SAP GUI ALV” and start the program (F8)
  3. Select user in the table, highlight his row and delete row by clicking the trash-button

About the author: This article, as well as 131 more on en.code-bude.net, were published by Raffi. – Since 2011 I've been blogging here and on code-bude.net, the german counterpart, about programming and my software, write tutorials and try to share my knowledge, as well as possible, with my readers. Furthermore I write at derwirtschaftsinformatiker.de on subjects of my studies.
  //    •  • Facebook  • Twitter