Skip to Content
avatar image
Former Member

Adding information in IT0105 (communication)

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 07, 2010 at 10:03 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 07, 2010 at 10:19 AM

    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?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      you can add the field via PM01 enhance single screen tab.

      First create the field in CI_ include.

      Then add it to the respective place in 2000 screen.

      Regards,

      Dilek

  • avatar image
    Former Member
    Apr 08, 2010 at 03:01 PM

    Hello Umesh,

    The solution worked. Thank you.

    Add comment
    10|10000 characters needed characters exceeded