The file opens automatically upon saving an SAP spreadsheet.

Edson Santos 294

New Member
Joined
Feb 27, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
How can I solve the following problem?

I use SAP to extract reports into Excel spreadsheets. I save this file on my computer, and every time it's saved, it opens the file. I no longer want it to open the saved files from SAP. How can I make this setting?

1709060220293.png



1709060226213.png
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Exporting from (standard)sap will open the files. Better practice would be a CDS connection. Import with Azure CD connector, or use an oData connector to connect to the CDS.

CDS views could be custom made or standard. It is based on SQL language. It does require some programming skills (go ask IT for this)

Once it is all set, you can just hit refresh data, without using manual exports.

For now I think (not 100% sure) you are bound to Excel files which will open automatically after exporting
 
Upvote 0
In my version of SAP when I select Spreadsheet, it will open in Excel. Local file may be what you want.


1709062124871.png
 
Upvote 0
This works with me:
I have a macro enable workbook launching a series of consecutive SAP scripts, each downloading data to Export.xlsx.
Upon each launch, the macro starts polling the download folder for Export.xlsx with a timestamp after the launch of the SAP script.
Once it is available, the macro opens Export.xlsx, processes its contents, closes Export.xlsx, deletes it from the folder and launches the next SAP Script.
Except for the final Export.xlsx: after processing its contents, the macro replaces its contents with a message that downloads are ready and this Export.xlsx can be closed. Export.xlsx is closed and saved.
So while the macro is running, Export.xlsx can't be opened automatically.
Once the macro is finished, Export.xlsx is opened automatically (only once), this time stating that downloads are ready.

Note: when testing this macro with break points, Export.xlsx will open automatically when the break point is reached.
Or you get an error message if it was just deleted.
 
Upvote 0
SAP scripting is often disabled within companies. It is actually like a macro recorder in Excel, which is not as robust as the direct CDS connection.
But, if it works it works ; )
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top