Application Development 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: 

dynamic display msg using badi

Former Member
0 Kudos

We got a requirement where in transaction crmd_order , when you click on the save button display a message u2018The Employee responsible is <Employee Responsible>u2019. employee responsible is a dynamic field

.How to achieve this please suggest.

Thanks In Advance

1 ACCEPTED SOLUTION

Sm1tje
Active Contributor
0 Kudos

Do you want to display this message in the standard application log or on a pop up window?

For the application log you should use the 'COLLECT_MESSAGES' function module (or something like it). You can find this FM in function group

CRM_MESSAGE (or something like it).

As far as the message is concerned. If this message is not standard available you should create a new message class (SE91) and a new message. In this message you enter your message 'person responsible &1'.

Upon enter use the SAVE Badi and display your message by using COLLECT_MESSAGES and the reponsible person you should use as a variable. Then the placeholder &1 will be replaced by the responsible person.

1 REPLY 1

Sm1tje
Active Contributor
0 Kudos

Do you want to display this message in the standard application log or on a pop up window?

For the application log you should use the 'COLLECT_MESSAGES' function module (or something like it). You can find this FM in function group

CRM_MESSAGE (or something like it).

As far as the message is concerned. If this message is not standard available you should create a new message class (SE91) and a new message. In this message you enter your message 'person responsible &1'.

Upon enter use the SAVE Badi and display your message by using COLLECT_MESSAGES and the reponsible person you should use as a variable. Then the placeholder &1 will be replaced by the responsible person.