‎2010 Jan 28 11:30 AM
Hello ,
I am writing short report , and after i delet e some lines from db i would like to have message with text
e.g. ' 25 lines deleted '. I created text symbol 002 containing text " lines deleted" but i do not know how to
insert system variable sy-dbcnt in front of it . Please have a look at source code below .
Thank you
source code
REPORT ZMM4R82 message-id sy .
data gv_date type sy-datum.
data gv_no_days type n length 3 .
selection-screen begin of block A1 with frame TITLE text-001.
parameters pdays like gv_no_days default '60' .
selection-screen end of block A1.
at selection-screen.
gv_no_days = pdays .
pdays = '60'.
gv_date = sy-datum - gv_no_days.
delete from zdocktostock where ddate < gv_date.
Message text-002 type 'S' .
‎2010 Jan 28 11:47 AM
hi ,
Please concatenate system variable SY-DBCNT and TEXT-002 to one character type variable using CONCATENATE statement. Then while using MESSAGE statement pass this variable name to it.
‎2010 Jan 28 11:47 AM
hi ,
Please concatenate system variable SY-DBCNT and TEXT-002 to one character type variable using CONCATENATE statement. Then while using MESSAGE statement pass this variable name to it.
‎2010 Jan 28 11:49 AM
DATA : var1 (40)
CONCATENATE sy-dbcnt ' ' text-002 INTO var1.
MESSAGE s999(message-class used) WITH var1.
‎2010 Jan 28 11:53 AM
After
delete from zdocktostock where ddate < gv_date.You have to use
Concatenate TEXT-002 SY-DBCNT into V_string separated by Space.
Message V_STRING type 'S'.