07-17-2006 2:39 PM
Hello guys...
In my dialogue program when a user starts audit I need to generate an internal number from range that begins with 40000000( 8 digit) series or similar.( it should be a unique number and many users may access this screen at same time ,so each time a unique number should be generated)
How can i do this?is there any function module there or do i have write code for it?
and second one is .
In my dialogue programme when a user enter PUSH BUTTON..i need to execute 3 of my custom programs in back ground and a spool request should be created so that the user can see the output in spool.
how can execute these programmes in back ground and how to create spool requests ?
07-17-2006 2:45 PM
1. Create a serial number range object in SNRO transaction and every time you want a new number you can call the NUMBER_GET_NEXT function.
2. Calling the reports in the background, you can do it using SUBMIT REPORT and RETURN EXPORTING LIST TO MEMORY and then access the list using LIST_FROM_MEMORY function.
Regards,
Ravi
Note : Please mark all the helpful answers
07-17-2006 2:42 PM
create a number range using the transaction SNRO.
then use the function module number_get_next. this will solve ur problem.
07-17-2006 2:42 PM
hi,
use:
1)create an object with trx SNRO
2) in your dialog use fm number_get_next
II)
submit Z123 with p_1 = ....
to sap-spool
list name titel
IMMEDIATELY space
keep in spool 'X'
and return.
A.
Message was edited by: Andreas Mann
07-17-2006 2:56 PM
thanks for quick replies..
In z transaction user enters a PUSH BUTTON then this number should be generated.( there may be two Z transaction associated wiht this number range)
can u tell me how to do it SNRO?
also some sample code in my dialouge prog how to use the func module.
07-17-2006 2:59 PM
just go to SNRO and its easy you can do it yourself, just enter the name of the object and then specify the range for the numbers.
Then when you click on the button, call the NUMBER_GET_NEXT function and pass the object name you have created you will get back the serial number, its very easy to try out.
Regards,
Ravi
Note : Please mark all the helpful answers
07-17-2006 3:23 PM
thank you guys for all your answers ...I will try out .
If i have any problems i will be back..
I will award points once im done..
Thnak you.
07-17-2006 2:45 PM
1. Create a serial number range object in SNRO transaction and every time you want a new number you can call the NUMBER_GET_NEXT function.
2. Calling the reports in the background, you can do it using SUBMIT REPORT and RETURN EXPORTING LIST TO MEMORY and then access the list using LIST_FROM_MEMORY function.
Regards,
Ravi
Note : Please mark all the helpful answers
07-17-2006 3:23 PM
hi aday,
You can use following function module .
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'AUFTRAG'
IMPORTING
number = number.
Hope this will help you.
Regards.
Vikas.
07-17-2006 5:02 PM
Hello guys..
can i use two number ranges in one object in SNRO
like
80000000 - 89999999
40000000 - 49999999
in my dialog prog i have to select any one of number range based on input in screen.
how can i do that?
how to use 'NUMBER_GET_NEXT' function module in that case..
07-17-2006 5:09 PM
Yes you can have two ranges with in one object. You give them 01 and 02 number ranges, and then pass that to the function.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01' or '02'
object = 'ObjectName'
IMPORTING
number = number.
Regards,
Ravi
Note : Please mark all the helpful answres and close the thread once the issue is resolved.