Skip to Content
0
Former Member
Feb 19, 2009 at 02:18 PM

Do you know a way of trapping the error message?

97 Views

Hi all,

I am using the L_TO_CREATE_DN function as followed

CALL FUNCTION 'L_TO_CREATE_DN'

EXPORTING

I_LGNUM = lv_lgnum

I_VBELN = gt_lips-vbeln

I_UPDATE_TASK = ' '

I_COMMIT_WORK = 'X'

I_BNAME = SY-UNAME

I_KOMIM = '1'

I_SQUIT = ' '

it_delit = lt_delit

TABLES

T_LTAK = lt_ltak

T_LTAP_VB = lt_ltap_vb

T_WMGRP_MSG = lt_msg

EXCEPTIONS

FOREIGN_LOCK = 1

DN_COMPLETED = 2

PARTIAL_DELIVERY_FORBIDDEN = 3

XFELD_WRONG = 4

LDEST_WRONG = 5

DRUKZ_WRONG = 6

DN_WRONG = 7

SQUIT_FORBIDDEN = 8

NO_TO_CREATED = 9

TEILK_WRONG = 10

UPDATE_WITHOUT_COMMIT = 11

NO_AUTHORITY = 12

NO_PICKING_ALLOWED = 13

DN_HU_NOT_CHOOSABLE = 14

INPUT_ERROR = 15

OTHERS = 16.

When the function hit's a message "Exxx" that does not raise with exception

it does not exit the function, it prompts the screen to show the message at the bottom of the screen.

Do you know a way of trapping the error message so I can react to the error?

Regards!

Curtis