cancel
Showing results for 
Search instead for 
Did you mean: 

Do we have "Read File" action in MII Workbench 12.0?

Former Member
0 Kudos

Hi all,

For MII Workbench 12.0, I see in the File I/O action group, for the treatment of file on MII system, we have the actions: Write File, Get File List, Delete File, Create Directory, Flat File Parser, Create Zip Archive.

But we don't have "Read File" action.

For example, I have write a XML file in D:\Test\ProductionSchedule.xml and then I would like to read this file into a Transaction, but the "Read File" action doesn't exit.

Should we use another customized action to Read File in MII system? If anyone know how to read file on MII System, please help me?

Thanks a lot in advance,

Vinh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

There are many "Read File" actions - HTML loader, Text loader, and XML loader. These can have file-based URLs (paths) as well as web-based URLs.

jcgood25
Active Contributor
0 Kudos

Have you considered the XMLLoader action block?

Former Member
0 Kudos

Hi Jeremy,

The XMLLoader action belongs to Web action group, it means that we need a URL address (that contains the XML file) in order to load content of XML file.

Furthermore, the XML file (ProductionSchedule.xml) is just an example (we can other file type: .txt, cvs, ...). So we don't specify for XML file type.

In general, I would like to focus on interaction between MII transaction and MII system itself (write and then read on Hard Disk of MII server).

Do you have another solution for reading the content of all file type in Hard Disk of MII server?

Thank you so much, Jeremy,

Vinh

jcgood25
Active Contributor
0 Kudos

As both Rick and the help docs indicate (XMLLoader directs you to the HTMLLoader) http://help.sap.com/saphelp_xmii120/helpdata/en/44/6b49ff32af6d13e10000000a1553f6/frameset.htm, you can use physical file paths.

Managing things at the http level may be a better route to follow, and with NW WebAS you can establish virtual directories to file paths and use http to reference them (even folders outside of the /XMII/CM typical path you get with MII project content).