Function Module to Convert Upper Case to Title Case in ABAP

uppercase-to-title-case

Today, I thought I should break the shackles and should come up with something very basic but very useful. Have a look at this small utility that converts Upper Case text into the Title Case, this is a requirement at many places and we are just going through the forums to find a solution. What happens most of the time that SAP (by default) converts all letters of the text to caps, when there is any text field is in Selection screen or if free text field taken in Module Pool.

If that is the case and we want to match our string with the database one, we can’t do that because of the case change. This small Function Module written in ABAP can help you to fulfill your requirement. It takes a string and returns one with changed case. Now you don’t need to search out for the SDN forums. 😛

Name of this FM is ZMA_UPPER_CASE_TO_TITLE_CASE.

Here is the code to convert upper case to title case in ABAP.

Continue reading

Hello ABAPers

SAP

Hello ABAPers,

It’s been two years or so since I started working on ABAP.

So here is the first post to start-up with.

Report Hello_ABAPErs.

Write:/ ‘Hello World.’, ‘ ABAP – It is for all’.