cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Action Block - How to pass URL as Input

Former Member
0 Kudos

Hello,

I've been searching for possible solutions to my query but failed.

I have a custom action block which accepts a String and XMLDataType. My question is: How can I pass an input string in my custom action block using this pattern: web://project/folder/file.fileextension? Every time I try to pass this it will only append the value to my user directory. And in return I always get the error: "The filename, directory name, or volume label syntax is incorrect." when running my transaction.

Do I have to use a special data type just like XMLDataType for MII to know that I am passing a URL/file path and not a String input?

PS:
I noticed that the action block Image Loader has a SourceURL input parameter and it accepts a Web URL and/or a file-based URL. This is the same behaviour that I would like to achieve with my custom action block.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I think the SourceURL input parameter is just a String. Some classes in the com.sap.xmii.xacute.actions.file package might help. DBFileUtils and DBFileActionHandler in particular look like they may have some useful methods.