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: 

Lsmw error handling

Former Member
0 Kudos
101

Hi,

I am using LSMW to upload listing condition record. I am using Batch Input Recording for 'VB01' and the records will be updated through processing of Batch Input Session. In the file the are fields like customer, material, material group4 etc. These fields may be empty or may have invalid values.How to handle these errors and populate a error file?

Please provide me the steps and actions to do in details.

regards,

Tanmay

3 REPLIES 3

Former Member
0 Kudos
61

Hi Tanmay,

During the Mapping and Convertion step where you have assigned your input file fields to the recording fields, you can add some ABAP code to validate the field contents and write out an error message or output to an error file, with field contents if required.

If you are familiar with ABAP this should be no problem for you.

Regards

Kevan

Former Member
0 Kudos
61

Hi ...

Since it is creating Session , once u execeute the LSMW object,

so a LOG will be created for the session.there only u can analyse.

as per my knowledge . u cant collect the error records to a table or a file.

Reward Points if it is useful"

Thanks,

Manjunath MS

former_member125661
Contributor
0 Kudos
61

If the Fields Mapping and Conversion rules, you can edit and write validation logic.

You can also skip a record using the skip_record statement.