cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW message error

Former Member
0 Kudos

Hi all,

i want to give my own error message in LSMW. i am doing coding for this in mapping step.

data : length type i.

length = strlen( sourcefield ) " source field is field that comes from flat file

if length > 15.

message ' length cant be more than 15' TYPE 'E'.

else

targetfield = source field.

now if i am giving field name more than 15 characters

it is not showing any error and record has been created. there is not any error in log

why is it so???

how would i get error for it in log.

thanks

Sachin

Edited by: Sachin Gupta on Aug 5, 2009 12:40 PM

Edited by: Sachin Gupta on Aug 5, 2009 12:40 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member555112
Active Contributor
0 Kudos

HI,

Incase you want to aovid the record creation then you have to give SKIP_TRANSACTION after the error message.

Regards,

Ankur Parab

Former Member
0 Kudos

hi ankur,

thanks for ur reply.

i want that error message come in log also when i run LSMW in background.

how would it come?

thanks

Sachin

former_member555112
Active Contributor
0 Kudos

Hi,

LSMW steps cannot be run in background.

Only the session processing or idoc processing can be done in background.

Regards,

Ankur Parab

Former Member
0 Kudos

hi all,

how to show my own error message in LSMW??

i am using the WRITE statement but its not working

actually i am skipping the transaction using SKIP_TRANSACTION for that record.

but i want to show to the user that for which data it got skipped.

thanks

Sachin

former_member555112
Active Contributor
0 Kudos

HI,

In the field mapping step.

Validate the source field with your rules.

Use WRITe statement to display the message and use SKIP_TRANSACTIOn to skip the record.

Use FORMAT COLOR COL_NEGATIVE to display the messages in red color.

After you do the conversion step; the messages will be shown in the output of the conversion program.

Regards,

Ankur Parab

Answers (0)