on 04-07-2010 10:49 AM
Helllo guys,
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?
Thanks,
Grego
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.
Regards,
Umesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Umesh,
The solution worked. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Umesh,
Thanks for the reply. The INNNN parameter doesnot have a field where I can put my randomly generated number. How can this be implemented?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.