Application Development 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: 

New Ques Of ABAP related to SNRO and simple coding...

Former Member
0 Kudos

Hiiii Sirs And Madams...

Here i m again with new que....

And My question is as follows :

what does mean of this coding...

" GET CURSOR LINE WRK_LINESPOL. "

and How can i pass number '11' directly to

function module " NUMBER_GET_NEXT "...

My coding is below :

VAR_NUMRANGE = 11.

FORM GET_NEXT_NO_AGAIN USING VAR_NUMRANGE TYPE ANY.

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

NR_RANGE_NR = VAR_NUMRANGE

OBJECT = 'YINMI'

IMPORTING

NUMBER = WRK_DOCNO.

but it throws error " For object YINMI , number range interval 11 does not exist YMIS"

Now how to get solution from this :

Regards,

Nirav Parekh

2 REPLIES 2

Former Member
0 Kudos

Hi ,

You have a number range object created from transaction SNRO once you create the object set a initial range then you can use this function module and also try to

variable VAR_NUMRANGE as INRI-NRRANGENR .

Please reward if useful.

0 Kudos

HI Nirav Parekh,

In transaction SNRO you can assign number ranges intervals, system will pick the numbers from the number range when u use funtion module NUMBER_GET_NEXT . these funtion module will get the information from table TNRO.

if u want particular number then u can assig that number as current number in transaction SNRO.

data : i_num type i.

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

NR_RANGE_NR = '01'

OBJECT = 'YINMI'

quantity = '1'

IMPORTING

NUMBER = i_num.

In Tcode SNRO check in Number range-> Intervals

If u press the change intervals button you will get a screen there u find 4 options in that.

1) NO = 01

2) from = 1000

3) to = 5000

4) current number = 1001

5) E(external)

NR_RANGE_NR is used to identify which number range interval it should pick from that object . you can have n number of number range intervals for ur object but system can identify which number range should be picked only through <b>NO</b> in the TCODE we specified.

In the above example we are assigning NO as '01'

to NR_RANGE_NR . if we have diffrent number range we can assign that no to NR_RANGE_NR .

Regards,

Francis.

If useful plz reward points.

Message was edited by: Francis

FRANCIS REDDY