10-21-2007 11:06 AM
Hi all,
Pls tell me how to get internal number in a field defined on the screen.
The screen is a customised screen which opens when we run a Z transaction and the field is also a user defined numeric type.
I want to get a new number each and every time the transaction is run or after an event is fired.
Thank You,
Regards,
10-21-2007 12:18 PM
Hello Vijendra,
for internal number assignment you have to create a number range object. This is done by the transaction SNRO. Creating a number range object offers a lot of options to generate numbers depending on grouping category or depending on the year. But for a first try specifying the Domain for the Nuber range according to the field you want to fill and setting the warning percentage should do it. You can consider the other option later they are only confusing if you are new to the topic.
Next you define a number interval for the number range object. This can also be done in SNRO just use the GoTo Menue.
To get a number in your application you can use function module NUMBER_GET_NEXT. It is getting a new number every time you call it.
Hope that helps.
Rgds.
Roman
10-22-2007 3:35 AM
11-06-2007 2:19 PM
I Tried the example..its giving the error as number 01 does not exists
11-06-2007 2:52 PM
Hi,
Go to,
Screen->Element list->General attributes->remove the Unselect the Input check box.
Now, the user can't enter any values into this filed. And, in the program.
Casy SY-UCOMM.
When 'SAVE'.
<b>WA-Num = Num + 1.</b>
WA-...
Insert ZTAB from WA.
endcase.