Adding information in IT0105 (communication)
We have created a subtype for IT015 (communication). This subtype has a field which will be unique for all the employees. Whenever the subtype data for a particular employee has to be created, the system should randomly generate the next number and put it in the field automatically. I have used the exit 'EXIT_SAPFP50M_001'. Here I am generating the random number by creating the number range object and using the function module 'NUMBER_GET_NEXT'. Now I have the random number but I am not sure how to put it in the screen field. The export parameter in the user exit doesnot have an option to take this number and put it in the screen field. How can this be done?
In the same exit you will find the INNNN structure. here you can populate the values.
you may also want to use METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn and cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
for the conversion.