2011 Oct 16 11:52 AM
Hi all,
iam writing a validation for FD32 transaction in exit, if the validation fails showing error message.
Porblem is when ever error message comes and after that if i press enter fields are going to mode of non editable ( Display mode), how to make them editable which were already editable ( before error message comes).
Iam not using module pool program for this, iam writing code in include exit and throwing the message.
Thanks,
2011 Oct 17 5:58 AM
Hi,
include mm_messages_mac. "useful macros for message handling
if <Your Condition > .
mmpur_message_forced 'E' 'ME' '083' text-001 '' '' ''.
endif.
TEXT-001 => is Text element you can type your message and activate that text element .
regards
DeepaK.
Hi all,
iam writing a validation for FD32 transaction in exit, if the validation fails showing error message.
Porblem is when ever error message comes and after that if i press enter fields are going to mode of non editable ( Display mode), how to make them editable which were already editable ( before error message comes).
Iam not using module pool program for this, iam writing code in include exit and throwing the message.
Thanks,
2011 Oct 17 4:53 AM
2011 Oct 17 5:08 AM
Hi,
You can use pop up window to display error message as below:
-Quote-
AT SELECTION-SCREEN ON ABCD.
IF <condition fails>.
CALL FUNCTION 'FC_POPUP_ERR_WARN_MESSAGE'
EXPORTING
popup_title = 'Error'
IS_ERROR = 'X'
message_text = 'Error message description'
start_column = 25
start_row = 6
.
STOP.
ENDIF.
-Unquote-
You may also use:
-Quote-
IF <condition fails>.
MESSAGE 'abcd' TYPE 'E'.
ENDIF.
-Unquote-
Kindly let me know whether this is of any help or not.
Regards,
Shayeree.
2011 Oct 17 5:14 AM
Hi,
Try to use message type W or S. But make sure you specifically come out of the program since these two messages don't stop the flow of program and continue even after raising message.
Thanks.
Ravi
2011 Oct 17 5:58 AM
Hi,
include mm_messages_mac. "useful macros for message handling
if <Your Condition > .
mmpur_message_forced 'E' 'ME' '083' text-001 '' '' ''.
endif.
TEXT-001 => is Text element you can type your message and activate that text element .
regards
DeepaK.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |