I have a requirement in HR. This is BDC. There are 2 process.
1. In input file indicator is 'C' means change record in infotype 2001 and if subtype 1200 means change in infotype 0082 otherwise no need.
2. In input file indicator is 'N' means create record in infotype 2001 and if subtype 1200 means create in infotype 0082 otherwise no need.
Before create/change record in 0082, check whether record exists in infotype 2001 or not.
for Exam: indicator is 'N', then we need to create a new record in 2001. So I'll write BDC coding(session - Perform statements). if subtype is '1200'. So i need to create a record in infotype 0082.
In this place i must check whther record exists or not in 2001.
But the new record will update after process the session in 'SM35'. How I check before inserting a record to 0082?
if may use 2 programs to implement the logic. but req is will develope in single program.