cancel
Showing results for 
Search instead for 
Did you mean: 

Work manager - multiple attachment download - best practice iOS

Former Member
0 Kudos

Hi,

I know the standard way of downloading attachments on agentry is by user request per separate attachment.

We are working with quite a lot of attachments and our users often find themselves in areas with low cellular network coverage.

What is the best practice to download all attachments with one sync?

They start their working day with wifi and can continue offline all day..

I've tried looping the triggering action (simulating multiple triggers for 1 document) for all attachments, but that doesn't seem a very performant way of syncing and results in a very unstable document exchange..

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Downloading all attachments seems to be a crazy idea, but certainly doable. The idea is to return all the document content when you are doing the wo fetching. Some ABAP, java and agentry work need to be done. But before that, consider the data volume, if it is too big, it will cause issues like sync timeout, you also need to look at the timout settings. Small volume will be fine in this way.

Another option is to provide a "Download All" button for each wo or notif.

I have done both and they look fine so far.

Former Member
0 Kudos

The idea is not so crazy.

In the standard way of working technicians need to select every single attachment separately and wait approx 15-20 seconds for each transmission/selection.

They don't mind to wait a little longer in the morning when they can sync all at once over a wifi connection.

Document management by non-IT-professionals according to the cellular network coverage is not a strong base for mobile (document) solutions.

Fetching a required document in the middle of nowhere while standing in the mud could be troublesome and the inability to get it when connection fails could lead to safety issues.

Former Member
0 Kudos

Again, consider the data volume first. If only a couple of 500k pdf, or office files, there won't be any problem.

If the data volume is really big, might suggest user for other options like SAP Mobile Document, or on-demand download.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

There was a note released recently regarding downloading all documents during the fetch.  Please review the following as it should provide a good overview on the steps.

2142473 - Ability to download documents synchronously in SAP Work Manager application

--Bill

Former Member
0 Kudos

Hi,

we performed the steps described in the document, but can't seem to get it working.

Made all the backend configurations and later on compared in eclipse with the agxz file.

We've tried to include the DocumentSyncRequest fetch in the Main Fetch.

Afterwards unchecked the previous and added the DoclinkRequest as subaction of the Transmit action.

To exclude any possible rules that mess up the process I've also tried to directly add the DocLinkSyncRequest as a subaction of transmit..

In all cases we don't see anything coming through in the backend..

2015/03/23 18:36:36.990:       + Module=PM

2015/03/23 18:36:36.990:         + Action=Transmit

2015/03/23 18:36:36.990:           + Sub-Action Step='DocLinkRequest'

2015/03/23 18:36:36.990:             + Module=PM

2015/03/23 18:36:36.990:               + Action=DocLinkSyncRequest

2015/03/23 18:36:36.990:                 (104) Info: No action enable rule configured for this action.

2015/03/23 18:36:36.990:                 (109) Info: Begin CanExecute check for all steps.

2015/03/23 18:36:36.990:                 + Sub-Action Step='DocumentLinkSyncRequestTransmit'

2015/03/23 18:36:36.990:                   + Module=PM

2015/03/23 18:36:36.990:                     + Action=DocumentLinkSyncRequestTransmit

2015/03/23 18:36:36.990:                       (104) Info: No action enable rule configured for this action.

2015/03/23 18:36:36.990:                       (109) Info: Begin CanExecute check for all steps.

2015/03/23 18:36:36.990:                       (113) Info: End CanExecute check for all steps.

2015/03/23 18:36:36.990:                 (113) Info: End CanExecute check for all steps.

+ Module=PM

2015/03/23 18:37:52.537:         + Action=Transmit

2015/03/23 18:37:52.537:           + Client To Server Transmit='Transmit1'

2015/03/23 18:37:52.537:             + ANGEL Connection=sgnt6210.tmvw.be:8081

2015/03/23 18:37:52.537:               + ANGEL Connection=sgnt6210.tmvw.be:8081

2015/03/23 18:37:52.537:                 + ANGEL Vine=2871491244

2015/03/23 18:37:52.537:                   + Module=PM

2015/03/23 18:37:52.537:                     + Action=Transmit

2015/03/23 18:37:52.537:                       + Client To Server Transmit='Transmit1'

2015/03/23 18:37:52.537:                         + Module=PM

2015/03/23 18:37:52.537:                           + Action=Transmit

2015/03/23 18:37:52.537:                             + Sub-Action Step='DocLinkRequest'

2015/03/23 18:37:52.537:                               + Module=PM

2015/03/23 18:37:52.537:                                 + Action=DocLinkSyncRequest

2015/03/23 18:37:52.537:                                   (6)   Info: Executing action for a single object.

2015/03/23 18:37:52.537:                                   + Transaction Step='DocumentLinkSyncAdd'

2015/03/23 18:37:52.537:                                     (8)   Info: Begin step execution.

2015/03/23 18:37:52.553:                                     (126) Transaction: 'DocumentLinkSyncAdd'.  Screen Set: <NONE>.  Target Object: (empty).  Target Property: (empty).  SubAction When Complete: <NONE>.  SubAction Target: <NONE>.

2015/03/23 18:37:52.553:                                     + Rule=InitialValuePushScenarioId

2015/03/23 18:37:52.553:                                       + Function=@IF

2015/03/23 18:37:52.553:                                         + Property=:>"DocumentMetaData" Object>"isBDS" Property

2015/03/23 18:37:52.553:                                           Result<Boolean>= false

2015/03/23 18:37:52.553:                                         + Property=:>"DocumentMetaData" Object>"isDMS" Property

2015/03/23 18:37:52.553:                                           Result<Boolean>= false

2015/03/23 18:37:52.553:                                         Result<String>= ''

2015/03/23 18:37:52.553:                                       Result<String>= ''

2015/03/23 18:37:52.553:                                     (11)  Display Screen Set: <NONE>.  Status: Action_Complete - Transaction valid.  No screen set to be displayed

2015/03/23 18:37:52.553:                                     (14)  Sub-action: <NONE>.  Info: Begin Transaction Step Sub-Action execution.

2015/03/23 18:37:52.553:                                     (17)  Sub-action: <NONE>.  Status: Action_Complete.

2015/03/23 18:37:52.553:                                   + Apply Step='Apply'

2015/03/23 18:37:52.553:                                     (60)  Info: Begin step execution.

2015/03/23 18:37:52.616:                                     (64)  Info: Perform pending updates.

2015/03/23 18:37:52.616:                                     (65)  Info: Perform save data.

2015/03/23 18:37:52.631:                                     (67)  Status: Action_Complete

Marçal_Oliveras
Active Contributor
0 Kudos

I wish I had this half a year ago

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

If you are downloading all attachements then you can make it part of the fetch processing.  This will of course increase the transmit time as attachments are being fetched during the process of downloading the Workorder data but then they will be available offline.  You may also need to update the attachment object properties to indicate they are downloaded.

--Bill