Skip to Content
0
Former Member
Feb 12, 2008 at 06:50 AM

message class

15 Views

hi,

i want to display the no. of records found by the select statement in the message bar.the message should be like "10 recordds found" if 10 records are fetched by the select statement. my code is like:

SELECT ebeln bukrs ernam lifnr spras FROM ekko INTO CORRESPONDING FIELDS OF TABLE g_it_ekko WHERE lifnr IN r_lifnr.

DESCRIBE TABLE g_it_ekko LINES n.

IF sy-subrc = 0.

message s002(zsan).

ELSE.

CLEAR g_it_ekko.

MESSAGE e000(zsan).

ENDIF.

what value has to be passed to the message class to get the no. of records and how?

thanks & regards,

santosh