cancel
Showing results for 
Search instead for 
Did you mean: 

Downloading File onto iPad

Former Member
0 Kudos

I am having issues downloading a file into an object on my iOS Agentry project. I found this previous SCN discussion that I was trying to use as a baseline for my project: https://archive.sap.com/discussions/thread/3789304

My configuration is as follows:

I have a button that calls the "DownloadFileFetch" that has 2 fetches: 'OfficeDownloadsFileFetch' and then 'MainFetch'

OfficeDownloadsFileFetch Fetch is tied to the OfficeGeodatabaseFile collection property of the Main object.

OfficeDownloadsFileFetch has a Server Exchange Steps to populate the OfficeNum property of the OfficeGeodatabaseFile object (to be used as filename).

I have confirmed that this fetch is working up to this point and the office number is being populated. I then have a read step defined on the OfficeGeodatabaseFile object to download the files.

The Fetch_OfficeNum property returns the correct path to the .zip file that exists locally at the D:/SUGDATA location defined in the command.

My only document mapping is back to the data field:

Here is the result I see on the iPad:

Excerpt from Log file:

Agentry log file only shows a timezone error:

What am I doing wrong in my configuratoin? Any help would be greatly appreciated!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Honestly, I am not quite sure what it was that got this working but I think it had to do with my OfficeStep oData service that was being used to download the filenames. The fundamental thing to understand to get this working is that you have to call a fetch to get the filenames, load them in with a transaction and then use the update step on that object to call the step to perform the download. Another thing to check is to make sure the connecion name in Agentry matches the one in the SMP cockpit.

Answers (2)

Answers (2)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Based on your other question about uploading I assume you got this working?

If so please go ahead and close it out.

Thanks,

--Bill

mark_pe
Active Contributor
0 Kudos

Nathan,

Hi. You may try another document that we have for custom attachment. The Wiki is tied to a document that you would download from any file server (not necessarily SAP ERP). Not sure if this is what you are trying to do. Also your picture shows a keyword that means something went wrong with the script or command script you are trying to do. So between this error + the Wiki that I am giving below, hope this helps with your debugging.

See Wiki link below:

https://wiki.scn.sap.com/wiki/display/SAPMOB/Attach+Documentation+-+Downloading+files+to+the+mobile+...

The difference maybe is that for iOS the relative path is different and you may need to study the path system.

As reference for your research you may look into two KBA articles:

1) 2374820 - Windows Path where files are saved in Agentry /SMP 3.0 or Work Manager - Attach documents - Use this for reference.

2) 1964214 - Attach Document: Setting up the iOS Related Path in Agentry

The 2 reference are good reads to improve your skills in attach documents.

Hope this helps.

Mark Pe - SAP Platinum Support Engineer