cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert a filename which is being polled from a SAP directory into lowercase filename..

Former Member
0 Kudos

How to convert a filename which is being polled from a SAP directory into lowercase filename.. Ex. ABcd100115.xml to abcd100115

Accepted Solutions (0)

Answers (1)

Answers (1)

engswee
Active Contributor
0 Kudos

Hi Barrett

Welcome to SCN!

First of all, I assume you are familiar with ASMA, Dynamic Configuration and how to get/set the filename. If not, the first UDF in the following blog shows an example of the logic to get/set the filename.

To convert filename to lowercase, you just need to use method toLowerCase() of the String class. So for example, let's say you already have the existing filename in a String variable named filename. All you have to do is add the following logic.


filename = filename.toLowerCase();

Rgds

Eng Swee