cancel
Showing results for 
Search instead for 
Did you mean: 

IT 1001

Former Member
0 Kudos

Hi

I need to upload records in IT1001.

For this I am using the FM RH_Insert_infty,..

Before uploading into 1001 infotype I need to validate the records with respect to OTYPE AND OBJID against IT1000.

Can any one provide some statement How I can do this ?

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I did As suggested above.

Former Member
0 Kudos

Hi,

You could use FM: RH_EXIST_OBJECT - Check Existence of an Object to check the existence of the object.

Or FM RH_READ_INFTY, RH_READ_INFTY_1000,RH_READ_INFTY_1001 to read any information you want.

Hope helps,

Chen Jian

Former Member
0 Kudos

Hi,

Thanks you for your early reply.

Can you please provide some sample code.

I am reading the record for IT1001 from an excel sheet into my internal table.

the record consits of Plan version, Object Type, Object ID, Infotype, Subtype, planning status, start date ,endate, Sclas and sobid.

Once again thanks for your reply.

Former Member
0 Kudos

Hi,

After the data uploaded to internal table, and before update infotype 1001, just check the existence fo the Object ID with object type and plan version:

CALL FUNCTION 'RH_EXIST_OBJECT'

EXPORTING

plvar = sto_plvar

otype = new_otype

objid = new_objid

realo = ' '

EXCEPTIONS

not_found = 01.

IF sy-subrc NE 0.

END IF.

Regards,

Chen Jian