Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

converting lower case to upper case data of flat file

Former Member
0 Kudos

Hi All,

I have a requirement purche order creation by using bapi function module.My requirement is when I am uploading the flat file and if flat file contains the data in lower case then before passing it to the function module i want to convert it in to Upper case. please tell me how can I do this.

its very urgent.

Regards,

Amit.

2 REPLIES 2

Former Member
0 Kudos

Use the TRANSLATE command.

Follows a simple example:


REPORT  zteste.
data: v_var(255) type c.

v_var = 'aaaaaaaaaaa'.

TRANSLATE v_var TO UPPER CASE.

Write v_var.

Regards.

Former Member
0 Kudos

hi,

Use translate statement ..


DATA letters(3) TYPE C.
MOVE 'abc' TO letters.
TRANSLATE letters TO UPPER CASE.
write : letters.

Also refer

/people/alvaro.tejadagalindo/blog/2006/12/21/does-abap-lacks-of-string-processing

Regards,

Santosh