2007 Jun 06 10:11 AM
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
2007 Jun 06 3:00 PM
If the contract is in upper and lower case, how does requiring the user to enter the input in upper case help?
Rob
If the contract is in upper and lower case, how does requiring the user to enter the input in upper case help?
Rob
2007 Jun 06 10:24 AM
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
2007 Jun 06 2:09 PM
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
2007 Jun 06 2:14 PM
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
2007 Jun 06 3:00 PM
If the contract is in upper and lower case, how does requiring the user to enter the input in upper case help?
Rob
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |