‎2008 Aug 20 11:48 AM
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.
‎2008 Aug 20 11:51 AM
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 ?
‎2008 Aug 20 11:53 AM
‎2008 Aug 20 11:58 AM
hi
<Query>(Insert query)
if sy-subrc eq 0.
message i001(zais_msg).
endif.
regards
Atul
‎2008 Aug 20 11:58 AM
Hi,
Please check the below link
http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaaaf35c111d1829f0000e829fbfe/content.htm
Best Regards,
Jayavardhan.
‎2008 Aug 20 12:01 PM
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'.
‎2008 Aug 20 12:54 PM
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.
‎2008 Aug 20 12:57 PM
Hi syam,
try like this.
concatenate l_matnr 'inserted successfully' into v_text separated by space.
Message s000(zmid) with text v_text.
‎2008 Aug 20 1:18 PM
HELLO manjunath,
the second one is also not working fine...
Syam
‎2008 Aug 20 1:28 PM
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.
‎2008 Aug 20 1:44 PM
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
‎2008 Aug 20 12:03 PM
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 ?
‎2008 Aug 20 12:35 PM
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
‎2008 Aug 22 3:03 AM