cancel
Showing results for 
Search instead for 
Did you mean: 

upload file using sap mii

neha1620
Explorer
0 Kudos

Hi Experts,

My requirement is user should put file in one folder and MII should able to attach this file to SAP ME.

To read file into SAP MII 15.4 I tried text loader. When I try to read file text loader gives error "can not read file".

Can you please let me know how I can read file from local folder on my laptop using text loader or any other option?

Thanks in advance.

agentry_src
Active Contributor
0 Kudos

What kind of file is it? xml, javascript, flat file? Do you have a sample of the contents to share? What will MII do with the contents when "attach"ing it to ME?

Accepted Solutions (1)

Accepted Solutions (1)

former_member185234
Active Participant
0 Kudos

Hi Neha,

You can download

FILE_ATTACHMENT.zip MII project that shows how to upload and download.

https://sap-my.sharepoint.com/:f:/p/oksana_zubchenko/Eqv8KYEeeQpPtrBs96bD11kBtVdUq5EklEOw36OcQiQrBA?... Link has image that we load to SAP ME and then download back. Also it has document that explains the idea.

Regards,

Oksana

former_member779593
Discoverer
0 Kudos

Can you share the link again as it is expired

scb-schozs
Discoverer
0 Kudos

Hi Oksana,

could you kindly share the link again?

With friendly regards

Sascha

Answers (2)

Answers (2)

neha1620
Explorer
0 Kudos

Hi Oksana,

Thank you for Zip file.

I tried used PAPI with files more than 8MB and I see issue with PAPI. Do you have idea if there is any maxlength limitation for PAPI?

Thanks,

Neha

sergiy_katerinich
Active Contributor
0 Kudos

Please check a system rule "Maximum File Size", and adjust icm/HTTP/max_request_size_KB in DEFAULT.PFL.

neha1620
Explorer
0 Kudos

Hi Mike,

File is txt file.Content is something like below:

"[System Header ID] System type : 70-15 System serial number : PA127 System 6NC : 71qwq8133 Serial number : 00012504 SW Release : R5.1.4 Hospital name : Hospital ________________________________________________________________________________ [HISTORY]

Date Event

2020-Mar-02 11:38:23 Program Automatic - Configuration

2020-Mar-02 11:32:09 System calibration data updated

2020-Mar-02 11:22:01 Adjustment - X-ray tube Dose Limit done

2020-Mar-02 11:22:01 System calibration data updated 2

020-Mar-02 11:10:16 Adjustment - X-ray tube Dose Limit done"

MII role is to read content and attach to SAP ME object like SFC,DC as file so that operator can refer in future.

I m using SAP ME PAPI fileattachment PAPI in MII ,base64tohexcontentconverter and createfileattachment. With these PAPI I'm able to attach file but I can not read content as file is corrupt. If I pass encoded input to base64tohexcontentconverter PAPI I think it should work.But problem is I m not able to read file using text loader.

Please let me know if I m missing something.

Thanks,

Neha