Skip to Content
0
Former Member
Jun 01, 2007 at 07:04 AM

Automatic number generation using the function module

12 Views

Hai Everyone,

I have the doubt in automatic number generation.

i find the function module. the function module is

report 123.

*DATA: RC LIKE INRI-RETURNCODE,

  • NUMBER(10) TYPE C.

*

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING OBJECT = 'HUGO'

NR_RANGE_NR = '01'

IMPORTING RETURNCODE = RC

NUMBER = NUMBER.

*

  • CASE RC.

  • WHEN ' '.

  • everything o.k.

  • WHEN '1'.

    • the assigned number lies in the critical area.

  • WHEN '2'.

    • this was the last number, next time the first number

    • will be assigned

  • ENDCASE.

  • write:/ number.

  • in that function module what i want to give the Exporting Object 'HOGO'. where i want to define the number range. what is meant by 'HOGO'.

    If any one faced the same problem plz help me.

    Thanks and regards,

    P.Naganjana Reddy