How to convert data for secondary infotype
Please let me know if it is possible to convert data from PRELP structure to secondary infotype.
My issue is when I create data in Infotype 0006, there is a secondary infotype 3366 to which the data should be stored. The screen fields for Infotype 3366 are present along with 0006, but the data is not getting stored in 3366. I have existing validation in user exit due to which the problem is happening. When screen data is converted to infotype data using Method cl_hr_pnnnn_type_cast=>prelp_to_pnnnn, only the data of primary infotype (i.e 0006) is getting converted. When I use the same method to convert data to infotype 3366, the data is not getting converted. So is it possible to read data using Method cl_hr_pnnnn_type_cast=>prelp_to_pnnnn.