on 08-05-2009 8:09 AM
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
HI,
Incase you want to aovid the record creation then you have to give SKIP_TRANSACTION after the error message.
Regards,
Ankur Parab
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.