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: 

Dynamically creating Message

Former Member
0 Kudos

Hi everyone,

I have created a custom transaction for HR and this is regarding training. Whenever a new training id is created i want a message at the bottom stating that

TRAINING ID ID NO. HS BEEN CREATED.

I was able to get the id no. dynamically.. what should i do...

can any one please tell me.

Thank in advance,

Bhargava Kavuri.

5 REPLIES 5

Former Member
0 Kudos

hi

message i000 with 'training idno' xxxxx 'has been created'.

former_member181962
Active Contributor
0 Kudos

HI,

IN se91 create a message with say number 999.

999: TRAINING ID & HS BEEN CREATED.

IN code

trigger the message using the following syntax:

message s999(ZZ) with training_id.

Where training_id is the variable which holds the training id.

zz is the message class in which you have created the message.

REgards,

Ravi

former_member188685
Active Contributor
0 Kudos

Hi,

when ever new id creates , with the help of sy-subrc, you can call this message.(don't forget to capture ID)

message S000 with 'Training ID' ID 'Has been Created'.

regards

vijay

Former Member
0 Kudos

Hi,

to get the message type

message s000 with 'TRAINING ID' <ID NO.> 'HAS BEEN CREATED'.

to get the message at the bottom, give it as a success message. and to get a popup give it as an information message. 'i000' instead of 'e000'.

Thanks

Aswin

Former Member
0 Kudos

In the message class that you are using create a message with a PLACE HOLDER. So, if you see in SE91, it would look like

Training id &1 has been created.

Now use this in your program like this

message i100(xx) with variable.

Regards,

Ravi

Note : Please mark the helpful answers