Skip to Content
0
Former Member
Dec 05, 2006 at 06:41 AM

Actually i have one doubt in message class

25 Views

Actually i have one doubt in message class. I want create message for following logic.

If the records already exits in database table ,

whatever input i will given in input fields like entry type and material no ,it will need in message.

i want rise the error message in my code like "Record entry type B Material no 029585888 already exits in database table".

I done the coding like.........

in SE80.

IF sy-subrc = 0.

MESSAGE e039 with zdbt-enttyp

zdbt-matnr.

ENDIF.

in SE91.

Record entry type &1 Location &2 already exits in database table.

is it correct? it s not working properly..

could you advice me.......