cancel
Showing results for 
Search instead for 
Did you mean: 

MBO that retrieve attachment contents - take long time to execute

Former Member
0 Kudos

Hi SUP guru,

I had created a function module in SAP ECC5, and expose it as a web service.

This FM is expecting One import parameter, and Four export parameter. For the export parameters, it will export the file's binary content, mimetype, size and name.

I am using this web service to create a MBO (with Online Cache group policy) in SUP 2.1.

Then, I tried to PREVIEW this MBO to check whether it is working fine or not.

1. when retrieve file > 500KB, it takes 10 seconds to complete.

2. When retrieve file around 1MB, it takes around 1 minutes and 30 seconds.

3. When retrieve file around 2MB, it takes around 4 minutes.

4. When retrieve file > 2.5MB, it takes more than 5 minutes.

The download time that I mentioned above didn't give a good user experience on mobile device.

With this MBO, I will create a object query with it, and use it in the AttachmentViewer control in a Hybrid app. This app is build to allow user download PO attachment, therefore some of the scanned images will be around 5MB.

Therefore, I would like to check with everyone here whether you had the same problem like this before or not? Please kindly advice what's is the resolutions for this case or any workaround?

Thanks in advance.

Regards,

Edison Wang

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Edison,

I am using SUP 2.2 and deployed the HWC 2.2 app on iphone 5.

Can you please help me to get attachment in HWC app.

i have BAPI/RFC with

input =  PR Number and

output =

PR_NUMBERTYPEBANFN
BINARYTYPESTRING
FILENAMETYPESTRING
MIMETYPETYPESTRING
FILESIZETYPEI
GS_OUTPUTTYPESTRING
T_HEXADECIMALTYPEZTT_HEXADECIMAL

after executing BAPI i get following output: attached.

I created the HWC app and on screen i have one attachment viewer controller where in Personalization Key mapping i set the PR Number which is the input to MBO or BAPI.

and in Properties i mapped following properties:

Use object query: checked check Box

Mobile Business Object: selected the particular MBO

Attribute: Binary

Mime Type Key: Mimetype

file name:filename

file size: filesize.

when i execute the app and click on the attachment it gives me:

workflow_jQueryMobileLookAndFeel.html

Missing required parameter

Please help to rectify the issue.


midhun_vp
Active Contributor
0 Kudos

The most likely explanation is that one of the binary, mimetype, or filename values is empty.

Check your WorkflowClient debug trace logs, or diagnose it on the client, to determine what values are showing up on the client for those fields. You might also check in Workflow.js to see how that call to showAttachmentContents is being formulated.

The easiest way to figure out the issue is to look into the logs in the SUP server.

  D:\Sybase\UnwiredPlatform\Servers\UnwiredServer\logs\WorkflowClient


Inside the folder WorkflowClient you can find a file with a name similar to ...__OBMO_WorkflowClient_user...... Where the user is the one you are registered in the SCC.



I am assuming that you are passing GS_OUTPUT value wrongly from SAP. Check whether in the SUP ogs you are getting complete base 64 formatted data.

You can use http://webcodertools.com/imagetobase64converter/Create for testing.

- Midhun VP