cancel
Showing results for 
Search instead for 
Did you mean: 

How to Convert Lower Case name to Upper Case?

Former Member
0 Kudos

Hi Friends,

I have a requirement in my Application.

When User gives Student's name in Lower Case, always convert to Upper case and send it to SAP(R/3).

How is this possible?

Can anyone help me out in this regard,if possible please provide some sample code so that i can understand a bit clearly.

Thanks and regards,

Chandrashekar.

Accepted Solutions (0)

Answers (2)

Answers (2)

sridhar_k2
Active Contributor
0 Kudos

Check for java String methods.

http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html

String nameString = "Name".toUpperCase();

or

String nameString = nameString = wdContext().currentContext().getName().toUpperCase() ;

Regards,

Sridhar

Former Member
0 Kudos

You should be able to use the toUpper functionality. Here is a sample that sends a name in the context to a model Bapi:

modelInput.setName(wdContext.currentVnUserInfoElement().getVaName().toUpperCase());