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

Validating a Record

Former Member
0 Likes
394

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

1 ACCEPTED SOLUTION
Read only

rainer_hbenthal
Active Contributor
0 Likes
349

Check employe group against naming conventionsm then check for existance in T501.

2 REPLIES 2
Read only

rainer_hbenthal
Active Contributor
0 Likes
350

Check employe group against naming conventionsm then check for existance in T501.

Read only

Former Member
0 Likes
349

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.