Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Automatic number generation using the function module

Former Member
0 Likes
659

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
595

hi,

It is the name of the number range object must be passed as

it was defined in number range object maintenance.

it will be created using TCODE SNRO

3 REPLIES 3
Read only

Former Member
0 Likes
596

hi,

It is the name of the number range object must be passed as

it was defined in number range object maintenance.

it will be created using TCODE SNRO

Read only

0 Likes
595

Hai Chandrasekhar,

in that what i have to give. Plz help me in this.

Subobject data element

To-year flag

Number length domain

No interval rolling

Number range transaction

Warning %

Main memory buffering

Group table

Subobject field in group table

Fld NoRangeElement

Fields int./ext. no.range no.

Fld. NoRangeNo

Display element text

Thasnks and regards,

P.Naganjana reddy

Read only