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 statement

Former Member
0 Likes
493

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......

3 REPLIES 3
Read only

kiran_k8
Active Contributor
0 Likes
465

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.

Read only

Former Member
0 Likes
465

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

Read only

Former Member
0 Likes
465

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.