Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR HANDLING IN LSMW

Former Member
0 Kudos

Hi experts,

i want to collect errored record in system file .

i have used below code in 5th (Maintain Field Mapping and Conversion Rules).

DATA ITAB LIKE ZDEMO1 OCCURS 0 WITH HEADER LIN

ZDEMO1-COUNTRY = ZMM01-COUNTRY.

IF ZDEMO1-COUNTRY NE 'IN'.

ITAB-NAME_FIRST = ZDEMO1-NAME_FIRST.

APPEND ITAB.

SKIP_RECORD.

ENDIF.

END_OF_PROCESSING

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

FILENAME = 'D:\ERRO

TABLES

DATA_TAB = ITAB.

but this give following error.

Statement "END_OF_PROCESSING" is not defined. Check your spelling

. .

3 REPLIES 3

Former Member

Former Member
0 Kudos

Dont hard code the END_OF_PROCESSING . Write the following code in the block of END_OF_PROCESSING in step (Maintain Field Mapping and Conversion Rules)..

It wont be displayed directly, you need to enable the checkboxes in Menu Extras-> layout and enable the events which you want to display.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

FILENAME = 'D:\ERRO

TABLES

DATA_TAB = ITAB.

0 Kudos

Thanx a lot Rajesh,

this was very useful for me .

Thanx & Rgds

Pradeep Sharma