cancel
Showing results for 
Search instead for 
Did you mean: 

HRP1001 - Additional data

Former Member
0 Kudos

Hi,

I would like to programatically create a 1001 relationship record using RH_INSERT_INFTY. But I couldnt find a way to also update the 1001 Additional data for object types like Room(PAD22), Qualification (PAD31) etc.

For the rest of the Infotypes I am able to see a structure p<nnnn>_exp available which can be used.

Any help.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

KevinOoi
Participant

Solution:

Move your data to a structure of the additional data (e.g. PAD23, PADxx, etc).

Then use method cl_hr_adata_type_cast=>padnn_to_adata to cast your PADxx structure to the ADATA field of INNNN structure.

Calling RH_INSERT_INFTY with the INNNN-ADATA filled will create the additional data and it's links.

To moderator: I know this is an old thread. I am updating my solution for other users who may be asking the same question. I too was searching for this.

romanweise
Active Contributor
0 Kudos

Hello gandollf,

the P1001 structure include a generic ADATA field of CHAR 600, have you tried using itP Perhaps this is mapped automatically to the aditional data field of HRP1001.

Kind Regards

Roman