‎2007 Jul 13 7:41 AM
Hello Abapers ,
I got a requirement where i have a to make a warning message customizable ??
Never heard abt this. Can any one give me ideas / hints abt this.
Any kind of help would be appeciated.
Thanks,
Sri
‎2007 Jul 13 7:53 AM
Hi Sri,
well, SAP delivers some messages as customizable -- that is, when SAP is delivered a message number is shown as a (for example) warning, but then every SAP customer may change this behaviour to (for example) an error.
You may display the list of customizable functional areas in SM30 > V_T100SA, and the list of customizable messages in SM30 > V_T100C.
What SAP has done is replacing sentences
message e012(34).
by sentences
CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE'
EXPORTING
i_arbgb = ...
i_dtype = ...
i_msgnr = ...
IMPORTING
E_MSGTY = e_msgty
.
Then you can call the message in a dynamic way:
MESSAGE ID '34' TYPE e_msgty NUMBER '012'.
I hope it helps. Best regards,
Alvaro
‎2007 Jul 13 7:49 AM
By customizable means to allow values at runtime.
message w001 with 'Custom'.
001 This is a & message.
for more values -
message w002 eith 'Custom' 'Control' 'Message'
002 This is a &1 &2 &3
Hope this is what you are looking for.
Regards,
Amit
Reward all helpful replies.
‎2007 Jul 13 7:53 AM
Hi Sri,
well, SAP delivers some messages as customizable -- that is, when SAP is delivered a message number is shown as a (for example) warning, but then every SAP customer may change this behaviour to (for example) an error.
You may display the list of customizable functional areas in SM30 > V_T100SA, and the list of customizable messages in SM30 > V_T100C.
What SAP has done is replacing sentences
message e012(34).
by sentences
CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE'
EXPORTING
i_arbgb = ...
i_dtype = ...
i_msgnr = ...
IMPORTING
E_MSGTY = e_msgty
.
Then you can call the message in a dynamic way:
MESSAGE ID '34' TYPE e_msgty NUMBER '012'.
I hope it helps. Best regards,
Alvaro
‎2007 Jul 13 8:04 AM
Hello Alvaro,
Thanks for the quick response. This ia what i was looking for.
‎2007 Aug 10 9:43 AM
Hello Alvaro,
I still face a problem with Cust Msg's.
I made an entry into V_T100SA with Appl Area as 'TPM_TRIG01' (this is my Msg Class) . Now i try to make entries into V_100C and i get an error msg saying
'No control of messages is possible for work area TPM_TRIG01'.
How can i make an entry ? Could you kindly give me some idea as to how to create a Customizable Msg Or any helpful documentation ??
Thanks,
Sri
‎2007 Aug 10 9:56 AM
Hi Sri,
please try inserting this appl area into table T100SA. To do so, please enter transaction SM30 and view name V_T100SA.
I hope it helps. Best regards,
Alvaro
‎2007 Aug 10 10:01 AM
Hi Alvaro,
I already inserted an entry with appl area 'TPM_TRIG01' into view V_T100SA but iam still getting an error
'No control of messages is possible for work area TPM_TRIG01'
Message was edited by:
Srivijaya Gutala
‎2007 Aug 10 10:09 AM
Hi again, Sri.
you must also configure in table T100S (via transaction SM30) what messages are to be customizable.
I hope this works fine now. Please let me know if it went OK. Best regards,
Alvaro
‎2007 Aug 10 10:14 AM
that means ,--> i cannt maintain cust. Messages in that application area.
and no tigger points in that application area,
Regards
Peram
‎2007 Aug 10 10:31 AM
Hi Alvaro,
It seems to work now. But the problem was also with Language. I was trying to insert entries in DE whereas the Msg class was in EN. Now , when insert in Lang EN , it works. Thanks Again . I donno, if i can give points again but i tried to.
‎2007 Jul 13 7:56 AM
In BSPs you can use class CL_BSP_MESSAGES in for outputting error and information messages.
You can flag each message with a condition that serves as a key for the message. The effect of this is that a message is only output in a BSP if the pertinent condition is fulfilled. This makes it easy to place input-specific messages directly beside the relevant input fields.
If you want to integrate messages into the message log of a component you can use the Message Manager (interface IF_WD_MESSAGE_MANAGER) .
I don't know if may be helpful, if it is rewards points are appreciated