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

regarding message display

Former Member
0 Likes
1,240

hai ,

can any one tell me , how to display the matnr no. when i am trying to insert a new material . and when i say save its saying data inserted succesfully .

ex: material no is 007

but i want the message as " 007 data inserted successfully".

how can i get this ?

thanks & regards,

Syam.

13 REPLIES 13
Read only

Former Member
0 Likes
1,207

Hi Syam,

You can get this type of message if you insert the data from bapi function module. Can i know how you are inserting the record ?

Read only

Former Member
0 Likes
1,207

Hi ,

Message s001 with <fieldname>.

Read only

former_member541575
Participant
0 Likes
1,207

hi

<Query>(Insert query)

if sy-subrc eq 0.

message i001(zais_msg).

endif.

regards

Atul

Read only

Former Member
0 Likes
1,207
Read only

Former Member
0 Likes
1,207

Try this

in SE91 u can define a message no in the massage class say ZXX as

001 &&&& or u can use an existing message no that contains

&&&& of an existing message class.

Now from ur code raise the message as:

message s001(message_class) with l_matnr 'data inserted successfully'.

Read only

0 Likes
1,207

hello,

y shall i again write the statement 'data inserted successfully ' beside l_matnr when i am giving s001.

which one is correct?

1) message s001(message_class) with l_matnr 'data inserted successfully'.

2) message s001 with l_matnr.

i have tried with 2) but its not working .

Syam.

Read only

0 Likes
1,207

Hi syam,

try like this.

concatenate l_matnr 'inserted successfully' into v_text separated by space.

Message s000(zmid) with text v_text.

Read only

0 Likes
1,207

HELLO manjunath,

the second one is also not working fine...

Syam

Read only

0 Likes
1,207

Hi syam,

Just now i have tried the below code. Its working.

DATA:V_TEXT(100) TYPE C.

CONCATENATE '59' 'inserted successfully' INTO V_TEXT.

MESSAGE S000 WITH V_TEXT.

Read only

0 Likes
1,207

hey manjunath,

in concatenate statement if we give a fieldname and ask for displaying its not working . if u directly give the value as 59 it will work.

Syam

Read only

Former Member
0 Likes
1,207

Hi Syam,

If the material number is internally generated, i think you dont know the number right. In what way you are inserting the record ?

Read only

0 Likes
1,207

hello ,

its not internally generated once, i am giving a material number in the first screen and after filling the complete data ie., all the fields in 1st and 2nd screens when i press save button then the message should be displayed along with the material number.

Syam

Read only

Former Member
0 Likes
1,207

thanks everyone ...