2007 Oct 24 9:16 AM
Hi,
I have a LSMW object. In the Field Mapping step, I need to do a validation for checking whether the primary keys already esist or not. If they exist, I shud skip_record or else transfer_record. There are 3 primary keys.
Where can I do this validation??
Can I write code in the "End of Record", which has default code transfer_record??
Thanks & Regards,
Kalaivani P
Hi,
I have a LSMW object. In the Field Mapping step, I need to do a validation for checking whether the primary keys already esist or not. If they exist, I shud skip_record or else transfer_record. There are 3 primary keys.
Where can I do this validation??
Can I write code in the "End of Record", which has default code transfer_record??
Thanks & Regards,
Kalaivani P
2007 Oct 24 9:47 AM
You can do all your validations in END OF RECORD , write a code like
if validation fails.
skip_record.
else.
tranfer_record.
endif.
I am not sure , i think you can use skip_record to skip the record even in the field mapping part if the conditiopn fails for that fields during hte validation.
Regards,
Rajesh Sanapala.
2007 Oct 24 9:52 AM
Thanks Rajesh!!
Actually when I try to double click on the End of Record ( to add some codes ), it is displaying some "decision" message as follows:
<b>This field has a default reservation
Changes could hamper the run of the
data conversion program
Are you sure that you want to
continue with this action?</b>
I am able to do modifications. But can I modify so that it wont hamper?
2007 Oct 24 9:56 AM
You can do the changes in the END OF RECORD it wont be a problem, i used prevously.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |