‎2007 Sep 22 9:00 AM
hi experts,
i m creating new record in my own database table using insert statement here the primary key is my production order number,,what i want that after insertion it will display message "data inserted successfully with production order number .ie 100000000701" plz help me how will i use the message statement......
‎2007 Sep 22 9:04 AM
Ravi
After the update statement check for sy-subrc and then wirte the message
say:-
update ztable.
if sy-subrc = 0.
message s001(zra) with 'Production order' itab-prnr 'updated succesfully'.
endif.
zra is the message class.
K.Kiran.
‎2007 Sep 22 9:06 AM
data : msg(120).
concatenate 'Data created with production order no' itab-aufnr into msg separated by space.
message msg type 'S'.
here itab-aufnr is your prod order variable.
regards
shiba dutta
‎2007 Sep 22 12:18 PM
hi ravi,
go through this.
if sy-subrc = 0.
message s000(vz) with text-001.
else.
message e000(vz) with text-002.
endif.
Here in text-001 write 'Data is inserted successfully'.
text-002 write 'Date is not successfully inserted'.
These Text elements you to write at:
click on GOTO>TEXT ELEMENTS>TEXT SYMBOLS.
There u write those and save and activate them.
<b>please reward points if helpfull</b>
with regards,
radhika kolluru.