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: 

display custom error in LSMW

former_member581430
Participant
0 Kudos
440

hello everybody

I have created an internal error to cross check the entries in LSMW for the necessary fields

I would like to display the error messages if there are any before executing the batch input.

does anybody know how to do this?

thanks for your help

1 ACCEPTED SOLUTION

ThomasZloch
Active Contributor
0 Kudos
137

You can put any ABAP code you like into the mapping and conversion rules, so also WRITE statements or ALV list output. I used to collect errors in an internal table and output the result as ALV list in section "END_OF_PROCESSING", this allows catching and correcting errors before loading the data into the system.

The list is being displayed after "convert data" has been executed, before the standard output of this step.

Thomas

2 REPLIES 2

Nimesh_S_Patel
Explorer
0 Kudos
137

Hi

You can do this in LSMW step 'Maintain Fixed Values, Translations, User-Defined Routines' by deining your roitines. Create any dummy routin here & try to put break point to understand in detail how this routine called during record processing.

Hope it will solve your purpose.

Thanks.

Nimesh S. Patel

ThomasZloch
Active Contributor
0 Kudos
138

You can put any ABAP code you like into the mapping and conversion rules, so also WRITE statements or ALV list output. I used to collect errors in an internal table and output the result as ALV list in section "END_OF_PROCESSING", this allows catching and correcting errors before loading the data into the system.

The list is being displayed after "convert data" has been executed, before the standard output of this step.

Thomas