Application Development and Automation 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: 
Read only

where can I do validations??

Former Member
0 Likes
491

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

3 REPLIES 3
Read only

Former Member
0 Likes
475

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.

Read only

0 Likes
475

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?

Read only

0 Likes
475

You can do the changes in the END OF RECORD it wont be a problem, i used prevously.