Skip to Content
0
Former Member
Jan 09, 2008 at 12:42 PM

Combination values validation in update rules start routine.

42 Views

Good day. I have to validate combination values from a flat file against a master data infoobject. Ex: Combination of Southern/Central/Gulf (Region/Division/Zone) in flat file should also be found in md for loading to complete. Extraction should fail if there is any combinations that don't exist in the master data then the error message will display all invalid values.

Steps taken:

I have the abap code to complete the validation of values of flatfile against md. This could be done by looping at data package and comparing values of the internal table field of the MD infoobject. My temporary solution to deal with invalid combination is " if sy-subrc <> 0. Delete DATA_PACKAGE. endif.". What code may be used on how to fail the update process and then display invalid values?