Application Development and Automation 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: 
Read only

warning message

Former Member
0 Likes
653

Hi All

How can we give a warning message , what is the possibility to pop up a warning message through configuration .... like for eg i have to enter a contract name which is in mixed case , so Suppose End user give contract name in lower case , how can i get a warning message for the same....

My user wants error/warning message (enter contract name in upper case ) ... can u tell me the exact code for the same...

i will appreciate ur help... its kinda urgent

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
604

If the contract is in upper and lower case, how does requiring the user to enter the input in upper case help?

Rob

4 REPLIES 4
Read only

Former Member
0 Likes
604

Hi,

try this code..

data: v type char20 value 'ABCDEFGH'.

if v ca 'abcdefghijklmnopqrstuvwxyz'.

message i000(zfi) with 'error'.

eixt.

endif.

write:/ v.

if that variable contains any lowe case values...

then it will give message

reward points if helpful

regards,

venkatesh

Read only

Former Member
0 Likes
604

Hi,

Try this code:

REPORT EVENT_DEMO.

NODES SPFLI.

AT SELECTION-SCREEN ON END OF CARRID.

LOOP AT CARRID.

IF CARRID-HIGH NE ' '.

IF CARRID-LOW IS INITIAL.

MESSAGE W050(HB).

ENDIF.

ENDIF.

ENDLOOP.

Regards,

Bhaskar

Read only

former_member194669
Active Contributor
0 Likes
604

You can avoid warning message by converting from lower to upper case, if you input is always UPPER case.

EPORT ztest.

DATA : v_lower(25) VALUE 'abcde',

v_upper(25).

CALL FUNCTION 'TERM_TRANSLATE_TO_UPPER_CASE'

EXPORTING

langu = sy-langu

text = v_lower

IMPORTING

text_uc = v_upper.

WRITE : v_upper.

OUTPUT is : <b>ABCDE</b>

aRs

Read only

Former Member
0 Likes
605

If the contract is in upper and lower case, how does requiring the user to enter the input in upper case help?

Rob