Skip to Content
avatar image
Former Member

Downloading File onto iPad

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!

c6iix.png (10.6 kB)
pflrv.png (20.5 kB)
txl6a.png (35.6 kB)
klqj7.png (26.5 kB)
6hbcy.png (26.5 kB)
wzmju.png (11.8 kB)
5wyfl.png (10.6 kB)
mooqp.png (50.0 kB)
qe663.png (55.6 kB)
wzxje.png (13.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 17, 2017 at 08:14 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2017 at 03:47 PM

    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+client

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 17, 2017 at 07:36 PM

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

    If so please go ahead and close it out.

    Thanks,

    --Bill

    Add comment
    10|10000 characters needed characters exceeded