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 / prevent double message

Former Member
0 Likes
477

Hello ,

I created small rapport , working very well in system 4.7 , and than I reproduced the same in ECC 6.0.

This time the error messages were displayed twice and at the end of message there is number 9 added

So instead " 0 line(s) deleted " ,I have message " 0 line(s) deleted0 lines deleted9"

Please advice

this is the code

delete from zdocktostock where ddate < gv_date.

gv_dbcnt = sy-dbcnt.

concatenate gv_dbcnt text-002 into gv_message separated by space.

Message gv_message type 'S' .

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
442

Try this:

delete from zdocktostock where ddate < gv_date.
gv_dbcnt = sy-dbcnt.
CLEAR gv_message. " Add this line
concatenate gv_dbcnt text-002 into gv_message separated by space.
Message gv_message type 'S'.

BR,

Suhas

2 REPLIES 2
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
443

Try this:

delete from zdocktostock where ddate < gv_date.
gv_dbcnt = sy-dbcnt.
CLEAR gv_message. " Add this line
concatenate gv_dbcnt text-002 into gv_message separated by space.
Message gv_message type 'S'.

BR,

Suhas

Read only

Former Member
0 Likes
442

Hello ,

I didn't work with clear . I have same problem with tids mesage

if pdays is initial .

message text-003 TYPE 'E'.

endif.

Problem is only in ecc6.0 not in 4.7 so i presume it has something with unicode .

Thanks

Krsto