Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8709

GUI_UPLOAD FILETYPE parameter passed as lowercase literal

$
0
0

Hello Experts,

 

This is related to the FM: WS_UPLOAD (which is not unicode compatible) and GUI_UPLOAD which is unicode compatible. When I had to change a call to WS_UPLOAD to GUI_UPLOAD, I noticed something strange/interesting.

 

In the call to WS_UPLOAD, when the values 'asc' / 'bin' / 'dat' etc (please note that the file types are in lower case ), the FM works fine without any excepions raised. On the other hand, in the FM: GUI_UPLOAD, when the filetype is passed as a lowercase literal, it raises the exception: INVALID_FILETYPE. GUI_UPLOAD works ONLY when the filetype is passed as uppercase. I checked the source codes for these two FMs and could not reason out this behaviour (wherein WS_UPLOAD works when the FILETYPE is passed as a lowercase literal while GUI_UPLOAD does not work when value passed to FILETYPE parameter is a lower case literal).

 

So could you please help me in finding the technical reason why this happens? I am also searching for some online documentation/blogs/SAP Notes etc..A general answer would be that FMs that are unicode compatible are slightly different in their behaviour when compared to the non-unicode compatible ones. But I would be very glad if anyone can point me to the exact technical reason behind such a behaviour.

 

Thanks for your time and effort.


Viewing all articles
Browse latest Browse all 8709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>