Skip to Content
0
Former Member
Jun 06, 2008 at 07:19 AM

How to throw error message to log (userexit)

116 Views

Hi All,

I am working on User Exits for Delivery creation and change.

ie for VL01 and VL02.

Actually i am using USEREXIT_SAVE_DOCUMENT, subroutine.

At this stage i need to insert values into one Z-table.

So while inserting in need to check whether data inserted or not.If data not inserted ,then i need to throw error message to error log.

I dont know how to throw error message to error log in background.Can one suggest for this.

For Ex:

Insert into Z1009.

if sy-subrc <> 0.

Throw error message to log.(my Prob)

Endif.

Thank u,

Kalidas Thhirumoorthy