Skip to Content
0
Former Member
Mar 15, 2007 at 02:09 PM

validate the record while uploading into table

13 Views

Hi,

I am uploading records into the table, and it so happened that an incorrect record full of text data was there in theinput file, it got uploaded along with the records,

hence I need to modify the code to check for such data -it is text data.

I have an 'empid' field (only numbers). I used that field to check for numeric data some thing like this...

if itab-empid+0(1) between '0' and '1'.

move-corresponding itab to DTABLE.

APPEND DTABLE.

else.

continue.

endif.

it is not working, throwing a short dump.

is there a better way to validate this? All I am doing is if empid field has any text data do not read into the internal table.

Thanks,

SK