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

Reg: Customizable message

Former Member
0 Likes
2,244

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,369

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

10 REPLIES 10
Read only

amit_khare
Active Contributor
0 Likes
1,369

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.

Read only

Former Member
0 Likes
1,370

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

Read only

0 Likes
1,369

Hello Alvaro,

Thanks for the quick response. This ia what i was looking for.

Read only

0 Likes
1,369

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

Read only

0 Likes
1,369

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

Read only

0 Likes
1,369

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

Read only

0 Likes
1,369

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

Read only

0 Likes
1,369

that means ,--> i cannt maintain cust. Messages in that application area.

and no tigger points in that application area,

Regards

Peram

Read only

0 Likes
1,369

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.

Read only

former_member239282
Active Participant
0 Likes
1,369

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