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

message when INSERT/DELETE table

Former Member
0 Likes
699

hi Experts!!

i am working on a screen in which i have some Alv DISPLAY OF ATABLE AND WHEN I INSERT OR DELTE FROM THE TABLE, immdiate after insert or delte i need to display a message with sy-dbcnt detail.. for this

i have creeted a screen to and taken i/p o/p fields in that naming variable for same INSIP and passing the valus eo sy-dbcnt to that field in screen PBo. but i am not getting the Sy-dbcnt values.

but when i debug i get the value in the Variable INSIP but not dispaling when i run it..plz help me soooon

please help me wats wrong..

thank you

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
669

in the message class create some text using & like.

001 No of lines inserted &

now message s001 with lin

& symbol will get replaced by value of lin

*reward if answered

5 REPLIES 5
Read only

Former Member
0 Likes
669

logic

case sy-ucomm.

when delete.

DESCRIBE TABLE itab LINES lin

msg s0001 with lin.

when insert.

DESCRIBE TABLE itab LINES lin

msg s0001 with lin.

endcase.

Read only

0 Likes
669

hiii.

actuly i am editing an GRID where in i m entering then valuse to update by using SAVe buttun. when save is presed i need this message to be displayed. i have used describe table in erlier stage to find whether user hasss inserded or deleted the row.

since after insert /delete i am passing sy-dbcnt to the message screen field.. i am geting valuse of sy-dbcnt in varible fiel but when i run the program it only displye sthe screen but not sy-dbcnt valuse..

plz help me

Read only

0 Likes
669

hI,

After u press save button u r updating the table..so after that statement u write the seelct quuery

Update ztable.

select count * from ztable into v_count.

if sys-subrc eq 0.

give message with v_count.

endif.

Rewrad if helpful.

Regards,

Nagaraj

Read only

0 Likes
669

HII

I TRIED WITH THIS

DESCRIBE TABLE itab LINES lin

msg s0001 with lin.

HOW TO WRITE MESSAGE WITH USING LIN.

I NEED TO CREATE IT IN MESSAGE CLASS..PLZ EXPLAIN ME

Read only

Former Member
0 Likes
670

in the message class create some text using & like.

001 No of lines inserted &

now message s001 with lin

& symbol will get replaced by value of lin

*reward if answered