cancel
Showing results for 
Search instead for 
Did you mean: 

Case sensitive input/edit fields

Former Member
0 Kudos

Hi Experts!

Is it possible to realize "case sensitive" input/edit fields within web dynpro for ABAP?

Regards,

Gerhard Hangöbl

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

There is no UI property to do that. You need to Program it on server round trip.

Former Member
0 Kudos

Can you give me an example?

Regards,

Gerhard

Former Member
0 Kudos

Hi,

You could write a method to validate your input with given case as importing parameter and message as exporting message.

importing iv_input_text,ib_case

exporting ev_error_message

data: lv_text type string,

  lv_text = iv_input_text.
  
  if ib_case = abap_true. // Uppercase
     translate text to upper case.
  else.
     translate text to lower case.
  endif.
  
  if iv_input_text ne  lv_text .
     concatenate  iv_input_text 'your message' into ev_ error_message.
  endif.

rameshkumar_ramasamy2
Participant
0 Kudos

Hi ,

I think if u want to validate Case sensitive, U can set the Domain's property which u have assigned to TYPE of that attribute..

While creating domain, u can check that Checkbox CASE SENSITIVE..

As u said, if it is with in Webdynpro, We have to write Coding like Baskaran

Regards,

Ramesh

Edited by: Rameshkumar Raamasamy on Dec 7, 2010 10:33 AM

Former Member
0 Kudos

Hi !

Sorry, I think my question was not clear!

I realized several input fields, but when I fetch the context within web dynpro, the input values are already conerted to upper case!

What is the reason for this? I want to realize a case sensitiv input (or just as the user input the values)!

Regards,

Gerhard

Former Member
0 Kudos

>

> Hi !

>

> Sorry, I think my question was not clear!

>

> I realized several input fields, but when I fetch the context within web dynpro, the input values are already conerted to upper case!

>

> What is the reason for this? I want to realize a case sensitiv input (or just as the user input the values)!

>

> Regards,

> Gerhard

Hi, probably the data elements have conversion routines defined in DDIC. Just write a test WDA component with your own defined attribute and use suggested method to suit your problem.

Answers (0)