Skip to Content
0
Jul 06, 2013 at 04:20 AM

Error Handling in ELM ( External List Management )

125 Views

Hi Experts,

I have a requirment of creation of Business partner and Business Transaction from flat file. I am using ELM for that functionality using BADI CRM_MKTLIST_BADI and method CREATE_BUSINESS_PARTNERS and CREATE_BUSINESS_TRANSACTIONS.

If in case data in flat file is not mantained properly or has some error some data i am giving error message in methods Exporting parameter ET_MESSAGE.

Code is below :

IF ( SY-SUBRC = 0 AND
LS_MKTLIST_PER-PERS_TELEPHON IS INITIAL AND
LS_MKTLIST_PER-PERS_E_MAIL IS INITIAL ).
EV_ERROR = 'X'.
ES_ERROR-TYPE = 'E'.
* ES_ERROR-MESSAGE = 'Error in data'.
ES_ERROR-ID = 'ZM'.
ES_ERROR-NUMBER = '030'.
APPEND ES_ERROR TO ET_MESSAGE.
EXIT.
ENDIF.


but i am not getting MY error message i am getting like this as below :


when i click on error there is nothing to display.

in Messages for process step assignment block ,it shows 1 Error while maintaining BP. but i want user to see what exactly is the error not this genric statement.

please tell me how do i handle error in ELM. Help is appriciated.

Attachments

error1.jpg (39.5 kB)