‎2009 Oct 06 11:25 AM
Hi ,
I need to validate a record before uploading it into the SAP System.
The Record which I am reading is consists of these fields.
Plvar Objid Otype Infty Begda endda Bukrs Persa Btrtl.
Plan version object Id Object type Infotype Start date Enddate Company code employee Group Employee Subgroup.
Against the Employee Group I need to validate the above record.
Employee Group Table is T501.
Can any one Guide me how Can do this.
thanks
‎2009 Oct 06 11:30 AM
Check employe group against naming conventionsm then check for existance in T501.
‎2009 Oct 06 11:30 AM
Check employe group against naming conventionsm then check for existance in T501.
‎2009 Oct 06 11:31 AM
Are you looking for something like this?
if wa consists of the incoming record
tables: t501
select single *
from T501
where persg = wa-empgrp.
if sy-subrc = 0.
write: 'Valid record'.
else.
write:' Invalid record'.
endif.